message

package
v0.0.0-...-434faa1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_ONE",
		2: "TYPE_TWO",
	}
	Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_ONE":         1,
		"TYPE_TWO":         2,
	}
)

Enum value maps for Type.

View Source
var File_message_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Msg

type Msg struct {
	Type  Type                   `protobuf:"varint,1,opt,name=type,proto3,enum=message.Type" json:"type,omitempty"`
	Value string                 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Ts    *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=ts,proto3" json:"ts,omitempty"`
	Dur   *durationpb.Duration   `protobuf:"bytes,21,opt,name=dur,proto3" json:"dur,omitempty"`
	Obj   *structpb.Struct       `protobuf:"bytes,22,opt,name=obj,proto3" json:"obj,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetDur

func (x *Msg) GetDur() *durationpb.Duration

func (*Msg) GetObj

func (x *Msg) GetObj() *structpb.Struct

func (*Msg) GetTs

func (x *Msg) GetTs() *timestamppb.Timestamp

func (*Msg) GetType

func (x *Msg) GetType() Type

func (*Msg) GetValue

func (x *Msg) GetValue() string

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

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

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

type Type

type Type int32
const (
	Type_TYPE_UNSPECIFIED Type = 0
	Type_TYPE_ONE         Type = 1
	Type_TYPE_TWO         Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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