v1

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Enum1_name = map[int32]string{
	0: "ZERO",
	1: "ONE",
	2: "TWO",
	3: "THREE",
	4: "FOUR",
}
View Source
var Enum1_value = map[string]int32{
	"ZERO":  0,
	"ONE":   1,
	"TWO":   2,
	"THREE": 3,
	"FOUR":  4,
}
View Source
var EnumMessage_Enum2_name = map[int32]string{
	0: "STUFF",
	1: "PIE",
}
View Source
var EnumMessage_Enum2_value = map[string]int32{
	"STUFF": 0,
	"PIE":   1,
}

Functions

This section is empty.

Types

type Enum1

type Enum1 int32
const (
	Enum1_ZERO  Enum1 = 0
	Enum1_ONE   Enum1 = 1
	Enum1_TWO   Enum1 = 2
	Enum1_THREE Enum1 = 3
	Enum1_FOUR  Enum1 = 4
)

func (Enum1) EnumDescriptor

func (Enum1) EnumDescriptor() ([]byte, []int)

func (Enum1) String

func (x Enum1) String() string

type EnumMessage

type EnumMessage struct {
	Enum1Message         Enum1             `protobuf:"varint,1,opt,name=enum1_message,json=enum1Message,proto3,enum=v1.Enum1" json:"enum1_message,omitempty"`
	Enum2Message         EnumMessage_Enum2 `protobuf:"varint,2,opt,name=enum2_message,json=enum2Message,proto3,enum=v1.EnumMessage_Enum2" json:"enum2_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*EnumMessage) Descriptor

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

func (*EnumMessage) GetEnum1Message

func (m *EnumMessage) GetEnum1Message() Enum1

func (*EnumMessage) GetEnum2Message

func (m *EnumMessage) GetEnum2Message() EnumMessage_Enum2

func (*EnumMessage) ProtoMessage

func (*EnumMessage) ProtoMessage()

func (*EnumMessage) Reset

func (m *EnumMessage) Reset()

func (*EnumMessage) String

func (m *EnumMessage) String() string

func (*EnumMessage) XXX_DiscardUnknown

func (m *EnumMessage) XXX_DiscardUnknown()

func (*EnumMessage) XXX_Marshal

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

func (*EnumMessage) XXX_Merge

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

func (*EnumMessage) XXX_Size

func (m *EnumMessage) XXX_Size() int

func (*EnumMessage) XXX_Unmarshal

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

type EnumMessage_Enum2

type EnumMessage_Enum2 int32
const (
	EnumMessage_STUFF EnumMessage_Enum2 = 0
	EnumMessage_PIE   EnumMessage_Enum2 = 1
)

func (EnumMessage_Enum2) EnumDescriptor

func (EnumMessage_Enum2) EnumDescriptor() ([]byte, []int)

func (EnumMessage_Enum2) String

func (x EnumMessage_Enum2) String() string

type TestObject

type TestObject struct {
	Id                   int64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Stuff                *wrappers.StringValue `protobuf:"bytes,2,opt,name=stuff,proto3" json:"stuff,omitempty"`
	BoolMessage          bool                  `protobuf:"varint,3,opt,name=bool_message,json=boolMessage,proto3" json:"bool_message,omitempty"`
	BytesMessage         []byte                `protobuf:"bytes,4,opt,name=bytes_message,json=bytesMessage,proto3" json:"bytes_message,omitempty"`
	DoubleMessage        float64               `protobuf:"fixed64,5,opt,name=double_message,json=doubleMessage,proto3" json:"double_message,omitempty"`
	Fixed32Message       uint32                `protobuf:"fixed32,6,opt,name=fixed32_message,json=fixed32Message,proto3" json:"fixed32_message,omitempty"`
	Fixed64Message       uint64                `protobuf:"fixed64,7,opt,name=fixed64_message,json=fixed64Message,proto3" json:"fixed64_message,omitempty"`
	FloatMessage         float32               `protobuf:"fixed32,8,opt,name=float_message,json=floatMessage,proto3" json:"float_message,omitempty"`
	Sfixed32Message      int32                 `protobuf:"fixed32,9,opt,name=sfixed32_message,json=sfixed32Message,proto3" json:"sfixed32_message,omitempty"`
	Sfixed64Message      int64                 `protobuf:"fixed64,10,opt,name=sfixed64_message,json=sfixed64Message,proto3" json:"sfixed64_message,omitempty"`
	Sint32Message        int32                 `protobuf:"zigzag32,11,opt,name=sint32_message,json=sint32Message,proto3" json:"sint32_message,omitempty"`
	Sint64Message        int64                 `protobuf:"zigzag64,12,opt,name=sint64_message,json=sint64Message,proto3" json:"sint64_message,omitempty"`
	Uint32Message        uint32                `protobuf:"varint,13,opt,name=uint32_message,json=uint32Message,proto3" json:"uint32_message,omitempty"`
	Uint64Message        uint64                `protobuf:"varint,14,opt,name=uint64_message,json=uint64Message,proto3" json:"uint64_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*TestObject) Descriptor

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

func (*TestObject) GetBoolMessage

func (m *TestObject) GetBoolMessage() bool

func (*TestObject) GetBytesMessage

func (m *TestObject) GetBytesMessage() []byte

func (*TestObject) GetDoubleMessage

func (m *TestObject) GetDoubleMessage() float64

func (*TestObject) GetFixed32Message

func (m *TestObject) GetFixed32Message() uint32

func (*TestObject) GetFixed64Message

func (m *TestObject) GetFixed64Message() uint64

func (*TestObject) GetFloatMessage

func (m *TestObject) GetFloatMessage() float32

func (*TestObject) GetId

func (m *TestObject) GetId() int64

func (*TestObject) GetSfixed32Message

func (m *TestObject) GetSfixed32Message() int32

func (*TestObject) GetSfixed64Message

func (m *TestObject) GetSfixed64Message() int64

func (*TestObject) GetSint32Message

func (m *TestObject) GetSint32Message() int32

func (*TestObject) GetSint64Message

func (m *TestObject) GetSint64Message() int64

func (*TestObject) GetStuff

func (m *TestObject) GetStuff() *wrappers.StringValue

func (*TestObject) GetUint32Message

func (m *TestObject) GetUint32Message() uint32

func (*TestObject) GetUint64Message

func (m *TestObject) GetUint64Message() uint64

func (*TestObject) ProtoMessage

func (*TestObject) ProtoMessage()

func (*TestObject) Reset

func (m *TestObject) Reset()

func (*TestObject) String

func (m *TestObject) String() string

func (*TestObject) XXX_DiscardUnknown

func (m *TestObject) XXX_DiscardUnknown()

func (*TestObject) XXX_Marshal

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

func (*TestObject) XXX_Merge

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

func (*TestObject) XXX_Size

func (m *TestObject) XXX_Size() int

func (*TestObject) XXX_Unmarshal

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

type TestObject2

type TestObject2 struct {
	Strings              []*wrappers.StringValue `protobuf:"bytes,1,rep,name=strings,proto3" json:"strings,omitempty"`
	MapObjects           map[string]*TestObject  `` /* 179-byte string literal not displayed */
	StringMaps           map[int32]string        `` /* 180-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*TestObject2) Descriptor

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

func (*TestObject2) GetMapObjects

func (m *TestObject2) GetMapObjects() map[string]*TestObject

func (*TestObject2) GetStringMaps

func (m *TestObject2) GetStringMaps() map[int32]string

func (*TestObject2) GetStrings

func (m *TestObject2) GetStrings() []*wrappers.StringValue

func (*TestObject2) ProtoMessage

func (*TestObject2) ProtoMessage()

func (*TestObject2) Reset

func (m *TestObject2) Reset()

func (*TestObject2) String

func (m *TestObject2) String() string

func (*TestObject2) XXX_DiscardUnknown

func (m *TestObject2) XXX_DiscardUnknown()

func (*TestObject2) XXX_Marshal

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

func (*TestObject2) XXX_Merge

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

func (*TestObject2) XXX_Size

func (m *TestObject2) XXX_Size() int

func (*TestObject2) XXX_Unmarshal

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

type TestObject3

type TestObject3 struct {
	// Types that are valid to be assigned to Request:
	//	*TestObject3_RequestTestObject
	//	*TestObject3_RequestTestObject_2
	//	*TestObject3_RequestString
	Request isTestObject3_Request `protobuf_oneof:"request"`
	Bla     string                `protobuf:"bytes,3,opt,name=bla,proto3" json:"bla,omitempty"`
	// Types that are valid to be assigned to Request2:
	//	*TestObject3_Request2String
	//	*TestObject3_Request2Int32
	Request2             isTestObject3_Request2 `protobuf_oneof:"request2"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*TestObject3) Descriptor

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

func (*TestObject3) GetBla

func (m *TestObject3) GetBla() string

func (*TestObject3) GetRequest

func (m *TestObject3) GetRequest() isTestObject3_Request

func (*TestObject3) GetRequest2

func (m *TestObject3) GetRequest2() isTestObject3_Request2

func (*TestObject3) GetRequest2Int32

func (m *TestObject3) GetRequest2Int32() int32

func (*TestObject3) GetRequest2String

func (m *TestObject3) GetRequest2String() string

func (*TestObject3) GetRequestString

func (m *TestObject3) GetRequestString() string

func (*TestObject3) GetRequestTestObject

func (m *TestObject3) GetRequestTestObject() *TestObject

func (*TestObject3) GetRequestTestObject_2

func (m *TestObject3) GetRequestTestObject_2() *TestObject2

func (*TestObject3) ProtoMessage

func (*TestObject3) ProtoMessage()

func (*TestObject3) Reset

func (m *TestObject3) Reset()

func (*TestObject3) String

func (m *TestObject3) String() string

func (*TestObject3) XXX_DiscardUnknown

func (m *TestObject3) XXX_DiscardUnknown()

func (*TestObject3) XXX_Marshal

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

func (*TestObject3) XXX_Merge

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

func (*TestObject3) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*TestObject3) XXX_Size

func (m *TestObject3) XXX_Size() int

func (*TestObject3) XXX_Unmarshal

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

type TestObject3_Request2Int32

type TestObject3_Request2Int32 struct {
	Request2Int32 int32 `protobuf:"varint,6,opt,name=request2_int32,json=request2Int32,proto3,oneof"`
}

type TestObject3_Request2String

type TestObject3_Request2String struct {
	Request2String string `protobuf:"bytes,5,opt,name=request2_string,json=request2String,proto3,oneof"`
}

type TestObject3_RequestString

type TestObject3_RequestString struct {
	RequestString string `protobuf:"bytes,4,opt,name=request_string,json=requestString,proto3,oneof"`
}

type TestObject3_RequestTestObject

type TestObject3_RequestTestObject struct {
	RequestTestObject *TestObject `protobuf:"bytes,1,opt,name=request_test_object,json=requestTestObject,proto3,oneof"`
}

type TestObject3_RequestTestObject_2

type TestObject3_RequestTestObject_2 struct {
	RequestTestObject_2 *TestObject2 `protobuf:"bytes,2,opt,name=request_test_object_2,json=requestTestObject2,proto3,oneof"`
}

type TestObjects

type TestObjects struct {
	Object               *TestObject       `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Object_2             *TestObject2      `protobuf:"bytes,2,opt,name=object_2,json=object2,proto3" json:"object_2,omitempty"`
	Object_3             *TestObject3      `protobuf:"bytes,3,opt,name=object_3,json=object3,proto3" json:"object_3,omitempty"`
	EnumMessage          *EnumMessage      `protobuf:"bytes,4,opt,name=enum_message,json=enumMessage,proto3" json:"enum_message,omitempty"`
	EnumInsideMessage    EnumMessage_Enum2 `` /* 141-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*TestObjects) Descriptor

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

func (*TestObjects) GetEnumInsideMessage

func (m *TestObjects) GetEnumInsideMessage() EnumMessage_Enum2

func (*TestObjects) GetEnumMessage

func (m *TestObjects) GetEnumMessage() *EnumMessage

func (*TestObjects) GetObject

func (m *TestObjects) GetObject() *TestObject

func (*TestObjects) GetObject_2

func (m *TestObjects) GetObject_2() *TestObject2

func (*TestObjects) GetObject_3

func (m *TestObjects) GetObject_3() *TestObject3

func (*TestObjects) ProtoMessage

func (*TestObjects) ProtoMessage()

func (*TestObjects) Reset

func (m *TestObjects) Reset()

func (*TestObjects) String

func (m *TestObjects) String() string

func (*TestObjects) XXX_DiscardUnknown

func (m *TestObjects) XXX_DiscardUnknown()

func (*TestObjects) XXX_Marshal

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

func (*TestObjects) XXX_Merge

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

func (*TestObjects) XXX_Size

func (m *TestObjects) XXX_Size() int

func (*TestObjects) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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