Class ListTenantsResponse.Builder (2.30.0)

public static final class ListTenantsResponse.Builder extends GeneratedMessageV3.Builder<ListTenantsResponse.Builder> implements ListTenantsResponseOrBuilder

The List tenants response object.

Protobuf type google.cloud.talent.v4beta1.ListTenantsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTenants(Iterable<? extends Tenant> values)

public ListTenantsResponse.Builder addAllTenants(Iterable<? extends Tenant> values)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.talent.v4beta1.Tenant>
Returns
TypeDescription
ListTenantsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTenantsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

addTenants(Tenant value)

public ListTenantsResponse.Builder addTenants(Tenant value)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
valueTenant
Returns
TypeDescription
ListTenantsResponse.Builder

addTenants(Tenant.Builder builderForValue)

public ListTenantsResponse.Builder addTenants(Tenant.Builder builderForValue)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
builderForValueTenant.Builder
Returns
TypeDescription
ListTenantsResponse.Builder

addTenants(int index, Tenant value)

public ListTenantsResponse.Builder addTenants(int index, Tenant value)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameters
NameDescription
indexint
valueTenant
Returns
TypeDescription
ListTenantsResponse.Builder

addTenants(int index, Tenant.Builder builderForValue)

public ListTenantsResponse.Builder addTenants(int index, Tenant.Builder builderForValue)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameters
NameDescription
indexint
builderForValueTenant.Builder
Returns
TypeDescription
ListTenantsResponse.Builder

addTenantsBuilder()

public Tenant.Builder addTenantsBuilder()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
Tenant.Builder

addTenantsBuilder(int index)

public Tenant.Builder addTenantsBuilder(int index)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Tenant.Builder

build()

public ListTenantsResponse build()
Returns
TypeDescription
ListTenantsResponse

buildPartial()

public ListTenantsResponse buildPartial()
Returns
TypeDescription
ListTenantsResponse

clear()

public ListTenantsResponse.Builder clear()
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTenantsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

clearMetadata()

public ListTenantsResponse.Builder clearMetadata()

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Returns
TypeDescription
ListTenantsResponse.Builder

clearNextPageToken()

public ListTenantsResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListTenantsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTenantsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

clearTenants()

public ListTenantsResponse.Builder clearTenants()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
ListTenantsResponse.Builder

clone()

public ListTenantsResponse.Builder clone()
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListTenantsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTenantsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public ResponseMetadata getMetadata()

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Returns
TypeDescription
ResponseMetadata

The metadata.

getMetadataBuilder()

public ResponseMetadata.Builder getMetadataBuilder()

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Returns
TypeDescription
ResponseMetadata.Builder

getMetadataOrBuilder()

public ResponseMetadataOrBuilder getMetadataOrBuilder()

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Returns
TypeDescription
ResponseMetadataOrBuilder

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getTenants(int index)

public Tenant getTenants(int index)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Tenant

getTenantsBuilder(int index)

public Tenant.Builder getTenantsBuilder(int index)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Tenant.Builder

getTenantsBuilderList()

public List<Tenant.Builder> getTenantsBuilderList()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
List<Builder>

getTenantsCount()

public int getTenantsCount()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
int

getTenantsList()

public List<Tenant> getTenantsList()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
List<Tenant>

getTenantsOrBuilder(int index)

public TenantOrBuilder getTenantsOrBuilder(int index)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TenantOrBuilder

getTenantsOrBuilderList()

public List<? extends TenantOrBuilder> getTenantsOrBuilderList()

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Returns
TypeDescription
List<? extends com.google.cloud.talent.v4beta1.TenantOrBuilder>

hasMetadata()

public boolean hasMetadata()

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListTenantsResponse other)

public ListTenantsResponse.Builder mergeFrom(ListTenantsResponse other)
Parameter
NameDescription
otherListTenantsResponse
Returns
TypeDescription
ListTenantsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTenantsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListTenantsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

mergeMetadata(ResponseMetadata value)

public ListTenantsResponse.Builder mergeMetadata(ResponseMetadata value)

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Parameter
NameDescription
valueResponseMetadata
Returns
TypeDescription
ListTenantsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTenantsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

removeTenants(int index)

public ListTenantsResponse.Builder removeTenants(int index)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListTenantsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTenantsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

setMetadata(ResponseMetadata value)

public ListTenantsResponse.Builder setMetadata(ResponseMetadata value)

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Parameter
NameDescription
valueResponseMetadata
Returns
TypeDescription
ListTenantsResponse.Builder

setMetadata(ResponseMetadata.Builder builderForValue)

public ListTenantsResponse.Builder setMetadata(ResponseMetadata.Builder builderForValue)

Additional information for the API invocation, such as the request tracking id.

.google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;

Parameter
NameDescription
builderForValueResponseMetadata.Builder
Returns
TypeDescription
ListTenantsResponse.Builder

setNextPageToken(String value)

public ListTenantsResponse.Builder setNextPageToken(String value)

A token to retrieve the next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListTenantsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTenantsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve the next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListTenantsResponse.Builder

This builder for chaining.

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

public ListTenantsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides

setTenants(int index, Tenant value)

public ListTenantsResponse.Builder setTenants(int index, Tenant value)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameters
NameDescription
indexint
valueTenant
Returns
TypeDescription
ListTenantsResponse.Builder

setTenants(int index, Tenant.Builder builderForValue)

public ListTenantsResponse.Builder setTenants(int index, Tenant.Builder builderForValue)

Tenants for the current client.

repeated .google.cloud.talent.v4beta1.Tenant tenants = 1;

Parameters
NameDescription
indexint
builderForValueTenant.Builder
Returns
TypeDescription
ListTenantsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTenantsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTenantsResponse.Builder
Overrides