Class ListCompaniesResponse.Builder (2.37.0)

public static final class ListCompaniesResponse.Builder extends GeneratedMessageV3.Builder<ListCompaniesResponse.Builder> implements ListCompaniesResponseOrBuilder

The List companies response object.

Protobuf type google.cloud.talent.v4.ListCompaniesResponse

Static Methods

getDescriptor()

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

Methods

addAllCompanies(Iterable<? extends Company> values)

public ListCompaniesResponse.Builder addAllCompanies(Iterable<? extends Company> values)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.talent.v4.Company>
Returns
TypeDescription
ListCompaniesResponse.Builder

addCompanies(Company value)

public ListCompaniesResponse.Builder addCompanies(Company value)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
valueCompany
Returns
TypeDescription
ListCompaniesResponse.Builder

addCompanies(Company.Builder builderForValue)

public ListCompaniesResponse.Builder addCompanies(Company.Builder builderForValue)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
builderForValueCompany.Builder
Returns
TypeDescription
ListCompaniesResponse.Builder

addCompanies(int index, Company value)

public ListCompaniesResponse.Builder addCompanies(int index, Company value)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameters
NameDescription
indexint
valueCompany
Returns
TypeDescription
ListCompaniesResponse.Builder

addCompanies(int index, Company.Builder builderForValue)

public ListCompaniesResponse.Builder addCompanies(int index, Company.Builder builderForValue)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameters
NameDescription
indexint
builderForValueCompany.Builder
Returns
TypeDescription
ListCompaniesResponse.Builder

addCompaniesBuilder()

public Company.Builder addCompaniesBuilder()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
Company.Builder

addCompaniesBuilder(int index)

public Company.Builder addCompaniesBuilder(int index)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Company.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCompaniesResponse build()
Returns
TypeDescription
ListCompaniesResponse

buildPartial()

public ListCompaniesResponse buildPartial()
Returns
TypeDescription
ListCompaniesResponse

clear()

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

clearCompanies()

public ListCompaniesResponse.Builder clearCompanies()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
ListCompaniesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

public ListCompaniesResponse.Builder clearMetadata()

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

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

Returns
TypeDescription
ListCompaniesResponse.Builder

clearNextPageToken()

public ListCompaniesResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListCompaniesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCompanies(int index)

public Company getCompanies(int index)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Company

getCompaniesBuilder(int index)

public Company.Builder getCompaniesBuilder(int index)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Company.Builder

getCompaniesBuilderList()

public List<Company.Builder> getCompaniesBuilderList()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
List<Builder>

getCompaniesCount()

public int getCompaniesCount()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
int

getCompaniesList()

public List<Company> getCompaniesList()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
List<Company>

getCompaniesOrBuilder(int index)

public CompanyOrBuilder getCompaniesOrBuilder(int index)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CompanyOrBuilder

getCompaniesOrBuilderList()

public List<? extends CompanyOrBuilder> getCompaniesOrBuilderList()

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Returns
TypeDescription
List<? extends com.google.cloud.talent.v4.CompanyOrBuilder>

getDefaultInstanceForType()

public ListCompaniesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCompaniesResponse

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

hasMetadata()

public boolean hasMetadata()

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

.google.cloud.talent.v4.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(ListCompaniesResponse other)

public ListCompaniesResponse.Builder mergeFrom(ListCompaniesResponse other)
Parameter
NameDescription
otherListCompaniesResponse
Returns
TypeDescription
ListCompaniesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(ResponseMetadata value)

public ListCompaniesResponse.Builder mergeMetadata(ResponseMetadata value)

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

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

Parameter
NameDescription
valueResponseMetadata
Returns
TypeDescription
ListCompaniesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCompanies(int index)

public ListCompaniesResponse.Builder removeCompanies(int index)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListCompaniesResponse.Builder

setCompanies(int index, Company value)

public ListCompaniesResponse.Builder setCompanies(int index, Company value)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameters
NameDescription
indexint
valueCompany
Returns
TypeDescription
ListCompaniesResponse.Builder

setCompanies(int index, Company.Builder builderForValue)

public ListCompaniesResponse.Builder setCompanies(int index, Company.Builder builderForValue)

Companies for the current client.

repeated .google.cloud.talent.v4.Company companies = 1;

Parameters
NameDescription
indexint
builderForValueCompany.Builder
Returns
TypeDescription
ListCompaniesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadata(ResponseMetadata value)

public ListCompaniesResponse.Builder setMetadata(ResponseMetadata value)

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

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

Parameter
NameDescription
valueResponseMetadata
Returns
TypeDescription
ListCompaniesResponse.Builder

setMetadata(ResponseMetadata.Builder builderForValue)

public ListCompaniesResponse.Builder setMetadata(ResponseMetadata.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueResponseMetadata.Builder
Returns
TypeDescription
ListCompaniesResponse.Builder

setNextPageToken(String value)

public ListCompaniesResponse.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
ListCompaniesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCompaniesResponse.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
ListCompaniesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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