marshalerpb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Choice_name = map[int32]string{
		0: "CHOICE_UNSPECIFIED",
		1: "CHOICE_ONE",
		2: "CHOICE_TWO",
		3: "CHOICE_THREE",
	}
	Choice_value = map[string]int32{
		"CHOICE_UNSPECIFIED": 0,
		"CHOICE_ONE":         1,
		"CHOICE_TWO":         2,
		"CHOICE_THREE":       3,
	}
)

Enum value maps for Choice.

View Source
var File_marshaler_marshaler_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Choice

type Choice int32
const (
	Choice_CHOICE_UNSPECIFIED Choice = 0
	Choice_CHOICE_ONE         Choice = 1
	Choice_CHOICE_TWO         Choice = 2
	Choice_CHOICE_THREE       Choice = 3
)

func (Choice) Descriptor

func (Choice) Descriptor() protoreflect.EnumDescriptor

func (Choice) Enum

func (x Choice) Enum() *Choice

func (Choice) EnumDescriptor deprecated

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

Deprecated: Use Choice.Descriptor instead.

func (Choice) Number

func (x Choice) Number() protoreflect.EnumNumber

func (Choice) String

func (x Choice) String() string

func (Choice) Type

func (Choice) Type() protoreflect.EnumType

type Marshaler

type Marshaler struct {
	Map      map[string]string `` /* 147-byte string literal not displayed */
	Array    []string          `protobuf:"bytes,2,rep,name=array,proto3" json:"array,omitempty"`
	Bool     bool              `protobuf:"varint,3,opt,name=bool,proto3" json:"bool,omitempty"`
	String_  string            `protobuf:"bytes,4,opt,name=string,proto3" json:"string,omitempty"`
	Bytes    []byte            `protobuf:"bytes,5,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Enum     Choice            `protobuf:"varint,6,opt,name=enum,proto3,enum=zapf.marshaler.Choice" json:"enum,omitempty"`
	Float    float32           `protobuf:"fixed32,7,opt,name=float,proto3" json:"float,omitempty"`
	Double   float64           `protobuf:"fixed64,8,opt,name=double,proto3" json:"double,omitempty"`
	Int32    int32             `protobuf:"varint,9,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64    int64             `protobuf:"varint,10,opt,name=int64,proto3" json:"int64,omitempty"`
	Uint32   uint32            `protobuf:"varint,11,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64   uint64            `protobuf:"varint,12,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Sint32   int32             `protobuf:"zigzag32,13,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sint64   int64             `protobuf:"zigzag64,14,opt,name=sint64,proto3" json:"sint64,omitempty"`
	Fixed32  uint32            `protobuf:"fixed32,15,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64  uint64            `protobuf:"fixed64,16,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32 int32             `protobuf:"fixed32,17,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Sfixed64 int64             `protobuf:"fixed64,18,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"`
	// Types that are assignable to Payload:
	//
	//	*Marshaler_Any
	//	*Marshaler_Message
	Payload isMarshaler_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*Marshaler) Descriptor deprecated

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

Deprecated: Use Marshaler.ProtoReflect.Descriptor instead.

func (*Marshaler) GetAny

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

func (*Marshaler) GetArray

func (x *Marshaler) GetArray() []string

func (*Marshaler) GetBool

func (x *Marshaler) GetBool() bool

func (*Marshaler) GetBytes

func (x *Marshaler) GetBytes() []byte

func (*Marshaler) GetDouble

func (x *Marshaler) GetDouble() float64

func (*Marshaler) GetEnum

func (x *Marshaler) GetEnum() Choice

func (*Marshaler) GetFixed32

func (x *Marshaler) GetFixed32() uint32

func (*Marshaler) GetFixed64

func (x *Marshaler) GetFixed64() uint64

func (*Marshaler) GetFloat

func (x *Marshaler) GetFloat() float32

func (*Marshaler) GetInt32

func (x *Marshaler) GetInt32() int32

func (*Marshaler) GetInt64

func (x *Marshaler) GetInt64() int64

func (*Marshaler) GetMap

func (x *Marshaler) GetMap() map[string]string

func (*Marshaler) GetMessage

func (x *Marshaler) GetMessage() *Message

func (*Marshaler) GetPayload

func (m *Marshaler) GetPayload() isMarshaler_Payload

func (*Marshaler) GetSfixed32

func (x *Marshaler) GetSfixed32() int32

func (*Marshaler) GetSfixed64

func (x *Marshaler) GetSfixed64() int64

func (*Marshaler) GetSint32

func (x *Marshaler) GetSint32() int32

func (*Marshaler) GetSint64

func (x *Marshaler) GetSint64() int64

func (*Marshaler) GetString_

func (x *Marshaler) GetString_() string

func (*Marshaler) GetUint32

func (x *Marshaler) GetUint32() uint32

func (*Marshaler) GetUint64

func (x *Marshaler) GetUint64() uint64

func (*Marshaler) ProtoMessage

func (*Marshaler) ProtoMessage()

func (*Marshaler) ProtoReflect

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

func (*Marshaler) Reset

func (x *Marshaler) Reset()

func (*Marshaler) String

func (x *Marshaler) String() string

type Marshaler_Any

type Marshaler_Any struct {
	Any *anypb.Any `protobuf:"bytes,19,opt,name=any,proto3,oneof"`
}

type Marshaler_Message

type Marshaler_Message struct {
	Message *Message `protobuf:"bytes,20,opt,name=message,proto3,oneof"`
}

type Message

type Message struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetText

func (x *Message) GetText() string

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

Jump to

Keyboard shortcuts

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