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



1175
1176
1177
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1175

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)


1153
1154
1155
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1153

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)


1166
1167
1168
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1166

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)


1173
1174
1175
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1173

def plus_page_id
  @plus_page_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
1183
1184
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1180

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