testpb

package
v0.0.0-...-d6b8da9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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_github_com_afking_starlarkproto_testpb_star_proto_extTypes[0]
)

Extension fields to descriptor.MessageOptions.

View Source
var (
	// repeated string tag = 88888888;
	E_Tag = &file_github_com_afking_starlarkproto_testpb_star_proto_extTypes[1]
)

Extension fields to descriptor.MethodOptions.

View Source
var File_github_com_afking_starlarkproto_testpb_lark_proto protoreflect.FileDescriptor
View Source
var File_github_com_afking_starlarkproto_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) Descriptor() ([]byte, []int)

Deprecated: Use Another.ProtoReflect.Descriptor instead.

func (*Another) ProtoMessage

func (*Another) ProtoMessage()

func (*Another) ProtoReflect

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

func (*Another) Reset

func (x *Another) Reset()

func (*Another) String

func (x *Another) String() string

type Enum

type Enum int32
const (
	Enum_ENUM_A Enum = 0
	Enum_ENUM_B Enum = 1
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

func (x *Message) GetBody() string

func (*Message) GetMaps

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

func (*Message) GetNested

func (x *Message) GetNested() *Message

func (*Message) GetOneNumber

func (x *Message) GetOneNumber() int64

func (*Message) GetOneString

func (x *Message) GetOneString() string

func (*Message) GetOneofs

func (m *Message) GetOneofs() isMessage_Oneofs

func (*Message) GetStrings

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

func (*Message) GetType

func (x *Message) GetType() Message_Type

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_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) 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 (Message_Type) String

func (x Message_Type) String() string

func (Message_Type) Type

Jump to

Keyboard shortcuts

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