Class: Google::Apis::CloudsearchV1::TopicId

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idGoogle::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_idString

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

Returns:

  • (String)


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