Documentation ¶
Index ¶
- Variables
- type Enum
- type Lists
- func (*Lists) Descriptor() ([]byte, []int)deprecated
- func (x *Lists) GetMessages() []*Singulars
- func (x *Lists) GetSingulars() []int32
- func (msg *Lists) LogValue() slog.Value
- func (*Lists) ProtoMessage()
- func (x *Lists) ProtoReflect() protoreflect.Message
- func (x *Lists) Reset()
- func (x *Lists) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetLatitude() float64
- func (x *Location) GetLongitude() float64
- func (msg *Location) LogValue() slog.Value
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type Maps
- func (*Maps) Descriptor() ([]byte, []int)deprecated
- func (x *Maps) GetBools() map[bool]string
- func (x *Maps) GetInts() map[int32]string
- func (x *Maps) GetStrings() map[string]string
- func (x *Maps) GetUints() map[uint32]string
- func (msg *Maps) LogValue() slog.Value
- func (*Maps) ProtoMessage()
- func (x *Maps) ProtoReflect() protoreflect.Message
- func (x *Maps) Reset()
- func (x *Maps) String() string
- type Oneof
- func (*Oneof) Descriptor() ([]byte, []int)deprecated
- func (x *Oneof) GetBool() bool
- func (x *Oneof) GetInt32() int32
- func (m *Oneof) GetO() isOneof_O
- func (msg *Oneof) LogValue() slog.Value
- func (*Oneof) ProtoMessage()
- func (x *Oneof) ProtoReflect() protoreflect.Message
- func (x *Oneof) Reset()
- func (x *Oneof) String() string
- type Oneof_Bool
- type Oneof_Int32
- type OuterNested
- type OuterNested_InnerNested
- func (*OuterNested_InnerNested) Descriptor() ([]byte, []int)deprecated
- func (msg *OuterNested_InnerNested) LogValue() slog.Value
- func (*OuterNested_InnerNested) ProtoMessage()
- func (x *OuterNested_InnerNested) ProtoReflect() protoreflect.Message
- func (x *OuterNested_InnerNested) Reset()
- func (x *OuterNested_InnerNested) String() string
- type PetType
- type Redaction
- type Singulars
- func (*Singulars) Descriptor() ([]byte, []int)deprecated
- func (x *Singulars) GetBool() bool
- func (x *Singulars) GetBytes() []byte
- func (x *Singulars) GetDouble() float64
- func (x *Singulars) GetEnum() Enum
- func (x *Singulars) GetFixed32() uint32
- func (x *Singulars) GetFixed64() uint64
- func (x *Singulars) GetFloat() float32
- func (x *Singulars) GetInt32() int32
- func (x *Singulars) GetInt64() int64
- func (x *Singulars) GetMessage() *Singulars
- func (x *Singulars) GetSfixed32() int32
- func (x *Singulars) GetSfixed64() int64
- func (x *Singulars) GetSint32() int32
- func (x *Singulars) GetSint64() int64
- func (x *Singulars) GetString_() string
- func (x *Singulars) GetUint32() uint32
- func (x *Singulars) GetUint64() uint64
- func (msg *Singulars) LogValue() slog.Value
- func (*Singulars) ProtoMessage()
- func (x *Singulars) ProtoReflect() protoreflect.Message
- func (x *Singulars) Reset()
- func (x *Singulars) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetBest_100MTime() *durationpb.Duration
- func (x *User) GetEmail() string
- func (x *User) GetHobbies() []string
- func (x *User) GetId() uint64
- func (x *User) GetLocation() *Location
- func (x *User) GetName() string
- func (x *User) GetPets() map[string]PetType
- func (x *User) GetUpdated() *timestamppb.Timestamp
- func (msg *User) LogValue() slog.Value
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PetType_name = map[int32]string{ 0: "PET_TYPE_UNSPECIFIED", 1: "PET_TYPE_DOG", 2: "PET_TYPE_CAT", } PetType_value = map[string]int32{ "PET_TYPE_UNSPECIFIED": 0, "PET_TYPE_DOG": 1, "PET_TYPE_CAT": 2, } )
Enum value maps for PetType.
View Source
var ( Enum_name = map[int32]string{ 0: "ENUM_UNSPECIFIED", 1: "ENUM_ONE", 2: "ENUM_TWO", } Enum_value = map[string]int32{ "ENUM_UNSPECIFIED": 0, "ENUM_ONE": 1, "ENUM_TWO": 2, } )
Enum value maps for Enum.
View Source
var File_example_proto protoreflect.FileDescriptor
View Source
var File_tests_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type Lists ¶
type Lists struct { Singulars []int32 `protobuf:"varint,1,rep,packed,name=singulars,proto3" json:"singulars,omitempty"` Messages []*Singulars `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*Lists) Descriptor
deprecated
func (*Lists) GetMessages ¶
func (*Lists) GetSingulars ¶
func (*Lists) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Lists) ProtoMessage ¶
func (*Lists) ProtoMessage()
func (*Lists) ProtoReflect ¶
func (x *Lists) ProtoReflect() protoreflect.Message
type Location ¶
type Location struct { Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type Maps ¶
type Maps struct { Bools map[bool]string `` /* 152-byte string literal not displayed */ Ints map[int32]string `` /* 150-byte string literal not displayed */ Uints map[uint32]string `` /* 152-byte string literal not displayed */ Strings map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Maps) Descriptor
deprecated
func (*Maps) GetStrings ¶
func (*Maps) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Maps) ProtoMessage ¶
func (*Maps) ProtoMessage()
func (*Maps) ProtoReflect ¶
func (x *Maps) ProtoReflect() protoreflect.Message
type Oneof ¶
type Oneof struct { // Types that are assignable to O: // // *Oneof_Bool // *Oneof_Int32 O isOneof_O `protobuf_oneof:"o"` // contains filtered or unexported fields }
func (*Oneof) Descriptor
deprecated
func (*Oneof) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Oneof) ProtoMessage ¶
func (*Oneof) ProtoMessage()
func (*Oneof) ProtoReflect ¶
func (x *Oneof) ProtoReflect() protoreflect.Message
type Oneof_Bool ¶
type Oneof_Bool struct {
Bool bool `protobuf:"varint,1,opt,name=bool,proto3,oneof"`
}
type Oneof_Int32 ¶
type Oneof_Int32 struct {
Int32 int32 `protobuf:"varint,2,opt,name=int32,proto3,oneof"`
}
type OuterNested ¶
type OuterNested struct {
// contains filtered or unexported fields
}
func (*OuterNested) Descriptor
deprecated
func (*OuterNested) Descriptor() ([]byte, []int)
Deprecated: Use OuterNested.ProtoReflect.Descriptor instead.
func (*OuterNested) LogValue ¶
func (msg *OuterNested) LogValue() slog.Value
LogValue satisfies the slog.LogValuer interface.
func (*OuterNested) ProtoMessage ¶
func (*OuterNested) ProtoMessage()
func (*OuterNested) ProtoReflect ¶
func (x *OuterNested) ProtoReflect() protoreflect.Message
func (*OuterNested) Reset ¶
func (x *OuterNested) Reset()
func (*OuterNested) String ¶
func (x *OuterNested) String() string
type OuterNested_InnerNested ¶
type OuterNested_InnerNested struct {
// contains filtered or unexported fields
}
func (*OuterNested_InnerNested) Descriptor
deprecated
func (*OuterNested_InnerNested) Descriptor() ([]byte, []int)
Deprecated: Use OuterNested_InnerNested.ProtoReflect.Descriptor instead.
func (*OuterNested_InnerNested) LogValue ¶
func (msg *OuterNested_InnerNested) LogValue() slog.Value
LogValue satisfies the slog.LogValuer interface.
func (*OuterNested_InnerNested) ProtoMessage ¶
func (*OuterNested_InnerNested) ProtoMessage()
func (*OuterNested_InnerNested) ProtoReflect ¶
func (x *OuterNested_InnerNested) ProtoReflect() protoreflect.Message
func (*OuterNested_InnerNested) Reset ¶
func (x *OuterNested_InnerNested) Reset()
func (*OuterNested_InnerNested) String ¶
func (x *OuterNested_InnerNested) String() string
type PetType ¶
type PetType int32
func (PetType) Descriptor ¶
func (PetType) Descriptor() protoreflect.EnumDescriptor
func (PetType) EnumDescriptor
deprecated
func (PetType) Number ¶
func (x PetType) Number() protoreflect.EnumNumber
func (PetType) Type ¶
func (PetType) Type() protoreflect.EnumType
type Redaction ¶
type Redaction struct { Val int32 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*Redaction) Descriptor
deprecated
func (*Redaction) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Redaction) ProtoMessage ¶
func (*Redaction) ProtoMessage()
func (*Redaction) ProtoReflect ¶
func (x *Redaction) ProtoReflect() protoreflect.Message
type Singulars ¶
type Singulars struct { Bool bool `protobuf:"varint,1,opt,name=bool,proto3" json:"bool,omitempty"` Float float32 `protobuf:"fixed32,2,opt,name=float,proto3" json:"float,omitempty"` Double float64 `protobuf:"fixed64,3,opt,name=double,proto3" json:"double,omitempty"` Bytes []byte `protobuf:"bytes,4,opt,name=bytes,proto3" json:"bytes,omitempty"` String_ string `protobuf:"bytes,5,opt,name=string,proto3" json:"string,omitempty"` Enum Enum `protobuf:"varint,6,opt,name=enum,proto3,enum=Enum" json:"enum,omitempty"` Int32 int32 `protobuf:"varint,7,opt,name=int32,proto3" json:"int32,omitempty"` Int64 int64 `protobuf:"varint,8,opt,name=int64,proto3" json:"int64,omitempty"` Sint32 int32 `protobuf:"zigzag32,9,opt,name=sint32,proto3" json:"sint32,omitempty"` Sint64 int64 `protobuf:"zigzag64,10,opt,name=sint64,proto3" json:"sint64,omitempty"` Sfixed32 int32 `protobuf:"fixed32,11,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"` Sfixed64 int64 `protobuf:"fixed64,12,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"` Uint32 uint32 `protobuf:"varint,13,opt,name=uint32,proto3" json:"uint32,omitempty"` Uint64 uint64 `protobuf:"varint,14,opt,name=uint64,proto3" json:"uint64,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"` Message *Singulars `protobuf:"bytes,17,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Singulars) Descriptor
deprecated
func (*Singulars) GetFixed32 ¶
func (*Singulars) GetFixed64 ¶
func (*Singulars) GetMessage ¶
func (*Singulars) GetSfixed32 ¶
func (*Singulars) GetSfixed64 ¶
func (*Singulars) GetString_ ¶
func (*Singulars) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*Singulars) ProtoMessage ¶
func (*Singulars) ProtoMessage()
func (*Singulars) ProtoReflect ¶
func (x *Singulars) ProtoReflect() protoreflect.Message
type User ¶
type User struct { Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Location *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` Hobbies []string `protobuf:"bytes,5,rep,name=hobbies,proto3" json:"hobbies,omitempty"` Pets map[string]PetType `` /* 163-byte string literal not displayed */ Updated *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated,proto3" json:"updated,omitempty"` Best_100MTime *durationpb.Duration `protobuf:"bytes,8,opt,name=best_100m_time,json=best100mTime,proto3" json:"best_100m_time,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBest_100MTime ¶
func (x *User) GetBest_100MTime() *durationpb.Duration
func (*User) GetHobbies ¶
func (*User) GetLocation ¶
func (*User) GetUpdated ¶
func (x *User) GetUpdated() *timestamppb.Timestamp
func (*User) LogValue ¶
LogValue satisfies the slog.LogValuer interface.
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.