Class: Google::Apis::MybusinessV3::LocationKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb

Overview

Alternate / surrogate key references for a location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LocationKey

Returns a new instance of LocationKey



1041
1042
1043
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1041

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#explicit_no_place_idBoolean Also known as: explicit_no_place_id?

A value of true indicates that an unset place ID is deliberate, which is different from no association being made yet. Corresponds to the JSON property explicitNoPlaceId

Returns:

  • (Boolean)


1038
1039
1040
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1038

def explicit_no_place_id
  @explicit_no_place_id
end

#place_idString

If this location has been verified and is connected to/appears on Google Maps, this field is populated with the place ID for the location. This ID can be used in various Places APIs. If this location is unverified, this field may be populated if the location has been associated with a place that appears on Google Maps. This field can be set during Create calls, but not for Update. The additional explicit_no_place_id bool qualifies whether an unset place ID is deliberate or not. Corresponds to the JSON property placeId

Returns:

  • (String)


1031
1032
1033
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1031

def place_id
  @place_id
end

#plus_page_idString

If this location has a Google+ page associated with it, this is populated with the Google+ page ID for this location. Corresponds to the JSON property plusPageId

Returns:

  • (String)


1019
1020
1021
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1019

def plus_page_id
  @plus_page_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1046
1047
1048
1049
1050
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1046

def update!(**args)
  @plus_page_id = args[:plus_page_id] if args.key?(:plus_page_id)
  @place_id = args[:place_id] if args.key?(:place_id)
  @explicit_no_place_id = args[:explicit_no_place_id] if args.key?(:explicit_no_place_id)
end