Interface SpaceOrBuilder (0.1.0)

public interface SpaceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdminInstalled()

public abstract boolean getAdminInstalled()

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.

bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The adminInstalled.

getCreateTime()

public abstract Timestamp getCreateTime()

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.

.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

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.

.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimestampOrBuilder

getDisplayName()

public abstract String getDisplayName()

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.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

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.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getExternalUserAllowed()

public abstract boolean getExternalUserAllowed()

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 Google Account. By default, the space permits any Google Chat user.

  • The space is used to import data to Google Chat. Import mode spaces must only permit members from the same Google Workspace organization.

    For existing spaces, this field is output only.

bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

The externalUserAllowed.

getImportMode()

public abstract boolean getImportMode()

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.

bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The importMode.

getName()

public abstract String getName()

Resource name of the space.

Format: spaces/{space}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Resource name of the space.

Format: spaces/{space}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSingleUserBotDm()

public abstract boolean getSingleUserBotDm()

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

bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The singleUserBotDm.

getSpaceDetails()

public abstract Space.SpaceDetails getSpaceDetails()

Details about the space including description and rules.

.google.chat.v1.Space.SpaceDetails space_details = 11;

Returns
TypeDescription
Space.SpaceDetails

The spaceDetails.

getSpaceDetailsOrBuilder()

public abstract Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder()

Details about the space including description and rules.

.google.chat.v1.Space.SpaceDetails space_details = 11;

Returns
TypeDescription
Space.SpaceDetailsOrBuilder

getSpaceHistoryState()

public abstract HistoryState getSpaceHistoryState()

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

.google.chat.v1.HistoryState space_history_state = 13;

Returns
TypeDescription
HistoryState

The spaceHistoryState.

getSpaceHistoryStateValue()

public abstract int getSpaceHistoryStateValue()

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

.google.chat.v1.HistoryState space_history_state = 13;

Returns
TypeDescription
int

The enum numeric value on the wire for spaceHistoryState.

getSpaceThreadingState()

public abstract Space.SpaceThreadingState getSpaceThreadingState()

Output only. The threading state in the Chat space.

.google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Space.SpaceThreadingState

The spaceThreadingState.

getSpaceThreadingStateValue()

public abstract int getSpaceThreadingStateValue()

Output only. The threading state in the Chat space.

.google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for spaceThreadingState.

getSpaceType()

public abstract Space.SpaceType getSpaceType()

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

.google.chat.v1.Space.SpaceType space_type = 10;

Returns
TypeDescription
Space.SpaceType

The spaceType.

getSpaceTypeValue()

public abstract int getSpaceTypeValue()

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

.google.chat.v1.Space.SpaceType space_type = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for spaceType.

getThreaded() (deprecated)

public abstract boolean getThreaded()

Deprecated. google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=122

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

bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The threaded.

getType() (deprecated)

public abstract Space.Type getType()

Deprecated. google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=110

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

.google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Space.Type

The type.

getTypeValue() (deprecated)

public abstract int getTypeValue()

Deprecated. google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=110

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

.google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasCreateTime()

public abstract boolean hasCreateTime()

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.

.google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasSpaceDetails()

public abstract boolean hasSpaceDetails()

Details about the space including description and rules.

.google.chat.v1.Space.SpaceDetails space_details = 11;

Returns
TypeDescription
boolean

Whether the spaceDetails field is set.