Documentation
¶
Index ¶
- Variables
- func RegisterPlacesServer(s *grpc.Server, srv PlacesServer)
- type Circle
- type Int32Range
- type Place
- func (*Place) Descriptor() ([]byte, []int)deprecated
- func (x *Place) GetAddressComponents() []*Place_AddressComponent
- func (x *Place) GetAdrFormatAddress() string
- func (x *Place) GetAttributions() []*Place_Attribution
- func (x *Place) GetBusinessStatus() Place_BusinessStatus
- func (x *Place) GetCurbsidePickup() bool
- func (x *Place) GetCurrentOpeningHours() *Place_OpeningHours
- func (x *Place) GetCurrentSecondaryOpeningHours() []*Place_OpeningHours
- func (x *Place) GetDelivery() bool
- func (x *Place) GetDineIn() bool
- func (x *Place) GetDisplayName() *localized_text.LocalizedText
- func (x *Place) GetEditorialSummary() *Place_EditorialSummary
- func (x *Place) GetFormattedAddress() string
- func (x *Place) GetGoogleMapsUri() string
- func (x *Place) GetIconBackgroundColor() string
- func (x *Place) GetIconMaskBaseUri() string
- func (x *Place) GetId() string
- func (x *Place) GetInternationalPhoneNumber() string
- func (x *Place) GetLocation() *latlng.LatLng
- func (x *Place) GetNationalPhoneNumber() string
- func (x *Place) GetOpeningHours() *Place_OpeningHours
- func (x *Place) GetPlusCode() *Place_PlusCode
- func (x *Place) GetPriceLevel() PriceLevel
- func (x *Place) GetRating() float64
- func (x *Place) GetReservable() bool
- func (x *Place) GetReviews() []*Place_Review
- func (x *Place) GetSecondaryOpeningHours() []*Place_OpeningHours
- func (x *Place) GetServesBeer() bool
- func (x *Place) GetServesBreakfast() bool
- func (x *Place) GetServesBrunch() bool
- func (x *Place) GetServesDinner() bool
- func (x *Place) GetServesLunch() bool
- func (x *Place) GetServesVegetarianFood() bool
- func (x *Place) GetServesWine() bool
- func (x *Place) GetTakeout() bool
- func (x *Place) GetTypes() []string
- func (x *Place) GetUserRatingCount() int32
- func (x *Place) GetUtcOffsetMinutes() int32
- func (x *Place) GetViewport() *viewport.Viewport
- func (x *Place) GetWebsiteUri() string
- func (x *Place) GetWheelchairAccessibleEntrance() bool
- func (*Place) ProtoMessage()
- func (x *Place) ProtoReflect() protoreflect.Message
- func (x *Place) Reset()
- func (x *Place) String() string
- type Place_AddressComponent
- func (*Place_AddressComponent) Descriptor() ([]byte, []int)deprecated
- func (x *Place_AddressComponent) GetLanguageCode() string
- func (x *Place_AddressComponent) GetLongText() string
- func (x *Place_AddressComponent) GetShortText() string
- func (x *Place_AddressComponent) GetTypes() []string
- func (*Place_AddressComponent) ProtoMessage()
- func (x *Place_AddressComponent) ProtoReflect() protoreflect.Message
- func (x *Place_AddressComponent) Reset()
- func (x *Place_AddressComponent) String() string
- type Place_Attribution
- func (*Place_Attribution) Descriptor() ([]byte, []int)deprecated
- func (x *Place_Attribution) GetProvider() string
- func (x *Place_Attribution) GetProviderUri() string
- func (*Place_Attribution) ProtoMessage()
- func (x *Place_Attribution) ProtoReflect() protoreflect.Message
- func (x *Place_Attribution) Reset()
- func (x *Place_Attribution) String() string
- type Place_BusinessStatus
- func (Place_BusinessStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Place_BusinessStatus) Enum() *Place_BusinessStatus
- func (Place_BusinessStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Place_BusinessStatus) Number() protoreflect.EnumNumber
- func (x Place_BusinessStatus) String() string
- func (Place_BusinessStatus) Type() protoreflect.EnumType
- type Place_EditorialSummary
- func (*Place_EditorialSummary) Descriptor() ([]byte, []int)deprecated
- func (x *Place_EditorialSummary) GetOverview() *localized_text.LocalizedText
- func (*Place_EditorialSummary) ProtoMessage()
- func (x *Place_EditorialSummary) ProtoReflect() protoreflect.Message
- func (x *Place_EditorialSummary) Reset()
- func (x *Place_EditorialSummary) String() string
- type Place_OpeningHours
- func (*Place_OpeningHours) Descriptor() ([]byte, []int)deprecated
- func (x *Place_OpeningHours) GetOpenNow() bool
- func (x *Place_OpeningHours) GetPeriods() []*Place_OpeningHours_OpeningHoursPeriod
- func (x *Place_OpeningHours) GetSecondaryHourType() Place_OpeningHours_SecondaryHourType
- func (x *Place_OpeningHours) GetSpecialDays() []*Place_OpeningHours_SpecialDay
- func (x *Place_OpeningHours) GetWeekdayDescriptions() []string
- func (*Place_OpeningHours) ProtoMessage()
- func (x *Place_OpeningHours) ProtoReflect() protoreflect.Message
- func (x *Place_OpeningHours) Reset()
- func (x *Place_OpeningHours) String() string
- type Place_OpeningHours_OpeningHoursPeriod
- func (*Place_OpeningHours_OpeningHoursPeriod) Descriptor() ([]byte, []int)deprecated
- func (x *Place_OpeningHours_OpeningHoursPeriod) GetClose() *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint
- func (x *Place_OpeningHours_OpeningHoursPeriod) GetOpen() *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint
- func (*Place_OpeningHours_OpeningHoursPeriod) ProtoMessage()
- func (x *Place_OpeningHours_OpeningHoursPeriod) ProtoReflect() protoreflect.Message
- func (x *Place_OpeningHours_OpeningHoursPeriod) Reset()
- func (x *Place_OpeningHours_OpeningHoursPeriod) String() string
- type Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint
- func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Descriptor() ([]byte, []int)deprecated
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDate() *date.Date
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDateDeprecated() stringdeprecated
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDay() int32
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetHour() int32
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetMinute() int32
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetTruncated() bool
- func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoMessage()
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoReflect() protoreflect.Message
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Reset()
- func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) String() string
- type Place_OpeningHours_SecondaryHourType
- func (Place_OpeningHours_SecondaryHourType) Descriptor() protoreflect.EnumDescriptor
- func (x Place_OpeningHours_SecondaryHourType) Enum() *Place_OpeningHours_SecondaryHourType
- func (Place_OpeningHours_SecondaryHourType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Place_OpeningHours_SecondaryHourType) Number() protoreflect.EnumNumber
- func (x Place_OpeningHours_SecondaryHourType) String() string
- func (Place_OpeningHours_SecondaryHourType) Type() protoreflect.EnumType
- type Place_OpeningHours_SpecialDay
- func (*Place_OpeningHours_SpecialDay) Descriptor() ([]byte, []int)deprecated
- func (x *Place_OpeningHours_SpecialDay) GetDate() *date.Date
- func (*Place_OpeningHours_SpecialDay) ProtoMessage()
- func (x *Place_OpeningHours_SpecialDay) ProtoReflect() protoreflect.Message
- func (x *Place_OpeningHours_SpecialDay) Reset()
- func (x *Place_OpeningHours_SpecialDay) String() string
- type Place_PlusCode
- func (*Place_PlusCode) Descriptor() ([]byte, []int)deprecated
- func (x *Place_PlusCode) GetCompoundCode() string
- func (x *Place_PlusCode) GetGlobalCode() string
- func (*Place_PlusCode) ProtoMessage()
- func (x *Place_PlusCode) ProtoReflect() protoreflect.Message
- func (x *Place_PlusCode) Reset()
- func (x *Place_PlusCode) String() string
- type Place_Review
- func (*Place_Review) Descriptor() ([]byte, []int)deprecated
- func (x *Place_Review) GetAuthor() string
- func (x *Place_Review) GetAuthorPhotoUri() string
- func (x *Place_Review) GetAuthorUri() string
- func (x *Place_Review) GetOriginalLanguageCode() string
- func (x *Place_Review) GetPublishTime() *timestamppb.Timestamp
- func (x *Place_Review) GetRating() float64
- func (x *Place_Review) GetRelativePublishTimeDescription() string
- func (x *Place_Review) GetText() *localized_text.LocalizedText
- func (x *Place_Review) GetTranslated() bool
- func (*Place_Review) ProtoMessage()
- func (x *Place_Review) ProtoReflect() protoreflect.Message
- func (x *Place_Review) Reset()
- func (x *Place_Review) String() string
- type PlacesClient
- type PlacesServer
- type PriceLevel
- type SearchTextRequest
- func (*SearchTextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchTextRequest) GetIncludedType() string
- func (x *SearchTextRequest) GetLanguageCode() string
- func (x *SearchTextRequest) GetLocation() *SearchTextRequest_Locationdeprecated
- func (x *SearchTextRequest) GetLocationBias() *SearchTextRequest_LocationBias
- func (x *SearchTextRequest) GetLocationRestriction() *SearchTextRequest_LocationRestriction
- func (x *SearchTextRequest) GetMaxResultCount() int32
- func (x *SearchTextRequest) GetMinRating() float64
- func (x *SearchTextRequest) GetOpenNow() bool
- func (x *SearchTextRequest) GetPriceLevels() []PriceLevel
- func (x *SearchTextRequest) GetPriceRange() *Int32Rangedeprecated
- func (x *SearchTextRequest) GetRankPreference() SearchTextRequest_RankPreference
- func (x *SearchTextRequest) GetRegionCode() string
- func (x *SearchTextRequest) GetStrictTypeFiltering() bool
- func (x *SearchTextRequest) GetTextQuery() string
- func (*SearchTextRequest) ProtoMessage()
- func (x *SearchTextRequest) ProtoReflect() protoreflect.Message
- func (x *SearchTextRequest) Reset()
- func (x *SearchTextRequest) String() string
- type SearchTextRequest_Location
- func (*SearchTextRequest_Location) Descriptor() ([]byte, []int)deprecated
- func (x *SearchTextRequest_Location) GetRectangle() *viewport.Viewport
- func (x *SearchTextRequest_Location) GetStrictRestriction() bool
- func (m *SearchTextRequest_Location) GetType() isSearchTextRequest_Location_Type
- func (*SearchTextRequest_Location) ProtoMessage()
- func (x *SearchTextRequest_Location) ProtoReflect() protoreflect.Message
- func (x *SearchTextRequest_Location) Reset()
- func (x *SearchTextRequest_Location) String() string
- type SearchTextRequest_LocationBias
- func (*SearchTextRequest_LocationBias) Descriptor() ([]byte, []int)deprecated
- func (x *SearchTextRequest_LocationBias) GetCircle() *Circle
- func (x *SearchTextRequest_LocationBias) GetRectangle() *viewport.Viewport
- func (m *SearchTextRequest_LocationBias) GetType() isSearchTextRequest_LocationBias_Type
- func (*SearchTextRequest_LocationBias) ProtoMessage()
- func (x *SearchTextRequest_LocationBias) ProtoReflect() protoreflect.Message
- func (x *SearchTextRequest_LocationBias) Reset()
- func (x *SearchTextRequest_LocationBias) String() string
- type SearchTextRequest_LocationBias_Circle
- type SearchTextRequest_LocationBias_Rectangle
- type SearchTextRequest_LocationRestriction
- func (*SearchTextRequest_LocationRestriction) Descriptor() ([]byte, []int)deprecated
- func (x *SearchTextRequest_LocationRestriction) GetRectangle() *viewport.Viewport
- func (m *SearchTextRequest_LocationRestriction) GetType() isSearchTextRequest_LocationRestriction_Type
- func (*SearchTextRequest_LocationRestriction) ProtoMessage()
- func (x *SearchTextRequest_LocationRestriction) ProtoReflect() protoreflect.Message
- func (x *SearchTextRequest_LocationRestriction) Reset()
- func (x *SearchTextRequest_LocationRestriction) String() string
- type SearchTextRequest_LocationRestriction_Rectangle
- type SearchTextRequest_Location_Rectangle
- type SearchTextRequest_RankPreference
- func (SearchTextRequest_RankPreference) Descriptor() protoreflect.EnumDescriptor
- func (x SearchTextRequest_RankPreference) Enum() *SearchTextRequest_RankPreference
- func (SearchTextRequest_RankPreference) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchTextRequest_RankPreference) Number() protoreflect.EnumNumber
- func (x SearchTextRequest_RankPreference) String() string
- func (SearchTextRequest_RankPreference) Type() protoreflect.EnumType
- type SearchTextResponse
- func (*SearchTextResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchTextResponse) GetPlaces() []*Place
- func (*SearchTextResponse) ProtoMessage()
- func (x *SearchTextResponse) ProtoReflect() protoreflect.Message
- func (x *SearchTextResponse) Reset()
- func (x *SearchTextResponse) String() string
- type UnimplementedPlacesServer
Constants ¶
This section is empty.
Variables ¶
var ( PriceLevel_name = map[int32]string{ 0: "PRICE_LEVEL_UNSPECIFIED", 1: "FREE", 2: "INEXPENSIVE", 3: "MODERATE", 4: "EXPENSIVE", 5: "VERY_EXPENSIVE", } PriceLevel_value = map[string]int32{ "PRICE_LEVEL_UNSPECIFIED": 0, "FREE": 1, "INEXPENSIVE": 2, "MODERATE": 3, "EXPENSIVE": 4, "VERY_EXPENSIVE": 5, } )
Enum value maps for PriceLevel.
var ( Place_BusinessStatus_name = map[int32]string{ 0: "BUSINESS_STATUS_UNSPECIFIED", 1: "OPERATIONAL", 2: "CLOSED_TEMPORARILY", 3: "CLOSED_PERMANENTLY", } Place_BusinessStatus_value = map[string]int32{ "BUSINESS_STATUS_UNSPECIFIED": 0, "OPERATIONAL": 1, "CLOSED_TEMPORARILY": 2, "CLOSED_PERMANENTLY": 3, } )
Enum value maps for Place_BusinessStatus.
var ( Place_OpeningHours_SecondaryHourType_name = map[int32]string{ 0: "SECONDARY_HOUR_TYPE_UNSPECIFIED", 1: "DRIVE_THROUGH", 2: "HAPPY_HOUR", 3: "DELIVERY", 4: "TAKEOUT", 5: "KITCHEN", 6: "BREAKFAST", 7: "LUNCH", 8: "DINNER", 9: "BRUNCH", 10: "PICKUP", 11: "ACCESS", 12: "SENIOR_HOURS", 13: "ONLINE_SERVICE_HOURS", } Place_OpeningHours_SecondaryHourType_value = map[string]int32{ "SECONDARY_HOUR_TYPE_UNSPECIFIED": 0, "DRIVE_THROUGH": 1, "HAPPY_HOUR": 2, "DELIVERY": 3, "TAKEOUT": 4, "KITCHEN": 5, "BREAKFAST": 6, "LUNCH": 7, "DINNER": 8, "BRUNCH": 9, "PICKUP": 10, "ACCESS": 11, "SENIOR_HOURS": 12, "ONLINE_SERVICE_HOURS": 13, } )
Enum value maps for Place_OpeningHours_SecondaryHourType.
var ( SearchTextRequest_RankPreference_name = map[int32]string{ 0: "RANK_PREFERENCE_UNSPECIFIED", 1: "DISTANCE", 2: "RELEVANCE", } SearchTextRequest_RankPreference_value = map[string]int32{ "RANK_PREFERENCE_UNSPECIFIED": 0, "DISTANCE": 1, "RELEVANCE": 2, } )
Enum value maps for SearchTextRequest_RankPreference.
var File_google_maps_places_v1_geometry_proto protoreflect.FileDescriptor
var File_google_maps_places_v1_place_proto protoreflect.FileDescriptor
var File_google_maps_places_v1_places_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPlacesServer ¶
func RegisterPlacesServer(s *grpc.Server, srv PlacesServer)
Types ¶
type Circle ¶
type Circle struct { // Required. Center latitude and longitude. // // The range of latitude must be within `[-90.0, 90.0]`. The range of the // longitude must be within `[-180.0, 180.0]`. Center *latlng.LatLng `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` // Required. Radius measured in meters. The radius must be within `[0.0, // 50000.0]`. Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"` // contains filtered or unexported fields }
Circle with a LatLng as center and radius.
func (*Circle) Descriptor
deprecated
func (*Circle) ProtoMessage ¶
func (*Circle) ProtoMessage()
func (*Circle) ProtoReflect ¶
func (x *Circle) ProtoReflect() protoreflect.Message
type Int32Range ¶
type Int32Range struct { // Lower bound. If unset, behavior is documented on the range field. Min *int32 `protobuf:"varint,1,opt,name=min,proto3,oneof" json:"min,omitempty"` // Upper bound. If unset, behavior is documented on the range field. Max *int32 `protobuf:"varint,2,opt,name=max,proto3,oneof" json:"max,omitempty"` // contains filtered or unexported fields }
int 32 range. Both min and max are optional. If only min is set, then the range only has a lower bound. If only max is set, then range only has an upper bound. At least one of min and max must be set. Values are inclusive.
func (*Int32Range) Descriptor
deprecated
func (*Int32Range) Descriptor() ([]byte, []int)
Deprecated: Use Int32Range.ProtoReflect.Descriptor instead.
func (*Int32Range) GetMax ¶
func (x *Int32Range) GetMax() int32
func (*Int32Range) GetMin ¶
func (x *Int32Range) GetMin() int32
func (*Int32Range) ProtoMessage ¶
func (*Int32Range) ProtoMessage()
func (*Int32Range) ProtoReflect ¶
func (x *Int32Range) ProtoReflect() protoreflect.Message
func (*Int32Range) Reset ¶
func (x *Int32Range) Reset()
func (*Int32Range) String ¶
func (x *Int32Range) String() string
type Place ¶
type Place struct { // Required. The unique identifier of a place. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // The localized name of the place, suitable as a short human-readable // description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc. DisplayName *localized_text.LocalizedText `protobuf:"bytes,31,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // A set of type tags for this result. For example, "political" and // "locality". Types []string `protobuf:"bytes,5,rep,name=types,proto3" json:"types,omitempty"` // A human-readable phone number for the place, in national format. NationalPhoneNumber string `protobuf:"bytes,7,opt,name=national_phone_number,json=nationalPhoneNumber,proto3" json:"national_phone_number,omitempty"` // A human-readable phone number for the place, in international format. InternationalPhoneNumber string `` /* 135-byte string literal not displayed */ // A full, human-readable address for this place. FormattedAddress string `protobuf:"bytes,9,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"` // Repeated components for each locality level. AddressComponents []*Place_AddressComponent `protobuf:"bytes,10,rep,name=address_components,json=addressComponents,proto3" json:"address_components,omitempty"` // Plus code of the place location lat/long. PlusCode *Place_PlusCode `protobuf:"bytes,11,opt,name=plus_code,json=plusCode,proto3" json:"plus_code,omitempty"` // The position of this place. Location *latlng.LatLng `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty"` // A viewport suitable for displaying the place on an average-sized map. Viewport *viewport.Viewport `protobuf:"bytes,13,opt,name=viewport,proto3" json:"viewport,omitempty"` // A rating between 1.0 and 5.0, based on user reviews of this place. Rating float64 `protobuf:"fixed64,14,opt,name=rating,proto3" json:"rating,omitempty"` // A URL providing more information about this place. GoogleMapsUri string `protobuf:"bytes,15,opt,name=google_maps_uri,json=googleMapsUri,proto3" json:"google_maps_uri,omitempty"` // The authoritative website for this place, e.g. a business' homepage. // Note that for places that are part of a chain (e.g. an IKEA store), this // will usually be the website for the individual store, not the overall // chain. WebsiteUri string `protobuf:"bytes,16,opt,name=website_uri,json=websiteUri,proto3" json:"website_uri,omitempty"` // List of reviews about this place. Reviews []*Place_Review `protobuf:"bytes,20,rep,name=reviews,proto3" json:"reviews,omitempty"` // The regular hours of operation. OpeningHours *Place_OpeningHours `protobuf:"bytes,21,opt,name=opening_hours,json=openingHours,proto3" json:"opening_hours,omitempty"` // Number of minutes this place's timezone is currently offset from UTC. // This is expressed in minutes to support timezones that are offset by // fractions of an hour, e.g. X hours and 15 minutes. UtcOffsetMinutes int32 `protobuf:"varint,22,opt,name=utc_offset_minutes,json=utcOffsetMinutes,proto3" json:"utc_offset_minutes,omitempty"` // The place's address in adr microformat: http://microformats.org/wiki/adr. AdrFormatAddress string `protobuf:"bytes,24,opt,name=adr_format_address,json=adrFormatAddress,proto3" json:"adr_format_address,omitempty"` // The business status for the place. BusinessStatus Place_BusinessStatus `` /* 153-byte string literal not displayed */ // Price level of the place. PriceLevel PriceLevel `` /* 131-byte string literal not displayed */ // A set of data provider that must be shown with this result. Attributions []*Place_Attribution `protobuf:"bytes,27,rep,name=attributions,proto3" json:"attributions,omitempty"` // The total number of reviews (with or without text) for this place. UserRatingCount int32 `protobuf:"varint,28,opt,name=user_rating_count,json=userRatingCount,proto3" json:"user_rating_count,omitempty"` // A truncated URL to an v2 icon mask. User can access different icon type by // appending type suffix to the end (eg, ".svg" or ".png"). IconMaskBaseUri string `protobuf:"bytes,29,opt,name=icon_mask_base_uri,json=iconMaskBaseUri,proto3" json:"icon_mask_base_uri,omitempty"` // Background color for icon_mask in hex format, e.g. #909CE1. IconBackgroundColor string `protobuf:"bytes,30,opt,name=icon_background_color,json=iconBackgroundColor,proto3" json:"icon_background_color,omitempty"` // Specifies if the business supports takeout. Takeout *bool `protobuf:"varint,33,opt,name=takeout,proto3,oneof" json:"takeout,omitempty"` // Specifies if the business supports delivery. Delivery *bool `protobuf:"varint,34,opt,name=delivery,proto3,oneof" json:"delivery,omitempty"` // Specifies if the business supports indoor or outdoor seating options. DineIn *bool `protobuf:"varint,35,opt,name=dine_in,json=dineIn,proto3,oneof" json:"dine_in,omitempty"` // Specifies if the business supports curbside pickup. CurbsidePickup *bool `protobuf:"varint,36,opt,name=curbside_pickup,json=curbsidePickup,proto3,oneof" json:"curbside_pickup,omitempty"` // Specifies if the place has an entrance that is wheelchair-accessible. WheelchairAccessibleEntrance *bool `` /* 155-byte string literal not displayed */ // Specifies if the place supports reservations. Reservable *bool `protobuf:"varint,38,opt,name=reservable,proto3,oneof" json:"reservable,omitempty"` // Specifies if the place serves breakfast. ServesBreakfast *bool `protobuf:"varint,39,opt,name=serves_breakfast,json=servesBreakfast,proto3,oneof" json:"serves_breakfast,omitempty"` // Specifies if the place serves lunch. ServesLunch *bool `protobuf:"varint,40,opt,name=serves_lunch,json=servesLunch,proto3,oneof" json:"serves_lunch,omitempty"` // Specifies if the place serves dinner. ServesDinner *bool `protobuf:"varint,41,opt,name=serves_dinner,json=servesDinner,proto3,oneof" json:"serves_dinner,omitempty"` // Specifies if the place serves beer. ServesBeer *bool `protobuf:"varint,42,opt,name=serves_beer,json=servesBeer,proto3,oneof" json:"serves_beer,omitempty"` // Specifies if the place serves wine. ServesWine *bool `protobuf:"varint,43,opt,name=serves_wine,json=servesWine,proto3,oneof" json:"serves_wine,omitempty"` // Specifies if the place serves brunch. ServesBrunch *bool `protobuf:"varint,44,opt,name=serves_brunch,json=servesBrunch,proto3,oneof" json:"serves_brunch,omitempty"` // Specifies if the place serves vegetarian food. ServesVegetarianFood *bool `` /* 131-byte string literal not displayed */ // The hours of operation for the next seven days (including today). The time // period starts at midnight on the date of the request and ends at 11:59 pm // six days later. This field includes the special_days subfield of all hours, // set for dates that have exceptional hours. CurrentOpeningHours *Place_OpeningHours `protobuf:"bytes,46,opt,name=current_opening_hours,json=currentOpeningHours,proto3" json:"current_opening_hours,omitempty"` // Contains an array of entries for the next seven days including information // about secondary hours of a business. Secondary hours are different from a // business's main hours. For example, a restaurant can specify drive through // hours or delivery hours as its secondary hours. This field populates the // type subfield, which draws from a predefined list of opening hours types // (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the // place. This field includes the special_days subfield of all hours, set for // dates that have exceptional hours. CurrentSecondaryOpeningHours []*Place_OpeningHours `` /* 150-byte string literal not displayed */ // Contains an array of entries for information about regular secondary hours // of a business. Secondary hours are different from a business's main hours. // For example, a restaurant can specify drive through hours or delivery hours // as its secondary hours. This field populates the type subfield, which draws // from a predefined list of opening hours types (such as DRIVE_THROUGH, // PICKUP, or TAKEOUT) based on the types of the place. SecondaryOpeningHours []*Place_OpeningHours `` /* 127-byte string literal not displayed */ // Contains a summary of the place. A summary is comprised of a textual // overview, and also includes the language code for these if applicable. // Summary text must be presented as-is and can not be modified or altered. EditorialSummary *Place_EditorialSummary `protobuf:"bytes,48,opt,name=editorial_summary,json=editorialSummary,proto3" json:"editorial_summary,omitempty"` // contains filtered or unexported fields }
All the information representing a Place.
func (*Place) Descriptor
deprecated
func (*Place) GetAddressComponents ¶
func (x *Place) GetAddressComponents() []*Place_AddressComponent
func (*Place) GetAdrFormatAddress ¶
func (*Place) GetAttributions ¶
func (x *Place) GetAttributions() []*Place_Attribution
func (*Place) GetBusinessStatus ¶
func (x *Place) GetBusinessStatus() Place_BusinessStatus
func (*Place) GetCurbsidePickup ¶
func (*Place) GetCurrentOpeningHours ¶
func (x *Place) GetCurrentOpeningHours() *Place_OpeningHours
func (*Place) GetCurrentSecondaryOpeningHours ¶
func (x *Place) GetCurrentSecondaryOpeningHours() []*Place_OpeningHours
func (*Place) GetDelivery ¶
func (*Place) GetDisplayName ¶
func (x *Place) GetDisplayName() *localized_text.LocalizedText
func (*Place) GetEditorialSummary ¶
func (x *Place) GetEditorialSummary() *Place_EditorialSummary
func (*Place) GetFormattedAddress ¶
func (*Place) GetGoogleMapsUri ¶
func (*Place) GetIconBackgroundColor ¶
func (*Place) GetIconMaskBaseUri ¶
func (*Place) GetInternationalPhoneNumber ¶
func (*Place) GetLocation ¶
func (*Place) GetNationalPhoneNumber ¶
func (*Place) GetOpeningHours ¶
func (x *Place) GetOpeningHours() *Place_OpeningHours
func (*Place) GetPlusCode ¶
func (x *Place) GetPlusCode() *Place_PlusCode
func (*Place) GetPriceLevel ¶
func (x *Place) GetPriceLevel() PriceLevel
func (*Place) GetReservable ¶
func (*Place) GetReviews ¶
func (x *Place) GetReviews() []*Place_Review
func (*Place) GetSecondaryOpeningHours ¶
func (x *Place) GetSecondaryOpeningHours() []*Place_OpeningHours
func (*Place) GetServesBeer ¶
func (*Place) GetServesBreakfast ¶
func (*Place) GetServesBrunch ¶
func (*Place) GetServesDinner ¶
func (*Place) GetServesLunch ¶
func (*Place) GetServesVegetarianFood ¶
func (*Place) GetServesWine ¶
func (*Place) GetTakeout ¶
func (*Place) GetUserRatingCount ¶
func (*Place) GetUtcOffsetMinutes ¶
func (*Place) GetViewport ¶
func (*Place) GetWebsiteUri ¶
func (*Place) GetWheelchairAccessibleEntrance ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) ProtoReflect ¶
func (x *Place) ProtoReflect() protoreflect.Message
type Place_AddressComponent ¶
type Place_AddressComponent struct { // The full text description or name of the address component. For example, // an address component for the country Australia may have a long_name of // "Australia". LongText string `protobuf:"bytes,1,opt,name=long_text,json=longText,proto3" json:"long_text,omitempty"` // An abbreviated textual name for the address component, if available. For // example, an address component for the country of Australia may have a // short_name of "AU". ShortText string `protobuf:"bytes,2,opt,name=short_text,json=shortText,proto3" json:"short_text,omitempty"` // An array indicating the type(s) of the address component. Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` // The language used to format this components, in CLDR notation. LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // contains filtered or unexported fields }
The structured components that form the formatted address, if this information is available.
func (*Place_AddressComponent) Descriptor
deprecated
func (*Place_AddressComponent) Descriptor() ([]byte, []int)
Deprecated: Use Place_AddressComponent.ProtoReflect.Descriptor instead.
func (*Place_AddressComponent) GetLanguageCode ¶
func (x *Place_AddressComponent) GetLanguageCode() string
func (*Place_AddressComponent) GetLongText ¶
func (x *Place_AddressComponent) GetLongText() string
func (*Place_AddressComponent) GetShortText ¶
func (x *Place_AddressComponent) GetShortText() string
func (*Place_AddressComponent) GetTypes ¶
func (x *Place_AddressComponent) GetTypes() []string
func (*Place_AddressComponent) ProtoMessage ¶
func (*Place_AddressComponent) ProtoMessage()
func (*Place_AddressComponent) ProtoReflect ¶
func (x *Place_AddressComponent) ProtoReflect() protoreflect.Message
func (*Place_AddressComponent) Reset ¶
func (x *Place_AddressComponent) Reset()
func (*Place_AddressComponent) String ¶
func (x *Place_AddressComponent) String() string
type Place_Attribution ¶
type Place_Attribution struct { // Name of the Place's data provider. Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // URI to the Place's data provider. ProviderUri string `protobuf:"bytes,2,opt,name=provider_uri,json=providerUri,proto3" json:"provider_uri,omitempty"` // contains filtered or unexported fields }
Information about data providers of this place.
func (*Place_Attribution) Descriptor
deprecated
func (*Place_Attribution) Descriptor() ([]byte, []int)
Deprecated: Use Place_Attribution.ProtoReflect.Descriptor instead.
func (*Place_Attribution) GetProvider ¶
func (x *Place_Attribution) GetProvider() string
func (*Place_Attribution) GetProviderUri ¶
func (x *Place_Attribution) GetProviderUri() string
func (*Place_Attribution) ProtoMessage ¶
func (*Place_Attribution) ProtoMessage()
func (*Place_Attribution) ProtoReflect ¶
func (x *Place_Attribution) ProtoReflect() protoreflect.Message
func (*Place_Attribution) Reset ¶
func (x *Place_Attribution) Reset()
func (*Place_Attribution) String ¶
func (x *Place_Attribution) String() string
type Place_BusinessStatus ¶
type Place_BusinessStatus int32
Business status for the place.
const ( // Default value. This value is unused. Place_BUSINESS_STATUS_UNSPECIFIED Place_BusinessStatus = 0 // The establishment is operational, not necessarily open now. Place_OPERATIONAL Place_BusinessStatus = 1 // The establishment is temporarily closed. Place_CLOSED_TEMPORARILY Place_BusinessStatus = 2 // The establishment is permanently closed. Place_CLOSED_PERMANENTLY Place_BusinessStatus = 3 )
func (Place_BusinessStatus) Descriptor ¶
func (Place_BusinessStatus) Descriptor() protoreflect.EnumDescriptor
func (Place_BusinessStatus) Enum ¶
func (x Place_BusinessStatus) Enum() *Place_BusinessStatus
func (Place_BusinessStatus) EnumDescriptor
deprecated
func (Place_BusinessStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Place_BusinessStatus.Descriptor instead.
func (Place_BusinessStatus) Number ¶
func (x Place_BusinessStatus) Number() protoreflect.EnumNumber
func (Place_BusinessStatus) String ¶
func (x Place_BusinessStatus) String() string
func (Place_BusinessStatus) Type ¶
func (Place_BusinessStatus) Type() protoreflect.EnumType
type Place_EditorialSummary ¶
type Place_EditorialSummary struct { // A summary is comprised of a textual overview, and also includes the // language code for these if applicable. Summary text must be presented // as-is and can not be modified or altered. Overview *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=overview,proto3" json:"overview,omitempty"` // contains filtered or unexported fields }
Contains a summary of the place.
func (*Place_EditorialSummary) Descriptor
deprecated
func (*Place_EditorialSummary) Descriptor() ([]byte, []int)
Deprecated: Use Place_EditorialSummary.ProtoReflect.Descriptor instead.
func (*Place_EditorialSummary) GetOverview ¶
func (x *Place_EditorialSummary) GetOverview() *localized_text.LocalizedText
func (*Place_EditorialSummary) ProtoMessage ¶
func (*Place_EditorialSummary) ProtoMessage()
func (*Place_EditorialSummary) ProtoReflect ¶
func (x *Place_EditorialSummary) ProtoReflect() protoreflect.Message
func (*Place_EditorialSummary) Reset ¶
func (x *Place_EditorialSummary) Reset()
func (*Place_EditorialSummary) String ¶
func (x *Place_EditorialSummary) String() string
type Place_OpeningHours ¶
type Place_OpeningHours struct { // Is this place open right now? Always present unless we lack time-of-day // or timezone data for these opening hours. OpenNow bool `protobuf:"varint,1,opt,name=open_now,json=openNow,proto3" json:"open_now,omitempty"` // The periods that this place is open during the week. The periods are in // chronological order, starting with Sunday in the place-local timezone. An // empty (but not absent) value indicates a place that is never open, e.g. // because it is closed temporarily for renovations. Periods []*Place_OpeningHours_OpeningHoursPeriod `protobuf:"bytes,2,rep,name=periods,proto3" json:"periods,omitempty"` // Localized strings describing the opening hours of this place, one string // for each day of the week. Will be empty if the hours are unknown or // could not be converted to localized text. Example: "Sun: 18:00–06:00" WeekdayDescriptions []string `protobuf:"bytes,3,rep,name=weekday_descriptions,json=weekdayDescriptions,proto3" json:"weekday_descriptions,omitempty"` // A type string used to identify the type of secondary hours. SecondaryHourType Place_OpeningHours_SecondaryHourType `` /* 179-byte string literal not displayed */ // Structured information for special days that fall within the period that // the returned opening hours cover. Special days are days that could impact // the business hours of a place, e.g. Christmas day. Set for // current_opening_hours and current_secondary_opening_hours if there are // exceptional hours. SpecialDays []*Place_OpeningHours_SpecialDay `protobuf:"bytes,5,rep,name=special_days,json=specialDays,proto3" json:"special_days,omitempty"` // contains filtered or unexported fields }
Information about business hour of the place.
func (*Place_OpeningHours) Descriptor
deprecated
func (*Place_OpeningHours) Descriptor() ([]byte, []int)
Deprecated: Use Place_OpeningHours.ProtoReflect.Descriptor instead.
func (*Place_OpeningHours) GetOpenNow ¶
func (x *Place_OpeningHours) GetOpenNow() bool
func (*Place_OpeningHours) GetPeriods ¶
func (x *Place_OpeningHours) GetPeriods() []*Place_OpeningHours_OpeningHoursPeriod
func (*Place_OpeningHours) GetSecondaryHourType ¶
func (x *Place_OpeningHours) GetSecondaryHourType() Place_OpeningHours_SecondaryHourType
func (*Place_OpeningHours) GetSpecialDays ¶
func (x *Place_OpeningHours) GetSpecialDays() []*Place_OpeningHours_SpecialDay
func (*Place_OpeningHours) GetWeekdayDescriptions ¶
func (x *Place_OpeningHours) GetWeekdayDescriptions() []string
func (*Place_OpeningHours) ProtoMessage ¶
func (*Place_OpeningHours) ProtoMessage()
func (*Place_OpeningHours) ProtoReflect ¶
func (x *Place_OpeningHours) ProtoReflect() protoreflect.Message
func (*Place_OpeningHours) Reset ¶
func (x *Place_OpeningHours) Reset()
func (*Place_OpeningHours) String ¶
func (x *Place_OpeningHours) String() string
type Place_OpeningHours_OpeningHoursPeriod ¶
type Place_OpeningHours_OpeningHoursPeriod struct { // The time that the place starts to be open. Open *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint `protobuf:"bytes,1,opt,name=open,proto3" json:"open,omitempty"` // The time that the place starts to be closed. Close *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint `protobuf:"bytes,2,opt,name=close,proto3" json:"close,omitempty"` // contains filtered or unexported fields }
A period the place remains in open_now status.
func (*Place_OpeningHours_OpeningHoursPeriod) Descriptor
deprecated
func (*Place_OpeningHours_OpeningHoursPeriod) Descriptor() ([]byte, []int)
Deprecated: Use Place_OpeningHours_OpeningHoursPeriod.ProtoReflect.Descriptor instead.
func (*Place_OpeningHours_OpeningHoursPeriod) GetClose ¶
func (x *Place_OpeningHours_OpeningHoursPeriod) GetClose() *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint
func (*Place_OpeningHours_OpeningHoursPeriod) ProtoMessage ¶
func (*Place_OpeningHours_OpeningHoursPeriod) ProtoMessage()
func (*Place_OpeningHours_OpeningHoursPeriod) ProtoReflect ¶
func (x *Place_OpeningHours_OpeningHoursPeriod) ProtoReflect() protoreflect.Message
func (*Place_OpeningHours_OpeningHoursPeriod) Reset ¶
func (x *Place_OpeningHours_OpeningHoursPeriod) Reset()
func (*Place_OpeningHours_OpeningHoursPeriod) String ¶
func (x *Place_OpeningHours_OpeningHoursPeriod) String() string
type Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint ¶
type Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint struct { // A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is // Monday, etc. Day *int32 `protobuf:"varint,1,opt,name=day,proto3,oneof" json:"day,omitempty"` // The hour in 2 digits. Ranges from 00 to 23. Hour *int32 `protobuf:"varint,2,opt,name=hour,proto3,oneof" json:"hour,omitempty"` // The minute in 2 digits. Ranges from 00 to 59. Minute *int32 `protobuf:"varint,3,opt,name=minute,proto3,oneof" json:"minute,omitempty"` // Date of the endpoint expressed in `RFC3339` format in the local // timezone for the place. For example 2010-12-31. // // Deprecated: Marked as deprecated in google/maps/places/v1/place.proto. DateDeprecated string `protobuf:"bytes,4,opt,name=date_deprecated,json=dateDeprecated,proto3" json:"date_deprecated,omitempty"` // Date in the local timezone for the place. Date *date.Date `protobuf:"bytes,6,opt,name=date,proto3" json:"date,omitempty"` // Whether or not this endpoint was truncated. Truncation occurs when // the real hours are outside the times we are willing to return hours // between, so we truncate the hours back to these boundaries. This // ensures that at most `24 * 7` hours from midnight of the day of the // request are returned. Truncated bool `protobuf:"varint,5,opt,name=truncated,proto3" json:"truncated,omitempty"` // contains filtered or unexported fields }
Status changing points.
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Descriptor
deprecated
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Descriptor() ([]byte, []int)
Deprecated: Use Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint.ProtoReflect.Descriptor instead.
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDate ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDate() *date.Date
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDateDeprecated
deprecated
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDateDeprecated() string
Deprecated: Marked as deprecated in google/maps/places/v1/place.proto.
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDay ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetDay() int32
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetHour ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetHour() int32
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetMinute ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetMinute() int32
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetTruncated ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) GetTruncated() bool
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoMessage ¶
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoMessage()
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoReflect ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) ProtoReflect() protoreflect.Message
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Reset ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) Reset()
func (*Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) String ¶
func (x *Place_OpeningHours_OpeningHoursPeriod_OpeningHoursPoint) String() string
type Place_OpeningHours_SecondaryHourType ¶
type Place_OpeningHours_SecondaryHourType int32
A type used to identify the type of secondary hours.
const ( // Default value when secondary hour type is not specified. Place_OpeningHours_SECONDARY_HOUR_TYPE_UNSPECIFIED Place_OpeningHours_SecondaryHourType = 0 // The drive-through hour for banks, restaurants, or pharmacies. Place_OpeningHours_DRIVE_THROUGH Place_OpeningHours_SecondaryHourType = 1 // The happy hour. Place_OpeningHours_HAPPY_HOUR Place_OpeningHours_SecondaryHourType = 2 // The delivery hour. Place_OpeningHours_DELIVERY Place_OpeningHours_SecondaryHourType = 3 // The takeout hour. Place_OpeningHours_TAKEOUT Place_OpeningHours_SecondaryHourType = 4 // The kitchen hour. Place_OpeningHours_KITCHEN Place_OpeningHours_SecondaryHourType = 5 // The breakfast hour. Place_OpeningHours_BREAKFAST Place_OpeningHours_SecondaryHourType = 6 // The lunch hour. Place_OpeningHours_LUNCH Place_OpeningHours_SecondaryHourType = 7 // The dinner hour. Place_OpeningHours_DINNER Place_OpeningHours_SecondaryHourType = 8 // The brunch hour. Place_OpeningHours_BRUNCH Place_OpeningHours_SecondaryHourType = 9 // The pickup hour. Place_OpeningHours_PICKUP Place_OpeningHours_SecondaryHourType = 10 // The access hours for storage places. Place_OpeningHours_ACCESS Place_OpeningHours_SecondaryHourType = 11 // The special hours for seniors. Place_OpeningHours_SENIOR_HOURS Place_OpeningHours_SecondaryHourType = 12 // The online service hours. Place_OpeningHours_ONLINE_SERVICE_HOURS Place_OpeningHours_SecondaryHourType = 13 )
func (Place_OpeningHours_SecondaryHourType) Descriptor ¶
func (Place_OpeningHours_SecondaryHourType) Descriptor() protoreflect.EnumDescriptor
func (Place_OpeningHours_SecondaryHourType) Enum ¶
func (x Place_OpeningHours_SecondaryHourType) Enum() *Place_OpeningHours_SecondaryHourType
func (Place_OpeningHours_SecondaryHourType) EnumDescriptor
deprecated
func (Place_OpeningHours_SecondaryHourType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Place_OpeningHours_SecondaryHourType.Descriptor instead.
func (Place_OpeningHours_SecondaryHourType) Number ¶
func (x Place_OpeningHours_SecondaryHourType) Number() protoreflect.EnumNumber
func (Place_OpeningHours_SecondaryHourType) String ¶
func (x Place_OpeningHours_SecondaryHourType) String() string
func (Place_OpeningHours_SecondaryHourType) Type ¶
func (Place_OpeningHours_SecondaryHourType) Type() protoreflect.EnumType
type Place_OpeningHours_SpecialDay ¶
type Place_OpeningHours_SpecialDay struct { // The date of this special day. Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
func (*Place_OpeningHours_SpecialDay) Descriptor
deprecated
func (*Place_OpeningHours_SpecialDay) Descriptor() ([]byte, []int)
Deprecated: Use Place_OpeningHours_SpecialDay.ProtoReflect.Descriptor instead.
func (*Place_OpeningHours_SpecialDay) GetDate ¶
func (x *Place_OpeningHours_SpecialDay) GetDate() *date.Date
func (*Place_OpeningHours_SpecialDay) ProtoMessage ¶
func (*Place_OpeningHours_SpecialDay) ProtoMessage()
func (*Place_OpeningHours_SpecialDay) ProtoReflect ¶
func (x *Place_OpeningHours_SpecialDay) ProtoReflect() protoreflect.Message
func (*Place_OpeningHours_SpecialDay) Reset ¶
func (x *Place_OpeningHours_SpecialDay) Reset()
func (*Place_OpeningHours_SpecialDay) String ¶
func (x *Place_OpeningHours_SpecialDay) String() string
type Place_PlusCode ¶
type Place_PlusCode struct { // Place's global (full) code, such as `9FWM33GV+HQ`, representing an // 1/8000 by 1/8000 degree area (~14 by 14 meters). GlobalCode string `protobuf:"bytes,1,opt,name=global_code,json=globalCode,proto3" json:"global_code,omitempty"` // Place's compound code, such as `33GV+HQ, Ramberg, Norway`, containing // the suffix of the global code and replacing the prefix with a formatted // name of a reference entity. CompoundCode string `protobuf:"bytes,2,opt,name=compound_code,json=compoundCode,proto3" json:"compound_code,omitempty"` // contains filtered or unexported fields }
Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.
func (*Place_PlusCode) Descriptor
deprecated
func (*Place_PlusCode) Descriptor() ([]byte, []int)
Deprecated: Use Place_PlusCode.ProtoReflect.Descriptor instead.
func (*Place_PlusCode) GetCompoundCode ¶
func (x *Place_PlusCode) GetCompoundCode() string
func (*Place_PlusCode) GetGlobalCode ¶
func (x *Place_PlusCode) GetGlobalCode() string
func (*Place_PlusCode) ProtoMessage ¶
func (*Place_PlusCode) ProtoMessage()
func (*Place_PlusCode) ProtoReflect ¶
func (x *Place_PlusCode) ProtoReflect() protoreflect.Message
func (*Place_PlusCode) Reset ¶
func (x *Place_PlusCode) Reset()
func (*Place_PlusCode) String ¶
func (x *Place_PlusCode) String() string
type Place_Review ¶
type Place_Review struct { // Timestamp for the review, expressed in seconds since epoch. PublishTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // A string of formatted recent time, expressing the review time relative // to the current time in a form appropriate for the language and country. RelativePublishTimeDescription string `` /* 155-byte string literal not displayed */ // The localized text of the review. Text *localized_text.LocalizedText `protobuf:"bytes,9,opt,name=text,proto3" json:"text,omitempty"` // The name of the review author. Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` // A link to the review author's profile. AuthorUri string `protobuf:"bytes,5,opt,name=author_uri,json=authorUri,proto3" json:"author_uri,omitempty"` // The author's profile photo. AuthorPhotoUri string `protobuf:"bytes,6,opt,name=author_photo_uri,json=authorPhotoUri,proto3" json:"author_photo_uri,omitempty"` // A whole number between 1.0 and 5.0, a.k.a. the number of stars. Rating float64 `protobuf:"fixed64,7,opt,name=rating,proto3" json:"rating,omitempty"` // A BCP-47 language code indicating the original language of the review. // If the review has been translated, then original_language != language. // This field contains the main language tag only, and not the secondary tag // indicating country or region. For example, all the English reviews are // tagged as 'en', and not 'en-AU' or 'en-UK' and so on.This field is empty // if there is only a rating with no review text. OriginalLanguageCode string `protobuf:"bytes,10,opt,name=original_language_code,json=originalLanguageCode,proto3" json:"original_language_code,omitempty"` // A boolean value indicating if the review was translated from the original // language it was written in. If a review has been translated, // corresponding to a value of true, Google recommends that you indicate // this to your users. For example, you can add the following string, // “Translated by Google”, to the review. Translated bool `protobuf:"varint,11,opt,name=translated,proto3" json:"translated,omitempty"` // contains filtered or unexported fields }
Information about a review of the place.
func (*Place_Review) Descriptor
deprecated
func (*Place_Review) Descriptor() ([]byte, []int)
Deprecated: Use Place_Review.ProtoReflect.Descriptor instead.
func (*Place_Review) GetAuthor ¶
func (x *Place_Review) GetAuthor() string
func (*Place_Review) GetAuthorPhotoUri ¶
func (x *Place_Review) GetAuthorPhotoUri() string
func (*Place_Review) GetAuthorUri ¶
func (x *Place_Review) GetAuthorUri() string
func (*Place_Review) GetOriginalLanguageCode ¶
func (x *Place_Review) GetOriginalLanguageCode() string
func (*Place_Review) GetPublishTime ¶
func (x *Place_Review) GetPublishTime() *timestamppb.Timestamp
func (*Place_Review) GetRating ¶
func (x *Place_Review) GetRating() float64
func (*Place_Review) GetRelativePublishTimeDescription ¶
func (x *Place_Review) GetRelativePublishTimeDescription() string
func (*Place_Review) GetText ¶
func (x *Place_Review) GetText() *localized_text.LocalizedText
func (*Place_Review) GetTranslated ¶
func (x *Place_Review) GetTranslated() bool
func (*Place_Review) ProtoMessage ¶
func (*Place_Review) ProtoMessage()
func (*Place_Review) ProtoReflect ¶
func (x *Place_Review) ProtoReflect() protoreflect.Message
func (*Place_Review) Reset ¶
func (x *Place_Review) Reset()
func (*Place_Review) String ¶
func (x *Place_Review) String() string
type PlacesClient ¶
type PlacesClient interface { // Text query based place search. SearchText(ctx context.Context, in *SearchTextRequest, opts ...grpc.CallOption) (*SearchTextResponse, error) }
PlacesClient is the client API for Places service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPlacesClient ¶
func NewPlacesClient(cc grpc.ClientConnInterface) PlacesClient
type PlacesServer ¶
type PlacesServer interface { // Text query based place search. SearchText(context.Context, *SearchTextRequest) (*SearchTextResponse, error) }
PlacesServer is the server API for Places service.
type PriceLevel ¶
type PriceLevel int32
Price level of the place.
const ( // Place price level is unspecified or unknown. PriceLevel_PRICE_LEVEL_UNSPECIFIED PriceLevel = 0 PriceLevel_FREE PriceLevel = 1 // Place provides inexpensive services. PriceLevel_INEXPENSIVE PriceLevel = 2 // Place provides moderately priced services. PriceLevel_MODERATE PriceLevel = 3 // Place provides expensive services. PriceLevel_EXPENSIVE PriceLevel = 4 // Place provides very expensive services. PriceLevel_VERY_EXPENSIVE PriceLevel = 5 )
func (PriceLevel) Descriptor ¶
func (PriceLevel) Descriptor() protoreflect.EnumDescriptor
func (PriceLevel) Enum ¶
func (x PriceLevel) Enum() *PriceLevel
func (PriceLevel) EnumDescriptor
deprecated
func (PriceLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use PriceLevel.Descriptor instead.
func (PriceLevel) Number ¶
func (x PriceLevel) Number() protoreflect.EnumNumber
func (PriceLevel) String ¶
func (x PriceLevel) String() string
func (PriceLevel) Type ¶
func (PriceLevel) Type() protoreflect.EnumType
type SearchTextRequest ¶
type SearchTextRequest struct { // Required. The text query for textual search. TextQuery string `protobuf:"bytes,1,opt,name=text_query,json=textQuery,proto3" json:"text_query,omitempty"` // Place details will be displayed with the preferred language if available. // If the language code is unspecified or unrecognized, place details of any // language may be returned, with a preference for English if such details // exist. // // Current list of supported languages: // https://developers.google.com/maps/faq#languagesupport. LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // The Unicode country/region code (CLDR) of the location where the // request is coming from. It is used to display the place details, like // region-specific place name, if available. // // For more information, see // http://www.unicode.org/reports/tr35/#unicode_region_subtag. // // // Note that 3-digit region codes are not currently supported. RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` // How results will be ranked in the response. RankPreference SearchTextRequest_RankPreference `` /* 164-byte string literal not displayed */ // The region to search. Setting location would usually yields // better results. Recommended to set. This location serves as a bias unless // strict_restriction is set to true, which turns the location to a strict // restriction. // // Deprecated. Use LocationRestriction or LocationBias instead. // // Deprecated: Marked as deprecated in google/maps/places/v1/places_service.proto. Location *SearchTextRequest_Location `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` // The requested place type. Full list of types supported: // https://developers.google.com/places/supported_types. Only support one // included type. IncludedType string `protobuf:"bytes,6,opt,name=included_type,json=includedType,proto3" json:"included_type,omitempty"` // Used to restrict the search to places that are open at a specific time. // open_now marks if a business is currently open. OpenNow bool `protobuf:"varint,7,opt,name=open_now,json=openNow,proto3" json:"open_now,omitempty"` // [Deprecated!]Used to restrict the search to places that are within a // certain price range. This is on a scale of 0 to 4. Set a minimum of 0 or // set a maximum of 4 has no effect on the search results. Min price is // default to 0 and max price is default to 4. Default value will be used if // either min or max is unset. // // Deprecated: Marked as deprecated in google/maps/places/v1/places_service.proto. PriceRange *Int32Range `protobuf:"bytes,8,opt,name=price_range,json=priceRange,proto3" json:"price_range,omitempty"` // Filter out results whose average user rating is strictly less than this // limit. A valid value must be an float between 0 and 5 (inclusively) at a // 0.5 cadence i.e. `[0, 0.5, 1.0, ... , 5.0]` inclusively. This is to keep // parity with LocalRefinement_UserRating. The input rating will round up to // the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all // results with a less than 1.0 rating. MinRating float64 `protobuf:"fixed64,9,opt,name=min_rating,json=minRating,proto3" json:"min_rating,omitempty"` // Maximum number of results to return. It must be between 1 and 20, // inclusively. If the number is unset, it falls back to the upper limit. If // the number is set to negative or exceeds the upper limit, an // INVALID_ARGUMENT error is returned. MaxResultCount int32 `protobuf:"varint,10,opt,name=max_result_count,json=maxResultCount,proto3" json:"max_result_count,omitempty"` // Used to restrict the search to places that are marked as certain price // levels. Users can choose any combinations of price levels. Default to // select all price levels. PriceLevels []PriceLevel `` /* 141-byte string literal not displayed */ // Used to set strict type filtering for included_type. If set to true, only // results of the same type will be returned. Default to false. StrictTypeFiltering bool `protobuf:"varint,12,opt,name=strict_type_filtering,json=strictTypeFiltering,proto3" json:"strict_type_filtering,omitempty"` // The region to search. This location serves as a bias which means results // around given location might be returned. Cannot be set along with // location_restriction. LocationBias *SearchTextRequest_LocationBias `protobuf:"bytes,13,opt,name=location_bias,json=locationBias,proto3" json:"location_bias,omitempty"` // The region to search. This location serves as a restriction which means // results outside given location will not be returned. Cannot be set along // with location_bias. LocationRestriction *SearchTextRequest_LocationRestriction `protobuf:"bytes,14,opt,name=location_restriction,json=locationRestriction,proto3" json:"location_restriction,omitempty"` // contains filtered or unexported fields }
Request data structure for SearchText.
func (*SearchTextRequest) Descriptor
deprecated
func (*SearchTextRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchTextRequest.ProtoReflect.Descriptor instead.
func (*SearchTextRequest) GetIncludedType ¶
func (x *SearchTextRequest) GetIncludedType() string
func (*SearchTextRequest) GetLanguageCode ¶
func (x *SearchTextRequest) GetLanguageCode() string
func (*SearchTextRequest) GetLocation
deprecated
func (x *SearchTextRequest) GetLocation() *SearchTextRequest_Location
Deprecated: Marked as deprecated in google/maps/places/v1/places_service.proto.
func (*SearchTextRequest) GetLocationBias ¶
func (x *SearchTextRequest) GetLocationBias() *SearchTextRequest_LocationBias
func (*SearchTextRequest) GetLocationRestriction ¶
func (x *SearchTextRequest) GetLocationRestriction() *SearchTextRequest_LocationRestriction
func (*SearchTextRequest) GetMaxResultCount ¶
func (x *SearchTextRequest) GetMaxResultCount() int32
func (*SearchTextRequest) GetMinRating ¶
func (x *SearchTextRequest) GetMinRating() float64
func (*SearchTextRequest) GetOpenNow ¶
func (x *SearchTextRequest) GetOpenNow() bool
func (*SearchTextRequest) GetPriceLevels ¶
func (x *SearchTextRequest) GetPriceLevels() []PriceLevel
func (*SearchTextRequest) GetPriceRange
deprecated
func (x *SearchTextRequest) GetPriceRange() *Int32Range
Deprecated: Marked as deprecated in google/maps/places/v1/places_service.proto.
func (*SearchTextRequest) GetRankPreference ¶
func (x *SearchTextRequest) GetRankPreference() SearchTextRequest_RankPreference
func (*SearchTextRequest) GetRegionCode ¶
func (x *SearchTextRequest) GetRegionCode() string
func (*SearchTextRequest) GetStrictTypeFiltering ¶
func (x *SearchTextRequest) GetStrictTypeFiltering() bool
func (*SearchTextRequest) GetTextQuery ¶
func (x *SearchTextRequest) GetTextQuery() string
func (*SearchTextRequest) ProtoMessage ¶
func (*SearchTextRequest) ProtoMessage()
func (*SearchTextRequest) ProtoReflect ¶
func (x *SearchTextRequest) ProtoReflect() protoreflect.Message
func (*SearchTextRequest) Reset ¶
func (x *SearchTextRequest) Reset()
func (*SearchTextRequest) String ¶
func (x *SearchTextRequest) String() string
type SearchTextRequest_Location ¶
type SearchTextRequest_Location struct { // Types that are assignable to Type: // *SearchTextRequest_Location_Rectangle Type isSearchTextRequest_Location_Type `protobuf_oneof:"type"` // Make location field a strict restriction and filter out POIs outside of // the given location. If location type field is unset this field will have // no effect. StrictRestriction bool `protobuf:"varint,2,opt,name=strict_restriction,json=strictRestriction,proto3" json:"strict_restriction,omitempty"` // contains filtered or unexported fields }
The region to search.
Deprecated. Use LocationRestriction or LocationBias instead.
func (*SearchTextRequest_Location) Descriptor
deprecated
func (*SearchTextRequest_Location) Descriptor() ([]byte, []int)
Deprecated: Use SearchTextRequest_Location.ProtoReflect.Descriptor instead.
func (*SearchTextRequest_Location) GetRectangle ¶
func (x *SearchTextRequest_Location) GetRectangle() *viewport.Viewport
func (*SearchTextRequest_Location) GetStrictRestriction ¶
func (x *SearchTextRequest_Location) GetStrictRestriction() bool
func (*SearchTextRequest_Location) GetType ¶
func (m *SearchTextRequest_Location) GetType() isSearchTextRequest_Location_Type
func (*SearchTextRequest_Location) ProtoMessage ¶
func (*SearchTextRequest_Location) ProtoMessage()
func (*SearchTextRequest_Location) ProtoReflect ¶
func (x *SearchTextRequest_Location) ProtoReflect() protoreflect.Message
func (*SearchTextRequest_Location) Reset ¶
func (x *SearchTextRequest_Location) Reset()
func (*SearchTextRequest_Location) String ¶
func (x *SearchTextRequest_Location) String() string
type SearchTextRequest_LocationBias ¶
type SearchTextRequest_LocationBias struct { // Types that are assignable to Type: // *SearchTextRequest_LocationBias_Rectangle // *SearchTextRequest_LocationBias_Circle Type isSearchTextRequest_LocationBias_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
The region to search. This location serves as a bias which means results around given location might be returned.
func (*SearchTextRequest_LocationBias) Descriptor
deprecated
func (*SearchTextRequest_LocationBias) Descriptor() ([]byte, []int)
Deprecated: Use SearchTextRequest_LocationBias.ProtoReflect.Descriptor instead.
func (*SearchTextRequest_LocationBias) GetCircle ¶
func (x *SearchTextRequest_LocationBias) GetCircle() *Circle
func (*SearchTextRequest_LocationBias) GetRectangle ¶
func (x *SearchTextRequest_LocationBias) GetRectangle() *viewport.Viewport
func (*SearchTextRequest_LocationBias) GetType ¶
func (m *SearchTextRequest_LocationBias) GetType() isSearchTextRequest_LocationBias_Type
func (*SearchTextRequest_LocationBias) ProtoMessage ¶
func (*SearchTextRequest_LocationBias) ProtoMessage()
func (*SearchTextRequest_LocationBias) ProtoReflect ¶
func (x *SearchTextRequest_LocationBias) ProtoReflect() protoreflect.Message
func (*SearchTextRequest_LocationBias) Reset ¶
func (x *SearchTextRequest_LocationBias) Reset()
func (*SearchTextRequest_LocationBias) String ¶
func (x *SearchTextRequest_LocationBias) String() string
type SearchTextRequest_LocationBias_Circle ¶
type SearchTextRequest_LocationBias_Circle struct { // A circle defined by center point and radius. Circle *Circle `protobuf:"bytes,2,opt,name=circle,proto3,oneof"` }
type SearchTextRequest_LocationRestriction ¶
type SearchTextRequest_LocationRestriction struct { // Types that are assignable to Type: // *SearchTextRequest_LocationRestriction_Rectangle Type isSearchTextRequest_LocationRestriction_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
The region to search. This location serves as a restriction which means results outside given location will not be returned.
func (*SearchTextRequest_LocationRestriction) Descriptor
deprecated
func (*SearchTextRequest_LocationRestriction) Descriptor() ([]byte, []int)
Deprecated: Use SearchTextRequest_LocationRestriction.ProtoReflect.Descriptor instead.
func (*SearchTextRequest_LocationRestriction) GetRectangle ¶
func (x *SearchTextRequest_LocationRestriction) GetRectangle() *viewport.Viewport
func (*SearchTextRequest_LocationRestriction) GetType ¶
func (m *SearchTextRequest_LocationRestriction) GetType() isSearchTextRequest_LocationRestriction_Type
func (*SearchTextRequest_LocationRestriction) ProtoMessage ¶
func (*SearchTextRequest_LocationRestriction) ProtoMessage()
func (*SearchTextRequest_LocationRestriction) ProtoReflect ¶
func (x *SearchTextRequest_LocationRestriction) ProtoReflect() protoreflect.Message
func (*SearchTextRequest_LocationRestriction) Reset ¶
func (x *SearchTextRequest_LocationRestriction) Reset()
func (*SearchTextRequest_LocationRestriction) String ¶
func (x *SearchTextRequest_LocationRestriction) String() string
type SearchTextRequest_RankPreference ¶
type SearchTextRequest_RankPreference int32
How results will be ranked in the response.
const ( // RankPreference value not set. Will default to DISTANCE. SearchTextRequest_RANK_PREFERENCE_UNSPECIFIED SearchTextRequest_RankPreference = 0 // Ranks results by distance. SearchTextRequest_DISTANCE SearchTextRequest_RankPreference = 1 // Ranks results by relevance. Sort order determined by normal ranking // stack. See SortRefinement::RELEVANCE. SearchTextRequest_RELEVANCE SearchTextRequest_RankPreference = 2 )
func (SearchTextRequest_RankPreference) Descriptor ¶
func (SearchTextRequest_RankPreference) Descriptor() protoreflect.EnumDescriptor
func (SearchTextRequest_RankPreference) Enum ¶
func (x SearchTextRequest_RankPreference) Enum() *SearchTextRequest_RankPreference
func (SearchTextRequest_RankPreference) EnumDescriptor
deprecated
func (SearchTextRequest_RankPreference) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchTextRequest_RankPreference.Descriptor instead.
func (SearchTextRequest_RankPreference) Number ¶
func (x SearchTextRequest_RankPreference) Number() protoreflect.EnumNumber
func (SearchTextRequest_RankPreference) String ¶
func (x SearchTextRequest_RankPreference) String() string
func (SearchTextRequest_RankPreference) Type ¶
func (SearchTextRequest_RankPreference) Type() protoreflect.EnumType
type SearchTextResponse ¶
type SearchTextResponse struct { // A list of places that meet the user's text search criteria. Places []*Place `protobuf:"bytes,1,rep,name=places,proto3" json:"places,omitempty"` // contains filtered or unexported fields }
Response proto for SearchText.
func (*SearchTextResponse) Descriptor
deprecated
func (*SearchTextResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchTextResponse.ProtoReflect.Descriptor instead.
func (*SearchTextResponse) GetPlaces ¶
func (x *SearchTextResponse) GetPlaces() []*Place
func (*SearchTextResponse) ProtoMessage ¶
func (*SearchTextResponse) ProtoMessage()
func (*SearchTextResponse) ProtoReflect ¶
func (x *SearchTextResponse) ProtoReflect() protoreflect.Message
func (*SearchTextResponse) Reset ¶
func (x *SearchTextResponse) Reset()
func (*SearchTextResponse) String ¶
func (x *SearchTextResponse) String() string
type UnimplementedPlacesServer ¶
type UnimplementedPlacesServer struct { }
UnimplementedPlacesServer can be embedded to have forward compatible implementations.
func (*UnimplementedPlacesServer) SearchText ¶
func (*UnimplementedPlacesServer) SearchText(context.Context, *SearchTextRequest) (*SearchTextResponse, error)