pb

package
v0.0.0-...-4f434fc Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetId

func (x *Record) GetId() int32

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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) Enum

func (Record_OptionCode) EnumDescriptor deprecated

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

Deprecated: Use Record_OptionCode.Descriptor instead.

func (Record_OptionCode) Number

func (Record_OptionCode) String

func (x Record_OptionCode) String() string

func (Record_OptionCode) Type

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) Enum

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 (Record_SubOption_OptionCode) String

func (Record_SubOption_OptionCode) Type

Jump to

Keyboard shortcuts

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