Class: Google::Apis::CloudsearchV1::ChatProto

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

Represents the invitees or other users associated with a Babel Chat (see http:/ /goto/babel). Corresponds to GroupType CHAT in //social/graph/storage/proto/ data.proto.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChatProto

Returns a new instance of ChatProto.



6261
6262
6263
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6261

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

Instance Attribute Details

#chat_idString

Chat IDs consist of alphanumeric characters and colons. Currently required. Corresponds to the JSON property chatId

Returns:

  • (String)


6249
6250
6251
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6249

def chat_id
  @chat_id
end

#member_typeFixnum

The type of Chat members to consider, e.g. "all members" vs. "invitee" These are defined by legacy_relation_id values in social.graph.storage.EdgeTypeEnum. EdgeType enum options in social/graph/storage/proto/id.proto. See chat.pb ( defined in production/config/cdd/socialgraph/mixer_config/prod/ node_type_config) for all valid edge types associated with chat. Currently required. Corresponds to the JSON property memberType

Returns:

  • (Fixnum)


6259
6260
6261
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6259

def member_type
  @member_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6266
6267
6268
6269
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6266

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