Documentation ¶
Index ¶
- Variables
- func RegisterGeocodeServiceServer(s *grpc.Server, srv GeocodeServiceServer)
- func RegisterTimezoneServiceServer(s *grpc.Server, srv TimezoneServiceServer)
- type AdminLevel
- func (*AdminLevel) Descriptor() ([]byte, []int)deprecated
- func (x *AdminLevel) GetCode() string
- func (x *AdminLevel) GetLevel() int32
- func (x *AdminLevel) GetName() string
- func (*AdminLevel) ProtoMessage()
- func (x *AdminLevel) ProtoReflect() protoreflect.Message
- func (x *AdminLevel) Reset()
- func (x *AdminLevel) String() string
- type Bounds
- type Country
- type GeocodeServiceClient
- type GeocodeServiceServer
- type LatLng
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetAdminLevels() []*AdminLevel
- func (x *Location) GetBounds() *Bounds
- func (x *Location) GetComponents() map[string]string
- func (x *Location) GetCountry() *Country
- func (x *Location) GetFormattedAddress() string
- func (x *Location) GetId() string
- func (x *Location) GetLatLng() *LatLng
- func (x *Location) GetLocality() string
- func (x *Location) GetPostalCode() string
- func (x *Location) GetProvider() string
- func (x *Location) GetState() *State
- func (x *Location) GetStreetName() string
- func (x *Location) GetStreetNumber() string
- func (x *Location) GetSublocality() string
- func (x *Location) GetSublocalityLevels() []*SublocalityLevel
- func (x *Location) GetTimezone() string
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type LocationRequest
- func (*LocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LocationRequest) GetAddress() string
- func (x *LocationRequest) GetLatlng() *LatLng
- func (x *LocationRequest) GetProvider() string
- func (x *LocationRequest) GetQuery() map[string]string
- func (*LocationRequest) ProtoMessage()
- func (x *LocationRequest) ProtoReflect() protoreflect.Message
- func (x *LocationRequest) Reset()
- func (x *LocationRequest) String() string
- type LocationResponse
- func (*LocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LocationResponse) GetExists() bool
- func (x *LocationResponse) GetLocations() []*Location
- func (*LocationResponse) ProtoMessage()
- func (x *LocationResponse) ProtoReflect() protoreflect.Message
- func (x *LocationResponse) Reset()
- func (x *LocationResponse) String() string
- type State
- type SublocalityLevel
- func (*SublocalityLevel) Descriptor() ([]byte, []int)deprecated
- func (x *SublocalityLevel) GetLevel() int32
- func (x *SublocalityLevel) GetName() string
- func (*SublocalityLevel) ProtoMessage()
- func (x *SublocalityLevel) ProtoReflect() protoreflect.Message
- func (x *SublocalityLevel) Reset()
- func (x *SublocalityLevel) String() string
- type Timezone
- type TimezoneRequest
- type TimezoneServiceClient
- type TimezoneServiceServer
- type UnimplementedGeocodeServiceServer
- type UnimplementedTimezoneServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_geocoder_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGeocodeServiceServer ¶
func RegisterGeocodeServiceServer(s *grpc.Server, srv GeocodeServiceServer)
func RegisterTimezoneServiceServer ¶
func RegisterTimezoneServiceServer(s *grpc.Server, srv TimezoneServiceServer)
Types ¶
type AdminLevel ¶
type AdminLevel struct { Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*AdminLevel) Descriptor
deprecated
func (*AdminLevel) Descriptor() ([]byte, []int)
Deprecated: Use AdminLevel.ProtoReflect.Descriptor instead.
func (*AdminLevel) GetCode ¶
func (x *AdminLevel) GetCode() string
func (*AdminLevel) GetLevel ¶
func (x *AdminLevel) GetLevel() int32
func (*AdminLevel) GetName ¶
func (x *AdminLevel) GetName() string
func (*AdminLevel) ProtoMessage ¶
func (*AdminLevel) ProtoMessage()
func (*AdminLevel) ProtoReflect ¶
func (x *AdminLevel) ProtoReflect() protoreflect.Message
func (*AdminLevel) Reset ¶
func (x *AdminLevel) Reset()
func (*AdminLevel) String ¶
func (x *AdminLevel) String() string
type Bounds ¶
type Bounds struct { NorthEast *LatLng `protobuf:"bytes,1,opt,name=northEast,proto3" json:"northEast,omitempty"` SouthWest *LatLng `protobuf:"bytes,2,opt,name=southWest,proto3" json:"southWest,omitempty"` // contains filtered or unexported fields }
func (*Bounds) Descriptor
deprecated
func (*Bounds) GetNorthEast ¶
func (*Bounds) GetSouthWest ¶
func (*Bounds) ProtoMessage ¶
func (*Bounds) ProtoMessage()
func (*Bounds) ProtoReflect ¶
func (x *Bounds) ProtoReflect() protoreflect.Message
type Country ¶
type Country struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Country) Descriptor
deprecated
func (*Country) ProtoMessage ¶
func (*Country) ProtoMessage()
func (*Country) ProtoReflect ¶
func (x *Country) ProtoReflect() protoreflect.Message
type GeocodeServiceClient ¶
type GeocodeServiceClient interface {
Geocode(ctx context.Context, in *LocationRequest, opts ...grpc.CallOption) (*LocationResponse, error)
}
GeocodeServiceClient is the client API for GeocodeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGeocodeServiceClient ¶
func NewGeocodeServiceClient(cc grpc.ClientConnInterface) GeocodeServiceClient
type GeocodeServiceServer ¶
type GeocodeServiceServer interface { Geocode(context.Context, *LocationRequest) (*LocationResponse, error) // contains filtered or unexported methods }
GeocodeServiceServer is the server API for GeocodeService service. All implementations must embed UnimplementedGeocodeServiceServer for forward compatibility
type LatLng ¶
type LatLng struct { Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"` // contains filtered or unexported fields }
func (*LatLng) Descriptor
deprecated
func (*LatLng) ProtoMessage ¶
func (*LatLng) ProtoMessage()
func (*LatLng) ProtoReflect ¶
func (x *LatLng) ProtoReflect() protoreflect.Message
type Location ¶
type Location struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` FormattedAddress string `protobuf:"bytes,2,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"` StreetNumber string `protobuf:"bytes,4,opt,name=street_number,json=streetNumber,proto3" json:"street_number,omitempty"` StreetName string `protobuf:"bytes,5,opt,name=street_name,json=streetName,proto3" json:"street_name,omitempty"` Locality string `protobuf:"bytes,6,opt,name=locality,proto3" json:"locality,omitempty"` Sublocality string `protobuf:"bytes,7,opt,name=sublocality,proto3" json:"sublocality,omitempty"` Timezone string `protobuf:"bytes,8,opt,name=timezone,proto3" json:"timezone,omitempty"` PostalCode string `protobuf:"bytes,9,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` Id string `protobuf:"bytes,20,opt,name=id,proto3" json:"id,omitempty"` Country *Country `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` State *State `protobuf:"bytes,12,opt,name=state,proto3" json:"state,omitempty"` LatLng *LatLng `protobuf:"bytes,10,opt,name=latLng,proto3" json:"latLng,omitempty"` Bounds *Bounds `protobuf:"bytes,13,opt,name=bounds,proto3" json:"bounds,omitempty"` AdminLevels []*AdminLevel `protobuf:"bytes,11,rep,name=admin_levels,json=adminLevels,proto3" json:"admin_levels,omitempty"` SublocalityLevels []*SublocalityLevel `protobuf:"bytes,22,rep,name=sublocality_levels,json=sublocalityLevels,proto3" json:"sublocality_levels,omitempty"` Components map[string]string `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetAdminLevels ¶
func (x *Location) GetAdminLevels() []*AdminLevel
func (*Location) GetComponents ¶
func (*Location) GetCountry ¶
func (*Location) GetFormattedAddress ¶
func (*Location) GetLocality ¶
func (*Location) GetPostalCode ¶
func (*Location) GetProvider ¶
func (*Location) GetStreetName ¶
func (*Location) GetStreetNumber ¶
func (*Location) GetSublocality ¶
func (*Location) GetSublocalityLevels ¶
func (x *Location) GetSublocalityLevels() []*SublocalityLevel
func (*Location) GetTimezone ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type LocationRequest ¶
type LocationRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Latlng *LatLng `protobuf:"bytes,3,opt,name=latlng,proto3" json:"latlng,omitempty"` Query map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LocationRequest) Descriptor
deprecated
func (*LocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use LocationRequest.ProtoReflect.Descriptor instead.
func (*LocationRequest) GetAddress ¶
func (x *LocationRequest) GetAddress() string
func (*LocationRequest) GetLatlng ¶
func (x *LocationRequest) GetLatlng() *LatLng
func (*LocationRequest) GetProvider ¶
func (x *LocationRequest) GetProvider() string
func (*LocationRequest) GetQuery ¶
func (x *LocationRequest) GetQuery() map[string]string
func (*LocationRequest) ProtoMessage ¶
func (*LocationRequest) ProtoMessage()
func (*LocationRequest) ProtoReflect ¶
func (x *LocationRequest) ProtoReflect() protoreflect.Message
func (*LocationRequest) Reset ¶
func (x *LocationRequest) Reset()
func (*LocationRequest) String ¶
func (x *LocationRequest) String() string
type LocationResponse ¶
type LocationResponse struct { Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
func (*LocationResponse) Descriptor
deprecated
func (*LocationResponse) Descriptor() ([]byte, []int)
Deprecated: Use LocationResponse.ProtoReflect.Descriptor instead.
func (*LocationResponse) GetExists ¶
func (x *LocationResponse) GetExists() bool
func (*LocationResponse) GetLocations ¶
func (x *LocationResponse) GetLocations() []*Location
func (*LocationResponse) ProtoMessage ¶
func (*LocationResponse) ProtoMessage()
func (*LocationResponse) ProtoReflect ¶
func (x *LocationResponse) ProtoReflect() protoreflect.Message
func (*LocationResponse) Reset ¶
func (x *LocationResponse) Reset()
func (*LocationResponse) String ¶
func (x *LocationResponse) String() string
type State ¶
type State struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type SublocalityLevel ¶
type SublocalityLevel struct { Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SublocalityLevel) Descriptor
deprecated
func (*SublocalityLevel) Descriptor() ([]byte, []int)
Deprecated: Use SublocalityLevel.ProtoReflect.Descriptor instead.
func (*SublocalityLevel) GetLevel ¶
func (x *SublocalityLevel) GetLevel() int32
func (*SublocalityLevel) GetName ¶
func (x *SublocalityLevel) GetName() string
func (*SublocalityLevel) ProtoMessage ¶
func (*SublocalityLevel) ProtoMessage()
func (*SublocalityLevel) ProtoReflect ¶
func (x *SublocalityLevel) ProtoReflect() protoreflect.Message
func (*SublocalityLevel) Reset ¶
func (x *SublocalityLevel) Reset()
func (*SublocalityLevel) String ¶
func (x *SublocalityLevel) String() string
type Timezone ¶
type Timezone struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Timezone) Descriptor
deprecated
func (*Timezone) ProtoMessage ¶
func (*Timezone) ProtoMessage()
func (*Timezone) ProtoReflect ¶
func (x *Timezone) ProtoReflect() protoreflect.Message
type TimezoneRequest ¶
type TimezoneRequest struct { Latlng *LatLng `protobuf:"bytes,1,opt,name=latlng,proto3" json:"latlng,omitempty"` // contains filtered or unexported fields }
func (*TimezoneRequest) Descriptor
deprecated
func (*TimezoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimezoneRequest.ProtoReflect.Descriptor instead.
func (*TimezoneRequest) GetLatlng ¶
func (x *TimezoneRequest) GetLatlng() *LatLng
func (*TimezoneRequest) ProtoMessage ¶
func (*TimezoneRequest) ProtoMessage()
func (*TimezoneRequest) ProtoReflect ¶
func (x *TimezoneRequest) ProtoReflect() protoreflect.Message
func (*TimezoneRequest) Reset ¶
func (x *TimezoneRequest) Reset()
func (*TimezoneRequest) String ¶
func (x *TimezoneRequest) String() string
type TimezoneServiceClient ¶
type TimezoneServiceClient interface {
Lookup(ctx context.Context, in *TimezoneRequest, opts ...grpc.CallOption) (*Timezone, error)
}
TimezoneServiceClient is the client API for TimezoneService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTimezoneServiceClient ¶
func NewTimezoneServiceClient(cc grpc.ClientConnInterface) TimezoneServiceClient
type TimezoneServiceServer ¶
type TimezoneServiceServer interface { Lookup(context.Context, *TimezoneRequest) (*Timezone, error) // contains filtered or unexported methods }
TimezoneServiceServer is the server API for TimezoneService service. All implementations must embed UnimplementedTimezoneServiceServer for forward compatibility
type UnimplementedGeocodeServiceServer ¶
type UnimplementedGeocodeServiceServer struct { }
UnimplementedGeocodeServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedGeocodeServiceServer) Geocode ¶
func (*UnimplementedGeocodeServiceServer) Geocode(context.Context, *LocationRequest) (*LocationResponse, error)
type UnimplementedTimezoneServiceServer ¶
type UnimplementedTimezoneServiceServer struct { }
UnimplementedTimezoneServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedTimezoneServiceServer) Lookup ¶
func (*UnimplementedTimezoneServiceServer) Lookup(context.Context, *TimezoneRequest) (*Timezone, error)