pb

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 4 Imported by: 4

README

TZF's Proto

Probuf define

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CompressMethod_name = map[int32]string{
		0: "Unknown",
		1: "Polyline",
	}
	CompressMethod_value = map[string]int32{
		"Unknown":  0,
		"Polyline": 1,
	}
)

Enum value maps for CompressMethod.

View Source
var File_pb_tzinfo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompressMethod added in v0.8.0

type CompressMethod int32
const (
	CompressMethod_Unknown  CompressMethod = 0
	CompressMethod_Polyline CompressMethod = 1 // https://developers.google.com/maps/documentation/utilities/polylinealgorithm
)

func (CompressMethod) Descriptor added in v0.8.0

func (CompressMethod) Enum added in v0.8.0

func (x CompressMethod) Enum() *CompressMethod

func (CompressMethod) EnumDescriptor deprecated added in v0.8.0

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

Deprecated: Use CompressMethod.Descriptor instead.

func (CompressMethod) Number added in v0.8.0

func (CompressMethod) String added in v0.8.0

func (x CompressMethod) String() string

func (CompressMethod) Type added in v0.8.0

type CompressedPolygon added in v0.8.0

type CompressedPolygon struct {
	Points []byte               `protobuf:"bytes,1,opt,name=points,proto3" json:"points,omitempty"`
	Holes  []*CompressedPolygon `protobuf:"bytes,2,rep,name=holes,proto3" json:"holes,omitempty"`
	// contains filtered or unexported fields
}

func (*CompressedPolygon) Descriptor deprecated added in v0.8.0

func (*CompressedPolygon) Descriptor() ([]byte, []int)

Deprecated: Use CompressedPolygon.ProtoReflect.Descriptor instead.

func (*CompressedPolygon) GetHoles added in v0.8.0

func (x *CompressedPolygon) GetHoles() []*CompressedPolygon

func (*CompressedPolygon) GetPoints added in v0.8.0

func (x *CompressedPolygon) GetPoints() []byte

func (*CompressedPolygon) ProtoMessage added in v0.8.0

func (*CompressedPolygon) ProtoMessage()

func (*CompressedPolygon) ProtoReflect added in v0.8.0

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

func (*CompressedPolygon) Reset added in v0.8.0

func (x *CompressedPolygon) Reset()

func (*CompressedPolygon) String added in v0.8.0

func (x *CompressedPolygon) String() string

type CompressedTimezone added in v0.8.0

type CompressedTimezone struct {
	Data []*CompressedPolygon `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Name string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

CompressedTimezonesItem designed for binary file as small as possible.

func (*CompressedTimezone) Descriptor deprecated added in v0.8.0

func (*CompressedTimezone) Descriptor() ([]byte, []int)

Deprecated: Use CompressedTimezone.ProtoReflect.Descriptor instead.

func (*CompressedTimezone) GetData added in v0.8.0

func (x *CompressedTimezone) GetData() []*CompressedPolygon

func (*CompressedTimezone) GetName added in v0.8.0

func (x *CompressedTimezone) GetName() string

func (*CompressedTimezone) ProtoMessage added in v0.8.0

func (*CompressedTimezone) ProtoMessage()

func (*CompressedTimezone) ProtoReflect added in v0.8.0

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

func (*CompressedTimezone) Reset added in v0.8.0

func (x *CompressedTimezone) Reset()

func (*CompressedTimezone) String added in v0.8.0

func (x *CompressedTimezone) String() string

type CompressedTimezones added in v0.8.0

type CompressedTimezones struct {
	Method    CompressMethod        `protobuf:"varint,1,opt,name=method,proto3,enum=pb.CompressMethod" json:"method,omitempty"`
	Timezones []*CompressedTimezone `protobuf:"bytes,2,rep,name=timezones,proto3" json:"timezones,omitempty"`
	// contains filtered or unexported fields
}

func (*CompressedTimezones) Descriptor deprecated added in v0.8.0

func (*CompressedTimezones) Descriptor() ([]byte, []int)

Deprecated: Use CompressedTimezones.ProtoReflect.Descriptor instead.

func (*CompressedTimezones) GetMethod added in v0.8.0

func (x *CompressedTimezones) GetMethod() CompressMethod

func (*CompressedTimezones) GetTimezones added in v0.8.0

func (x *CompressedTimezones) GetTimezones() []*CompressedTimezone

func (*CompressedTimezones) ProtoMessage added in v0.8.0

func (*CompressedTimezones) ProtoMessage()

func (*CompressedTimezones) ProtoReflect added in v0.8.0

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

func (*CompressedTimezones) Reset added in v0.8.0

func (x *CompressedTimezones) Reset()

func (*CompressedTimezones) String added in v0.8.0

func (x *CompressedTimezones) String() string

type Point

type Point struct {
	Lng float32 `protobuf:"fixed32,1,opt,name=lng,proto3" json:"lng,omitempty"`
	Lat float32 `protobuf:"fixed32,2,opt,name=lat,proto3" json:"lat,omitempty"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

func (*Point) Descriptor() ([]byte, []int)

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetLat

func (x *Point) GetLat() float32

func (*Point) GetLng

func (x *Point) GetLng() float32

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

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

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type Polygon

type Polygon struct {
	Points []*Point   `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	Holes  []*Polygon `protobuf:"bytes,2,rep,name=holes,proto3" json:"holes,omitempty"`
	// contains filtered or unexported fields
}

func (*Polygon) Descriptor deprecated

func (*Polygon) Descriptor() ([]byte, []int)

Deprecated: Use Polygon.ProtoReflect.Descriptor instead.

func (*Polygon) GetHoles added in v0.7.0

func (x *Polygon) GetHoles() []*Polygon

func (*Polygon) GetPoints

func (x *Polygon) GetPoints() []*Point

func (*Polygon) ProtoMessage

func (*Polygon) ProtoMessage()

func (*Polygon) ProtoReflect

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

func (*Polygon) Reset

func (x *Polygon) Reset()

func (*Polygon) String

func (x *Polygon) String() string

type Timezone

type Timezone struct {
	Polygons []*Polygon `protobuf:"bytes,1,rep,name=polygons,proto3" json:"polygons,omitempty"`
	Name     string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Timezone) Descriptor deprecated

func (*Timezone) Descriptor() ([]byte, []int)

Deprecated: Use Timezone.ProtoReflect.Descriptor instead.

func (*Timezone) GetName

func (x *Timezone) GetName() string

func (*Timezone) GetPolygons

func (x *Timezone) GetPolygons() []*Polygon

func (*Timezone) ProtoMessage

func (*Timezone) ProtoMessage()

func (*Timezone) ProtoReflect

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

func (*Timezone) Reset

func (x *Timezone) Reset()

func (*Timezone) String

func (x *Timezone) String() string

type Timezones

type Timezones struct {
	Timezones []*Timezone `protobuf:"bytes,1,rep,name=timezones,proto3" json:"timezones,omitempty"`
	Reuced    bool        `protobuf:"varint,2,opt,name=reuced,proto3" json:"reuced,omitempty"` // Reduced data will toggle neighbor search as plan b
	// contains filtered or unexported fields
}

func (*Timezones) Descriptor deprecated

func (*Timezones) Descriptor() ([]byte, []int)

Deprecated: Use Timezones.ProtoReflect.Descriptor instead.

func (*Timezones) GetReuced added in v0.8.0

func (x *Timezones) GetReuced() bool

func (*Timezones) GetTimezones

func (x *Timezones) GetTimezones() []*Timezone

func (*Timezones) ProtoMessage

func (*Timezones) ProtoMessage()

func (*Timezones) ProtoReflect

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

func (*Timezones) Reset

func (x *Timezones) Reset()

func (*Timezones) String

func (x *Timezones) String() string

Jump to

Keyboard shortcuts

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