pb_extensions

package
v0.0.0-...-6515077 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_MyEnumOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50003,
	Name:          "my_enum_option",
	Tag:           "varint,50003,opt,name=my_enum_option",
	Filename:      "options.proto",
}
View Source
var E_MyEnumValueOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*uint32)(nil),
	Field:         50004,
	Name:          "my_enum_value_option",
	Tag:           "varint,50004,opt,name=my_enum_value_option",
	Filename:      "options.proto",
}
View Source
var E_MyFieldOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*float32)(nil),
	Field:         50002,
	Name:          "my_field_option",
	Tag:           "fixed32,50002,opt,name=my_field_option",
	Filename:      "options.proto",
}
View Source
var E_MyFileOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FileOptions)(nil),
	ExtensionType: (*string)(nil),
	Field:         50000,
	Name:          "my_file_option",
	Tag:           "bytes,50000,opt,name=my_file_option",
	Filename:      "options.proto",
}
View Source
var E_MyMessageOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*int32)(nil),
	Field:         50001,
	Name:          "my_message_option",
	Tag:           "varint,50001,opt,name=my_message_option",
	Filename:      "options.proto",
}
View Source
var E_MyMethodOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MethodOptions)(nil),
	ExtensionType: (*MyMessage)(nil),
	Field:         50006,
	Name:          "my_method_option",
	Tag:           "bytes,50006,opt,name=my_method_option",
	Filename:      "options.proto",
}
View Source
var E_MyServiceOption = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.ServiceOptions)(nil),
	ExtensionType: (*MyEnum)(nil),
	Field:         50005,
	Name:          "my_service_option",
	Tag:           "varint,50005,opt,name=my_service_option,enum=MyEnum",
	Filename:      "options.proto",
}
View Source
var MyEnum_name = map[int32]string{
	1: "FOO",
	2: "BAR",
}
View Source
var MyEnum_value = map[string]int32{
	"FOO": 1,
	"BAR": 2,
}

Functions

This section is empty.

Types

type MyEnum

type MyEnum int32
const (
	MyEnum_FOO MyEnum = 1
	MyEnum_BAR MyEnum = 2
)

func (MyEnum) Enum

func (x MyEnum) Enum() *MyEnum

func (MyEnum) EnumDescriptor

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

func (MyEnum) String

func (x MyEnum) String() string

func (*MyEnum) UnmarshalJSON

func (x *MyEnum) UnmarshalJSON(data []byte) error

type MyMessage

type MyMessage struct {
	Foo                  *int32   `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
	Bar                  *string  `protobuf:"bytes,2,opt,name=bar" json:"bar,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MyMessage) Descriptor

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

func (*MyMessage) GetBar

func (m *MyMessage) GetBar() string

func (*MyMessage) GetFoo

func (m *MyMessage) GetFoo() int32

func (*MyMessage) ProtoMessage

func (*MyMessage) ProtoMessage()

func (*MyMessage) Reset

func (m *MyMessage) Reset()

func (*MyMessage) String

func (m *MyMessage) String() string

func (*MyMessage) XXX_DiscardUnknown

func (m *MyMessage) XXX_DiscardUnknown()

func (*MyMessage) XXX_Marshal

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

func (*MyMessage) XXX_Merge

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

func (*MyMessage) XXX_Size

func (m *MyMessage) XXX_Size() int

func (*MyMessage) XXX_Unmarshal

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

type RequestType

type RequestType struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestType) Descriptor

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

func (*RequestType) ProtoMessage

func (*RequestType) ProtoMessage()

func (*RequestType) Reset

func (m *RequestType) Reset()

func (*RequestType) String

func (m *RequestType) String() string

func (*RequestType) XXX_DiscardUnknown

func (m *RequestType) XXX_DiscardUnknown()

func (*RequestType) XXX_Marshal

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

func (*RequestType) XXX_Merge

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

func (*RequestType) XXX_Size

func (m *RequestType) XXX_Size() int

func (*RequestType) XXX_Unmarshal

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

type ResponseType

type ResponseType struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResponseType) Descriptor

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

func (*ResponseType) ProtoMessage

func (*ResponseType) ProtoMessage()

func (*ResponseType) Reset

func (m *ResponseType) Reset()

func (*ResponseType) String

func (m *ResponseType) String() string

func (*ResponseType) XXX_DiscardUnknown

func (m *ResponseType) XXX_DiscardUnknown()

func (*ResponseType) XXX_Marshal

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

func (*ResponseType) XXX_Merge

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

func (*ResponseType) XXX_Size

func (m *ResponseType) XXX_Size() int

func (*ResponseType) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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