Class Space.Builder (0.4.0)

public static final class Space.Builder extends GeneratedMessageV3.Builder<Space.Builder> implements SpaceOrBuilder

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

Protobuf type google.chat.v1.Space

Implements

SpaceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Space.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Space.Builder
Overrides

build()

public Space build()
Returns
TypeDescription
Space

buildPartial()

public Space buildPartial()
Returns
TypeDescription
Space

clear()

public Space.Builder clear()
Returns
TypeDescription
Space.Builder
Overrides

clearAdminInstalled()

public Space.Builder clearAdminInstalled()

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
Space.Builder

This builder for chaining.

clearCreateTime()

public Space.Builder clearCreateTime()

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
Space.Builder

clearDisplayName()

public Space.Builder clearDisplayName()

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
Space.Builder

This builder for chaining.

clearExternalUserAllowed()

public Space.Builder clearExternalUserAllowed()

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
Space.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Space.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Space.Builder
Overrides

clearImportMode()

public Space.Builder clearImportMode()

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
Space.Builder

This builder for chaining.

clearName()

public Space.Builder clearName()

Resource name of the space.

Format: spaces/{space}

string name = 1;

Returns
TypeDescription
Space.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Space.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Space.Builder
Overrides

clearSingleUserBotDm()

public Space.Builder clearSingleUserBotDm()

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
Space.Builder

This builder for chaining.

clearSpaceDetails()

public Space.Builder clearSpaceDetails()

Details about the space including description and rules.

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

Returns
TypeDescription
Space.Builder

clearSpaceHistoryState()

public Space.Builder clearSpaceHistoryState()

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

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

Returns
TypeDescription
Space.Builder

This builder for chaining.

clearSpaceThreadingState()

public Space.Builder clearSpaceThreadingState()

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.Builder

This builder for chaining.

clearSpaceType()

public Space.Builder clearSpaceType()

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.Builder

This builder for chaining.

clearThreaded() (deprecated)

public Space.Builder clearThreaded()

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
Space.Builder

This builder for chaining.

clearType() (deprecated)

public Space.Builder clearType()

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.Builder

This builder for chaining.

clone()

public Space.Builder clone()
Returns
TypeDescription
Space.Builder
Overrides

getAdminInstalled()

public 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 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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

getCreateTimeOrBuilder()

public 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

getDefaultInstanceForType()

public Space getDefaultInstanceForType()
Returns
TypeDescription
Space

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public 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 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 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 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 String getName()

Resource name of the space.

Format: spaces/{space}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the space.

Format: spaces/{space}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSingleUserBotDm()

public 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 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.

getSpaceDetailsBuilder()

public Space.SpaceDetails.Builder getSpaceDetailsBuilder()

Details about the space including description and rules.

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

Returns
TypeDescription
Space.SpaceDetails.Builder

getSpaceDetailsOrBuilder()

public 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 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 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 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 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Space.Builder mergeCreateTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Space.Builder

mergeFrom(Space other)

public Space.Builder mergeFrom(Space other)
Parameter
NameDescription
otherSpace
Returns
TypeDescription
Space.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Space.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Space.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Space.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Space.Builder
Overrides

mergeSpaceDetails(Space.SpaceDetails value)

public Space.Builder mergeSpaceDetails(Space.SpaceDetails value)

Details about the space including description and rules.

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

Parameter
NameDescription
valueSpace.SpaceDetails
Returns
TypeDescription
Space.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Space.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Space.Builder
Overrides

setAdminInstalled(boolean value)

public Space.Builder setAdminInstalled(boolean value)

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];

Parameter
NameDescription
valueboolean

The adminInstalled to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Space.Builder setCreateTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Space.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Space.Builder setCreateTime(Timestamp.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Space.Builder

setDisplayName(String value)

public Space.Builder setDisplayName(String value)

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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Space.Builder setDisplayNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setExternalUserAllowed(boolean value)

public Space.Builder setExternalUserAllowed(boolean value)

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];

Parameter
NameDescription
valueboolean

The externalUserAllowed to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Space.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Space.Builder
Overrides

setImportMode(boolean value)

public Space.Builder setImportMode(boolean value)

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];

Parameter
NameDescription
valueboolean

The importMode to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setName(String value)

public Space.Builder setName(String value)

Resource name of the space.

Format: spaces/{space}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Space.Builder setNameBytes(ByteString value)

Resource name of the space.

Format: spaces/{space}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Space.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Space.Builder
Overrides

setSingleUserBotDm(boolean value)

public Space.Builder setSingleUserBotDm(boolean value)

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];

Parameter
NameDescription
valueboolean

The singleUserBotDm to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceDetails(Space.SpaceDetails value)

public Space.Builder setSpaceDetails(Space.SpaceDetails value)

Details about the space including description and rules.

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

Parameter
NameDescription
valueSpace.SpaceDetails
Returns
TypeDescription
Space.Builder

setSpaceDetails(Space.SpaceDetails.Builder builderForValue)

public Space.Builder setSpaceDetails(Space.SpaceDetails.Builder builderForValue)

Details about the space including description and rules.

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

Parameter
NameDescription
builderForValueSpace.SpaceDetails.Builder
Returns
TypeDescription
Space.Builder

setSpaceHistoryState(HistoryState value)

public Space.Builder setSpaceHistoryState(HistoryState value)

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

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

Parameter
NameDescription
valueHistoryState

The spaceHistoryState to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceHistoryStateValue(int value)

public Space.Builder setSpaceHistoryStateValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for spaceHistoryState to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceThreadingState(Space.SpaceThreadingState value)

public Space.Builder setSpaceThreadingState(Space.SpaceThreadingState value)

Output only. The threading state in the Chat space.

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

Parameter
NameDescription
valueSpace.SpaceThreadingState

The spaceThreadingState to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceThreadingStateValue(int value)

public Space.Builder setSpaceThreadingStateValue(int value)

Output only. The threading state in the Chat space.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for spaceThreadingState to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceType(Space.SpaceType value)

public Space.Builder setSpaceType(Space.SpaceType value)

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;

Parameter
NameDescription
valueSpace.SpaceType

The spaceType to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setSpaceTypeValue(int value)

public Space.Builder setSpaceTypeValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for spaceType to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setThreaded(boolean value) (deprecated)

public Space.Builder setThreaded(boolean value)

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];

Parameter
NameDescription
valueboolean

The threaded to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setType(Space.Type value) (deprecated)

public Space.Builder setType(Space.Type value)

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];

Parameter
NameDescription
valueSpace.Type

The type to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setTypeValue(int value) (deprecated)

public Space.Builder setTypeValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
Space.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Space.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Space.Builder
Overrides