examples

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetNumber

func (x *Address) GetNumber() string

func (*Address) GetStreet

func (x *Address) GetStreet() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() int32

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAddresses

func (x *Person) GetAddresses() []string

func (*Person) GetAge

func (x *Person) GetAge() int32

func (*Person) GetCreatedAt

func (x *Person) GetCreatedAt() int64

func (*Person) GetGeneratedAt

func (x *Person) GetGeneratedAt() *timestamppb.Timestamp

func (*Person) GetName

func (x *Person) GetName() string

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

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) Enum

func (Person_PhoneType) EnumDescriptor deprecated

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

Deprecated: Use Person_PhoneType.Descriptor instead.

func (Person_PhoneType) Number

func (Person_PhoneType) String

func (x Person_PhoneType) String() string

func (Person_PhoneType) Type

Jump to

Keyboard shortcuts

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