Class: Google::Apis::CloudsearchV1::TopicId
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::TopicId
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#group_id ⇒ Google::Apis::CloudsearchV1::GroupId
Id representing a group that could be a space, a chat, or a direct message space.
-
#topic_id ⇒ String
Opaque, server-assigned ID of the Topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TopicId
constructor
A new instance of TopicId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TopicId
Returns a new instance of TopicId.
20390 20391 20392 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_id ⇒ Google::Apis::CloudsearchV1::GroupId
Id representing a group that could be a space, a chat, or a direct message
space. Which ID is set here will determine which group
Corresponds to the JSON property groupId
20379 20380 20381 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20379 def group_id @group_id end |
#topic_id ⇒ String
Opaque, server-assigned ID of the Topic. While this ID is guaranteed to be
unique within the Space, it's not guaranteed to be globally unique. Internal
usage: this field can be empty in the following cases: 1. To create the first
message in a topic. 2. To list last N messages of a Space (regardless of topic)
.
Corresponds to the JSON property topicId
20388 20389 20390 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20388 def topic_id @topic_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20395 20396 20397 20398 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20395 def update!(**args) @group_id = args[:group_id] if args.key?(:group_id) @topic_id = args[:topic_id] if args.key?(:topic_id) end |