example

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Address

type Address struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetId

func (m *Address) GetId() int64

func (*Address) GetType

func (m *Address) GetType() string

func (*Address) Marshal

func (m *Address) Marshal() (dAtA []byte, err error)

func (*Address) MarshalTo

func (m *Address) MarshalTo(dAtA []byte) (int, error)

func (*Address) MarshalToSizedBuffer

func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) Size

func (m *Address) Size() (n int)

func (*Address) String

func (m *Address) String() string

func (*Address) Unmarshal

func (m *Address) Unmarshal(dAtA []byte) error

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

type CustomOneof

type CustomOneof struct {
	// Types that are valid to be assigned to Value:
	//	*CustomOneof_StringValue
	//	*CustomOneof_Int64Value
	Value isCustomOneof_Value `protobuf_oneof:"value"`
}

func (*CustomOneof) Descriptor

func (*CustomOneof) Descriptor() ([]byte, []int)

func (*CustomOneof) GetInt64Value

func (m *CustomOneof) GetInt64Value() int64

func (*CustomOneof) GetStringValue

func (m *CustomOneof) GetStringValue() string

func (*CustomOneof) GetValue

func (m *CustomOneof) GetValue() isCustomOneof_Value

func (*CustomOneof) Marshal

func (m *CustomOneof) Marshal() (dAtA []byte, err error)

func (*CustomOneof) MarshalTo

func (m *CustomOneof) MarshalTo(dAtA []byte) (int, error)

func (*CustomOneof) MarshalToSizedBuffer

func (m *CustomOneof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CustomOneof) ProtoMessage

func (*CustomOneof) ProtoMessage()

func (*CustomOneof) Reset

func (m *CustomOneof) Reset()

func (*CustomOneof) Size

func (m *CustomOneof) Size() (n int)

func (*CustomOneof) String

func (m *CustomOneof) String() string

func (*CustomOneof) Unmarshal

func (m *CustomOneof) Unmarshal(dAtA []byte) error

func (*CustomOneof) XXX_DiscardUnknown

func (m *CustomOneof) XXX_DiscardUnknown()

func (*CustomOneof) XXX_Marshal

func (m *CustomOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomOneof) XXX_Merge

func (m *CustomOneof) XXX_Merge(src proto.Message)

func (*CustomOneof) XXX_OneofWrappers

func (*CustomOneof) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CustomOneof) XXX_Size

func (m *CustomOneof) XXX_Size() int

func (*CustomOneof) XXX_Unmarshal

func (m *CustomOneof) XXX_Unmarshal(b []byte) error

type CustomOneof_Int64Value

type CustomOneof_Int64Value struct {
	Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof" json:"int64_value,omitempty"`
}

func (*CustomOneof_Int64Value) MarshalTo

func (m *CustomOneof_Int64Value) MarshalTo(dAtA []byte) (int, error)

func (*CustomOneof_Int64Value) MarshalToSizedBuffer

func (m *CustomOneof_Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CustomOneof_Int64Value) Size

func (m *CustomOneof_Int64Value) Size() (n int)

type CustomOneof_StringValue

type CustomOneof_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*CustomOneof_StringValue) MarshalTo

func (m *CustomOneof_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*CustomOneof_StringValue) MarshalToSizedBuffer

func (m *CustomOneof_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CustomOneof_StringValue) Size

func (m *CustomOneof_StringValue) Size() (n int)

type CustomType

type CustomType struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*CustomType) Descriptor

func (*CustomType) Descriptor() ([]byte, []int)

func (*CustomType) GetValue

func (m *CustomType) GetValue() string

func (*CustomType) Marshal

func (m *CustomType) Marshal() (dAtA []byte, err error)

func (*CustomType) MarshalTo

func (m *CustomType) MarshalTo(dAtA []byte) (int, error)

func (*CustomType) MarshalToSizedBuffer

func (m *CustomType) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CustomType) ProtoMessage

func (*CustomType) ProtoMessage()

func (*CustomType) Reset

func (m *CustomType) Reset()

func (*CustomType) Size

func (m *CustomType) Size() (n int)

func (*CustomType) String

func (m *CustomType) String() string

func (*CustomType) Unmarshal

func (m *CustomType) Unmarshal(dAtA []byte) error

func (*CustomType) XXX_DiscardUnknown

func (m *CustomType) XXX_DiscardUnknown()

func (*CustomType) XXX_Marshal

func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomType) XXX_Merge

func (m *CustomType) XXX_Merge(src proto.Message)

func (*CustomType) XXX_Size

func (m *CustomType) XXX_Size() int

func (*CustomType) XXX_Unmarshal

func (m *CustomType) XXX_Unmarshal(b []byte) error

type Customer

type Customer struct {
	Id                      int64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                    string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Addresses               []*Address `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"`
	DefaultAddress          *Address   `protobuf:"bytes,4,opt,name=default_address,json=defaultAddress,proto3" json:"default_address,omitempty"`
	BillingAddress          Address    `protobuf:"bytes,5,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address"`
	MapField_1              string     `protobuf:"bytes,6,opt,name=map_field_1,json=mapField1,proto3" json:"map_field_1,omitempty"`
	MapFieldToWithoutDigits string     `` /* 136-byte string literal not displayed */
}

func (*Customer) Descriptor

func (*Customer) Descriptor() ([]byte, []int)

func (*Customer) GetAddresses

func (m *Customer) GetAddresses() []*Address

func (*Customer) GetBillingAddress

func (m *Customer) GetBillingAddress() Address

func (*Customer) GetDefaultAddress

func (m *Customer) GetDefaultAddress() *Address

func (*Customer) GetId

func (m *Customer) GetId() int64

func (*Customer) GetMapFieldToWithoutDigits

func (m *Customer) GetMapFieldToWithoutDigits() string

func (*Customer) GetMapField_1

func (m *Customer) GetMapField_1() string

func (*Customer) GetName

func (m *Customer) GetName() string

func (*Customer) Marshal

func (m *Customer) Marshal() (dAtA []byte, err error)

func (*Customer) MarshalTo

func (m *Customer) MarshalTo(dAtA []byte) (int, error)

func (*Customer) MarshalToSizedBuffer

func (m *Customer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) Reset

func (m *Customer) Reset()

func (*Customer) Size

func (m *Customer) Size() (n int)

func (*Customer) String

func (m *Customer) String() string

func (*Customer) Unmarshal

func (m *Customer) Unmarshal(dAtA []byte) error

func (*Customer) XXX_DiscardUnknown

func (m *Customer) XXX_DiscardUnknown()

func (*Customer) XXX_Marshal

func (m *Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Customer) XXX_Merge

func (m *Customer) XXX_Merge(src proto.Message)

func (*Customer) XXX_Size

func (m *Customer) XXX_Size() int

func (*Customer) XXX_Unmarshal

func (m *Customer) XXX_Unmarshal(b []byte) error

type Ints

type Ints struct {
	IntFor_32Value int32 `protobuf:"varint,1,opt,name=int_for_32_value,json=intFor32Value,proto3" json:"int_for_32_value,omitempty"`
	IntFor_64Value int64 `protobuf:"varint,2,opt,name=int_for_64_value,json=intFor64Value,proto3" json:"int_for_64_value,omitempty"`
	Int32Value     int32 `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value     int64 `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	StringValue    int64 `protobuf:"varint,5,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
}

func (*Ints) Descriptor

func (*Ints) Descriptor() ([]byte, []int)

func (*Ints) GetInt32Value

func (m *Ints) GetInt32Value() int32

func (*Ints) GetInt64Value

func (m *Ints) GetInt64Value() int64

func (*Ints) GetIntFor_32Value

func (m *Ints) GetIntFor_32Value() int32

func (*Ints) GetIntFor_64Value

func (m *Ints) GetIntFor_64Value() int64

func (*Ints) GetStringValue

func (m *Ints) GetStringValue() int64

func (*Ints) Marshal

func (m *Ints) Marshal() (dAtA []byte, err error)

func (*Ints) MarshalTo

func (m *Ints) MarshalTo(dAtA []byte) (int, error)

func (*Ints) MarshalToSizedBuffer

func (m *Ints) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ints) ProtoMessage

func (*Ints) ProtoMessage()

func (*Ints) Reset

func (m *Ints) Reset()

func (*Ints) Size

func (m *Ints) Size() (n int)

func (*Ints) String

func (m *Ints) String() string

func (*Ints) Unmarshal

func (m *Ints) Unmarshal(dAtA []byte) error

func (*Ints) XXX_DiscardUnknown

func (m *Ints) XXX_DiscardUnknown()

func (*Ints) XXX_Marshal

func (m *Ints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ints) XXX_Merge

func (m *Ints) XXX_Merge(src proto.Message)

func (*Ints) XXX_Size

func (m *Ints) XXX_Size() int

func (*Ints) XXX_Unmarshal

func (m *Ints) XXX_Unmarshal(b []byte) error

type LineItem

type LineItem struct {
	// Capitalized ID. It's not by protobuf style guide, but supported too.
	ID   int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	// SomeField will not be added to transformation function.
	SomeField string `protobuf:"bytes,3,opt,name=some_field,json=someField,proto3" json:"some_field,omitempty"`
	URL       string `protobuf:"bytes,4,opt,name=URL,proto3" json:"URL,omitempty"`
	SKU       int64  `protobuf:"varint,5,opt,name=SKU,proto3" json:"SKU,omitempty"`
}

func (*LineItem) Descriptor

func (*LineItem) Descriptor() ([]byte, []int)

func (*LineItem) GetID

func (m *LineItem) GetID() int64

func (*LineItem) GetSKU

func (m *LineItem) GetSKU() int64

func (*LineItem) GetSomeField

func (m *LineItem) GetSomeField() string

func (*LineItem) GetType

func (m *LineItem) GetType() string

func (*LineItem) GetURL

func (m *LineItem) GetURL() string

func (*LineItem) Marshal

func (m *LineItem) Marshal() (dAtA []byte, err error)

func (*LineItem) MarshalTo

func (m *LineItem) MarshalTo(dAtA []byte) (int, error)

func (*LineItem) MarshalToSizedBuffer

func (m *LineItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) Reset

func (m *LineItem) Reset()

func (*LineItem) Size

func (m *LineItem) Size() (n int)

func (*LineItem) String

func (m *LineItem) String() string

func (*LineItem) Unmarshal

func (m *LineItem) Unmarshal(dAtA []byte) error

func (*LineItem) XXX_DiscardUnknown

func (m *LineItem) XXX_DiscardUnknown()

func (*LineItem) XXX_Marshal

func (m *LineItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LineItem) XXX_Merge

func (m *LineItem) XXX_Merge(src proto.Message)

func (*LineItem) XXX_Size

func (m *LineItem) XXX_Size() int

func (*LineItem) XXX_Unmarshal

func (m *LineItem) XXX_Unmarshal(b []byte) error

type LineItemUsage

type LineItemUsage struct {
	Item *LineItem   `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item,omitempty"`
	List []*LineItem `protobuf:"bytes,2,rep,name=List,proto3" json:"List,omitempty"`
}

opposite message order, usage of LineItem is earlier than message is defined.

func (*LineItemUsage) Descriptor

func (*LineItemUsage) Descriptor() ([]byte, []int)

func (*LineItemUsage) GetItem

func (m *LineItemUsage) GetItem() *LineItem

func (*LineItemUsage) GetList

func (m *LineItemUsage) GetList() []*LineItem

func (*LineItemUsage) Marshal

func (m *LineItemUsage) Marshal() (dAtA []byte, err error)

func (*LineItemUsage) MarshalTo

func (m *LineItemUsage) MarshalTo(dAtA []byte) (int, error)

func (*LineItemUsage) MarshalToSizedBuffer

func (m *LineItemUsage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LineItemUsage) ProtoMessage

func (*LineItemUsage) ProtoMessage()

func (*LineItemUsage) Reset

func (m *LineItemUsage) Reset()

func (*LineItemUsage) Size

func (m *LineItemUsage) Size() (n int)

func (*LineItemUsage) String

func (m *LineItemUsage) String() string

func (*LineItemUsage) Unmarshal

func (m *LineItemUsage) Unmarshal(dAtA []byte) error

func (*LineItemUsage) XXX_DiscardUnknown

func (m *LineItemUsage) XXX_DiscardUnknown()

func (*LineItemUsage) XXX_Marshal

func (m *LineItemUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LineItemUsage) XXX_Merge

func (m *LineItemUsage) XXX_Merge(src proto.Message)

func (*LineItemUsage) XXX_Size

func (m *LineItemUsage) XXX_Size() int

func (*LineItemUsage) XXX_Unmarshal

func (m *LineItemUsage) XXX_Unmarshal(b []byte) error

type NotSupportedOneOf

type NotSupportedOneOf struct {
	// Types that are valid to be assigned to TheDecl:
	//	*NotSupportedOneOf_BoolValue
	//	*NotSupportedOneOf_StringValue
	TheDecl isNotSupportedOneOf_TheDecl `protobuf_oneof:"the_decl"`
}

func (*NotSupportedOneOf) Descriptor

func (*NotSupportedOneOf) Descriptor() ([]byte, []int)

func (*NotSupportedOneOf) GetBoolValue

func (m *NotSupportedOneOf) GetBoolValue() bool

func (*NotSupportedOneOf) GetStringValue

func (m *NotSupportedOneOf) GetStringValue() string

func (*NotSupportedOneOf) GetTheDecl

func (m *NotSupportedOneOf) GetTheDecl() isNotSupportedOneOf_TheDecl

func (*NotSupportedOneOf) Marshal

func (m *NotSupportedOneOf) Marshal() (dAtA []byte, err error)

func (*NotSupportedOneOf) MarshalTo

func (m *NotSupportedOneOf) MarshalTo(dAtA []byte) (int, error)

func (*NotSupportedOneOf) MarshalToSizedBuffer

func (m *NotSupportedOneOf) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NotSupportedOneOf) ProtoMessage

func (*NotSupportedOneOf) ProtoMessage()

func (*NotSupportedOneOf) Reset

func (m *NotSupportedOneOf) Reset()

func (*NotSupportedOneOf) Size

func (m *NotSupportedOneOf) Size() (n int)

func (*NotSupportedOneOf) String

func (m *NotSupportedOneOf) String() string

func (*NotSupportedOneOf) Unmarshal

func (m *NotSupportedOneOf) Unmarshal(dAtA []byte) error

func (*NotSupportedOneOf) XXX_DiscardUnknown

func (m *NotSupportedOneOf) XXX_DiscardUnknown()

func (*NotSupportedOneOf) XXX_Marshal

func (m *NotSupportedOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotSupportedOneOf) XXX_Merge

func (m *NotSupportedOneOf) XXX_Merge(src proto.Message)

func (*NotSupportedOneOf) XXX_OneofWrappers

func (*NotSupportedOneOf) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*NotSupportedOneOf) XXX_Size

func (m *NotSupportedOneOf) XXX_Size() int

func (*NotSupportedOneOf) XXX_Unmarshal

func (m *NotSupportedOneOf) XXX_Unmarshal(b []byte) error

type NotSupportedOneOf_BoolValue

type NotSupportedOneOf_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}

func (*NotSupportedOneOf_BoolValue) MarshalTo

func (m *NotSupportedOneOf_BoolValue) MarshalTo(dAtA []byte) (int, error)

func (*NotSupportedOneOf_BoolValue) MarshalToSizedBuffer

func (m *NotSupportedOneOf_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NotSupportedOneOf_BoolValue) Size

func (m *NotSupportedOneOf_BoolValue) Size() (n int)

type NotSupportedOneOf_StringValue

type NotSupportedOneOf_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*NotSupportedOneOf_StringValue) MarshalTo

func (m *NotSupportedOneOf_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*NotSupportedOneOf_StringValue) MarshalToSizedBuffer

func (m *NotSupportedOneOf_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NotSupportedOneOf_StringValue) Size

func (m *NotSupportedOneOf_StringValue) Size() (n int)

type Order

type Order struct {
	Id       int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstId  *TheOne `protobuf:"bytes,2,opt,name=first_id,json=firstId,proto3" json:"first_id,omitempty"`
	SecondId *TheOne `protobuf:"bytes,3,opt,name=second_id,json=secondId,proto3" json:"second_id,omitempty"`
	ThirdUrl *TheOne `protobuf:"bytes,4,opt,name=third_url,json=thirdUrl,proto3" json:"third_url,omitempty"`
}

func (*Order) Descriptor

func (*Order) Descriptor() ([]byte, []int)

func (*Order) GetFirstId

func (m *Order) GetFirstId() *TheOne

func (*Order) GetId

func (m *Order) GetId() int64

func (*Order) GetSecondId

func (m *Order) GetSecondId() *TheOne

func (*Order) GetThirdUrl

func (m *Order) GetThirdUrl() *TheOne

func (*Order) Marshal

func (m *Order) Marshal() (dAtA []byte, err error)

func (*Order) MarshalTo

func (m *Order) MarshalTo(dAtA []byte) (int, error)

func (*Order) MarshalToSizedBuffer

func (m *Order) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) Size

func (m *Order) Size() (n int)

func (*Order) String

func (m *Order) String() string

func (*Order) Unmarshal

func (m *Order) Unmarshal(dAtA []byte) error

func (*Order) XXX_DiscardUnknown

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal

func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order) XXX_Merge

func (m *Order) XXX_Merge(src proto.Message)

func (*Order) XXX_Size

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal

func (m *Order) XXX_Unmarshal(b []byte) error

type Pointer2Value

type Pointer2Value struct {
	// In message.pb.go Address field will be of type *Address.
	AddressNotNil *Address `protobuf:"bytes,1,opt,name=address_not_nil,json=addressNotNil,proto3" json:"address_not_nil,omitempty"`
}

func (*Pointer2Value) Descriptor

func (*Pointer2Value) Descriptor() ([]byte, []int)

func (*Pointer2Value) GetAddressNotNil

func (m *Pointer2Value) GetAddressNotNil() *Address

func (*Pointer2Value) Marshal

func (m *Pointer2Value) Marshal() (dAtA []byte, err error)

func (*Pointer2Value) MarshalTo

func (m *Pointer2Value) MarshalTo(dAtA []byte) (int, error)

func (*Pointer2Value) MarshalToSizedBuffer

func (m *Pointer2Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Pointer2Value) ProtoMessage

func (*Pointer2Value) ProtoMessage()

func (*Pointer2Value) Reset

func (m *Pointer2Value) Reset()

func (*Pointer2Value) Size

func (m *Pointer2Value) Size() (n int)

func (*Pointer2Value) String

func (m *Pointer2Value) String() string

func (*Pointer2Value) Unmarshal

func (m *Pointer2Value) Unmarshal(dAtA []byte) error

func (*Pointer2Value) XXX_DiscardUnknown

func (m *Pointer2Value) XXX_DiscardUnknown()

func (*Pointer2Value) XXX_Marshal

func (m *Pointer2Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pointer2Value) XXX_Merge

func (m *Pointer2Value) XXX_Merge(src proto.Message)

func (*Pointer2Value) XXX_Size

func (m *Pointer2Value) XXX_Size() int

func (*Pointer2Value) XXX_Unmarshal

func (m *Pointer2Value) XXX_Unmarshal(b []byte) error

type Product

type Product struct {
	Id       int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	One      *TheOne `protobuf:"bytes,3,opt,name=one,proto3" json:"one,omitempty"`
	SecondId *TheOne `protobuf:"bytes,4,opt,name=second_id,json=secondId,proto3" json:"second_id,omitempty"`
	// Example of the custom transformer for the struct
	CustomField *CustomType `protobuf:"bytes,5,opt,name=custom_field,json=customField,proto3" json:"custom_field,omitempty"`
	// Example of the custom transformer for the struct with oneof type in it
	CustomOneof *CustomOneof `protobuf:"bytes,6,opt,name=custom_oneof,json=customOneof,proto3" json:"custom_oneof,omitempty"`
	// Currently the plugin does not support oneof types rather than the specific example with `int64_value` and `string_value`
	NotsupportedOneof *NotSupportedOneOf `protobuf:"bytes,7,opt,name=notsupported_oneof,json=notsupportedOneof,proto3" json:"notsupported_oneof,omitempty"`
}

func (*Product) Descriptor

func (*Product) Descriptor() ([]byte, []int)

func (*Product) GetCustomField

func (m *Product) GetCustomField() *CustomType

func (*Product) GetCustomOneof

func (m *Product) GetCustomOneof() *CustomOneof

func (*Product) GetId

func (m *Product) GetId() int32

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetNotsupportedOneof

func (m *Product) GetNotsupportedOneof() *NotSupportedOneOf

func (*Product) GetOne

func (m *Product) GetOne() *TheOne

func (*Product) GetSecondId

func (m *Product) GetSecondId() *TheOne

func (*Product) Marshal

func (m *Product) Marshal() (dAtA []byte, err error)

func (*Product) MarshalTo

func (m *Product) MarshalTo(dAtA []byte) (int, error)

func (*Product) MarshalToSizedBuffer

func (m *Product) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) Size

func (m *Product) Size() (n int)

func (*Product) String

func (m *Product) String() string

func (*Product) Unmarshal

func (m *Product) Unmarshal(dAtA []byte) error

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product) XXX_Merge

func (m *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

func (m *Product) XXX_Unmarshal(b []byte) error

type SkippedMessageOne

type SkippedMessageOne struct {
}

func (*SkippedMessageOne) Descriptor

func (*SkippedMessageOne) Descriptor() ([]byte, []int)

func (*SkippedMessageOne) Marshal

func (m *SkippedMessageOne) Marshal() (dAtA []byte, err error)

func (*SkippedMessageOne) MarshalTo

func (m *SkippedMessageOne) MarshalTo(dAtA []byte) (int, error)

func (*SkippedMessageOne) MarshalToSizedBuffer

func (m *SkippedMessageOne) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SkippedMessageOne) ProtoMessage

func (*SkippedMessageOne) ProtoMessage()

func (*SkippedMessageOne) Reset

func (m *SkippedMessageOne) Reset()

func (*SkippedMessageOne) Size

func (m *SkippedMessageOne) Size() (n int)

func (*SkippedMessageOne) String

func (m *SkippedMessageOne) String() string

func (*SkippedMessageOne) Unmarshal

func (m *SkippedMessageOne) Unmarshal(dAtA []byte) error

func (*SkippedMessageOne) XXX_DiscardUnknown

func (m *SkippedMessageOne) XXX_DiscardUnknown()

func (*SkippedMessageOne) XXX_Marshal

func (m *SkippedMessageOne) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SkippedMessageOne) XXX_Merge

func (m *SkippedMessageOne) XXX_Merge(src proto.Message)

func (*SkippedMessageOne) XXX_Size

func (m *SkippedMessageOne) XXX_Size() int

func (*SkippedMessageOne) XXX_Unmarshal

func (m *SkippedMessageOne) XXX_Unmarshal(b []byte) error

type SkippedMessageTwo

type SkippedMessageTwo struct {
}

func (*SkippedMessageTwo) Descriptor

func (*SkippedMessageTwo) Descriptor() ([]byte, []int)

func (*SkippedMessageTwo) Marshal

func (m *SkippedMessageTwo) Marshal() (dAtA []byte, err error)

func (*SkippedMessageTwo) MarshalTo

func (m *SkippedMessageTwo) MarshalTo(dAtA []byte) (int, error)

func (*SkippedMessageTwo) MarshalToSizedBuffer

func (m *SkippedMessageTwo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SkippedMessageTwo) ProtoMessage

func (*SkippedMessageTwo) ProtoMessage()

func (*SkippedMessageTwo) Reset

func (m *SkippedMessageTwo) Reset()

func (*SkippedMessageTwo) Size

func (m *SkippedMessageTwo) Size() (n int)

func (*SkippedMessageTwo) String

func (m *SkippedMessageTwo) String() string

func (*SkippedMessageTwo) Unmarshal

func (m *SkippedMessageTwo) Unmarshal(dAtA []byte) error

func (*SkippedMessageTwo) XXX_DiscardUnknown

func (m *SkippedMessageTwo) XXX_DiscardUnknown()

func (*SkippedMessageTwo) XXX_Marshal

func (m *SkippedMessageTwo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SkippedMessageTwo) XXX_Merge

func (m *SkippedMessageTwo) XXX_Merge(src proto.Message)

func (*SkippedMessageTwo) XXX_Size

func (m *SkippedMessageTwo) XXX_Size() int

func (*SkippedMessageTwo) XXX_Unmarshal

func (m *SkippedMessageTwo) XXX_Unmarshal(b []byte) error

type TheOne

type TheOne struct {
	// Types that are valid to be assigned to TheDecl:
	//	*TheOne_StringValue
	//	*TheOne_Int64Value
	TheDecl isTheOne_TheDecl `protobuf_oneof:"the_decl"`
}

func (*TheOne) Descriptor

func (*TheOne) Descriptor() ([]byte, []int)

func (*TheOne) GetInt64Value

func (m *TheOne) GetInt64Value() int64

func (*TheOne) GetStringValue

func (m *TheOne) GetStringValue() string

func (*TheOne) GetTheDecl

func (m *TheOne) GetTheDecl() isTheOne_TheDecl

func (*TheOne) Marshal

func (m *TheOne) Marshal() (dAtA []byte, err error)

func (*TheOne) MarshalTo

func (m *TheOne) MarshalTo(dAtA []byte) (int, error)

func (*TheOne) MarshalToSizedBuffer

func (m *TheOne) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TheOne) ProtoMessage

func (*TheOne) ProtoMessage()

func (*TheOne) Reset

func (m *TheOne) Reset()

func (*TheOne) Size

func (m *TheOne) Size() (n int)

func (*TheOne) String

func (m *TheOne) String() string

func (*TheOne) Unmarshal

func (m *TheOne) Unmarshal(dAtA []byte) error

func (*TheOne) XXX_DiscardUnknown

func (m *TheOne) XXX_DiscardUnknown()

func (*TheOne) XXX_Marshal

func (m *TheOne) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TheOne) XXX_Merge

func (m *TheOne) XXX_Merge(src proto.Message)

func (*TheOne) XXX_OneofWrappers

func (*TheOne) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*TheOne) XXX_Size

func (m *TheOne) XXX_Size() int

func (*TheOne) XXX_Unmarshal

func (m *TheOne) XXX_Unmarshal(b []byte) error

type TheOne_Int64Value

type TheOne_Int64Value struct {
	Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof" json:"int64_value,omitempty"`
}

func (*TheOne_Int64Value) MarshalTo

func (m *TheOne_Int64Value) MarshalTo(dAtA []byte) (int, error)

func (*TheOne_Int64Value) MarshalToSizedBuffer

func (m *TheOne_Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TheOne_Int64Value) Size

func (m *TheOne_Int64Value) Size() (n int)

type TheOne_StringValue

type TheOne_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*TheOne_StringValue) MarshalTo

func (m *TheOne_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*TheOne_StringValue) MarshalToSizedBuffer

func (m *TheOne_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TheOne_StringValue) Size

func (m *TheOne_StringValue) Size() (n int)

type Timer

type Timer struct {
	Time               time.Time  `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
	PtrTime            *time.Time `protobuf:"bytes,2,opt,name=ptr_time,json=ptrTime,proto3,stdtime" json:"ptr_time,omitempty"`
	TimeToStruct       time.Time  `protobuf:"bytes,3,opt,name=time_to_struct,json=timeToStruct,proto3,stdtime" json:"time_to_struct"`
	TimeToStructPtr    *time.Time `protobuf:"bytes,4,opt,name=time_to_struct_ptr,json=timeToStructPtr,proto3,stdtime" json:"time_to_struct_ptr,omitempty"`
	TimePtrToStruct    *time.Time `protobuf:"bytes,5,opt,name=time_ptr_to_struct,json=timePtrToStruct,proto3,stdtime" json:"time_ptr_to_struct,omitempty"`
	TimePtrToPtrStruct *time.Time `` /* 129-byte string literal not displayed */
}

func (*Timer) Descriptor

func (*Timer) Descriptor() ([]byte, []int)

func (*Timer) GetPtrTime

func (m *Timer) GetPtrTime() *time.Time

func (*Timer) GetTime

func (m *Timer) GetTime() time.Time

func (*Timer) GetTimePtrToPtrStruct

func (m *Timer) GetTimePtrToPtrStruct() *time.Time

func (*Timer) GetTimePtrToStruct

func (m *Timer) GetTimePtrToStruct() *time.Time

func (*Timer) GetTimeToStruct

func (m *Timer) GetTimeToStruct() time.Time

func (*Timer) GetTimeToStructPtr

func (m *Timer) GetTimeToStructPtr() *time.Time

func (*Timer) Marshal

func (m *Timer) Marshal() (dAtA []byte, err error)

func (*Timer) MarshalTo

func (m *Timer) MarshalTo(dAtA []byte) (int, error)

func (*Timer) MarshalToSizedBuffer

func (m *Timer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Timer) ProtoMessage

func (*Timer) ProtoMessage()

func (*Timer) Reset

func (m *Timer) Reset()

func (*Timer) Size

func (m *Timer) Size() (n int)

func (*Timer) String

func (m *Timer) String() string

func (*Timer) Unmarshal

func (m *Timer) Unmarshal(dAtA []byte) error

func (*Timer) XXX_DiscardUnknown

func (m *Timer) XXX_DiscardUnknown()

func (*Timer) XXX_Marshal

func (m *Timer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Timer) XXX_Merge

func (m *Timer) XXX_Merge(src proto.Message)

func (*Timer) XXX_Size

func (m *Timer) XXX_Size() int

func (*Timer) XXX_Unmarshal

func (m *Timer) XXX_Unmarshal(b []byte) error

type Value2Pointer

type Value2Pointer struct {
	// In message.pb.go Address field will be of type Address.
	AddressNil Address `protobuf:"bytes,1,opt,name=address_nil,json=addressNil,proto3" json:"address_nil"`
}

func (*Value2Pointer) Descriptor

func (*Value2Pointer) Descriptor() ([]byte, []int)

func (*Value2Pointer) GetAddressNil

func (m *Value2Pointer) GetAddressNil() Address

func (*Value2Pointer) Marshal

func (m *Value2Pointer) Marshal() (dAtA []byte, err error)

func (*Value2Pointer) MarshalTo

func (m *Value2Pointer) MarshalTo(dAtA []byte) (int, error)

func (*Value2Pointer) MarshalToSizedBuffer

func (m *Value2Pointer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value2Pointer) ProtoMessage

func (*Value2Pointer) ProtoMessage()

func (*Value2Pointer) Reset

func (m *Value2Pointer) Reset()

func (*Value2Pointer) Size

func (m *Value2Pointer) Size() (n int)

func (*Value2Pointer) String

func (m *Value2Pointer) String() string

func (*Value2Pointer) Unmarshal

func (m *Value2Pointer) Unmarshal(dAtA []byte) error

func (*Value2Pointer) XXX_DiscardUnknown

func (m *Value2Pointer) XXX_DiscardUnknown()

func (*Value2Pointer) XXX_Marshal

func (m *Value2Pointer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Value2Pointer) XXX_Merge

func (m *Value2Pointer) XXX_Merge(src proto.Message)

func (*Value2Pointer) XXX_Size

func (m *Value2Pointer) XXX_Size() int

func (*Value2Pointer) XXX_Unmarshal

func (m *Value2Pointer) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package helpers contains manually written functions for transforming custom types.
Package helpers contains manually written functions for transforming custom types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL