Class: Google::Apis::CloudsearchV1::ClusterInfo

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

Overview

ClusterInfo contains clustering related information for a particular thread that would be sent as part of the conversation view. Today, this information would be used by iOS notification server to identify whether the thread belongs to a cluster. If the thread belongs to a grouped cluster, it would identify whether the cluster is throttled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterInfo

Returns a new instance of ClusterInfo.



6061
6062
6063
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6061

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_idArray<String>

IDs of the highest priority clusters to which the thread belongs to. If this field is not present, the thread does not belong to any cluster and would be shown in the inbox, unclustered. Corresponds to the JSON property clusterId

Returns:

  • (Array<String>)


6052
6053
6054
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6052

def cluster_id
  @cluster_id
end

#throttledBoolean Also known as: throttled?

If the thread belongs to a grouped cluster and all of those clusters are throttled, then this field is set to true. Corresponds to the JSON property throttled

Returns:

  • (Boolean)


6058
6059
6060
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6058

def throttled
  @throttled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6066
6067
6068
6069
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6066

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