protodemo

package
v0.0.0-...-124bb09 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protodecode_protodemo_demo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DecodeDemo

type DecodeDemo struct {
	Int64Value  int64                  `protobuf:"varint,1,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	StringValue string                 `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue  []byte                 `protobuf:"bytes,3,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	Timestamp   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Any         *anypb.Any             `protobuf:"bytes,5,opt,name=any,proto3" json:"any,omitempty"`
	// contains filtered or unexported fields
}

DecodeDemo contains many types to test decoding. See: https://developers.google.com/protocol-buffers/docs/proto3#scalar

func (*DecodeDemo) Descriptor deprecated

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

Deprecated: Use DecodeDemo.ProtoReflect.Descriptor instead.

func (*DecodeDemo) GetAny

func (x *DecodeDemo) GetAny() *anypb.Any

func (*DecodeDemo) GetBytesValue

func (x *DecodeDemo) GetBytesValue() []byte

func (*DecodeDemo) GetInt64Value

func (x *DecodeDemo) GetInt64Value() int64

func (*DecodeDemo) GetStringValue

func (x *DecodeDemo) GetStringValue() string

func (*DecodeDemo) GetTimestamp

func (x *DecodeDemo) GetTimestamp() *timestamppb.Timestamp

func (*DecodeDemo) ProtoMessage

func (*DecodeDemo) ProtoMessage()

func (*DecodeDemo) ProtoReflect

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

func (*DecodeDemo) Reset

func (x *DecodeDemo) Reset()

func (*DecodeDemo) String

func (x *DecodeDemo) String() string

Jump to

Keyboard shortcuts

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