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.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class Space : IDirectResponseSchema
Properties
AdminInstalled
Output only. Whether the Chat app was installed by a Google Workspace administrator. Administrators can install a Chat app for their domain, organizational unit, or a group of users. Administrators can only install Chat apps for direct messaging between users and the app. To support admin install, your app must feature direct messaging.
Declaration
[JsonProperty("adminInstalled")]
public virtual bool? AdminInstalled { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
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
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
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
[JsonProperty("displayName")]
public virtual string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { 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/workspace/chat/import-data). Import mode spaces must only permit members from the same Google Workspace organization. For existing spaces, this field is output only.
Declaration
[JsonProperty("externalUserAllowed")]
public virtual 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
[JsonProperty("importMode")]
public virtual bool? ImportMode { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Name
Resource name of the space. Format: spaces/{space}
Declaration
[JsonProperty("name")]
public virtual 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
[JsonProperty("singleUserBotDm")]
public virtual bool? SingleUserBotDm { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SpaceDetails
Details about the space including description and rules.
Declaration
[JsonProperty("spaceDetails")]
public virtual SpaceDetails SpaceDetails { get; set; }
Property Value
Type | Description |
---|---|
SpaceDetails |
SpaceHistoryState
The message history state for messages and threads in this space.
Declaration
[JsonProperty("spaceHistoryState")]
public virtual string SpaceHistoryState { get; set; }
Property Value
Type | Description |
---|---|
string |
SpaceThreadingState
Output only. The threading state in the Chat space.
Declaration
[JsonProperty("spaceThreadingState")]
public virtual string SpaceThreadingState { get; set; }
Property Value
Type | Description |
---|---|
string |
SpaceType
The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.
Declaration
[JsonProperty("spaceType")]
public virtual string SpaceType { get; set; }
Property Value
Type | Description |
---|---|
string |
Threaded
Output only. Deprecated: Use spaceThreadingState
instead. Whether messages are threaded in this space.
Declaration
[JsonProperty("threaded")]
public virtual bool? Threaded { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Type
Output only. Deprecated: Use space_type
instead. The type of a space.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |