Documentation ¶
Index ¶
- Variables
- func PrepareMessage(c *HelloWorldConfiguration) string
- type ByeCommand
- func (*ByeCommand) Descriptor() ([]byte, []int)deprecated
- func (m *ByeCommand) GetCommand() isByeCommand_Command
- func (x *ByeCommand) GetConfigurable() *ByeConfigurableCommand
- func (x *ByeCommand) GetJust() *ByeJustCommand
- func (x *ByeCommand) GetLang() Lang
- func (*ByeCommand) ProtoMessage()
- func (x *ByeCommand) ProtoReflect() protoreflect.Message
- func (x *ByeCommand) Reset()
- func (x *ByeCommand) String() string
- type ByeCommand_Configurable
- type ByeCommand_Just
- type ByeConfigurableCommand
- func (*ByeConfigurableCommand) Descriptor() ([]byte, []int)deprecated
- func (x *ByeConfigurableCommand) GetConfig() *ByeConfiguration
- func (x *ByeConfigurableCommand) GetConfigId() string
- func (x *ByeConfigurableCommand) GetExtra() []string
- func (*ByeConfigurableCommand) ProtoMessage()
- func (x *ByeConfigurableCommand) ProtoReflect() protoreflect.Message
- func (x *ByeConfigurableCommand) Reset()
- func (x *ByeConfigurableCommand) String() string
- type ByeConfiguration
- func (*ByeConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *ByeConfiguration) GetConfigs() map[string]*ByeResponse
- func (*ByeConfiguration) ProtoMessage()
- func (x *ByeConfiguration) ProtoReflect() protoreflect.Message
- func (x *ByeConfiguration) Reset()
- func (x *ByeConfiguration) String() string
- type ByeJustCommand
- type ByeResponse
- type HelloCommand
- func (*HelloCommand) Descriptor() ([]byte, []int)deprecated
- func (x *HelloCommand) GetAddReally() bool
- func (x *HelloCommand) GetLang() Lang
- func (x *HelloCommand) GetName() string
- func (x *HelloCommand) GetPleaseAddReally() booldeprecated
- func (x *HelloCommand) GetWorld() string
- func (x *HelloCommand) GetYear() int64
- func (*HelloCommand) ProtoMessage()
- func (x *HelloCommand) ProtoReflect() protoreflect.Message
- func (x *HelloCommand) Reset()
- func (x *HelloCommand) String() string
- type HelloWorldConfiguration
- func (x *HelloWorldConfiguration) CommandLineArgument() (string, error)
- func (x *HelloWorldConfiguration) Decode(ecm []byte) error
- func (x *HelloWorldConfiguration) DecodeString(ecm string) error
- func (*HelloWorldConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *HelloWorldConfiguration) Encode() ([]byte, error)
- func (x *HelloWorldConfiguration) EncodeJSON() ([]byte, error)
- func (x *HelloWorldConfiguration) GetBye() *ByeCommand
- func (m *HelloWorldConfiguration) GetCommand() isHelloWorldConfiguration_Command
- func (x *HelloWorldConfiguration) GetHello() *HelloCommand
- func (x *HelloWorldConfiguration) Metadata() golang.Metadata
- func (*HelloWorldConfiguration) ProtoMessage()
- func (x *HelloWorldConfiguration) ProtoReflect() protoreflect.Message
- func (x *HelloWorldConfiguration) Reset()
- func (x *HelloWorldConfiguration) String() string
- type HelloWorldConfiguration_Bye
- type HelloWorldConfiguration_Hello
- type Lang
Constants ¶
This section is empty.
Variables ¶
var ( Lang_name = map[int32]string{ 0: "UNSPECIFIED", 1: "ENGLISH", 2: "POLISH", 3: "GERMAN", } Lang_value = map[string]int32{ "UNSPECIFIED": 0, "ENGLISH": 1, "POLISH": 2, "GERMAN": 3, } )
Enum value maps for Lang.
var File_examples_helloworld_v1_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func PrepareMessage ¶
func PrepareMessage(c *HelloWorldConfiguration) string
Types ¶
type ByeCommand ¶
type ByeCommand struct { Lang Lang `protobuf:"varint,1,opt,name=lang,proto3,enum=examples.helloworld.v1.Lang" json:"lang,omitempty"` // Types that are assignable to Command: // *ByeCommand_Just // *ByeCommand_Configurable Command isByeCommand_Command `protobuf_oneof:"command"` // contains filtered or unexported fields }
func (*ByeCommand) Descriptor
deprecated
func (*ByeCommand) Descriptor() ([]byte, []int)
Deprecated: Use ByeCommand.ProtoReflect.Descriptor instead.
func (*ByeCommand) GetCommand ¶
func (m *ByeCommand) GetCommand() isByeCommand_Command
func (*ByeCommand) GetConfigurable ¶
func (x *ByeCommand) GetConfigurable() *ByeConfigurableCommand
func (*ByeCommand) GetJust ¶
func (x *ByeCommand) GetJust() *ByeJustCommand
func (*ByeCommand) GetLang ¶
func (x *ByeCommand) GetLang() Lang
func (*ByeCommand) ProtoMessage ¶
func (*ByeCommand) ProtoMessage()
func (*ByeCommand) ProtoReflect ¶
func (x *ByeCommand) ProtoReflect() protoreflect.Message
func (*ByeCommand) Reset ¶
func (x *ByeCommand) Reset()
func (*ByeCommand) String ¶
func (x *ByeCommand) String() string
type ByeCommand_Configurable ¶
type ByeCommand_Configurable struct {
Configurable *ByeConfigurableCommand `protobuf:"bytes,3,opt,name=configurable,proto3,oneof"`
}
func NewByeConfigurableCommand ¶
func NewByeConfigurableCommand(x *ByeConfigurableCommand) *ByeCommand_Configurable
type ByeCommand_Just ¶
type ByeCommand_Just struct {
Just *ByeJustCommand `protobuf:"bytes,2,opt,name=just,proto3,oneof"`
}
func NewByeJustCommand ¶
func NewByeJustCommand(x *ByeJustCommand) *ByeCommand_Just
type ByeConfigurableCommand ¶
type ByeConfigurableCommand struct { ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` Config *ByeConfiguration `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` Extra []string `protobuf:"bytes,3,rep,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*ByeConfigurableCommand) Descriptor
deprecated
func (*ByeConfigurableCommand) Descriptor() ([]byte, []int)
Deprecated: Use ByeConfigurableCommand.ProtoReflect.Descriptor instead.
func (*ByeConfigurableCommand) GetConfig ¶
func (x *ByeConfigurableCommand) GetConfig() *ByeConfiguration
func (*ByeConfigurableCommand) GetConfigId ¶
func (x *ByeConfigurableCommand) GetConfigId() string
func (*ByeConfigurableCommand) GetExtra ¶
func (x *ByeConfigurableCommand) GetExtra() []string
func (*ByeConfigurableCommand) ProtoMessage ¶
func (*ByeConfigurableCommand) ProtoMessage()
func (*ByeConfigurableCommand) ProtoReflect ¶
func (x *ByeConfigurableCommand) ProtoReflect() protoreflect.Message
func (*ByeConfigurableCommand) Reset ¶
func (x *ByeConfigurableCommand) Reset()
func (*ByeConfigurableCommand) String ¶
func (x *ByeConfigurableCommand) String() string
type ByeConfiguration ¶
type ByeConfiguration struct { Configs map[string]*ByeResponse `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ByeConfiguration) Descriptor
deprecated
func (*ByeConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use ByeConfiguration.ProtoReflect.Descriptor instead.
func (*ByeConfiguration) GetConfigs ¶
func (x *ByeConfiguration) GetConfigs() map[string]*ByeResponse
func (*ByeConfiguration) ProtoMessage ¶
func (*ByeConfiguration) ProtoMessage()
func (*ByeConfiguration) ProtoReflect ¶
func (x *ByeConfiguration) ProtoReflect() protoreflect.Message
func (*ByeConfiguration) Reset ¶
func (x *ByeConfiguration) Reset()
func (*ByeConfiguration) String ¶
func (x *ByeConfiguration) String() string
type ByeJustCommand ¶
type ByeJustCommand struct {
// contains filtered or unexported fields
}
func (*ByeJustCommand) Descriptor
deprecated
func (*ByeJustCommand) Descriptor() ([]byte, []int)
Deprecated: Use ByeJustCommand.ProtoReflect.Descriptor instead.
func (*ByeJustCommand) ProtoMessage ¶
func (*ByeJustCommand) ProtoMessage()
func (*ByeJustCommand) ProtoReflect ¶
func (x *ByeJustCommand) ProtoReflect() protoreflect.Message
func (*ByeJustCommand) Reset ¶
func (x *ByeJustCommand) Reset()
func (*ByeJustCommand) String ¶
func (x *ByeJustCommand) String() string
type ByeResponse ¶
type ByeResponse struct { Capitalized bool `protobuf:"varint,1,opt,name=capitalized,proto3" json:"capitalized,omitempty"` // contains filtered or unexported fields }
func (*ByeResponse) Descriptor
deprecated
func (*ByeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ByeResponse.ProtoReflect.Descriptor instead.
func (*ByeResponse) GetCapitalized ¶
func (x *ByeResponse) GetCapitalized() bool
func (*ByeResponse) ProtoMessage ¶
func (*ByeResponse) ProtoMessage()
func (*ByeResponse) ProtoReflect ¶
func (x *ByeResponse) ProtoReflect() protoreflect.Message
func (*ByeResponse) Reset ¶
func (x *ByeResponse) Reset()
func (*ByeResponse) String ¶
func (x *ByeResponse) String() string
type HelloCommand ¶
type HelloCommand struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Year int64 `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"` World string `protobuf:"bytes,3,opt,name=world,proto3" json:"world,omitempty"` Lang Lang `protobuf:"varint,4,opt,name=lang,proto3,enum=examples.helloworld.v1.Lang" json:"lang,omitempty"` // Deprecated: Do not use. PleaseAddReally bool `protobuf:"varint,5,opt,name=please_add_really,json=pleaseAddReally,proto3" json:"please_add_really,omitempty"` AddReally bool `protobuf:"varint,6,opt,name=add_really,json=addReally,proto3" json:"add_really,omitempty"` // contains filtered or unexported fields }
func (*HelloCommand) Descriptor
deprecated
func (*HelloCommand) Descriptor() ([]byte, []int)
Deprecated: Use HelloCommand.ProtoReflect.Descriptor instead.
func (*HelloCommand) GetAddReally ¶
func (x *HelloCommand) GetAddReally() bool
func (*HelloCommand) GetLang ¶
func (x *HelloCommand) GetLang() Lang
func (*HelloCommand) GetName ¶
func (x *HelloCommand) GetName() string
func (*HelloCommand) GetPleaseAddReally
deprecated
func (x *HelloCommand) GetPleaseAddReally() bool
Deprecated: Do not use.
func (*HelloCommand) GetWorld ¶
func (x *HelloCommand) GetWorld() string
func (*HelloCommand) GetYear ¶
func (x *HelloCommand) GetYear() int64
func (*HelloCommand) ProtoMessage ¶
func (*HelloCommand) ProtoMessage()
func (*HelloCommand) ProtoReflect ¶
func (x *HelloCommand) ProtoReflect() protoreflect.Message
func (*HelloCommand) Reset ¶
func (x *HelloCommand) Reset()
func (*HelloCommand) String ¶
func (x *HelloCommand) String() string
type HelloWorldConfiguration ¶
type HelloWorldConfiguration struct { // Types that are assignable to Command: // *HelloWorldConfiguration_Hello // *HelloWorldConfiguration_Bye Command isHelloWorldConfiguration_Command `protobuf_oneof:"command"` // contains filtered or unexported fields }
func (*HelloWorldConfiguration) CommandLineArgument ¶
func (x *HelloWorldConfiguration) CommandLineArgument() (string, error)
func (*HelloWorldConfiguration) Decode ¶
func (x *HelloWorldConfiguration) Decode(ecm []byte) error
Decode parses byte slice as `Encoded Configuration Message` in JSON or proto format and unmarshal it on the Configurable struct. It supports all `OpenConfig Proto Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Unmarshal` or `protojson.Unmarshal` for decoding without `OpenConfig 1.0` extension support.
func (*HelloWorldConfiguration) DecodeString ¶
func (x *HelloWorldConfiguration) DecodeString(ecm string) error
DecodeString parses string as `Encoded Configuration Message` in JSON or proto format and unmarshal it on the Configurable struct. It supports all `OpenConfig Proto Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Unmarshal` or `protojson.Unmarshal` for decoding without `OpenConfig 1.0` extension support.
func (*HelloWorldConfiguration) Descriptor
deprecated
func (*HelloWorldConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use HelloWorldConfiguration.ProtoReflect.Descriptor instead.
func (*HelloWorldConfiguration) Encode ¶
func (x *HelloWorldConfiguration) Encode() ([]byte, error)
Encode encodes self as `Encoded Configuration Message` in proto format so it can be understood and passed to Configurable struct. It supports all `OpenConfig Proto Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Marshal` encoding without `OpenConfig 1.0` extension support.
func (*HelloWorldConfiguration) EncodeJSON ¶
func (x *HelloWorldConfiguration) EncodeJSON() ([]byte, error)
EncodeJSON encodes self as `Encoded Configuration Message` in JSON format so it can be understood and passed to Configurable struct. It supports all `OpenConfig Proto Extensions Format 1.0` extenstion (validation, default values etc). Use `protojson.Marshal` encoding without `OpenConfig 1.0` extension support.
func (*HelloWorldConfiguration) GetBye ¶
func (x *HelloWorldConfiguration) GetBye() *ByeCommand
func (*HelloWorldConfiguration) GetCommand ¶
func (m *HelloWorldConfiguration) GetCommand() isHelloWorldConfiguration_Command
func (*HelloWorldConfiguration) GetHello ¶
func (x *HelloWorldConfiguration) GetHello() *HelloCommand
func (*HelloWorldConfiguration) Metadata ¶
func (x *HelloWorldConfiguration) Metadata() golang.Metadata
Metadata returns metadata defined in `OpenConfig Proto Extensions Format 1.0`.
func (*HelloWorldConfiguration) ProtoMessage ¶
func (*HelloWorldConfiguration) ProtoMessage()
func (*HelloWorldConfiguration) ProtoReflect ¶
func (x *HelloWorldConfiguration) ProtoReflect() protoreflect.Message
func (*HelloWorldConfiguration) Reset ¶
func (x *HelloWorldConfiguration) Reset()
func (*HelloWorldConfiguration) String ¶
func (x *HelloWorldConfiguration) String() string
type HelloWorldConfiguration_Bye ¶
type HelloWorldConfiguration_Bye struct {
Bye *ByeCommand `protobuf:"bytes,3,opt,name=bye,proto3,oneof"`
}
func NewByeCommand ¶
func NewByeCommand(x *ByeCommand) *HelloWorldConfiguration_Bye
type HelloWorldConfiguration_Hello ¶
type HelloWorldConfiguration_Hello struct {
Hello *HelloCommand `protobuf:"bytes,2,opt,name=hello,proto3,oneof"`
}
func NewHelloCommand ¶
func NewHelloCommand(x *HelloCommand) *HelloWorldConfiguration_Hello
type Lang ¶
type Lang int32
func (Lang) Descriptor ¶
func (Lang) Descriptor() protoreflect.EnumDescriptor
func (Lang) EnumDescriptor
deprecated
func (Lang) Number ¶
func (x Lang) Number() protoreflect.EnumNumber
func (Lang) Type ¶
func (Lang) Type() protoreflect.EnumType