Class Space.AccessSettings.Builder (0.13.0)

public static final class Space.AccessSettings.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Space.AccessSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Space.AccessSettings.Builder
Overrides

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

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

Returns
Type Description
Space.AccessSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Space.AccessSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Space.AccessSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Space.AccessSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Space.AccessSettings.Builder
Overrides

clone()

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

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

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Space.AccessSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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. 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.

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

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.

setField(Descriptors.FieldDescriptor field, Object value)

public Space.AccessSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Space.AccessSettings.Builder
Overrides

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

public Space.AccessSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Space.AccessSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Space.AccessSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Space.AccessSettings.Builder
Overrides