Documentation ¶
Index ¶
- Variables
- type Foo
- type Status
- func (Status) Descriptor() protoreflect.EnumDescriptor
- func (x Status) Enum() *Status
- func (Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Status) Number() protoreflect.EnumNumber
- func (x Status) SimpleString() string
- func (x Status) String() string
- func (Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "STATUS_NONE", 1: "STATUS_INIT", 2: "STATUS_OK", 3: "STATUS_OFFLINE", 4: "STATUS_ERROR", } Status_value = map[string]int32{ "STATUS_NONE": 0, "STATUS_INIT": 1, "STATUS_OK": 2, "STATUS_OFFLINE": 3, "STATUS_ERROR": 4, } )
Enum value maps for Status.
View Source
var File_pkg_jsonpb_testing_testing_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Foo ¶
type Foo struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=testing.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Foo) Descriptor
deprecated
func (*Foo) GetTimestamp ¶
func (x *Foo) GetTimestamp() *timestamppb.Timestamp
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
type Status ¶
type Status int32
func StatusSimpleValueOf ¶
StatusSimpleValueOf returns the string format of Status
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) SimpleString ¶
SimpleString returns the string format of Status
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.