public static final class Audience.Builder extends GeneratedMessage.Builder<Audience.Builder> implements AudienceOrBuilderA target audience in Google Chat. A target audience represents a group of users within a Google Workspace organization, defined by an administrator. Target audiences are used to configure access and visibility settings for resources, such as making a space discoverable to a specific group of users.
For more details, see Target audiences and Make a space discoverable to a target audience.
Protobuf type google.chat.v1.Audience
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Audience.BuilderImplements
AudienceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Audience build()| Returns | |
|---|---|
| Type | Description |
Audience |
|
buildPartial()
public Audience buildPartial()| Returns | |
|---|---|
| Type | Description |
Audience |
|
clear()
public Audience.Builder clear()| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
|
clearName()
public Audience.Builder clearName() The resource name of the target
audience who can discover
or join 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 name = 1;
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Audience getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Audience |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() The resource name of the target
audience who can discover
or join 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 name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() The resource name of the target
audience who can discover
or join 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 name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Audience other)
public Audience.Builder mergeFrom(Audience other)| Parameter | |
|---|---|
| Name | Description |
other |
Audience |
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Audience.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Audience.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
|
setName(String value)
public Audience.Builder setName(String value) The resource name of the target
audience who can discover
or join 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 name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Audience.Builder setNameBytes(ByteString value) The resource name of the target
audience who can discover
or join 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 name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Audience.Builder |
This builder for chaining. |