Class ListCompaniesRequest.Builder (2.33.0)

public static final class ListCompaniesRequest.Builder extends GeneratedMessageV3.Builder<ListCompaniesRequest.Builder> implements ListCompaniesRequestOrBuilder

List companies for which the client has ACL visibility.

Protobuf type google.cloud.talent.v4.ListCompaniesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCompaniesRequest build()
Returns
TypeDescription
ListCompaniesRequest

buildPartial()

public ListCompaniesRequest buildPartial()
Returns
TypeDescription
ListCompaniesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListCompaniesRequest.Builder clearPageSize()

The maximum number of companies to be returned, at most 100. Default is 100 if a non-positive number is provided.

int32 page_size = 3;

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

clearPageToken()

public ListCompaniesRequest.Builder clearPageToken()

The starting indicator from which to return results.

string page_token = 2;

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

clearParent()

public ListCompaniesRequest.Builder clearParent()

Required. Resource name of the tenant under which the company is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

clearRequireOpenJobs()

public ListCompaniesRequest.Builder clearRequireOpenJobs()

Set to true if the companies requested must have open jobs.

Defaults to false.

If true, at most page_size of companies are fetched, among which only those with open jobs are returned.

bool require_open_jobs = 4;

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListCompaniesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListCompaniesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

The maximum number of companies to be returned, at most 100. Default is 100 if a non-positive number is provided.

int32 page_size = 3;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

The starting indicator from which to return results.

string page_token = 2;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

The starting indicator from which to return results.

string page_token = 2;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. Resource name of the tenant under which the company is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the tenant under which the company is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getRequireOpenJobs()

public boolean getRequireOpenJobs()

Set to true if the companies requested must have open jobs.

Defaults to false.

If true, at most page_size of companies are fetched, among which only those with open jobs are returned.

bool require_open_jobs = 4;

Returns
TypeDescription
boolean

The requireOpenJobs.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCompaniesRequest other)

public ListCompaniesRequest.Builder mergeFrom(ListCompaniesRequest other)
Parameter
NameDescription
otherListCompaniesRequest
Returns
TypeDescription
ListCompaniesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public ListCompaniesRequest.Builder setPageSize(int value)

The maximum number of companies to be returned, at most 100. Default is 100 if a non-positive number is provided.

int32 page_size = 3;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListCompaniesRequest.Builder setPageToken(String value)

The starting indicator from which to return results.

string page_token = 2;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListCompaniesRequest.Builder setPageTokenBytes(ByteString value)

The starting indicator from which to return results.

string page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

setParent(String value)

public ListCompaniesRequest.Builder setParent(String value)

Required. Resource name of the tenant under which the company is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListCompaniesRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the tenant under which the company is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

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

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

setRequireOpenJobs(boolean value)

public ListCompaniesRequest.Builder setRequireOpenJobs(boolean value)

Set to true if the companies requested must have open jobs.

Defaults to false.

If true, at most page_size of companies are fetched, among which only those with open jobs are returned.

bool require_open_jobs = 4;

Parameter
NameDescription
valueboolean

The requireOpenJobs to set.

Returns
TypeDescription
ListCompaniesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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