gen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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
const (
	Enum_ENUM_UNSPECIFIED Enum = 0
	Enum_ENUM_ONE         Enum = 1
	Enum_ENUM_TWO         Enum = 2
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Lists.ProtoReflect.Descriptor instead.

func (*Lists) GetMessages

func (x *Lists) GetMessages() []*Singulars

func (*Lists) GetSingulars

func (x *Lists) GetSingulars() []int32

func (*Lists) LogValue

func (msg *Lists) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Lists) ProtoMessage

func (*Lists) ProtoMessage()

func (*Lists) ProtoReflect

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

func (*Lists) Reset

func (x *Lists) Reset()

func (*Lists) String

func (x *Lists) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetLatitude

func (x *Location) GetLatitude() float64

func (*Location) GetLongitude

func (x *Location) GetLongitude() float64

func (*Location) LogValue

func (msg *Location) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Maps.ProtoReflect.Descriptor instead.

func (*Maps) GetBools

func (x *Maps) GetBools() map[bool]string

func (*Maps) GetInts

func (x *Maps) GetInts() map[int32]string

func (*Maps) GetStrings

func (x *Maps) GetStrings() map[string]string

func (*Maps) GetUints

func (x *Maps) GetUints() map[uint32]string

func (*Maps) LogValue

func (msg *Maps) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Maps) ProtoMessage

func (*Maps) ProtoMessage()

func (*Maps) ProtoReflect

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

func (*Maps) Reset

func (x *Maps) Reset()

func (*Maps) String

func (x *Maps) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Oneof.ProtoReflect.Descriptor instead.

func (*Oneof) GetBool

func (x *Oneof) GetBool() bool

func (*Oneof) GetInt32

func (x *Oneof) GetInt32() int32

func (*Oneof) GetO

func (m *Oneof) GetO() isOneof_O

func (*Oneof) LogValue

func (msg *Oneof) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Oneof) ProtoMessage

func (*Oneof) ProtoMessage()

func (*Oneof) ProtoReflect

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

func (*Oneof) Reset

func (x *Oneof) Reset()

func (*Oneof) String

func (x *Oneof) String() string

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
const (
	PetType_PET_TYPE_UNSPECIFIED PetType = 0
	PetType_PET_TYPE_DOG         PetType = 1
	PetType_PET_TYPE_CAT         PetType = 2
)

func (PetType) Descriptor

func (PetType) Descriptor() protoreflect.EnumDescriptor

func (PetType) Enum

func (x PetType) Enum() *PetType

func (PetType) EnumDescriptor deprecated

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

Deprecated: Use PetType.Descriptor instead.

func (PetType) Number

func (x PetType) Number() protoreflect.EnumNumber

func (PetType) String

func (x PetType) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Redaction.ProtoReflect.Descriptor instead.

func (*Redaction) GetVal

func (x *Redaction) GetVal() int32

func (*Redaction) LogValue

func (msg *Redaction) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Redaction) ProtoMessage

func (*Redaction) ProtoMessage()

func (*Redaction) ProtoReflect

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

func (*Redaction) Reset

func (x *Redaction) Reset()

func (*Redaction) String

func (x *Redaction) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Singulars.ProtoReflect.Descriptor instead.

func (*Singulars) GetBool

func (x *Singulars) GetBool() bool

func (*Singulars) GetBytes

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

func (*Singulars) GetDouble

func (x *Singulars) GetDouble() float64

func (*Singulars) GetEnum

func (x *Singulars) GetEnum() Enum

func (*Singulars) GetFixed32

func (x *Singulars) GetFixed32() uint32

func (*Singulars) GetFixed64

func (x *Singulars) GetFixed64() uint64

func (*Singulars) GetFloat

func (x *Singulars) GetFloat() float32

func (*Singulars) GetInt32

func (x *Singulars) GetInt32() int32

func (*Singulars) GetInt64

func (x *Singulars) GetInt64() int64

func (*Singulars) GetMessage

func (x *Singulars) GetMessage() *Singulars

func (*Singulars) GetSfixed32

func (x *Singulars) GetSfixed32() int32

func (*Singulars) GetSfixed64

func (x *Singulars) GetSfixed64() int64

func (*Singulars) GetSint32

func (x *Singulars) GetSint32() int32

func (*Singulars) GetSint64

func (x *Singulars) GetSint64() int64

func (*Singulars) GetString_

func (x *Singulars) GetString_() string

func (*Singulars) GetUint32

func (x *Singulars) GetUint32() uint32

func (*Singulars) GetUint64

func (x *Singulars) GetUint64() uint64

func (*Singulars) LogValue

func (msg *Singulars) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*Singulars) ProtoMessage

func (*Singulars) ProtoMessage()

func (*Singulars) ProtoReflect

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

func (*Singulars) Reset

func (x *Singulars) Reset()

func (*Singulars) String

func (x *Singulars) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetBest_100MTime

func (x *User) GetBest_100MTime() *durationpb.Duration

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetHobbies

func (x *User) GetHobbies() []string

func (*User) GetId

func (x *User) GetId() uint64

func (*User) GetLocation

func (x *User) GetLocation() *Location

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPets

func (x *User) GetPets() map[string]PetType

func (*User) GetUpdated

func (x *User) GetUpdated() *timestamppb.Timestamp

func (*User) LogValue

func (msg *User) LogValue() slog.Value

LogValue satisfies the slog.LogValuer interface.

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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