examples

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 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 added in v0.3.0

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 added in v0.3.0

This method has been deprecated.
func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetNumber added in v0.3.0

func (x *Address) GetNumber() string

func (*Address) GetStreet added in v0.3.0

func (x *Address) GetStreet() string

func (*Address) GetZipCode added in v0.3.0

func (x *Address) GetZipCode() int32

func (*Address) ProtoMessage added in v0.3.0

func (*Address) ProtoMessage()

func (*Address) ProtoReflect added in v0.3.0

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

func (*Address) Reset added in v0.3.0

func (x *Address) Reset()

func (*Address) String added in v0.3.0

func (x *Address) String() string

type Person added in v0.1.8

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 added in v0.1.8

This method has been deprecated.
func (*Person) Descriptor() ([]byte, []int)

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAddresses added in v0.1.8

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

func (*Person) GetAge added in v0.1.8

func (x *Person) GetAge() int32

func (*Person) GetCreatedAt added in v0.1.8

func (x *Person) GetCreatedAt() int64

func (*Person) GetGeneratedAt added in v0.1.8

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

func (*Person) GetName added in v0.1.8

func (x *Person) GetName() string

func (*Person) GetPhones added in v0.1.8

func (x *Person) GetPhones() []*Person_PhoneNumber

func (*Person) GetUpdatedAt added in v0.1.8

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

func (*Person) ProtoMessage added in v0.1.8

func (*Person) ProtoMessage()

func (*Person) ProtoReflect added in v0.1.8

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

func (*Person) Reset added in v0.1.8

func (x *Person) Reset()

func (*Person) String added in v0.1.8

func (x *Person) String() string

type Person_PhoneNumber added in v0.1.8

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 added in v0.1.8

This method has been deprecated.
func (*Person_PhoneNumber) Descriptor() ([]byte, []int)

Deprecated: Use Person_PhoneNumber.ProtoReflect.Descriptor instead.

func (*Person_PhoneNumber) GetCarriers added in v0.1.8

func (x *Person_PhoneNumber) GetCarriers() []string

func (*Person_PhoneNumber) GetNumber added in v0.1.8

func (x *Person_PhoneNumber) GetNumber() int32

func (*Person_PhoneNumber) GetType added in v0.1.8

func (x *Person_PhoneNumber) GetType() Person_PhoneType

func (*Person_PhoneNumber) ProtoMessage added in v0.1.8

func (*Person_PhoneNumber) ProtoMessage()

func (*Person_PhoneNumber) ProtoReflect added in v0.1.8

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

func (*Person_PhoneNumber) Reset added in v0.1.8

func (x *Person_PhoneNumber) Reset()

func (*Person_PhoneNumber) String added in v0.1.8

func (x *Person_PhoneNumber) String() string

type Person_PhoneType added in v0.1.8

type Person_PhoneType int32
const (
	Person_UNKNOWN Person_PhoneType = 0
	Person_HOME    Person_PhoneType = 1
	Person_WORK    Person_PhoneType = 2
)

func (Person_PhoneType) Descriptor added in v0.1.8

func (Person_PhoneType) Enum added in v0.1.8

func (Person_PhoneType) EnumDescriptor deprecated added in v0.1.8

This method has been deprecated.
func (Person_PhoneType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Person_PhoneType.Descriptor instead.

func (Person_PhoneType) Number added in v0.1.8

func (Person_PhoneType) String added in v0.1.8

func (x Person_PhoneType) String() string

func (Person_PhoneType) Type added in v0.1.8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL