helloworldpb

package
v0.0.0-...-665bf02 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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"`
}

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 `Proto Config Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Unmarshal` or `protojson.Unmarshal` for decoding without `ProtoConfig 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 `Proto Config Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Unmarshal` or `protojson.Unmarshal` for decoding without `ProtoConfig 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 `Proto Config Extensions Format 1.0` extenstion (validation, default values etc). Use `proto.Marshal` encoding without `ProtoConfig 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 `Proto Config Extensions Format 1.0` extenstion (validation, default values etc). Use `protojson.Marshal` encoding without `ProtoConfig 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() _go.Metadata

Metadata returns metadata defined in `Proto Config 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"`
}

type HelloWorldConfiguration_Hello

type HelloWorldConfiguration_Hello struct {
	Hello *HelloCommand `protobuf:"bytes,2,opt,name=hello,proto3,oneof"`
}

type Lang

type Lang int32
const (
	Lang_UNSPECIFIED Lang = 0
	Lang_ENGLISH     Lang = 1
	Lang_POLISH      Lang = 2
	Lang_GERMAN      Lang = 3
)

func (Lang) Descriptor

func (Lang) Descriptor() protoreflect.EnumDescriptor

func (Lang) Enum

func (x Lang) Enum() *Lang

func (Lang) EnumDescriptor deprecated

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

Deprecated: Use Lang.Descriptor instead.

func (Lang) Number

func (x Lang) Number() protoreflect.EnumNumber

func (Lang) String

func (x Lang) String() string

func (Lang) Type

func (Lang) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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