examplepb

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ABitOfEverything_Nested_DeepEnum_name = map[int32]string{
	0: "FALSE",
	1: "TRUE",
}
View Source
var ABitOfEverything_Nested_DeepEnum_value = map[string]int32{
	"FALSE": 0,
	"TRUE":  1,
}
View Source
var NumericEnum_name = map[int32]string{
	0: "ZERO",
	1: "ONE",
}
View Source
var NumericEnum_value = map[string]int32{
	"ZERO": 0,
	"ONE":  1,
}
View Source
var RepeatedResponseBodyOut_Response_ResponseType_name = map[int32]string{
	0: "UNKNOWN",
	1: "A",
	2: "B",
}
View Source
var RepeatedResponseBodyOut_Response_ResponseType_value = map[string]int32{
	"UNKNOWN": 0,
	"A":       1,
	"B":       2,
}

Functions

This section is empty.

Types

type ABitOfEverything

type ABitOfEverything struct {
	SingleNested        *ABitOfEverything_Nested   `protobuf:"bytes,25,opt,name=single_nested,json=singleNested,proto3" json:"single_nested,omitempty"`
	Uuid                string                     `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Nested              []*ABitOfEverything_Nested `protobuf:"bytes,2,rep,name=nested,proto3" json:"nested,omitempty"`
	FloatValue          float32                    `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	DoubleValue         float64                    `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	Int64Value          int64                      `protobuf:"varint,5,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint64Value         uint64                     `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Int32Value          int32                      `protobuf:"varint,7,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Fixed64Value        uint64                     `protobuf:"fixed64,8,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Fixed32Value        uint32                     `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	BoolValue           bool                       `protobuf:"varint,10,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue         string                     `protobuf:"bytes,11,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue          []byte                     `protobuf:"bytes,29,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	Uint32Value         uint32                     `protobuf:"varint,13,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	EnumValue           NumericEnum                `` /* 147-byte string literal not displayed */
	Sfixed32Value       int32                      `protobuf:"fixed32,15,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value       int64                      `protobuf:"fixed64,16,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	Sint32Value         int32                      `protobuf:"zigzag32,17,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value         int64                      `protobuf:"zigzag64,18,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	RepeatedStringValue []string                   `protobuf:"bytes,19,rep,name=repeated_string_value,json=repeatedStringValue,proto3" json:"repeated_string_value,omitempty"`
	// Types that are valid to be assigned to OneofValue:
	//	*ABitOfEverything_OneofEmpty
	//	*ABitOfEverything_OneofString
	OneofValue               isABitOfEverything_OneofValue       `protobuf_oneof:"oneof_value"`
	MapValue                 map[string]NumericEnum              `` /* 232-byte string literal not displayed */
	MappedStringValue        map[string]string                   `` /* 203-byte string literal not displayed */
	MappedNestedValue        map[string]*ABitOfEverything_Nested `` /* 203-byte string literal not displayed */
	NonConventionalNameValue string                              `protobuf:"bytes,26,opt,name=nonConventionalNameValue,proto3" json:"nonConventionalNameValue,omitempty"`
	TimestampValue           *timestamp.Timestamp                `protobuf:"bytes,27,opt,name=timestamp_value,json=timestampValue,proto3" json:"timestamp_value,omitempty"`
	// repeated enum value. it is comma-separated in query
	RepeatedEnumValue []NumericEnum `` /* 180-byte string literal not displayed */
	// repeated numeric enum comment (This comment is overridden by the field annotation)
	RepeatedEnumAnnotation []NumericEnum `` /* 195-byte string literal not displayed */
	// numeric enum comment (This comment is overridden by the field annotation)
	EnumValueAnnotation NumericEnum `` /* 179-byte string literal not displayed */
	// repeated string comment (This comment is overridden by the field annotation)
	RepeatedStringAnnotation []string `` /* 136-byte string literal not displayed */
	// repeated nested object comment (This comment is overridden by the field annotation)
	RepeatedNestedAnnotation []*ABitOfEverything_Nested `` /* 136-byte string literal not displayed */
	// nested object comments (This comment is overridden by the field annotation)
	NestedAnnotation     *ABitOfEverything_Nested `protobuf:"bytes,36,opt,name=nested_annotation,json=nestedAnnotation,proto3" json:"nested_annotation,omitempty"`
	Int64OverrideType    int64                    `protobuf:"varint,37,opt,name=int64_override_type,json=int64OverrideType,proto3" json:"int64_override_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ABitOfEverything) Descriptor

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

func (*ABitOfEverything) GetBoolValue

func (m *ABitOfEverything) GetBoolValue() bool

func (*ABitOfEverything) GetBytesValue

func (m *ABitOfEverything) GetBytesValue() []byte

func (*ABitOfEverything) GetDoubleValue

func (m *ABitOfEverything) GetDoubleValue() float64

func (*ABitOfEverything) GetEnumValue

func (m *ABitOfEverything) GetEnumValue() NumericEnum

func (*ABitOfEverything) GetEnumValueAnnotation

func (m *ABitOfEverything) GetEnumValueAnnotation() NumericEnum

func (*ABitOfEverything) GetFixed32Value

func (m *ABitOfEverything) GetFixed32Value() uint32

func (*ABitOfEverything) GetFixed64Value

func (m *ABitOfEverything) GetFixed64Value() uint64

func (*ABitOfEverything) GetFloatValue

func (m *ABitOfEverything) GetFloatValue() float32

func (*ABitOfEverything) GetInt32Value

func (m *ABitOfEverything) GetInt32Value() int32

func (*ABitOfEverything) GetInt64OverrideType

func (m *ABitOfEverything) GetInt64OverrideType() int64

func (*ABitOfEverything) GetInt64Value

func (m *ABitOfEverything) GetInt64Value() int64

func (*ABitOfEverything) GetMapValue

func (m *ABitOfEverything) GetMapValue() map[string]NumericEnum

func (*ABitOfEverything) GetMappedNestedValue

func (m *ABitOfEverything) GetMappedNestedValue() map[string]*ABitOfEverything_Nested

func (*ABitOfEverything) GetMappedStringValue

func (m *ABitOfEverything) GetMappedStringValue() map[string]string

func (*ABitOfEverything) GetNested

func (m *ABitOfEverything) GetNested() []*ABitOfEverything_Nested

func (*ABitOfEverything) GetNestedAnnotation

func (m *ABitOfEverything) GetNestedAnnotation() *ABitOfEverything_Nested

func (*ABitOfEverything) GetNonConventionalNameValue

func (m *ABitOfEverything) GetNonConventionalNameValue() string

func (*ABitOfEverything) GetOneofEmpty

func (m *ABitOfEverything) GetOneofEmpty() *empty.Empty

func (*ABitOfEverything) GetOneofString

func (m *ABitOfEverything) GetOneofString() string

func (*ABitOfEverything) GetOneofValue

func (m *ABitOfEverything) GetOneofValue() isABitOfEverything_OneofValue

func (*ABitOfEverything) GetRepeatedEnumAnnotation

func (m *ABitOfEverything) GetRepeatedEnumAnnotation() []NumericEnum

func (*ABitOfEverything) GetRepeatedEnumValue

func (m *ABitOfEverything) GetRepeatedEnumValue() []NumericEnum

func (*ABitOfEverything) GetRepeatedNestedAnnotation

func (m *ABitOfEverything) GetRepeatedNestedAnnotation() []*ABitOfEverything_Nested

func (*ABitOfEverything) GetRepeatedStringAnnotation

func (m *ABitOfEverything) GetRepeatedStringAnnotation() []string

func (*ABitOfEverything) GetRepeatedStringValue

func (m *ABitOfEverything) GetRepeatedStringValue() []string

func (*ABitOfEverything) GetSfixed32Value

func (m *ABitOfEverything) GetSfixed32Value() int32

func (*ABitOfEverything) GetSfixed64Value

func (m *ABitOfEverything) GetSfixed64Value() int64

func (*ABitOfEverything) GetSingleNested

func (m *ABitOfEverything) GetSingleNested() *ABitOfEverything_Nested

func (*ABitOfEverything) GetSint32Value

func (m *ABitOfEverything) GetSint32Value() int32

func (*ABitOfEverything) GetSint64Value

func (m *ABitOfEverything) GetSint64Value() int64

func (*ABitOfEverything) GetStringValue

func (m *ABitOfEverything) GetStringValue() string

func (*ABitOfEverything) GetTimestampValue

func (m *ABitOfEverything) GetTimestampValue() *timestamp.Timestamp

func (*ABitOfEverything) GetUint32Value

func (m *ABitOfEverything) GetUint32Value() uint32

func (*ABitOfEverything) GetUint64Value

func (m *ABitOfEverything) GetUint64Value() uint64

func (*ABitOfEverything) GetUuid

func (m *ABitOfEverything) GetUuid() string

func (*ABitOfEverything) ProtoMessage

func (*ABitOfEverything) ProtoMessage()

func (*ABitOfEverything) Reset

func (m *ABitOfEverything) Reset()

func (*ABitOfEverything) String

func (m *ABitOfEverything) String() string

func (*ABitOfEverything) XXX_DiscardUnknown

func (m *ABitOfEverything) XXX_DiscardUnknown()

func (*ABitOfEverything) XXX_Marshal

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

func (*ABitOfEverything) XXX_Merge

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

func (*ABitOfEverything) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ABitOfEverything) XXX_Size

func (m *ABitOfEverything) XXX_Size() int

func (*ABitOfEverything) XXX_Unmarshal

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

type ABitOfEverything_Nested

type ABitOfEverything_Nested struct {
	// name is nested field.
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// DeepEnum comment.
	Ok                   ABitOfEverything_Nested_DeepEnum `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

Nested is nested type.

func (*ABitOfEverything_Nested) Descriptor

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

func (*ABitOfEverything_Nested) GetAmount

func (m *ABitOfEverything_Nested) GetAmount() uint32

func (*ABitOfEverything_Nested) GetName

func (m *ABitOfEverything_Nested) GetName() string

func (*ABitOfEverything_Nested) GetOk

func (*ABitOfEverything_Nested) ProtoMessage

func (*ABitOfEverything_Nested) ProtoMessage()

func (*ABitOfEverything_Nested) Reset

func (m *ABitOfEverything_Nested) Reset()

func (*ABitOfEverything_Nested) String

func (m *ABitOfEverything_Nested) String() string

func (*ABitOfEverything_Nested) XXX_DiscardUnknown

func (m *ABitOfEverything_Nested) XXX_DiscardUnknown()

func (*ABitOfEverything_Nested) XXX_Marshal

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

func (*ABitOfEverything_Nested) XXX_Merge

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

func (*ABitOfEverything_Nested) XXX_Size

func (m *ABitOfEverything_Nested) XXX_Size() int

func (*ABitOfEverything_Nested) XXX_Unmarshal

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

type ABitOfEverything_Nested_DeepEnum

type ABitOfEverything_Nested_DeepEnum int32

DeepEnum is one or zero.

const (
	// FALSE is false.
	ABitOfEverything_Nested_FALSE ABitOfEverything_Nested_DeepEnum = 0
	// TRUE is true.
	ABitOfEverything_Nested_TRUE ABitOfEverything_Nested_DeepEnum = 1
)

func (ABitOfEverything_Nested_DeepEnum) EnumDescriptor

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

func (ABitOfEverything_Nested_DeepEnum) String

type ABitOfEverything_OneofEmpty

type ABitOfEverything_OneofEmpty struct {
	OneofEmpty *empty.Empty `protobuf:"bytes,20,opt,name=oneof_empty,json=oneofEmpty,proto3,oneof"`
}

type ABitOfEverything_OneofString

type ABitOfEverything_OneofString struct {
	OneofString string `protobuf:"bytes,21,opt,name=oneof_string,json=oneofString,proto3,oneof"`
}

type NumericEnum

type NumericEnum int32

NumericEnum is one or zero.

const (
	// ZERO means 0
	NumericEnum_ZERO NumericEnum = 0
	// ONE means 1
	NumericEnum_ONE NumericEnum = 1
)

func (NumericEnum) EnumDescriptor

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

func (NumericEnum) String

func (x NumericEnum) String() string

type RepeatedResponseBodyOut

type RepeatedResponseBodyOut struct {
	Response             []*RepeatedResponseBodyOut_Response `protobuf:"bytes,2,rep,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*RepeatedResponseBodyOut) Descriptor

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

func (*RepeatedResponseBodyOut) GetResponse

func (*RepeatedResponseBodyOut) ProtoMessage

func (*RepeatedResponseBodyOut) ProtoMessage()

func (*RepeatedResponseBodyOut) Reset

func (m *RepeatedResponseBodyOut) Reset()

func (*RepeatedResponseBodyOut) String

func (m *RepeatedResponseBodyOut) String() string

func (*RepeatedResponseBodyOut) XXX_DiscardUnknown

func (m *RepeatedResponseBodyOut) XXX_DiscardUnknown()

func (*RepeatedResponseBodyOut) XXX_Marshal

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

func (*RepeatedResponseBodyOut) XXX_Merge

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

func (*RepeatedResponseBodyOut) XXX_Size

func (m *RepeatedResponseBodyOut) XXX_Size() int

func (*RepeatedResponseBodyOut) XXX_Unmarshal

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

type RepeatedResponseBodyOut_Response

type RepeatedResponseBodyOut_Response struct {
	Data                 string                                        `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Type                 RepeatedResponseBodyOut_Response_ResponseType `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                      `json:"-"`
	XXX_unrecognized     []byte                                        `json:"-"`
	XXX_sizecache        int32                                         `json:"-"`
}

func (*RepeatedResponseBodyOut_Response) Descriptor

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

func (*RepeatedResponseBodyOut_Response) GetData

func (*RepeatedResponseBodyOut_Response) GetType

func (*RepeatedResponseBodyOut_Response) ProtoMessage

func (*RepeatedResponseBodyOut_Response) ProtoMessage()

func (*RepeatedResponseBodyOut_Response) Reset

func (*RepeatedResponseBodyOut_Response) String

func (*RepeatedResponseBodyOut_Response) XXX_DiscardUnknown

func (m *RepeatedResponseBodyOut_Response) XXX_DiscardUnknown()

func (*RepeatedResponseBodyOut_Response) XXX_Marshal

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

func (*RepeatedResponseBodyOut_Response) XXX_Merge

func (*RepeatedResponseBodyOut_Response) XXX_Size

func (m *RepeatedResponseBodyOut_Response) XXX_Size() int

func (*RepeatedResponseBodyOut_Response) XXX_Unmarshal

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

type RepeatedResponseBodyOut_Response_ResponseType

type RepeatedResponseBodyOut_Response_ResponseType int32
const (
	// UNKNOWN
	RepeatedResponseBodyOut_Response_UNKNOWN RepeatedResponseBodyOut_Response_ResponseType = 0
	// A is 1
	RepeatedResponseBodyOut_Response_A RepeatedResponseBodyOut_Response_ResponseType = 1
	// B is 2
	RepeatedResponseBodyOut_Response_B RepeatedResponseBodyOut_Response_ResponseType = 2
)

func (RepeatedResponseBodyOut_Response_ResponseType) EnumDescriptor

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

func (RepeatedResponseBodyOut_Response_ResponseType) String

type ResponseBodyOut

type ResponseBodyOut struct {
	Response             *ResponseBodyOut_Response `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*ResponseBodyOut) Descriptor

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

func (*ResponseBodyOut) GetResponse

func (m *ResponseBodyOut) GetResponse() *ResponseBodyOut_Response

func (*ResponseBodyOut) ProtoMessage

func (*ResponseBodyOut) ProtoMessage()

func (*ResponseBodyOut) Reset

func (m *ResponseBodyOut) Reset()

func (*ResponseBodyOut) String

func (m *ResponseBodyOut) String() string

func (*ResponseBodyOut) XXX_DiscardUnknown

func (m *ResponseBodyOut) XXX_DiscardUnknown()

func (*ResponseBodyOut) XXX_Marshal

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

func (*ResponseBodyOut) XXX_Merge

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

func (*ResponseBodyOut) XXX_Size

func (m *ResponseBodyOut) XXX_Size() int

func (*ResponseBodyOut) XXX_Unmarshal

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

type ResponseBodyOut_Response

type ResponseBodyOut_Response struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResponseBodyOut_Response) Descriptor

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

func (*ResponseBodyOut_Response) GetData

func (m *ResponseBodyOut_Response) GetData() string

func (*ResponseBodyOut_Response) ProtoMessage

func (*ResponseBodyOut_Response) ProtoMessage()

func (*ResponseBodyOut_Response) Reset

func (m *ResponseBodyOut_Response) Reset()

func (*ResponseBodyOut_Response) String

func (m *ResponseBodyOut_Response) String() string

func (*ResponseBodyOut_Response) XXX_DiscardUnknown

func (m *ResponseBodyOut_Response) XXX_DiscardUnknown()

func (*ResponseBodyOut_Response) XXX_Marshal

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

func (*ResponseBodyOut_Response) XXX_Merge

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

func (*ResponseBodyOut_Response) XXX_Size

func (m *ResponseBodyOut_Response) XXX_Size() int

func (*ResponseBodyOut_Response) XXX_Unmarshal

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

type SimpleMessage

type SimpleMessage struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SimpleMessage represents a simple message sent to the Echo service.

func (*SimpleMessage) Descriptor

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

func (*SimpleMessage) GetId

func (m *SimpleMessage) GetId() string

func (*SimpleMessage) ProtoMessage

func (*SimpleMessage) ProtoMessage()

func (*SimpleMessage) Reset

func (m *SimpleMessage) Reset()

func (*SimpleMessage) String

func (m *SimpleMessage) String() string

func (*SimpleMessage) XXX_DiscardUnknown

func (m *SimpleMessage) XXX_DiscardUnknown()

func (*SimpleMessage) XXX_Marshal

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

func (*SimpleMessage) XXX_Merge

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

func (*SimpleMessage) XXX_Size

func (m *SimpleMessage) XXX_Size() int

func (*SimpleMessage) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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