Class CreateInstanceConfigRequest.Builder (6.80.1)

public static final class CreateInstanceConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateInstanceConfigRequest.Builder> implements CreateInstanceConfigRequestOrBuilder

The request for CreateInstanceConfigRequest.

Protobuf type google.spanner.admin.instance.v1.CreateInstanceConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateInstanceConfigRequest build()
Returns
Type Description
CreateInstanceConfigRequest

buildPartial()

public CreateInstanceConfigRequest buildPartial()
Returns
Type Description
CreateInstanceConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceConfig()

public CreateInstanceConfigRequest.Builder clearInstanceConfig()

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateInstanceConfigRequest.Builder

clearInstanceConfigId()

public CreateInstanceConfigRequest.Builder clearInstanceConfigId()

Required. The ID of the instance configuration to create. Valid identifiers are of the form custom-[-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in length. The custom- prefix is required to avoid name conflicts with Google-managed configurations.

string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateInstanceConfigRequest.Builder clearParent()

Required. The name of the project in which to create the instance configuration. Values are of the form projects/<project>.

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

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateInstanceConfigRequest.Builder clearValidateOnly()

An option to validate, but not actually execute, a request, and provide the same response.

bool validate_only = 4;

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateInstanceConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateInstanceConfigRequest

getDescriptorForType()

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

getInstanceConfig()

public InstanceConfig getInstanceConfig()

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceConfig

The instanceConfig.

getInstanceConfigBuilder()

public InstanceConfig.Builder getInstanceConfigBuilder()

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceConfig.Builder

getInstanceConfigId()

public String getInstanceConfigId()

Required. The ID of the instance configuration to create. Valid identifiers are of the form custom-[-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in length. The custom- prefix is required to avoid name conflicts with Google-managed configurations.

string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instanceConfigId.

getInstanceConfigIdBytes()

public ByteString getInstanceConfigIdBytes()

Required. The ID of the instance configuration to create. Valid identifiers are of the form custom-[-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in length. The custom- prefix is required to avoid name conflicts with Google-managed configurations.

string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instanceConfigId.

getInstanceConfigOrBuilder()

public InstanceConfigOrBuilder getInstanceConfigOrBuilder()

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceConfigOrBuilder

getParent()

public String getParent()

Required. The name of the project in which to create the instance configuration. Values are of the form projects/<project>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project in which to create the instance configuration. Values are of the form projects/<project>.

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

An option to validate, but not actually execute, a request, and provide the same response.

bool validate_only = 4;

Returns
Type Description
boolean

The validateOnly.

hasInstanceConfig()

public boolean hasInstanceConfig()

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instanceConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateInstanceConfigRequest other)

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

mergeInstanceConfig(InstanceConfig value)

public CreateInstanceConfigRequest.Builder mergeInstanceConfig(InstanceConfig value)

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InstanceConfig
Returns
Type Description
CreateInstanceConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceConfig(InstanceConfig value)

public CreateInstanceConfigRequest.Builder setInstanceConfig(InstanceConfig value)

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InstanceConfig
Returns
Type Description
CreateInstanceConfigRequest.Builder

setInstanceConfig(InstanceConfig.Builder builderForValue)

public CreateInstanceConfigRequest.Builder setInstanceConfig(InstanceConfig.Builder builderForValue)

Required. The InstanceConfig proto of the configuration to create. instance_config.name must be <parent>/instanceConfigs/<instance_config_id>. instance_config.base_config must be a Google managed configuration name, e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue InstanceConfig.Builder
Returns
Type Description
CreateInstanceConfigRequest.Builder

setInstanceConfigId(String value)

public CreateInstanceConfigRequest.Builder setInstanceConfigId(String value)

Required. The ID of the instance configuration to create. Valid identifiers are of the form custom-[-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in length. The custom- prefix is required to avoid name conflicts with Google-managed configurations.

string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instanceConfigId to set.

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

setInstanceConfigIdBytes(ByteString value)

public CreateInstanceConfigRequest.Builder setInstanceConfigIdBytes(ByteString value)

Required. The ID of the instance configuration to create. Valid identifiers are of the form custom-[-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in length. The custom- prefix is required to avoid name conflicts with Google-managed configurations.

string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instanceConfigId to set.

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

setParent(String value)

public CreateInstanceConfigRequest.Builder setParent(String value)

Required. The name of the project in which to create the instance configuration. Values are of the form projects/<project>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateInstanceConfigRequest.Builder setParentBytes(ByteString value)

Required. The name of the project in which to create the instance configuration. Values are of the form projects/<project>.

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
CreateInstanceConfigRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateInstanceConfigRequest.Builder setValidateOnly(boolean value)

An option to validate, but not actually execute, a request, and provide the same response.

bool validate_only = 4;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateInstanceConfigRequest.Builder

This builder for chaining.