Class Audience.Builder (0.59.0)

public static final class Audience.Builder extends GeneratedMessage.Builder<Audience.Builder> implements AudienceOrBuilder

A 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

Implements

AudienceOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 String

The 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 ByteString

The bytes for name to set.

Returns
Type Description
Audience.Builder

This builder for chaining.