Class: Google::Apis::StreetviewpublishV1::Place
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Place
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/streetviewpublish_v1/classes.rb,
generated/google/apis/streetviewpublish_v1/representations.rb,
generated/google/apis/streetviewpublish_v1/representations.rb
Overview
Place metadata for an entity.
Instance Attribute Summary collapse
-
#language_code ⇒ String
Output-only.
-
#name ⇒ String
Output-only.
-
#place_id ⇒ String
Place identifier, as described in https://developers.google.com/places/place-id.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Place
constructor
A new instance of Place.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Place
Returns a new instance of Place
554 555 556 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 554 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Output-only. The language_code that the name is localized with. This should
be the language_code specified in the request, but may be a fallback.
Corresponds to the JSON property languageCode
541 542 543 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 541 def language_code @language_code end |
#name ⇒ String
Output-only. The name of the place, localized to the language_code.
Corresponds to the JSON property name
546 547 548 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 546 def name @name end |
#place_id ⇒ String
Place identifier, as described in
https://developers.google.com/places/place-id.
Corresponds to the JSON property placeId
552 553 554 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 552 def place_id @place_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
559 560 561 562 563 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 559 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) @place_id = args[:place_id] if args.key?(:place_id) end |