Class CreateCompanyRequest.Builder (2.43.0)

public static final class CreateCompanyRequest.Builder extends GeneratedMessageV3.Builder<CreateCompanyRequest.Builder> implements CreateCompanyRequestOrBuilder

The Request of the CreateCompany method.

Protobuf type google.cloud.talent.v4beta1.CreateCompanyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCompanyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

build()

public CreateCompanyRequest build()
Returns
Type Description
CreateCompanyRequest

buildPartial()

public CreateCompanyRequest buildPartial()
Returns
Type Description
CreateCompanyRequest

clear()

public CreateCompanyRequest.Builder clear()
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

clearCompany()

public CreateCompanyRequest.Builder clearCompany()

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCompanyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCompanyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCompanyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

clearParent()

public CreateCompanyRequest.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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".

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

Returns
Type Description
CreateCompanyRequest.Builder

This builder for chaining.

clone()

public CreateCompanyRequest.Builder clone()
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

getCompany()

public Company getCompany()

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Company

The company.

getCompanyBuilder()

public Company.Builder getCompanyBuilder()

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Company.Builder

getCompanyOrBuilder()

public CompanyOrBuilder getCompanyOrBuilder()

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompanyOrBuilder

getDefaultInstanceForType()

public CreateCompanyRequest getDefaultInstanceForType()
Returns
Type Description
CreateCompanyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".

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

Returns
Type Description
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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".

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

Returns
Type Description
ByteString

The bytes for parent.

hasCompany()

public boolean hasCompany()

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the company field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCompany(Company value)

public CreateCompanyRequest.Builder mergeCompany(Company value)

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Company
Returns
Type Description
CreateCompanyRequest.Builder

mergeFrom(CreateCompanyRequest other)

public CreateCompanyRequest.Builder mergeFrom(CreateCompanyRequest other)
Parameter
Name Description
other CreateCompanyRequest
Returns
Type Description
CreateCompanyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCompanyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCompanyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCompanyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

setCompany(Company value)

public CreateCompanyRequest.Builder setCompany(Company value)

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Company
Returns
Type Description
CreateCompanyRequest.Builder

setCompany(Company.Builder builderForValue)

public CreateCompanyRequest.Builder setCompany(Company.Builder builderForValue)

Required. The company to be created.

.google.cloud.talent.v4beta1.Company company = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Company.Builder
Returns
Type Description
CreateCompanyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCompanyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

setParent(String value)

public CreateCompanyRequest.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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCompanyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCompanyRequest.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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCompanyRequest.Builder

This builder for chaining.

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

public CreateCompanyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateCompanyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCompanyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCompanyRequest.Builder
Overrides