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.



20569
20570
20571
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20569

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



20558
20559
20560
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20558

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)


20567
20568
20569
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20567

def topic_id
  @topic_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20574
20575
20576
20577
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20574

def update!(**args)
  @group_id = args[:group_id] if args.key?(:group_id)
  @topic_id = args[:topic_id] if args.key?(:topic_id)
end