examplev1

package
v0.0.0-...-990ddd9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_v1_hello_proto protoreflect.FileDescriptor
View Source
var File_example_v1_world_proto protoreflect.FileDescriptor
View Source
var File_example_v1_yellow_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Hello

type Hello struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Property:
	//
	//	*Hello_Email
	//	*Hello_Number
	//	*Hello_World
	//	*Hello_CreateTime
	Property isHello_Property `protobuf_oneof:"property"`
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

func (*Hello) Descriptor() ([]byte, []int)

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetCreateTime

func (x *Hello) GetCreateTime() *timestamppb.Timestamp

func (*Hello) GetEmail

func (x *Hello) GetEmail() string

func (*Hello) GetName

func (x *Hello) GetName() string

func (*Hello) GetNumber

func (x *Hello) GetNumber() int32

func (*Hello) GetProperty

func (m *Hello) GetProperty() isHello_Property

func (*Hello) GetWorld

func (x *Hello) GetWorld() *World

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

func (x *Hello) ProtoReflect() protoreflect.Message

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type Hello_CreateTime

type Hello_CreateTime struct {
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3,oneof"`
}

type Hello_Email

type Hello_Email struct {
	Email string `protobuf:"bytes,2,opt,name=email,proto3,oneof"`
}

type Hello_Number

type Hello_Number struct {
	Number int32 `protobuf:"varint,3,opt,name=number,proto3,oneof"`
}

type Hello_World

type Hello_World struct {
	World *World `protobuf:"bytes,4,opt,name=world,proto3,oneof"`
}

type OneofHelloProperty

type OneofHelloProperty struct {
	// contains filtered or unexported fields
}

OneofHelloProperty can contain one of the value for Hello.property.

Use the constructor for each oneof fields.

  • func OneofHelloProperty_Email(email string) OneofHelloProperty
  • func OneofHelloProperty_Number(number int32) OneofHelloProperty
  • func OneofHelloProperty_World(world *World) OneofHelloProperty
  • func OneofHelloProperty_CreateTime(create_time *timestamppb.Timestamp) OneofHelloProperty

func OneofHelloPropertyFrom

func OneofHelloPropertyFrom(property isHello_Property) OneofHelloProperty

OneofHelloPropertyFrom returns OneofHelloProperty from the value of isHello_Property.

func OneofHelloProperty_CreateTime

func OneofHelloProperty_CreateTime(create_time *timestamppb.Timestamp) OneofHelloProperty

OneofHelloProperty_CreateTime returns OneofHelloProperty.

func OneofHelloProperty_Email

func OneofHelloProperty_Email(email string) OneofHelloProperty

OneofHelloProperty_Email returns OneofHelloProperty.

func OneofHelloProperty_Number

func OneofHelloProperty_Number(number int32) OneofHelloProperty

OneofHelloProperty_Number returns OneofHelloProperty.

func OneofHelloProperty_World

func OneofHelloProperty_World(world *World) OneofHelloProperty

OneofHelloProperty_World returns OneofHelloProperty.

func (OneofHelloProperty) Get

func (property OneofHelloProperty) Get() isHello_Property

Get returns the value for Hello.property.

type OneofHelloPropertyKind

type OneofHelloPropertyKind string
const (
	OneofHelloPropertyIsUnknown    OneofHelloPropertyKind = "unknown"
	OneofHelloPropertyIsNil        OneofHelloPropertyKind = "nil"
	OneofHelloPropertyIsEmail      OneofHelloPropertyKind = "email"
	OneofHelloPropertyIsNumber     OneofHelloPropertyKind = "number"
	OneofHelloPropertyIsWorld      OneofHelloPropertyKind = "world"
	OneofHelloPropertyIsCreateTime OneofHelloPropertyKind = "create_time"
)

func OneofHelloPropertyKindOf

func OneofHelloPropertyKindOf(property isHello_Property) OneofHelloPropertyKind

type OneofWorldOrangeColor

type OneofWorldOrangeColor struct {
	// contains filtered or unexported fields
}

OneofWorldOrangeColor can contain one of the value for World_Orange.color.

Use the constructor for each oneof fields.

  • func OneofWorldOrangeColor_Red(red string) OneofWorldOrangeColor
  • func OneofWorldOrangeColor_Blue(blue bool) OneofWorldOrangeColor
  • func OneofWorldOrangeColor_Orange(orange *World_Orange) OneofWorldOrangeColor

func OneofWorldOrangeColorFrom

func OneofWorldOrangeColorFrom(color isWorld_Orange_Color) OneofWorldOrangeColor

OneofWorldOrangeColorFrom returns OneofWorldOrangeColor from the value of isWorld_Orange_Color.

func OneofWorldOrangeColor_Blue

func OneofWorldOrangeColor_Blue(blue bool) OneofWorldOrangeColor

OneofWorldOrangeColor_Blue returns OneofWorldOrangeColor.

func OneofWorldOrangeColor_Orange

func OneofWorldOrangeColor_Orange(orange *World_Orange) OneofWorldOrangeColor

OneofWorldOrangeColor_Orange returns OneofWorldOrangeColor.

func OneofWorldOrangeColor_Red

func OneofWorldOrangeColor_Red(red string) OneofWorldOrangeColor

OneofWorldOrangeColor_Red returns OneofWorldOrangeColor.

func (OneofWorldOrangeColor) Get

func (color OneofWorldOrangeColor) Get() isWorld_Orange_Color

Get returns the value for World_Orange.color.

type OneofWorldOrangeColorKind

type OneofWorldOrangeColorKind string
const (
	OneofWorldOrangeColorIsUnknown OneofWorldOrangeColorKind = "unknown"
	OneofWorldOrangeColorIsNil     OneofWorldOrangeColorKind = "nil"
	OneofWorldOrangeColorIsRed     OneofWorldOrangeColorKind = "red"
	OneofWorldOrangeColorIsBlue    OneofWorldOrangeColorKind = "blue"
	OneofWorldOrangeColorIsOrange  OneofWorldOrangeColorKind = "orange"
)

func OneofWorldOrangeColorKindOf

func OneofWorldOrangeColorKindOf(color isWorld_Orange_Color) OneofWorldOrangeColorKind

type World

type World struct {
	Name   string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id     *string       `protobuf:"bytes,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Orange *World_Orange `protobuf:"bytes,3,opt,name=orange,proto3" json:"orange,omitempty"`
	// contains filtered or unexported fields
}

func (*World) Descriptor deprecated

func (*World) Descriptor() ([]byte, []int)

Deprecated: Use World.ProtoReflect.Descriptor instead.

func (*World) GetId

func (x *World) GetId() string

func (*World) GetName

func (x *World) GetName() string

func (*World) GetOrange

func (x *World) GetOrange() *World_Orange

func (*World) ProtoMessage

func (*World) ProtoMessage()

func (*World) ProtoReflect

func (x *World) ProtoReflect() protoreflect.Message

func (*World) Reset

func (x *World) Reset()

func (*World) String

func (x *World) String() string

type World_Orange

type World_Orange struct {

	// Types that are assignable to Color:
	//
	//	*World_Orange_Red
	//	*World_Orange_Blue
	//	*World_Orange_Orange
	Color isWorld_Orange_Color `protobuf_oneof:"color"`
	// contains filtered or unexported fields
}

func (*World_Orange) Descriptor deprecated

func (*World_Orange) Descriptor() ([]byte, []int)

Deprecated: Use World_Orange.ProtoReflect.Descriptor instead.

func (*World_Orange) GetBlue

func (x *World_Orange) GetBlue() bool

func (*World_Orange) GetColor

func (m *World_Orange) GetColor() isWorld_Orange_Color

func (*World_Orange) GetOrange

func (x *World_Orange) GetOrange() *World_Orange

func (*World_Orange) GetRed

func (x *World_Orange) GetRed() string

func (*World_Orange) ProtoMessage

func (*World_Orange) ProtoMessage()

func (*World_Orange) ProtoReflect

func (x *World_Orange) ProtoReflect() protoreflect.Message

func (*World_Orange) Reset

func (x *World_Orange) Reset()

func (*World_Orange) String

func (x *World_Orange) String() string

type World_Orange_Blue

type World_Orange_Blue struct {
	Blue bool `protobuf:"varint,2,opt,name=blue,proto3,oneof"`
}

type World_Orange_Orange

type World_Orange_Orange struct {
	Orange *World_Orange `protobuf:"bytes,3,opt,name=orange,proto3,oneof"`
}

type World_Orange_Red

type World_Orange_Red struct {
	Red string `protobuf:"bytes,1,opt,name=red,proto3,oneof"`
}

type Yellow

type Yellow struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Yellow) Descriptor deprecated

func (*Yellow) Descriptor() ([]byte, []int)

Deprecated: Use Yellow.ProtoReflect.Descriptor instead.

func (*Yellow) GetName

func (x *Yellow) GetName() string

func (*Yellow) ProtoMessage

func (*Yellow) ProtoMessage()

func (*Yellow) ProtoReflect

func (x *Yellow) ProtoReflect() protoreflect.Message

func (*Yellow) Reset

func (x *Yellow) Reset()

func (*Yellow) String

func (x *Yellow) String() string

Jump to

Keyboard shortcuts

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