Documentation ¶
Index ¶
- Constants
- Variables
- type MessageOption
- func (*MessageOption) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOption) GetCustom() *MessageOption_CustomStarlark
- func (x *MessageOption) GetDisable() bool
- func (m *MessageOption) GetOption() isMessageOption_Option
- func (x *MessageOption) GetToString() bool
- func (*MessageOption) ProtoMessage()
- func (x *MessageOption) ProtoReflect() protoreflect.Message
- func (x *MessageOption) Reset()
- func (x *MessageOption) String() string
- type MessageOption_Custom
- type MessageOption_CustomStarlark
- func (*MessageOption_CustomStarlark) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOption_CustomStarlark) GetStarlarkTypeName() string
- func (x *MessageOption_CustomStarlark) GetStarlarkTypePackage() string
- func (*MessageOption_CustomStarlark) ProtoMessage()
- func (x *MessageOption_CustomStarlark) ProtoReflect() protoreflect.Message
- func (x *MessageOption_CustomStarlark) Reset()
- func (x *MessageOption_CustomStarlark) String() string
- type MessageOption_Disable
- type MessageOption_ToString
Constants ¶
View Source
const (
Default_MessageOption_Disable = bool(false)
)
Default values for MessageOption fields.
Variables ¶
View Source
var (
// optional protoc_gen_starlark_go.options.MessageOption enum_option = 98125;
E_EnumOption = &file_options_proto_extTypes[1]
)
Extension fields to descriptorpb.EnumOptions.
View Source
var (
// optional protoc_gen_starlark_go.options.MessageOption message_option = 98125;
E_MessageOption = &file_options_proto_extTypes[0]
)
Extension fields to descriptorpb.MessageOptions.
View Source
var File_options_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MessageOption ¶
type MessageOption struct { // Types that are assignable to Option: // *MessageOption_Disable // *MessageOption_ToString // *MessageOption_Custom Option isMessageOption_Option `protobuf_oneof:"option"` // contains filtered or unexported fields }
func (*MessageOption) Descriptor
deprecated
func (*MessageOption) Descriptor() ([]byte, []int)
Deprecated: Use MessageOption.ProtoReflect.Descriptor instead.
func (*MessageOption) GetCustom ¶
func (x *MessageOption) GetCustom() *MessageOption_CustomStarlark
func (*MessageOption) GetDisable ¶
func (x *MessageOption) GetDisable() bool
func (*MessageOption) GetOption ¶
func (m *MessageOption) GetOption() isMessageOption_Option
func (*MessageOption) GetToString ¶
func (x *MessageOption) GetToString() bool
func (*MessageOption) ProtoMessage ¶
func (*MessageOption) ProtoMessage()
func (*MessageOption) ProtoReflect ¶
func (x *MessageOption) ProtoReflect() protoreflect.Message
func (*MessageOption) Reset ¶
func (x *MessageOption) Reset()
func (*MessageOption) String ¶
func (x *MessageOption) String() string
type MessageOption_Custom ¶
type MessageOption_Custom struct { // User will provide a fully custom ToStarlark method Custom *MessageOption_CustomStarlark `protobuf:"bytes,4,opt,name=custom,oneof"` }
type MessageOption_CustomStarlark ¶
type MessageOption_CustomStarlark struct { // if empty, the package will be same as go_package option // if `STARLARK`, will use go.starlark.net/starlark // if `HELPER`, will use github.com/ImSingee/starlarkhelper StarlarkTypePackage *string `protobuf:"bytes,1,req,name=starlark_type_package,json=starlarkTypePackage" json:"starlark_type_package,omitempty"` // the name returned by `ToStarlark` method // if it returns pointer, starlark_type_name should start with * StarlarkTypeName *string `protobuf:"bytes,2,req,name=starlark_type_name,json=starlarkTypeName" json:"starlark_type_name,omitempty"` // contains filtered or unexported fields }
func (*MessageOption_CustomStarlark) Descriptor
deprecated
func (*MessageOption_CustomStarlark) Descriptor() ([]byte, []int)
Deprecated: Use MessageOption_CustomStarlark.ProtoReflect.Descriptor instead.
func (*MessageOption_CustomStarlark) GetStarlarkTypeName ¶
func (x *MessageOption_CustomStarlark) GetStarlarkTypeName() string
func (*MessageOption_CustomStarlark) GetStarlarkTypePackage ¶
func (x *MessageOption_CustomStarlark) GetStarlarkTypePackage() string
func (*MessageOption_CustomStarlark) ProtoMessage ¶
func (*MessageOption_CustomStarlark) ProtoMessage()
func (*MessageOption_CustomStarlark) ProtoReflect ¶
func (x *MessageOption_CustomStarlark) ProtoReflect() protoreflect.Message
func (*MessageOption_CustomStarlark) Reset ¶
func (x *MessageOption_CustomStarlark) Reset()
func (*MessageOption_CustomStarlark) String ¶
func (x *MessageOption_CustomStarlark) String() string
type MessageOption_Disable ¶
type MessageOption_Disable struct { // Ignore the message Disable bool `protobuf:"varint,1,opt,name=disable,oneof,def=0"` }
type MessageOption_ToString ¶
type MessageOption_ToString struct { // Simple convert to starlark.String ToString bool `protobuf:"varint,2,opt,name=to_string,json=toString,oneof"` }
Click to show internal directories.
Click to hide internal directories.