Class CreateTenantRequest.Builder (2.35.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.v4beta1.CreateTenantRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTenantRequest build()
Returns
TypeDescription
CreateTenantRequest

buildPartial()

public CreateTenantRequest buildPartial()
Returns
TypeDescription
CreateTenantRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearTenant()

public CreateTenantRequest.Builder clearTenant()

Required. The tenant to be created.

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

Returns
TypeDescription
CreateTenantRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateTenantRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTenantRequest

getDescriptorForType()

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

The bytes for parent.

getTenant()

public Tenant getTenant()

Required. The tenant to be created.

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

Returns
TypeDescription
Tenant

The tenant.

getTenantBuilder()

public Tenant.Builder getTenantBuilder()

Required. The tenant to be created.

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

Returns
TypeDescription
Tenant.Builder

getTenantOrBuilder()

public TenantOrBuilder getTenantOrBuilder()

Required. The tenant to be created.

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

Returns
TypeDescription
TenantOrBuilder

hasTenant()

public boolean hasTenant()

Required. The tenant to be created.

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

Returns
TypeDescription
boolean

Whether the tenant field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTenantRequest other)

public CreateTenantRequest.Builder mergeFrom(CreateTenantRequest other)
Parameter
NameDescription
otherCreateTenantRequest
Returns
TypeDescription
CreateTenantRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTenant(Tenant value)

public CreateTenantRequest.Builder mergeTenant(Tenant value)

Required. The tenant to be created.

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

Parameter
NameDescription
valueTenant
Returns
TypeDescription
CreateTenantRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setTenant(Tenant value)

public CreateTenantRequest.Builder setTenant(Tenant value)

Required. The tenant to be created.

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

Parameter
NameDescription
valueTenant
Returns
TypeDescription
CreateTenantRequest.Builder

setTenant(Tenant.Builder builderForValue)

public CreateTenantRequest.Builder setTenant(Tenant.Builder builderForValue)

Required. The tenant to be created.

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

Parameter
NameDescription
builderForValueTenant.Builder
Returns
TypeDescription
CreateTenantRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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