Class Space.AccessSettings.Builder (0.49.0)

public static final class Space.AccessSettings.Builder extends GeneratedMessage.Builder<Space.AccessSettings.Builder> implements Space.AccessSettingsOrBuilder

Represents the access setting of the space.

Protobuf type google.chat.v1.Space.AccessSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Space.AccessSettings build()
Returns
Type Description
Space.AccessSettings

buildPartial()

public Space.AccessSettings buildPartial()
Returns
Type Description
Space.AccessSettings

clear()

public Space.AccessSettings.Builder clear()
Returns
Type Description
Space.AccessSettings.Builder
Overrides

clearAccessState()

public Space.AccessSettings.Builder clearAccessState()

Output only. Indicates the access state of the space.

.google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

clearAudience()

public Space.AccessSettings.Builder clearAudience()

Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience.

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default.

Reading the target audience supports:

string audience = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

getAccessState()

public Space.AccessSettings.AccessState getAccessState()

Output only. Indicates the access state of the space.

.google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.AccessSettings.AccessState

The accessState.

getAccessStateValue()

public int getAccessStateValue()

Output only. Indicates the access state of the space.

.google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for accessState.

getAudience()

public String getAudience()

Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience.

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default.

Reading the target audience supports:

string audience = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The audience.

getAudienceBytes()

public ByteString getAudienceBytes()

Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience.

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default.

Reading the target audience supports:

string audience = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for audience.

getDefaultInstanceForType()

public Space.AccessSettings getDefaultInstanceForType()
Returns
Type Description
Space.AccessSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Space.AccessSettings other)

public Space.AccessSettings.Builder mergeFrom(Space.AccessSettings other)
Parameter
Name Description
other Space.AccessSettings
Returns
Type Description
Space.AccessSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Space.AccessSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.AccessSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Space.AccessSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Space.AccessSettings.Builder
Overrides

setAccessState(Space.AccessSettings.AccessState value)

public Space.AccessSettings.Builder setAccessState(Space.AccessSettings.AccessState value)

Output only. Indicates the access state of the space.

.google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Space.AccessSettings.AccessState

The accessState to set.

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

setAccessStateValue(int value)

public Space.AccessSettings.Builder setAccessStateValue(int value)

Output only. Indicates the access state of the space.

.google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

setAudience(String value)

public Space.AccessSettings.Builder setAudience(String value)

Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience.

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default.

Reading the target audience supports:

string audience = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The audience to set.

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

setAudienceBytes(ByteString value)

public Space.AccessSettings.Builder setAudienceBytes(ByteString value)

Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience.

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default.

Reading the target audience supports:

string audience = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for audience to set.

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.