class Google::Apis::ChatV1::Space

A room or DM in Hangouts Chat.

Attributes

display_name[RW]

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]

name[RW]

Resource name of the space, in the form “spaces/*”. Example: spaces/ AAAAMpdlehYs Corresponds to the JSON property `name` @return [String]

single_user_bot_dm[RW]

Whether the space is a DM between a bot and a single human. Corresponds to the JSON property `singleUserBotDm` @return [Boolean]

single_user_bot_dm?[RW]

Whether the space is a DM between a bot and a single human. Corresponds to the JSON property `singleUserBotDm` @return [Boolean]

threaded[RW]

Whether the messages are threaded in this space. Corresponds to the JSON property `threaded` @return [Boolean]

threaded?[RW]

Whether the messages are threaded in this space. Corresponds to the JSON property `threaded` @return [Boolean]

type[RW]

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

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2648
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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