Class CreateCompanyRequest.Builder (2.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCompanyRequest build()
Returns
TypeDescription
CreateCompanyRequest

buildPartial()

public CreateCompanyRequest buildPartial()
Returns
TypeDescription
CreateCompanyRequest

clear()

public CreateCompanyRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateCompanyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCompanyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCompanyRequest.Builder

This builder for chaining.

clone()

public CreateCompanyRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CompanyOrBuilder

getDefaultInstanceForType()

public CreateCompanyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCompanyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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/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
TypeDescription
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
TypeDescription
boolean

Whether the company field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCompany
Returns
TypeDescription
CreateCompanyRequest.Builder

mergeFrom(CreateCompanyRequest other)

public CreateCompanyRequest.Builder mergeFrom(CreateCompanyRequest other)
Parameter
NameDescription
otherCreateCompanyRequest
Returns
TypeDescription
CreateCompanyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCompanyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCompany
Returns
TypeDescription
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
NameDescription
builderForValueCompany.Builder
Returns
TypeDescription
CreateCompanyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCompanyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCompanyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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