Class CreateUserInstanceConfigAction.Builder (6.58.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.admin.instance.v1.ReplicaInfo>
Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateUserInstanceConfigAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueReplicaInfo
Returns
TypeDescription
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
NameDescription
builderForValueReplicaInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueReplicaInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReplicaInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReplicaInfo.Builder

build()

public CreateUserInstanceConfigAction build()
Returns
TypeDescription
CreateUserInstanceConfigAction

buildPartial()

public CreateUserInstanceConfigAction buildPartial()
Returns
TypeDescription
CreateUserInstanceConfigAction

clear()

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

clearBaseConfigId()

public CreateUserInstanceConfigAction.Builder clearBaseConfigId()

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

string base_config_id = 3;

Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CreateUserInstanceConfigAction.Builder clearProjectId()

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

string project_id = 2;

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

clearUserConfigId()

public CreateUserInstanceConfigAction.Builder clearUserConfigId()

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

string user_config_id = 1;

Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

This builder for chaining.

clone()

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

getBaseConfigId()

public String getBaseConfigId()

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

string base_config_id = 3;

Returns
TypeDescription
String

The baseConfigId.

getBaseConfigIdBytes()

public ByteString getBaseConfigIdBytes()

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

string base_config_id = 3;

Returns
TypeDescription
ByteString

The bytes for baseConfigId.

getDefaultInstanceForType()

public CreateUserInstanceConfigAction getDefaultInstanceForType()
Returns
TypeDescription
CreateUserInstanceConfigAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectId()

public String getProjectId()

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

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The userConfigId.

getUserConfigIdBytes()

public ByteString getUserConfigIdBytes()

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

string user_config_id = 1;

Returns
TypeDescription
ByteString

The bytes for userConfigId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateUserInstanceConfigAction other)

public CreateUserInstanceConfigAction.Builder mergeFrom(CreateUserInstanceConfigAction other)
Parameter
NameDescription
otherCreateUserInstanceConfigAction
Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserInstanceConfigAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

setBaseConfigId(String value)

public CreateUserInstanceConfigAction.Builder setBaseConfigId(String value)

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

string base_config_id = 3;

Parameter
NameDescription
valueString

The baseConfigId to set.

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

The bytes for baseConfigId to set.

Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The projectId to set.

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

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueReplicaInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReplicaInfo.Builder
Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The userConfigId to set.

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

The bytes for userConfigId to set.

Returns
TypeDescription
CreateUserInstanceConfigAction.Builder

This builder for chaining.