Documentation
¶
Index ¶
- Variables
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetId() int32
- func (x *Record) GetOption() *Record_Option
- func (x *Record) GetSubOption() *Record_SubOption
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Record_Option
- type Record_OptionCode
- func (Record_OptionCode) Descriptor() protoreflect.EnumDescriptor
- func (x Record_OptionCode) Enum() *Record_OptionCode
- func (Record_OptionCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_OptionCode) Number() protoreflect.EnumNumber
- func (x Record_OptionCode) String() string
- func (Record_OptionCode) Type() protoreflect.EnumType
- type Record_SubOption
- func (*Record_SubOption) Descriptor() ([]byte, []int)deprecated
- func (x *Record_SubOption) GetOptionCode() Record_SubOption_OptionCode
- func (*Record_SubOption) ProtoMessage()
- func (x *Record_SubOption) ProtoReflect() protoreflect.Message
- func (x *Record_SubOption) Reset()
- func (x *Record_SubOption) String() string
- type Record_SubOption_OptionCode
- func (Record_SubOption_OptionCode) Descriptor() protoreflect.EnumDescriptor
- func (x Record_SubOption_OptionCode) Enum() *Record_SubOption_OptionCode
- func (Record_SubOption_OptionCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_SubOption_OptionCode) Number() protoreflect.EnumNumber
- func (x Record_SubOption_OptionCode) String() string
- func (Record_SubOption_OptionCode) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Record_OptionCode_name = map[int32]string{ 0: "UNSPECIFIED", 1: "OPTION_1", 2: "OPTION_2", } Record_OptionCode_value = map[string]int32{ "UNSPECIFIED": 0, "OPTION_1": 1, "OPTION_2": 2, } )
Enum value maps for Record_OptionCode.
View Source
var ( Record_SubOption_OptionCode_name = map[int32]string{ 0: "UNSPECIFIED", 1: "OPTION_1", 2: "OPTION_2", } Record_SubOption_OptionCode_value = map[string]int32{ "UNSPECIFIED": 0, "OPTION_1": 1, "OPTION_2": 2, } )
Enum value maps for Record_SubOption_OptionCode.
View Source
var File_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Option *Record_Option `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
SubOption *Record_SubOption `protobuf:"bytes,3,opt,name=sub_option,json=subOption,proto3" json:"sub_option,omitempty"`
// contains filtered or unexported fields
}
func (*Record) Descriptor
deprecated
func (*Record) GetOption ¶
func (x *Record) GetOption() *Record_Option
func (*Record) GetSubOption ¶
func (x *Record) GetSubOption() *Record_SubOption
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Record_Option ¶
type Record_Option struct {
OptionCode Record_OptionCode `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
同一要素名のEnumは同一メッセージ内に定義できない(protobufの仕様)
enum SubOptionCode {
UNSPECIFIED = 0;
OPTION_1 = 1;
OPTION_2 = 2;
}
func (*Record_Option) Descriptor
deprecated
func (*Record_Option) Descriptor() ([]byte, []int)
Deprecated: Use Record_Option.ProtoReflect.Descriptor instead.
func (*Record_Option) GetOptionCode ¶
func (x *Record_Option) GetOptionCode() Record_OptionCode
func (*Record_Option) ProtoMessage ¶
func (*Record_Option) ProtoMessage()
func (*Record_Option) ProtoReflect ¶
func (x *Record_Option) ProtoReflect() protoreflect.Message
func (*Record_Option) Reset ¶
func (x *Record_Option) Reset()
func (*Record_Option) String ¶
func (x *Record_Option) String() string
type Record_OptionCode ¶
type Record_OptionCode int32
const ( Record_UNSPECIFIED Record_OptionCode = 0 Record_OPTION_1 Record_OptionCode = 1 Record_OPTION_2 Record_OptionCode = 2 )
func (Record_OptionCode) Descriptor ¶
func (Record_OptionCode) Descriptor() protoreflect.EnumDescriptor
func (Record_OptionCode) Enum ¶
func (x Record_OptionCode) Enum() *Record_OptionCode
func (Record_OptionCode) EnumDescriptor
deprecated
func (Record_OptionCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_OptionCode.Descriptor instead.
func (Record_OptionCode) Number ¶
func (x Record_OptionCode) Number() protoreflect.EnumNumber
func (Record_OptionCode) String ¶
func (x Record_OptionCode) String() string
func (Record_OptionCode) Type ¶
func (Record_OptionCode) Type() protoreflect.EnumType
type Record_SubOption ¶
type Record_SubOption struct {
OptionCode Record_SubOption_OptionCode `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Record_SubOption) Descriptor
deprecated
func (*Record_SubOption) Descriptor() ([]byte, []int)
Deprecated: Use Record_SubOption.ProtoReflect.Descriptor instead.
func (*Record_SubOption) GetOptionCode ¶
func (x *Record_SubOption) GetOptionCode() Record_SubOption_OptionCode
func (*Record_SubOption) ProtoMessage ¶
func (*Record_SubOption) ProtoMessage()
func (*Record_SubOption) ProtoReflect ¶
func (x *Record_SubOption) ProtoReflect() protoreflect.Message
func (*Record_SubOption) Reset ¶
func (x *Record_SubOption) Reset()
func (*Record_SubOption) String ¶
func (x *Record_SubOption) String() string
type Record_SubOption_OptionCode ¶
type Record_SubOption_OptionCode int32
同一要素名のEnumは同一メッセージ内に定義できない(protobufの仕様)
const ( Record_SubOption_UNSPECIFIED Record_SubOption_OptionCode = 0 Record_SubOption_OPTION_1 Record_SubOption_OptionCode = 1 Record_SubOption_OPTION_2 Record_SubOption_OptionCode = 2 )
func (Record_SubOption_OptionCode) Descriptor ¶
func (Record_SubOption_OptionCode) Descriptor() protoreflect.EnumDescriptor
func (Record_SubOption_OptionCode) Enum ¶
func (x Record_SubOption_OptionCode) Enum() *Record_SubOption_OptionCode
func (Record_SubOption_OptionCode) EnumDescriptor
deprecated
func (Record_SubOption_OptionCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_SubOption_OptionCode.Descriptor instead.
func (Record_SubOption_OptionCode) Number ¶
func (x Record_SubOption_OptionCode) Number() protoreflect.EnumNumber
func (Record_SubOption_OptionCode) String ¶
func (x Record_SubOption_OptionCode) String() string
func (Record_SubOption_OptionCode) Type ¶
func (Record_SubOption_OptionCode) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.