Class CreateTenantRequest.Builder (2.56.0)

public static final class CreateTenantRequest.Builder extends GeneratedMessageV3.Builder<CreateTenantRequest.Builder> implements CreateTenantRequestOrBuilder

The Request of the CreateTenant method.

Protobuf type google.cloud.talent.v4.CreateTenantRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTenantRequest build()
Returns
Type Description
CreateTenantRequest

buildPartial()

public CreateTenantRequest buildPartial()
Returns
Type Description
CreateTenantRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTenantRequest.Builder clearParent()

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

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

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

Returns
Type Description
CreateTenantRequest.Builder

This builder for chaining.

clearTenant()

public CreateTenantRequest.Builder clearTenant()

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTenantRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateTenantRequest getDefaultInstanceForType()
Returns
Type Description
CreateTenantRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

The format is "projects/{project_id}", 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 project under which the tenant is created.

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

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

Returns
Type Description
ByteString

The bytes for parent.

getTenant()

public Tenant getTenant()

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tenant

The tenant.

getTenantBuilder()

public Tenant.Builder getTenantBuilder()

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tenant.Builder

getTenantOrBuilder()

public TenantOrBuilder getTenantOrBuilder()

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TenantOrBuilder

hasTenant()

public boolean hasTenant()

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tenant field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTenantRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTenant(Tenant value)

public CreateTenantRequest.Builder mergeTenant(Tenant value)

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tenant
Returns
Type Description
CreateTenantRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTenantRequest.Builder setParent(String value)

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

The format is "projects/{project_id}", 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
CreateTenantRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTenantRequest.Builder setParentBytes(ByteString value)

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

The format is "projects/{project_id}", 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
CreateTenantRequest.Builder

This builder for chaining.

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

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

setTenant(Tenant value)

public CreateTenantRequest.Builder setTenant(Tenant value)

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tenant
Returns
Type Description
CreateTenantRequest.Builder

setTenant(Tenant.Builder builderForValue)

public CreateTenantRequest.Builder setTenant(Tenant.Builder builderForValue)

Required. The tenant to be created.

.google.cloud.talent.v4.Tenant tenant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Tenant.Builder
Returns
Type Description
CreateTenantRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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