Documentation
¶
Index ¶
- Variables
- type Another
- type Enum
- type GetMessageRequest
- func (*GetMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageRequest) GetMessageId() string
- func (x *GetMessageRequest) GetUserId() string
- func (*GetMessageRequest) ProtoMessage()
- func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
- func (x *GetMessageRequest) Reset()
- func (x *GetMessageRequest) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBody() string
- func (x *Message) GetMaps() map[string]*Message
- func (x *Message) GetNested() *Message
- func (x *Message) GetOneNumber() int64
- func (x *Message) GetOneString() string
- func (m *Message) GetOneofs() isMessage_Oneofs
- func (x *Message) GetStrings() []string
- func (x *Message) GetType() Message_Type
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_OneNumber
- type Message_OneString
- type Message_Type
- func (Message_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Message_Type) Enum() *Message_Type
- func (Message_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_Type) Number() protoreflect.EnumNumber
- func (x Message_Type) String() string
- func (Message_Type) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Enum_name = map[int32]string{ 0: "ENUM_A", 1: "ENUM_B", } Enum_value = map[string]int32{ "ENUM_A": 0, "ENUM_B": 1, } )
Enum value maps for Enum.
View Source
var ( Message_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "GREETING", } Message_Type_value = map[string]int32{ "UNKNOWN": 0, "GREETING": 1, } )
Enum value maps for Message_Type.
View Source
var (
// optional string my_option = 51234;
E_MyOption = &file_testpb_star_proto_extTypes[0]
)
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// repeated string tag = 88888888;
E_Tag = &file_testpb_star_proto_extTypes[1]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_testpb_lark_proto protoreflect.FileDescriptor
View Source
var File_testpb_star_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Another ¶
type Another struct {
// contains filtered or unexported fields
}
func (*Another) Descriptor
deprecated
func (*Another) ProtoMessage ¶
func (*Another) ProtoMessage()
func (*Another) ProtoReflect ¶
func (x *Another) ProtoReflect() protoreflect.Message
type Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type GetMessageRequest ¶
type GetMessageRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetMessageRequest) Descriptor
deprecated
func (*GetMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageRequest.ProtoReflect.Descriptor instead.
func (*GetMessageRequest) GetMessageId ¶
func (x *GetMessageRequest) GetMessageId() string
func (*GetMessageRequest) GetUserId ¶
func (x *GetMessageRequest) GetUserId() string
func (*GetMessageRequest) ProtoMessage ¶
func (*GetMessageRequest) ProtoMessage()
func (*GetMessageRequest) ProtoReflect ¶
func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
func (*GetMessageRequest) Reset ¶
func (x *GetMessageRequest) Reset()
func (*GetMessageRequest) String ¶
func (x *GetMessageRequest) String() string
type Message ¶
type Message struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Type Message_Type `protobuf:"varint,2,opt,name=type,proto3,enum=starlarkproto.test.Message_Type" json:"type,omitempty"` Strings []string `protobuf:"bytes,3,rep,name=strings,proto3" json:"strings,omitempty"` Nested *Message `protobuf:"bytes,4,opt,name=nested,proto3" json:"nested,omitempty"` Maps map[string]*Message `` /* 149-byte string literal not displayed */ // Types that are assignable to Oneofs: // // *Message_OneString // *Message_OneNumber Oneofs isMessage_Oneofs `protobuf_oneof:"oneofs"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetOneNumber ¶
func (*Message) GetOneString ¶
func (*Message) GetStrings ¶
func (*Message) GetType ¶
func (x *Message) GetType() Message_Type
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_OneNumber ¶
type Message_OneNumber struct {
OneNumber int64 `protobuf:"varint,7,opt,name=one_number,json=oneNumber,proto3,oneof"`
}
type Message_OneString ¶
type Message_OneString struct {
OneString string `protobuf:"bytes,6,opt,name=one_string,json=oneString,proto3,oneof"`
}
type Message_Type ¶
type Message_Type int32
const ( Message_UNKNOWN Message_Type = 0 Message_GREETING Message_Type = 1 )
func (Message_Type) Descriptor ¶
func (Message_Type) Descriptor() protoreflect.EnumDescriptor
func (Message_Type) Enum ¶
func (x Message_Type) Enum() *Message_Type
func (Message_Type) EnumDescriptor
deprecated
func (Message_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_Type.Descriptor instead.
func (Message_Type) Number ¶
func (x Message_Type) Number() protoreflect.EnumNumber
func (Message_Type) String ¶
func (x Message_Type) String() string
func (Message_Type) Type ¶
func (Message_Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.