Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetNumber() string
- func (x *Address) GetStreet() string
- func (x *Address) GetZipCode() int32
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetAddresses() []string
- func (x *Person) GetAge() int32
- func (x *Person) GetCreatedAt() int64
- func (x *Person) GetGeneratedAt() *timestamppb.Timestamp
- func (x *Person) GetName() string
- func (x *Person) GetPhones() []*Person_PhoneNumber
- func (x *Person) GetUpdatedAt() *timestamppb.Timestamp
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type Person_PhoneNumber
- func (*Person_PhoneNumber) Descriptor() ([]byte, []int)deprecated
- func (x *Person_PhoneNumber) GetCarriers() []string
- func (x *Person_PhoneNumber) GetNumber() int32
- func (x *Person_PhoneNumber) GetType() Person_PhoneType
- func (*Person_PhoneNumber) ProtoMessage()
- func (x *Person_PhoneNumber) ProtoReflect() protoreflect.Message
- func (x *Person_PhoneNumber) Reset()
- func (x *Person_PhoneNumber) String() string
- type Person_PhoneType
- func (Person_PhoneType) Descriptor() protoreflect.EnumDescriptor
- func (x Person_PhoneType) Enum() *Person_PhoneType
- func (Person_PhoneType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Person_PhoneType) Number() protoreflect.EnumNumber
- func (x Person_PhoneType) String() string
- func (Person_PhoneType) Type() protoreflect.EnumType
Constants ¶
View Source
const PARQUET_SCHEMA_ADDRESS = `message address {
optional binary street (UTF8);
optional binary number (UTF8);
optional int32 zip_code;
}
`
View Source
const PARQUET_SCHEMA_PERSON = `` /* 643-byte string literal not displayed */
Variables ¶
View Source
var ( Person_PhoneType_name = map[int32]string{ 0: "UNKNOWN", 1: "HOME", 2: "WORK", } Person_PhoneType_value = map[string]int32{ "UNKNOWN": 0, "HOME": 1, "WORK": 2, } )
Enum value maps for Person_PhoneType.
View Source
var File_examples_person_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Street string `protobuf:"bytes,1,opt,name=street,proto3" json:"street,omitempty"` Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` ZipCode int32 `protobuf:"varint,3,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"` Phones []*Person_PhoneNumber `protobuf:"bytes,4,rep,name=phones,proto3" json:"phones,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetAddresses ¶
func (*Person) GetCreatedAt ¶
func (*Person) GetGeneratedAt ¶
func (x *Person) GetGeneratedAt() *timestamppb.Timestamp
func (*Person) GetPhones ¶
func (x *Person) GetPhones() []*Person_PhoneNumber
func (*Person) GetUpdatedAt ¶
func (x *Person) GetUpdatedAt() *timestamppb.Timestamp
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type Person_PhoneNumber ¶
type Person_PhoneNumber struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Type Person_PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=examples.Person_PhoneType" json:"type,omitempty"` Carriers []string `protobuf:"bytes,3,rep,name=carriers,proto3" json:"carriers,omitempty"` // contains filtered or unexported fields }
func (*Person_PhoneNumber) Descriptor
deprecated
func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
Deprecated: Use Person_PhoneNumber.ProtoReflect.Descriptor instead.
func (*Person_PhoneNumber) GetCarriers ¶
func (x *Person_PhoneNumber) GetCarriers() []string
func (*Person_PhoneNumber) GetNumber ¶
func (x *Person_PhoneNumber) GetNumber() int32
func (*Person_PhoneNumber) GetType ¶
func (x *Person_PhoneNumber) GetType() Person_PhoneType
func (*Person_PhoneNumber) ProtoMessage ¶
func (*Person_PhoneNumber) ProtoMessage()
func (*Person_PhoneNumber) ProtoReflect ¶
func (x *Person_PhoneNumber) ProtoReflect() protoreflect.Message
func (*Person_PhoneNumber) Reset ¶
func (x *Person_PhoneNumber) Reset()
func (*Person_PhoneNumber) String ¶
func (x *Person_PhoneNumber) String() string
type Person_PhoneType ¶
type Person_PhoneType int32
const ( Person_UNKNOWN Person_PhoneType = 0 Person_HOME Person_PhoneType = 1 Person_WORK Person_PhoneType = 2 )
func (Person_PhoneType) Descriptor ¶
func (Person_PhoneType) Descriptor() protoreflect.EnumDescriptor
func (Person_PhoneType) Enum ¶
func (x Person_PhoneType) Enum() *Person_PhoneType
func (Person_PhoneType) EnumDescriptor
deprecated
func (Person_PhoneType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Person_PhoneType.Descriptor instead.
func (Person_PhoneType) Number ¶
func (x Person_PhoneType) Number() protoreflect.EnumNumber
func (Person_PhoneType) String ¶
func (x Person_PhoneType) String() string
func (Person_PhoneType) Type ¶
func (Person_PhoneType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.