proto3_proto

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Message_Humour_name = map[int32]string{
		0: "UNKNOWN",
		1: "PUNS",
		2: "SLAPSTICK",
		3: "BILL_BAILEY",
	}
	Message_Humour_value = map[string]int32{
		"UNKNOWN":     0,
		"PUNS":        1,
		"SLAPSTICK":   2,
		"BILL_BAILEY": 3,
	}
)

Enum value maps for Message_Humour.

View Source
var File_proto3_proto_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IntMap

type IntMap struct {
	Rtt map[int32]int32 `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IntMap) Descriptor deprecated

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

Deprecated: Use IntMap.ProtoReflect.Descriptor instead.

func (*IntMap) GetRtt

func (x *IntMap) GetRtt() map[int32]int32

func (*IntMap) ProtoMessage

func (*IntMap) ProtoMessage()

func (*IntMap) ProtoReflect

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

func (*IntMap) Reset

func (x *IntMap) Reset()

func (*IntMap) String

func (x *IntMap) String() string

type IntMaps

type IntMaps struct {
	Maps []*IntMap `protobuf:"bytes,1,rep,name=maps,proto3" json:"maps,omitempty"`
	// contains filtered or unexported fields
}

func (*IntMaps) Descriptor deprecated

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

Deprecated: Use IntMaps.ProtoReflect.Descriptor instead.

func (*IntMaps) GetMaps

func (x *IntMaps) GetMaps() []*IntMap

func (*IntMaps) ProtoMessage

func (*IntMaps) ProtoMessage()

func (*IntMaps) ProtoReflect

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

func (*IntMaps) Reset

func (x *IntMaps) Reset()

func (*IntMaps) String

func (x *IntMaps) String() string

type Message

type Message struct {
	Name         string                               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Hilarity     Message_Humour                       `protobuf:"varint,2,opt,name=hilarity,proto3,enum=proto3_test.Message_Humour" json:"hilarity,omitempty"`
	HeightInCm   uint32                               `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm,proto3" json:"height_in_cm,omitempty"`
	Data         []byte                               `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	ResultCount  int64                                `protobuf:"varint,7,opt,name=result_count,json=resultCount,proto3" json:"result_count,omitempty"`
	TrueScotsman bool                                 `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman,proto3" json:"true_scotsman,omitempty"`
	Score        float32                              `protobuf:"fixed32,9,opt,name=score,proto3" json:"score,omitempty"`
	Key          []uint64                             `protobuf:"varint,5,rep,packed,name=key,proto3" json:"key,omitempty"`
	ShortKey     []int32                              `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey,proto3" json:"short_key,omitempty"`
	Nested       *Nested                              `protobuf:"bytes,6,opt,name=nested,proto3" json:"nested,omitempty"`
	RFunny       []Message_Humour                     `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,proto3,enum=proto3_test.Message_Humour" json:"r_funny,omitempty"`
	Terrain      map[string]*Nested                   `` /* 156-byte string literal not displayed */
	Proto2Field  *proto2_proto.SubDefaults            `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field,proto3" json:"proto2_field,omitempty"`
	Proto2Value  map[string]*proto2_proto.SubDefaults `` /* 183-byte string literal not displayed */
	Anything     *any.Any                             `protobuf:"bytes,14,opt,name=anything,proto3" json:"anything,omitempty"`
	ManyThings   []*any.Any                           `protobuf:"bytes,15,rep,name=many_things,json=manyThings,proto3" json:"many_things,omitempty"`
	Submessage   *Message                             `protobuf:"bytes,17,opt,name=submessage,proto3" json:"submessage,omitempty"`
	Children     []*Message                           `protobuf:"bytes,18,rep,name=children,proto3" json:"children,omitempty"`
	StringMap    map[string]string                    `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAnything

func (x *Message) GetAnything() *any.Any

func (*Message) GetChildren

func (x *Message) GetChildren() []*Message

func (*Message) GetData

func (x *Message) GetData() []byte

func (*Message) GetHeightInCm

func (x *Message) GetHeightInCm() uint32

func (*Message) GetHilarity

func (x *Message) GetHilarity() Message_Humour

func (*Message) GetKey

func (x *Message) GetKey() []uint64

func (*Message) GetManyThings

func (x *Message) GetManyThings() []*any.Any

func (*Message) GetName

func (x *Message) GetName() string

func (*Message) GetNested

func (x *Message) GetNested() *Nested

func (*Message) GetProto2Field

func (x *Message) GetProto2Field() *proto2_proto.SubDefaults

func (*Message) GetProto2Value

func (x *Message) GetProto2Value() map[string]*proto2_proto.SubDefaults

func (*Message) GetRFunny

func (x *Message) GetRFunny() []Message_Humour

func (*Message) GetResultCount

func (x *Message) GetResultCount() int64

func (*Message) GetScore

func (x *Message) GetScore() float32

func (*Message) GetShortKey

func (x *Message) GetShortKey() []int32

func (*Message) GetStringMap

func (x *Message) GetStringMap() map[string]string

func (*Message) GetSubmessage

func (x *Message) GetSubmessage() *Message

func (*Message) GetTerrain

func (x *Message) GetTerrain() map[string]*Nested

func (*Message) GetTrueScotsman

func (x *Message) GetTrueScotsman() bool

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MessageWithMap

type MessageWithMap struct {
	ByteMapping map[bool][]byte `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MessageWithMap) Descriptor deprecated

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

Deprecated: Use MessageWithMap.ProtoReflect.Descriptor instead.

func (*MessageWithMap) GetByteMapping

func (x *MessageWithMap) GetByteMapping() map[bool][]byte

func (*MessageWithMap) ProtoMessage

func (*MessageWithMap) ProtoMessage()

func (*MessageWithMap) ProtoReflect

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

func (*MessageWithMap) Reset

func (x *MessageWithMap) Reset()

func (*MessageWithMap) String

func (x *MessageWithMap) String() string

type Message_Humour

type Message_Humour int32
const (
	Message_UNKNOWN     Message_Humour = 0
	Message_PUNS        Message_Humour = 1
	Message_SLAPSTICK   Message_Humour = 2
	Message_BILL_BAILEY Message_Humour = 3
)

func (Message_Humour) Descriptor

func (Message_Humour) Enum

func (x Message_Humour) Enum() *Message_Humour

func (Message_Humour) EnumDescriptor deprecated

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

Deprecated: Use Message_Humour.Descriptor instead.

func (Message_Humour) Number

func (Message_Humour) String

func (x Message_Humour) String() string

func (Message_Humour) Type

type Nested

type Nested struct {
	Bunny string `protobuf:"bytes,1,opt,name=bunny,proto3" json:"bunny,omitempty"`
	Cute  bool   `protobuf:"varint,2,opt,name=cute,proto3" json:"cute,omitempty"`
	// contains filtered or unexported fields
}

func (*Nested) Descriptor deprecated

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

Deprecated: Use Nested.ProtoReflect.Descriptor instead.

func (*Nested) GetBunny

func (x *Nested) GetBunny() string

func (*Nested) GetCute

func (x *Nested) GetCute() bool

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) ProtoReflect

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

func (*Nested) Reset

func (x *Nested) Reset()

func (*Nested) String

func (x *Nested) String() string

type TestUTF8

type TestUTF8 struct {
	Scalar string   `protobuf:"bytes,1,opt,name=scalar,proto3" json:"scalar,omitempty"`
	Vector []string `protobuf:"bytes,2,rep,name=vector,proto3" json:"vector,omitempty"`
	// Types that are assignable to Oneof:
	//	*TestUTF8_Field
	Oneof    isTestUTF8_Oneof `protobuf_oneof:"oneof"`
	MapKey   map[string]int64 `` /* 168-byte string literal not displayed */
	MapValue map[int64]string `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestUTF8) Descriptor deprecated

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

Deprecated: Use TestUTF8.ProtoReflect.Descriptor instead.

func (*TestUTF8) GetField

func (x *TestUTF8) GetField() string

func (*TestUTF8) GetMapKey

func (x *TestUTF8) GetMapKey() map[string]int64

func (*TestUTF8) GetMapValue

func (x *TestUTF8) GetMapValue() map[int64]string

func (*TestUTF8) GetOneof

func (m *TestUTF8) GetOneof() isTestUTF8_Oneof

func (*TestUTF8) GetScalar

func (x *TestUTF8) GetScalar() string

func (*TestUTF8) GetVector

func (x *TestUTF8) GetVector() []string

func (*TestUTF8) ProtoMessage

func (*TestUTF8) ProtoMessage()

func (*TestUTF8) ProtoReflect

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

func (*TestUTF8) Reset

func (x *TestUTF8) Reset()

func (*TestUTF8) String

func (x *TestUTF8) String() string

type TestUTF8_Field

type TestUTF8_Field struct {
	Field string `protobuf:"bytes,3,opt,name=field,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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