Class CreateUserInstanceConfigAction.Builder (6.80.1)

public static final class CreateUserInstanceConfigAction.Builder extends GeneratedMessageV3.Builder<CreateUserInstanceConfigAction.Builder> implements CreateUserInstanceConfigActionOrBuilder

Action that creates a user instance config.

Protobuf type google.spanner.executor.v1.CreateUserInstanceConfigAction

Static Methods

getDescriptor()

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

Methods

addAllReplicas(Iterable<? extends ReplicaInfo> values)

public CreateUserInstanceConfigAction.Builder addAllReplicas(Iterable<? extends ReplicaInfo> values)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
values Iterable<? extends com.google.spanner.admin.instance.v1.ReplicaInfo>
Returns
Type Description
CreateUserInstanceConfigAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addReplicas(ReplicaInfo value)

public CreateUserInstanceConfigAction.Builder addReplicas(ReplicaInfo value)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
value ReplicaInfo
Returns
Type Description
CreateUserInstanceConfigAction.Builder

addReplicas(ReplicaInfo.Builder builderForValue)

public CreateUserInstanceConfigAction.Builder addReplicas(ReplicaInfo.Builder builderForValue)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
builderForValue ReplicaInfo.Builder
Returns
Type Description
CreateUserInstanceConfigAction.Builder

addReplicas(int index, ReplicaInfo value)

public CreateUserInstanceConfigAction.Builder addReplicas(int index, ReplicaInfo value)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameters
Name Description
index int
value ReplicaInfo
Returns
Type Description
CreateUserInstanceConfigAction.Builder

addReplicas(int index, ReplicaInfo.Builder builderForValue)

public CreateUserInstanceConfigAction.Builder addReplicas(int index, ReplicaInfo.Builder builderForValue)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameters
Name Description
index int
builderForValue ReplicaInfo.Builder
Returns
Type Description
CreateUserInstanceConfigAction.Builder

addReplicasBuilder()

public ReplicaInfo.Builder addReplicasBuilder()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
ReplicaInfo.Builder

addReplicasBuilder(int index)

public ReplicaInfo.Builder addReplicasBuilder(int index)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
index int
Returns
Type Description
ReplicaInfo.Builder

build()

public CreateUserInstanceConfigAction build()
Returns
Type Description
CreateUserInstanceConfigAction

buildPartial()

public CreateUserInstanceConfigAction buildPartial()
Returns
Type Description
CreateUserInstanceConfigAction

clear()

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

clearBaseConfigId()

public CreateUserInstanceConfigAction.Builder clearBaseConfigId()

Base config ID, e.g. "test-config".

string base_config_id = 3;

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CreateUserInstanceConfigAction.Builder clearProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

clearReplicas()

public CreateUserInstanceConfigAction.Builder clearReplicas()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
CreateUserInstanceConfigAction.Builder

clearUserConfigId()

public CreateUserInstanceConfigAction.Builder clearUserConfigId()

User instance config ID (not path), e.g. "custom-config".

string user_config_id = 1;

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

clone()

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

getBaseConfigId()

public String getBaseConfigId()

Base config ID, e.g. "test-config".

string base_config_id = 3;

Returns
Type Description
String

The baseConfigId.

getBaseConfigIdBytes()

public ByteString getBaseConfigIdBytes()

Base config ID, e.g. "test-config".

string base_config_id = 3;

Returns
Type Description
ByteString

The bytes for baseConfigId.

getDefaultInstanceForType()

public CreateUserInstanceConfigAction getDefaultInstanceForType()
Returns
Type Description
CreateUserInstanceConfigAction

getDescriptorForType()

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

getProjectId()

public String getProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
Type Description
ByteString

The bytes for projectId.

getReplicas(int index)

public ReplicaInfo getReplicas(int index)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
index int
Returns
Type Description
ReplicaInfo

getReplicasBuilder(int index)

public ReplicaInfo.Builder getReplicasBuilder(int index)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
index int
Returns
Type Description
ReplicaInfo.Builder

getReplicasBuilderList()

public List<ReplicaInfo.Builder> getReplicasBuilderList()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
List<Builder>

getReplicasCount()

public int getReplicasCount()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
int

getReplicasList()

public List<ReplicaInfo> getReplicasList()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
List<ReplicaInfo>

getReplicasOrBuilder(int index)

public ReplicaInfoOrBuilder getReplicasOrBuilder(int index)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
index int
Returns
Type Description
ReplicaInfoOrBuilder

getReplicasOrBuilderList()

public List<? extends ReplicaInfoOrBuilder> getReplicasOrBuilderList()

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Returns
Type Description
List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>

getUserConfigId()

public String getUserConfigId()

User instance config ID (not path), e.g. "custom-config".

string user_config_id = 1;

Returns
Type Description
String

The userConfigId.

getUserConfigIdBytes()

public ByteString getUserConfigIdBytes()

User instance config ID (not path), e.g. "custom-config".

string user_config_id = 1;

Returns
Type Description
ByteString

The bytes for userConfigId.

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 CreateUserInstanceConfigAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateUserInstanceConfigAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CreateUserInstanceConfigAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReplicas(int index)

public CreateUserInstanceConfigAction.Builder removeReplicas(int index)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameter
Name Description
index int
Returns
Type Description
CreateUserInstanceConfigAction.Builder

setBaseConfigId(String value)

public CreateUserInstanceConfigAction.Builder setBaseConfigId(String value)

Base config ID, e.g. "test-config".

string base_config_id = 3;

Parameter
Name Description
value String

The baseConfigId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

setBaseConfigIdBytes(ByteString value)

public CreateUserInstanceConfigAction.Builder setBaseConfigIdBytes(ByteString value)

Base config ID, e.g. "test-config".

string base_config_id = 3;

Parameter
Name Description
value ByteString

The bytes for baseConfigId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public CreateUserInstanceConfigAction.Builder setProjectId(String value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CreateUserInstanceConfigAction.Builder setProjectIdBytes(ByteString value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

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

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

setReplicas(int index, ReplicaInfo value)

public CreateUserInstanceConfigAction.Builder setReplicas(int index, ReplicaInfo value)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameters
Name Description
index int
value ReplicaInfo
Returns
Type Description
CreateUserInstanceConfigAction.Builder

setReplicas(int index, ReplicaInfo.Builder builderForValue)

public CreateUserInstanceConfigAction.Builder setReplicas(int index, ReplicaInfo.Builder builderForValue)

Replicas that should be included in the user config.

repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;

Parameters
Name Description
index int
builderForValue ReplicaInfo.Builder
Returns
Type Description
CreateUserInstanceConfigAction.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserConfigId(String value)

public CreateUserInstanceConfigAction.Builder setUserConfigId(String value)

User instance config ID (not path), e.g. "custom-config".

string user_config_id = 1;

Parameter
Name Description
value String

The userConfigId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.

setUserConfigIdBytes(ByteString value)

public CreateUserInstanceConfigAction.Builder setUserConfigIdBytes(ByteString value)

User instance config ID (not path), e.g. "custom-config".

string user_config_id = 1;

Parameter
Name Description
value ByteString

The bytes for userConfigId to set.

Returns
Type Description
CreateUserInstanceConfigAction.Builder

This builder for chaining.