class Google::Apis::ChatV1::Space
A room or DM in Hangouts Chat.
Attributes
Output only. The display name (only if the space is a room). Please note that this field might not be populated in direct messages between humans. Corresponds to the JSON property `displayName` @return [String]
Resource name of the space, in the form “spaces/*”. Example: spaces/ AAAAMpdlehYs Corresponds to the JSON property `name` @return [String]
Whether the space is a DM between a bot and a single human. Corresponds to the JSON property `singleUserBotDm` @return [Boolean]
Whether the space is a DM between a bot and a single human. Corresponds to the JSON property `singleUserBotDm` @return [Boolean]
Whether the messages are threaded in this space. Corresponds to the JSON property `threaded` @return [Boolean]
Whether the messages are threaded in this space. Corresponds to the JSON property `threaded` @return [Boolean]
Output only. The type of a space. This is deprecated. Use `single_user_bot_dm` instead. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 2648 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 2653 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm) @threaded = args[:threaded] if args.key?(:threaded) @type = args[:type] if args.key?(:type) end