testpb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_testpb_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	BoolField    bool     `protobuf:"varint,1,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"`
	StringField  string   `protobuf:"bytes,2,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	Int32Field   int32    `protobuf:"varint,3,opt,name=int32_field,json=int32Field,proto3" json:"int32_field,omitempty"`
	Int64Field   int64    `protobuf:"varint,4,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"`
	Sint32Field  int32    `protobuf:"zigzag32,5,opt,name=sint32_field,json=sint32Field,proto3" json:"sint32_field,omitempty"`
	Sint64Field  int64    `protobuf:"zigzag64,6,opt,name=sint64_field,json=sint64Field,proto3" json:"sint64_field,omitempty"`
	Uint32Field  uint32   `protobuf:"varint,7,opt,name=uint32_field,json=uint32Field,proto3" json:"uint32_field,omitempty"`
	Uint64Field  uint64   `protobuf:"varint,8,opt,name=uint64_field,json=uint64Field,proto3" json:"uint64_field,omitempty"`
	Fixed32Field uint32   `protobuf:"fixed32,9,opt,name=fixed32_field,json=fixed32Field,proto3" json:"fixed32_field,omitempty"`
	Fixed64Field uint64   `protobuf:"fixed64,10,opt,name=fixed64_field,json=fixed64Field,proto3" json:"fixed64_field,omitempty"`
	MessageField *Message `protobuf:"bytes,11,opt,name=message_field,json=messageField,proto3" json:"message_field,omitempty"`
	BytesField   []byte   `protobuf:"bytes,12,opt,name=bytes_field,json=bytesField,proto3" json:"bytes_field,omitempty"`
	// Types that are assignable to OneofField:
	//
	//	*Message_BoolOneofField
	//	*Message_StringOneofField
	//	*Message_Int32OneofField
	//	*Message_Int64OneofField
	//	*Message_Sint32OneofField
	//	*Message_Sint64OneofField
	//	*Message_Uint32OneofField
	//	*Message_Uint64OneofField
	//	*Message_Fixed32OneofField
	//	*Message_Fixed64OneofField
	//	*Message_MessageOneofField
	OneofField             isMessage_OneofField `protobuf_oneof:"oneof_field"`
	RepeatedBoolField      []bool               `protobuf:"varint,201,rep,packed,name=repeated_bool_field,json=repeatedBoolField,proto3" json:"repeated_bool_field,omitempty"`
	RepeatedStringField    []string             `protobuf:"bytes,202,rep,name=repeated_string_field,json=repeatedStringField,proto3" json:"repeated_string_field,omitempty"`
	RepeatedInt32Field     []int32              `` /* 127-byte string literal not displayed */
	RepeatedInt64Field     []int64              `` /* 127-byte string literal not displayed */
	RepeatedSint32Field    []int32              `` /* 132-byte string literal not displayed */
	RepeatedSint64Field    []int64              `` /* 132-byte string literal not displayed */
	RepeatedUint32Field    []uint32             `` /* 130-byte string literal not displayed */
	RepeatedUint64Field    []uint64             `` /* 130-byte string literal not displayed */
	RepeatedFixed32Field   []uint32             `` /* 134-byte string literal not displayed */
	RepeatedFixed64Field   []uint64             `` /* 134-byte string literal not displayed */
	RepeatedMessageField   []*Message           `protobuf:"bytes,211,rep,name=repeated_message_field,json=repeatedMessageField,proto3" json:"repeated_message_field,omitempty"`
	RepeatedBytesField     [][]byte             `protobuf:"bytes,212,rep,name=repeated_bytes_field,json=repeatedBytesField,proto3" json:"repeated_bytes_field,omitempty"`
	MapBoolStringField     map[bool]string      `` /* 210-byte string literal not displayed */
	MapStringStringField   map[string]string    `` /* 215-byte string literal not displayed */
	MapInt32StringField    map[int32]string     `` /* 213-byte string literal not displayed */
	MapInt64StringField    map[int64]string     `` /* 213-byte string literal not displayed */
	MapSint32StringField   map[int32]string     `` /* 218-byte string literal not displayed */
	MapSint64StringField   map[int64]string     `` /* 218-byte string literal not displayed */
	MapUint32StringField   map[uint32]string    `` /* 216-byte string literal not displayed */
	MapUint64StringField   map[uint64]string    `` /* 216-byte string literal not displayed */
	MapFixed32StringField  map[uint32]string    `` /* 220-byte string literal not displayed */
	MapFixed64StringField  map[uint64]string    `` /* 220-byte string literal not displayed */
	MapBoolBytesField      map[bool][]byte      `` /* 207-byte string literal not displayed */
	MapStringBytesField    map[string][]byte    `` /* 212-byte string literal not displayed */
	MapInt32BytesField     map[int32][]byte     `` /* 210-byte string literal not displayed */
	MapInt64BytesField     map[int64][]byte     `` /* 210-byte string literal not displayed */
	MapSint32BytesField    map[int32][]byte     `` /* 215-byte string literal not displayed */
	MapSint64BytesField    map[int64][]byte     `` /* 215-byte string literal not displayed */
	MapUint32BytesField    map[uint32][]byte    `` /* 213-byte string literal not displayed */
	MapUint64BytesField    map[uint64][]byte    `` /* 213-byte string literal not displayed */
	MapFixed32BytesField   map[uint32][]byte    `` /* 217-byte string literal not displayed */
	MapFixed64BytesField   map[uint64][]byte    `` /* 217-byte string literal not displayed */
	MapBoolMessageField    map[bool]*Message    `` /* 213-byte string literal not displayed */
	MapStringMessageField  map[string]*Message  `` /* 218-byte string literal not displayed */
	MapInt32MessageField   map[int32]*Message   `` /* 216-byte string literal not displayed */
	MapInt64MessageField   map[int64]*Message   `` /* 216-byte string literal not displayed */
	MapSint32MessageField  map[int32]*Message   `` /* 221-byte string literal not displayed */
	MapSint64MessageField  map[int64]*Message   `` /* 221-byte string literal not displayed */
	MapUint32MessageField  map[uint32]*Message  `` /* 219-byte string literal not displayed */
	MapUint64MessageField  map[uint64]*Message  `` /* 219-byte string literal not displayed */
	MapFixed32MessageField map[uint32]*Message  `` /* 223-byte string literal not displayed */
	MapFixed64MessageField map[uint64]*Message  `` /* 223-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) GetBoolField

func (x *Message) GetBoolField() bool

func (*Message) GetBoolOneofField

func (x *Message) GetBoolOneofField() bool

func (*Message) GetBytesField

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

func (*Message) GetFixed32Field

func (x *Message) GetFixed32Field() uint32

func (*Message) GetFixed32OneofField

func (x *Message) GetFixed32OneofField() uint32

func (*Message) GetFixed64Field

func (x *Message) GetFixed64Field() uint64

func (*Message) GetFixed64OneofField

func (x *Message) GetFixed64OneofField() uint64

func (*Message) GetInt32Field

func (x *Message) GetInt32Field() int32

func (*Message) GetInt32OneofField

func (x *Message) GetInt32OneofField() int32

func (*Message) GetInt64Field

func (x *Message) GetInt64Field() int64

func (*Message) GetInt64OneofField

func (x *Message) GetInt64OneofField() int64

func (*Message) GetMapBoolBytesField

func (x *Message) GetMapBoolBytesField() map[bool][]byte

func (*Message) GetMapBoolMessageField

func (x *Message) GetMapBoolMessageField() map[bool]*Message

func (*Message) GetMapBoolStringField

func (x *Message) GetMapBoolStringField() map[bool]string

func (*Message) GetMapFixed32BytesField

func (x *Message) GetMapFixed32BytesField() map[uint32][]byte

func (*Message) GetMapFixed32MessageField

func (x *Message) GetMapFixed32MessageField() map[uint32]*Message

func (*Message) GetMapFixed32StringField

func (x *Message) GetMapFixed32StringField() map[uint32]string

func (*Message) GetMapFixed64BytesField

func (x *Message) GetMapFixed64BytesField() map[uint64][]byte

func (*Message) GetMapFixed64MessageField

func (x *Message) GetMapFixed64MessageField() map[uint64]*Message

func (*Message) GetMapFixed64StringField

func (x *Message) GetMapFixed64StringField() map[uint64]string

func (*Message) GetMapInt32BytesField

func (x *Message) GetMapInt32BytesField() map[int32][]byte

func (*Message) GetMapInt32MessageField

func (x *Message) GetMapInt32MessageField() map[int32]*Message

func (*Message) GetMapInt32StringField

func (x *Message) GetMapInt32StringField() map[int32]string

func (*Message) GetMapInt64BytesField

func (x *Message) GetMapInt64BytesField() map[int64][]byte

func (*Message) GetMapInt64MessageField

func (x *Message) GetMapInt64MessageField() map[int64]*Message

func (*Message) GetMapInt64StringField

func (x *Message) GetMapInt64StringField() map[int64]string

func (*Message) GetMapSint32BytesField

func (x *Message) GetMapSint32BytesField() map[int32][]byte

func (*Message) GetMapSint32MessageField

func (x *Message) GetMapSint32MessageField() map[int32]*Message

func (*Message) GetMapSint32StringField

func (x *Message) GetMapSint32StringField() map[int32]string

func (*Message) GetMapSint64BytesField

func (x *Message) GetMapSint64BytesField() map[int64][]byte

func (*Message) GetMapSint64MessageField

func (x *Message) GetMapSint64MessageField() map[int64]*Message

func (*Message) GetMapSint64StringField

func (x *Message) GetMapSint64StringField() map[int64]string

func (*Message) GetMapStringBytesField

func (x *Message) GetMapStringBytesField() map[string][]byte

func (*Message) GetMapStringMessageField

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

func (*Message) GetMapStringStringField

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

func (*Message) GetMapUint32BytesField

func (x *Message) GetMapUint32BytesField() map[uint32][]byte

func (*Message) GetMapUint32MessageField

func (x *Message) GetMapUint32MessageField() map[uint32]*Message

func (*Message) GetMapUint32StringField

func (x *Message) GetMapUint32StringField() map[uint32]string

func (*Message) GetMapUint64BytesField

func (x *Message) GetMapUint64BytesField() map[uint64][]byte

func (*Message) GetMapUint64MessageField

func (x *Message) GetMapUint64MessageField() map[uint64]*Message

func (*Message) GetMapUint64StringField

func (x *Message) GetMapUint64StringField() map[uint64]string

func (*Message) GetMessageField

func (x *Message) GetMessageField() *Message

func (*Message) GetMessageOneofField

func (x *Message) GetMessageOneofField() *Message

func (*Message) GetOneofField

func (m *Message) GetOneofField() isMessage_OneofField

func (*Message) GetRepeatedBoolField

func (x *Message) GetRepeatedBoolField() []bool

func (*Message) GetRepeatedBytesField

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

func (*Message) GetRepeatedFixed32Field

func (x *Message) GetRepeatedFixed32Field() []uint32

func (*Message) GetRepeatedFixed64Field

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

func (*Message) GetRepeatedInt32Field

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

func (*Message) GetRepeatedInt64Field

func (x *Message) GetRepeatedInt64Field() []int64

func (*Message) GetRepeatedMessageField

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

func (*Message) GetRepeatedSint32Field

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

func (*Message) GetRepeatedSint64Field

func (x *Message) GetRepeatedSint64Field() []int64

func (*Message) GetRepeatedStringField

func (x *Message) GetRepeatedStringField() []string

func (*Message) GetRepeatedUint32Field

func (x *Message) GetRepeatedUint32Field() []uint32

func (*Message) GetRepeatedUint64Field

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

func (*Message) GetSint32Field

func (x *Message) GetSint32Field() int32

func (*Message) GetSint32OneofField

func (x *Message) GetSint32OneofField() int32

func (*Message) GetSint64Field

func (x *Message) GetSint64Field() int64

func (*Message) GetSint64OneofField

func (x *Message) GetSint64OneofField() int64

func (*Message) GetStringField

func (x *Message) GetStringField() string

func (*Message) GetStringOneofField

func (x *Message) GetStringOneofField() string

func (*Message) GetUint32Field

func (x *Message) GetUint32Field() uint32

func (*Message) GetUint32OneofField

func (x *Message) GetUint32OneofField() uint32

func (*Message) GetUint64Field

func (x *Message) GetUint64Field() uint64

func (*Message) GetUint64OneofField

func (x *Message) GetUint64OneofField() uint64

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 Message_BoolOneofField

type Message_BoolOneofField struct {
	BoolOneofField bool `protobuf:"varint,101,opt,name=bool_oneof_field,json=boolOneofField,proto3,oneof"`
}

type Message_Fixed32OneofField

type Message_Fixed32OneofField struct {
	Fixed32OneofField uint32 `protobuf:"fixed32,109,opt,name=fixed32_oneof_field,json=fixed32OneofField,proto3,oneof"`
}

type Message_Fixed64OneofField

type Message_Fixed64OneofField struct {
	Fixed64OneofField uint64 `protobuf:"fixed64,110,opt,name=fixed64_oneof_field,json=fixed64OneofField,proto3,oneof"`
}

type Message_Int32OneofField

type Message_Int32OneofField struct {
	Int32OneofField int32 `protobuf:"varint,103,opt,name=int32_oneof_field,json=int32OneofField,proto3,oneof"`
}

type Message_Int64OneofField

type Message_Int64OneofField struct {
	Int64OneofField int64 `protobuf:"varint,104,opt,name=int64_oneof_field,json=int64OneofField,proto3,oneof"`
}

type Message_MessageOneofField

type Message_MessageOneofField struct {
	MessageOneofField *Message `protobuf:"bytes,111,opt,name=message_oneof_field,json=messageOneofField,proto3,oneof"`
}

type Message_Sint32OneofField

type Message_Sint32OneofField struct {
	Sint32OneofField int32 `protobuf:"zigzag32,105,opt,name=sint32_oneof_field,json=sint32OneofField,proto3,oneof"`
}

type Message_Sint64OneofField

type Message_Sint64OneofField struct {
	Sint64OneofField int64 `protobuf:"zigzag64,106,opt,name=sint64_oneof_field,json=sint64OneofField,proto3,oneof"`
}

type Message_StringOneofField

type Message_StringOneofField struct {
	StringOneofField string `protobuf:"bytes,102,opt,name=string_oneof_field,json=stringOneofField,proto3,oneof"`
}

type Message_Uint32OneofField

type Message_Uint32OneofField struct {
	Uint32OneofField uint32 `protobuf:"varint,107,opt,name=uint32_oneof_field,json=uint32OneofField,proto3,oneof"`
}

type Message_Uint64OneofField

type Message_Uint64OneofField struct {
	Uint64OneofField uint64 `protobuf:"varint,108,opt,name=uint64_oneof_field,json=uint64OneofField,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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