Show / Hide Table of Contents

Class Space

A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.

Inheritance
object
Space
Implements
IMessage<Space>
IEquatable<Space>
IDeepCloneable<Space>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Space : IMessage<Space>, IEquatable<Space>, IDeepCloneable<Space>, IBufferMessage, IMessage

Constructors

Space()

Declaration
public Space()

Space(Space)

Declaration
public Space(Space other)
Parameters
Type Name Description
Space other

Properties

AccessSettings

Optional. Specifies the access setting of the space. Only populated when the space_type is SPACE.

Declaration
public Space.Types.AccessSettings AccessSettings { get; set; }
Property Value
Type Description
Space.Types.AccessSettings

AdminInstalled

Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization.

To support admin install, your Chat app must feature direct messaging.

Declaration
public bool AdminInstalled { get; set; }
Property Value
Type Description
bool

CreateTime

Optional. Immutable. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces.

For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time.

Only populated in the output when spaceType is GROUP_CHAT or SPACE.

Declaration
public Timestamp CreateTime { get; set; }
Property Value
Type Description
Timestamp

DisplayName

The space's display name. Required when creating a space. If you receive the error message ALREADY_EXISTS when creating a space or updating the displayName, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

For direct messages, this field might be empty.

Supports up to 128 characters.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
string

ExternalUserAllowed

Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:

  • The authenticated user uses a consumer account (unmanaged user account). By default, a space created by a consumer account permits any Google Chat user.

  • The space is used to [import data to Google Chat] (https://developers.google.com/chat/api/guides/import-data-overview) because import mode spaces must only permit members from the same Google Workspace organization. However, as part of the Google Workspace Developer Preview Program, import mode spaces can permit any Google Chat user so this field can then be set for import mode spaces.

For existing spaces, this field is output only.

Declaration
public bool ExternalUserAllowed { get; set; }
Property Value
Type Description
bool

ImportMode

Optional. Whether this space is created in Import Mode as part of a data migration into Google Workspace. While spaces are being imported, they aren't visible to users until the import is complete.

Declaration
public bool ImportMode { get; set; }
Property Value
Type Description
bool

LastActiveTime

Output only. Timestamp of the last message in the space.

Declaration
public Timestamp LastActiveTime { get; set; }
Property Value
Type Description
Timestamp

MembershipCount

Output only. The count of joined memberships grouped by member type. Populated when the space_type is SPACE, DIRECT_MESSAGE or GROUP_CHAT.

Declaration
public Space.Types.MembershipCount MembershipCount { get; set; }
Property Value
Type Description
Space.Types.MembershipCount

Name

Resource name of the space.

Format: spaces/{space}

Declaration
public string Name { get; set; }
Property Value
Type Description
string

SingleUserBotDm

Optional. Whether the space is a DM between a Chat app and a single human.

Declaration
public bool SingleUserBotDm { get; set; }
Property Value
Type Description
bool

SpaceDetails

Details about the space including description and rules.

Declaration
public Space.Types.SpaceDetails SpaceDetails { get; set; }
Property Value
Type Description
Space.Types.SpaceDetails

SpaceHistoryState

The message history state for messages and threads in this space.

Declaration
public HistoryState SpaceHistoryState { get; set; }
Property Value
Type Description
HistoryState

SpaceName

SpaceName-typed view over the Name resource name property.

Declaration
public SpaceName SpaceName { get; set; }
Property Value
Type Description
SpaceName

SpaceThreadingState

Output only. The threading state in the Chat space.

Declaration
public Space.Types.SpaceThreadingState SpaceThreadingState { get; set; }
Property Value
Type Description
Space.Types.SpaceThreadingState

SpaceType

The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.

Declaration
public Space.Types.SpaceType SpaceType { get; set; }
Property Value
Type Description
Space.Types.SpaceType

SpaceUri

Output only. The URI for a user to access the space.

Declaration
public string SpaceUri { get; set; }
Property Value
Type Description
string

Threaded

Output only. Deprecated: Use spaceThreadingState instead. Whether messages are threaded in this space.

Declaration
[Obsolete]
public bool Threaded { get; set; }
Property Value
Type Description
bool

Type

Output only. Deprecated: Use space_type instead. The type of a space.

Declaration
[Obsolete]
public Space.Types.Type Type { get; set; }
Property Value
Type Description
Space.Types.Type
In this article
Back to top Generated by DocFX