proto3tests

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedStruct added in v0.12.0

type EmbeddedStruct struct {
	SomethingFixedLen    int64    `protobuf:"fixed64,1,opt,name=somethingFixedLen,proto3" json:"somethingFixedLen,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmbeddedStruct) Descriptor added in v0.12.0

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

func (*EmbeddedStruct) GetSomethingFixedLen added in v0.12.0

func (m *EmbeddedStruct) GetSomethingFixedLen() int64

func (*EmbeddedStruct) ProtoMessage added in v0.12.0

func (*EmbeddedStruct) ProtoMessage()

func (*EmbeddedStruct) Reset added in v0.12.0

func (m *EmbeddedStruct) Reset()

func (*EmbeddedStruct) String added in v0.12.0

func (m *EmbeddedStruct) String() string

func (*EmbeddedStruct) XXX_DiscardUnknown added in v0.13.0

func (m *EmbeddedStruct) XXX_DiscardUnknown()

func (*EmbeddedStruct) XXX_Marshal added in v0.13.0

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

func (*EmbeddedStruct) XXX_Merge added in v0.13.0

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

func (*EmbeddedStruct) XXX_Size added in v0.13.0

func (m *EmbeddedStruct) XXX_Size() int

func (*EmbeddedStruct) XXX_Unmarshal added in v0.13.0

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

type IntArr added in v0.16.1

type IntArr struct {
	Val                  []int64  `protobuf:"varint,1,rep,packed,name=val,proto3" json:"val,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IntArr) Descriptor added in v0.16.1

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

func (*IntArr) GetVal added in v0.16.1

func (m *IntArr) GetVal() []int64

func (*IntArr) ProtoMessage added in v0.16.1

func (*IntArr) ProtoMessage()

func (*IntArr) Reset added in v0.16.1

func (m *IntArr) Reset()

func (*IntArr) String added in v0.16.1

func (m *IntArr) String() string

func (*IntArr) XXX_DiscardUnknown added in v0.16.1

func (m *IntArr) XXX_DiscardUnknown()

func (*IntArr) XXX_Marshal added in v0.16.1

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

func (*IntArr) XXX_Merge added in v0.16.1

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

func (*IntArr) XXX_Size added in v0.16.1

func (m *IntArr) XXX_Size() int

func (*IntArr) XXX_Unmarshal added in v0.16.1

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

type IntDef added in v0.16.1

type IntDef struct {
	Val                  int64    `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IntDef) Descriptor added in v0.16.1

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

func (*IntDef) GetVal added in v0.16.1

func (m *IntDef) GetVal() int64

func (*IntDef) ProtoMessage added in v0.16.1

func (*IntDef) ProtoMessage()

func (*IntDef) Reset added in v0.16.1

func (m *IntDef) Reset()

func (*IntDef) String added in v0.16.1

func (m *IntDef) String() string

func (*IntDef) XXX_DiscardUnknown added in v0.16.1

func (m *IntDef) XXX_DiscardUnknown()

func (*IntDef) XXX_Marshal added in v0.16.1

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

func (*IntDef) XXX_Merge added in v0.16.1

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

func (*IntDef) XXX_Size added in v0.16.1

func (m *IntDef) XXX_Size() int

func (*IntDef) XXX_Unmarshal added in v0.16.1

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

type PrimitivesStruct added in v0.16.1

type PrimitivesStruct struct {
	Int32  int32 `protobuf:"varint,3,opt,name=Int32,proto3" json:"Int32,omitempty"`
	Int64  int64 `protobuf:"varint,4,opt,name=Int64,proto3" json:"Int64,omitempty"`
	Varint int64 `protobuf:"varint,5,opt,name=Varint,proto3" json:"Varint,omitempty"`
	// int     int
	// Byte    byte = 4; // this just another varint
	// Uint8   uint8 // another varint
	// Uint16  uint16 // another one, also the following
	// Uint32  uint32
	// Uint64  uint64
	// Uvarint uint64 `binary:"varint"`
	// Uint    uint
	String_              string               `protobuf:"bytes,14,opt,name=String,proto3" json:"String,omitempty"`
	Bytes                []byte               `protobuf:"bytes,15,opt,name=Bytes,proto3" json:"Bytes,omitempty"`
	Time                 *timestamp.Timestamp `protobuf:"bytes,16,opt,name=Time,proto3" json:"Time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PrimitivesStruct) Descriptor added in v0.16.1

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

func (*PrimitivesStruct) GetBytes added in v0.16.1

func (m *PrimitivesStruct) GetBytes() []byte

func (*PrimitivesStruct) GetInt32 added in v0.16.1

func (m *PrimitivesStruct) GetInt32() int32

func (*PrimitivesStruct) GetInt64 added in v0.16.1

func (m *PrimitivesStruct) GetInt64() int64

func (*PrimitivesStruct) GetString_ added in v0.16.1

func (m *PrimitivesStruct) GetString_() string

func (*PrimitivesStruct) GetTime added in v0.16.1

func (m *PrimitivesStruct) GetTime() *timestamp.Timestamp

func (*PrimitivesStruct) GetVarint added in v0.16.1

func (m *PrimitivesStruct) GetVarint() int64

func (*PrimitivesStruct) ProtoMessage added in v0.16.1

func (*PrimitivesStruct) ProtoMessage()

func (*PrimitivesStruct) Reset added in v0.16.1

func (m *PrimitivesStruct) Reset()

func (*PrimitivesStruct) String added in v0.16.1

func (m *PrimitivesStruct) String() string

func (*PrimitivesStruct) XXX_DiscardUnknown added in v0.16.1

func (m *PrimitivesStruct) XXX_DiscardUnknown()

func (*PrimitivesStruct) XXX_Marshal added in v0.16.1

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

func (*PrimitivesStruct) XXX_Merge added in v0.16.1

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

func (*PrimitivesStruct) XXX_Size added in v0.16.1

func (m *PrimitivesStruct) XXX_Size() int

func (*PrimitivesStruct) XXX_Unmarshal added in v0.16.1

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

type PrimitivesStructSl added in v0.16.1

type PrimitivesStructSl struct {
	Structs              []*PrimitivesStruct `protobuf:"bytes,1,rep,name=Structs,proto3" json:"Structs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PrimitivesStructSl) Descriptor added in v0.16.1

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

func (*PrimitivesStructSl) GetStructs added in v0.16.1

func (m *PrimitivesStructSl) GetStructs() []*PrimitivesStruct

func (*PrimitivesStructSl) ProtoMessage added in v0.16.1

func (*PrimitivesStructSl) ProtoMessage()

func (*PrimitivesStructSl) Reset added in v0.16.1

func (m *PrimitivesStructSl) Reset()

func (*PrimitivesStructSl) String added in v0.16.1

func (m *PrimitivesStructSl) String() string

func (*PrimitivesStructSl) XXX_DiscardUnknown added in v0.16.1

func (m *PrimitivesStructSl) XXX_DiscardUnknown()

func (*PrimitivesStructSl) XXX_Marshal added in v0.16.1

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

func (*PrimitivesStructSl) XXX_Merge added in v0.16.1

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

func (*PrimitivesStructSl) XXX_Size added in v0.16.1

func (m *PrimitivesStructSl) XXX_Size() int

func (*PrimitivesStructSl) XXX_Unmarshal added in v0.16.1

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

type ProtoGotTime added in v0.13.0

type ProtoGotTime struct {
	T                    *timestamp.Timestamp `protobuf:"bytes,1,opt,name=T,proto3" json:"T,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ProtoGotTime) Descriptor added in v0.13.0

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

func (*ProtoGotTime) GetT added in v0.13.0

func (m *ProtoGotTime) GetT() *timestamp.Timestamp

func (*ProtoGotTime) ProtoMessage added in v0.13.0

func (*ProtoGotTime) ProtoMessage()

func (*ProtoGotTime) Reset added in v0.13.0

func (m *ProtoGotTime) Reset()

func (*ProtoGotTime) String added in v0.13.0

func (m *ProtoGotTime) String() string

func (*ProtoGotTime) XXX_DiscardUnknown added in v0.13.0

func (m *ProtoGotTime) XXX_DiscardUnknown()

func (*ProtoGotTime) XXX_Marshal added in v0.13.0

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

func (*ProtoGotTime) XXX_Merge added in v0.13.0

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

func (*ProtoGotTime) XXX_Size added in v0.13.0

func (m *ProtoGotTime) XXX_Size() int

func (*ProtoGotTime) XXX_Unmarshal added in v0.13.0

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

type SomeStruct added in v0.12.0

type SomeStruct struct {
	// proto3 autom. turns this into a pointer ...
	Emb                  *EmbeddedStruct `protobuf:"bytes,1,opt,name=emb,proto3" json:"emb,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SomeStruct) Descriptor added in v0.12.0

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

func (*SomeStruct) GetEmb added in v0.12.0

func (m *SomeStruct) GetEmb() *EmbeddedStruct

func (*SomeStruct) ProtoMessage added in v0.12.0

func (*SomeStruct) ProtoMessage()

func (*SomeStruct) Reset added in v0.12.0

func (m *SomeStruct) Reset()

func (*SomeStruct) String added in v0.12.0

func (m *SomeStruct) String() string

func (*SomeStruct) XXX_DiscardUnknown added in v0.13.0

func (m *SomeStruct) XXX_DiscardUnknown()

func (*SomeStruct) XXX_Marshal added in v0.13.0

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

func (*SomeStruct) XXX_Merge added in v0.13.0

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

func (*SomeStruct) XXX_Size added in v0.13.0

func (m *SomeStruct) XXX_Size() int

func (*SomeStruct) XXX_Unmarshal added in v0.13.0

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

type Test32

type Test32 struct {
	Foo                  uint32   `protobuf:"fixed32,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar                  int32    `protobuf:"zigzag32,2,opt,name=bar,proto3" json:"bar,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Test32) Descriptor

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

func (*Test32) GetBar

func (m *Test32) GetBar() int32

func (*Test32) GetFoo

func (m *Test32) GetFoo() uint32

func (*Test32) ProtoMessage

func (*Test32) ProtoMessage()

func (*Test32) Reset

func (m *Test32) Reset()

func (*Test32) String

func (m *Test32) String() string

func (*Test32) XXX_DiscardUnknown added in v0.13.0

func (m *Test32) XXX_DiscardUnknown()

func (*Test32) XXX_Marshal added in v0.13.0

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

func (*Test32) XXX_Merge added in v0.13.0

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

func (*Test32) XXX_Size added in v0.13.0

func (m *Test32) XXX_Size() int

func (*Test32) XXX_Unmarshal added in v0.13.0

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

type TestFixedInt64

type TestFixedInt64 struct {
	Int64                uint64   `protobuf:"fixed64,1,opt,name=Int64,proto3" json:"Int64,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestFixedInt64) Descriptor

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

func (*TestFixedInt64) GetInt64

func (m *TestFixedInt64) GetInt64() uint64

func (*TestFixedInt64) ProtoMessage

func (*TestFixedInt64) ProtoMessage()

func (*TestFixedInt64) Reset

func (m *TestFixedInt64) Reset()

func (*TestFixedInt64) String

func (m *TestFixedInt64) String() string

func (*TestFixedInt64) XXX_DiscardUnknown added in v0.13.0

func (m *TestFixedInt64) XXX_DiscardUnknown()

func (*TestFixedInt64) XXX_Marshal added in v0.13.0

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

func (*TestFixedInt64) XXX_Merge added in v0.13.0

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

func (*TestFixedInt64) XXX_Size added in v0.13.0

func (m *TestFixedInt64) XXX_Size() int

func (*TestFixedInt64) XXX_Unmarshal added in v0.13.0

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

type TestInt32 added in v0.13.0

type TestInt32 struct {
	Int32                int32    `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestInt32) Descriptor added in v0.13.0

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

func (*TestInt32) GetInt32 added in v0.13.0

func (m *TestInt32) GetInt32() int32

func (*TestInt32) ProtoMessage added in v0.13.0

func (*TestInt32) ProtoMessage()

func (*TestInt32) Reset added in v0.13.0

func (m *TestInt32) Reset()

func (*TestInt32) String added in v0.13.0

func (m *TestInt32) String() string

func (*TestInt32) XXX_DiscardUnknown added in v0.13.0

func (m *TestInt32) XXX_DiscardUnknown()

func (*TestInt32) XXX_Marshal added in v0.13.0

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

func (*TestInt32) XXX_Merge added in v0.13.0

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

func (*TestInt32) XXX_Size added in v0.13.0

func (m *TestInt32) XXX_Size() int

func (*TestInt32) XXX_Unmarshal added in v0.13.0

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

type TestInt32Fixed

type TestInt32Fixed struct {
	Fixed32              uint32   `protobuf:"fixed32,1,opt,name=Fixed32,proto3" json:"Fixed32,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestInt32Fixed) Descriptor

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

func (*TestInt32Fixed) GetFixed32

func (m *TestInt32Fixed) GetFixed32() uint32

func (*TestInt32Fixed) ProtoMessage

func (*TestInt32Fixed) ProtoMessage()

func (*TestInt32Fixed) Reset

func (m *TestInt32Fixed) Reset()

func (*TestInt32Fixed) String

func (m *TestInt32Fixed) String() string

func (*TestInt32Fixed) XXX_DiscardUnknown added in v0.13.0

func (m *TestInt32Fixed) XXX_DiscardUnknown()

func (*TestInt32Fixed) XXX_Marshal added in v0.13.0

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

func (*TestInt32Fixed) XXX_Merge added in v0.13.0

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

func (*TestInt32Fixed) XXX_Size added in v0.13.0

func (m *TestInt32Fixed) XXX_Size() int

func (*TestInt32Fixed) XXX_Unmarshal added in v0.13.0

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

type TestInt32Varint

type TestInt32Varint struct {
	Int32                int32    `protobuf:"zigzag32,1,opt,name=Int32,proto3" json:"Int32,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestInt32Varint) Descriptor

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

func (*TestInt32Varint) GetInt32

func (m *TestInt32Varint) GetInt32() int32

func (*TestInt32Varint) ProtoMessage

func (*TestInt32Varint) ProtoMessage()

func (*TestInt32Varint) Reset

func (m *TestInt32Varint) Reset()

func (*TestInt32Varint) String

func (m *TestInt32Varint) String() string

func (*TestInt32Varint) XXX_DiscardUnknown added in v0.13.0

func (m *TestInt32Varint) XXX_DiscardUnknown()

func (*TestInt32Varint) XXX_Marshal added in v0.13.0

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

func (*TestInt32Varint) XXX_Merge added in v0.13.0

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

func (*TestInt32Varint) XXX_Size added in v0.13.0

func (m *TestInt32Varint) XXX_Size() int

func (*TestInt32Varint) XXX_Unmarshal added in v0.13.0

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

type TestInts added in v0.14.0

type TestInts struct {
	Int32                int32    `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"`
	Int64                int64    `protobuf:"varint,2,opt,name=Int64,proto3" json:"Int64,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestInts) Descriptor added in v0.14.0

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

func (*TestInts) GetInt32 added in v0.14.0

func (m *TestInts) GetInt32() int32

func (*TestInts) GetInt64 added in v0.14.0

func (m *TestInts) GetInt64() int64

func (*TestInts) ProtoMessage added in v0.14.0

func (*TestInts) ProtoMessage()

func (*TestInts) Reset added in v0.14.0

func (m *TestInts) Reset()

func (*TestInts) String added in v0.14.0

func (m *TestInts) String() string

func (*TestInts) XXX_DiscardUnknown added in v0.14.0

func (m *TestInts) XXX_DiscardUnknown()

func (*TestInts) XXX_Marshal added in v0.14.0

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

func (*TestInts) XXX_Merge added in v0.14.0

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

func (*TestInts) XXX_Size added in v0.14.0

func (m *TestInts) XXX_Size() int

func (*TestInts) XXX_Unmarshal added in v0.14.0

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

type TestSFixedSInt64

type TestSFixedSInt64 struct {
	SInt64               int64    `protobuf:"fixed64,1,opt,name=SInt64,proto3" json:"SInt64,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestSFixedSInt64) Descriptor

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

func (*TestSFixedSInt64) GetSInt64

func (m *TestSFixedSInt64) GetSInt64() int64

func (*TestSFixedSInt64) ProtoMessage

func (*TestSFixedSInt64) ProtoMessage()

func (*TestSFixedSInt64) Reset

func (m *TestSFixedSInt64) Reset()

func (*TestSFixedSInt64) String

func (m *TestSFixedSInt64) String() string

func (*TestSFixedSInt64) XXX_DiscardUnknown added in v0.13.0

func (m *TestSFixedSInt64) XXX_DiscardUnknown()

func (*TestSFixedSInt64) XXX_Marshal added in v0.13.0

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

func (*TestSFixedSInt64) XXX_Merge added in v0.13.0

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

func (*TestSFixedSInt64) XXX_Size added in v0.13.0

func (m *TestSFixedSInt64) XXX_Size() int

func (*TestSFixedSInt64) XXX_Unmarshal added in v0.13.0

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

Jump to

Keyboard shortcuts

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