Documentation ¶
Index ¶
- Variables
- type Choice
- type Marshaler
- func (*Marshaler) Descriptor() ([]byte, []int)deprecated
- func (x *Marshaler) GetAny() *anypb.Any
- func (x *Marshaler) GetArray() []string
- func (x *Marshaler) GetBool() bool
- func (x *Marshaler) GetBytes() []byte
- func (x *Marshaler) GetDouble() float64
- func (x *Marshaler) GetEnum() Choice
- func (x *Marshaler) GetFixed32() uint32
- func (x *Marshaler) GetFixed64() uint64
- func (x *Marshaler) GetFloat() float32
- func (x *Marshaler) GetInt32() int32
- func (x *Marshaler) GetInt64() int64
- func (x *Marshaler) GetMap() map[string]string
- func (x *Marshaler) GetMessage() *Message
- func (m *Marshaler) GetPayload() isMarshaler_Payload
- func (x *Marshaler) GetSfixed32() int32
- func (x *Marshaler) GetSfixed64() int64
- func (x *Marshaler) GetSint32() int32
- func (x *Marshaler) GetSint64() int64
- func (x *Marshaler) GetString_() string
- func (x *Marshaler) GetUint32() uint32
- func (x *Marshaler) GetUint64() uint64
- func (*Marshaler) ProtoMessage()
- func (x *Marshaler) ProtoReflect() protoreflect.Message
- func (x *Marshaler) Reset()
- func (x *Marshaler) String() string
- type Marshaler_Any
- type Marshaler_Message
- type Message
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
func (Choice) Descriptor ¶
func (Choice) Descriptor() protoreflect.EnumDescriptor
func (Choice) EnumDescriptor
deprecated
func (Choice) Number ¶
func (x Choice) Number() protoreflect.EnumNumber
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) GetFixed32 ¶
func (*Marshaler) GetFixed64 ¶
func (*Marshaler) GetMessage ¶
func (*Marshaler) GetPayload ¶
func (m *Marshaler) GetPayload() isMarshaler_Payload
func (*Marshaler) GetSfixed32 ¶
func (*Marshaler) GetSfixed64 ¶
func (*Marshaler) GetString_ ¶
func (*Marshaler) ProtoMessage ¶
func (*Marshaler) ProtoMessage()
func (*Marshaler) ProtoReflect ¶
func (x *Marshaler) ProtoReflect() protoreflect.Message
type Marshaler_Any ¶
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) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.