public static final class Space.AccessSettings.Builder extends GeneratedMessage.Builder<Space.AccessSettings.Builder> implements Space.AccessSettingsOrBuilderRepresents the access setting of the space.
Protobuf type google.chat.v1.Space.AccessSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Space.AccessSettings.BuilderImplements
Space.AccessSettingsOrBuilderStatic 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 |
|
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:
App authentication with administrator approval with the
chat.app.spacesscope.This field is not populated when using the
chat.botscope with app authentication.Setting the target audience requires user authentication.
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:
App authentication with administrator approval with the
chat.app.spacesscope.This field is not populated when using the
chat.botscope with app authentication.Setting the target audience requires user authentication.
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:
App authentication with administrator approval with the
chat.app.spacesscope.This field is not populated when using the
chat.botscope with app authentication.Setting the target audience requires user authentication.
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.AccessStateThe 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 |
intThe 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:
App authentication with administrator approval with the
chat.app.spacesscope.This field is not populated when using the
chat.botscope with app authentication.Setting the target audience requires user authentication.
string audience = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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:
App authentication with administrator approval with the
chat.app.spacesscope.This field is not populated when using the
chat.botscope with app authentication.Setting the target audience requires user authentication.
string audience = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for audience to set. |
| Returns | |
|---|---|
| Type | Description |
Space.AccessSettings.Builder |
This builder for chaining. |