Class: Google::Apis::CloudsearchV1::ChatProto
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ChatProto
- 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
-
#chat_id ⇒ String
Chat IDs consist of alphanumeric characters and colons.
-
#member_type ⇒ Fixnum
The type of Chat members to consider, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChatProto
constructor
A new instance of ChatProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChatProto
Returns a new instance of ChatProto.
6197 6198 6199 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chat_id ⇒ String
Chat IDs consist of alphanumeric characters and colons. Currently required.
Corresponds to the JSON property chatId
6185 6186 6187 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6185 def chat_id @chat_id end |
#member_type ⇒ Fixnum
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
6195 6196 6197 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6195 def member_type @member_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6202 6203 6204 6205 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6202 def update!(**args) @chat_id = args[:chat_id] if args.key?(:chat_id) @member_type = args[:member_type] if args.key?(:member_type) end |