Class CreateInstanceConfigRequest.Builder (6.60.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateInstanceConfigRequest build()
Returns
TypeDescription
CreateInstanceConfigRequest

buildPartial()

public CreateInstanceConfigRequest buildPartial()
Returns
TypeDescription
CreateInstanceConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateInstanceConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateInstanceConfigRequest.Builder

clearInstanceConfigId()

public CreateInstanceConfigRequest.Builder clearInstanceConfigId()

Required. The ID of the instance config 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
TypeDescription
CreateInstanceConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateInstanceConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateInstanceConfigRequest.Builder
Overrides

clearParent()

public CreateInstanceConfigRequest.Builder clearParent()

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

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateInstanceConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateInstanceConfigRequest

getDescriptorForType()

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

getInstanceConfigId()

public String getInstanceConfigId()

Required. The ID of the instance config 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
TypeDescription
String

The instanceConfigId.

getInstanceConfigIdBytes()

public ByteString getInstanceConfigIdBytes()

Required. The ID of the instance config 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
TypeDescription
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
TypeDescription
InstanceConfigOrBuilder

getParent()

public String getParent()

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

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the instanceConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateInstanceConfigRequest other)

public CreateInstanceConfigRequest.Builder mergeFrom(CreateInstanceConfigRequest other)
Parameter
NameDescription
otherCreateInstanceConfigRequest
Returns
TypeDescription
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
NameDescription
valueInstanceConfig
Returns
TypeDescription
CreateInstanceConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceConfigId(String value)

public CreateInstanceConfigRequest.Builder setInstanceConfigId(String value)

Required. The ID of the instance config 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
NameDescription
valueString

The instanceConfigId to set.

Returns
TypeDescription
CreateInstanceConfigRequest.Builder

This builder for chaining.

setInstanceConfigIdBytes(ByteString value)

public CreateInstanceConfigRequest.Builder setInstanceConfigIdBytes(ByteString value)

Required. The ID of the instance config 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
NameDescription
valueByteString

The bytes for instanceConfigId to set.

Returns
TypeDescription
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 config. Values are of the form projects/<project>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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 config. Values are of the form projects/<project>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateInstanceConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateInstanceConfigRequest.Builder

This builder for chaining.