public static final class InstanceConfig.Builder extends GeneratedMessageV3.Builder<InstanceConfig.Builder> implements InstanceConfigOrBuilder
A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.
Protobuf type google.spanner.admin.instance.v1.InstanceConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceConfig.BuilderImplements
InstanceConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllLeaderOptions(Iterable<String> values)
public InstanceConfig.Builder addAllLeaderOptions(Iterable<String> values)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The leaderOptions to add. |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
This builder for chaining. |
addAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)
public InstanceConfig.Builder addAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.admin.instance.v1.ReplicaInfo> |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addAllReplicas(Iterable<? extends ReplicaInfo> values)
public InstanceConfig.Builder addAllReplicas(Iterable<? extends ReplicaInfo> values)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.admin.instance.v1.ReplicaInfo> |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addLeaderOptions(String value)
public InstanceConfig.Builder addLeaderOptions(String value)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
Parameter | |
---|---|
Name | Description |
value |
String The leaderOptions to add. |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
This builder for chaining. |
addLeaderOptionsBytes(ByteString value)
public InstanceConfig.Builder addLeaderOptionsBytes(ByteString value)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the leaderOptions to add. |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
This builder for chaining. |
addOptionalReplicas(ReplicaInfo value)
public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo value)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ReplicaInfo |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addOptionalReplicas(ReplicaInfo.Builder builderForValue)
public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo.Builder builderForValue)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
ReplicaInfo.Builder |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addOptionalReplicas(int index, ReplicaInfo value)
public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo value)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ReplicaInfo |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ReplicaInfo.Builder |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |
addOptionalReplicasBuilder()
public ReplicaInfo.Builder addOptionalReplicasBuilder()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ReplicaInfo.Builder |
addOptionalReplicasBuilder(int index)
public ReplicaInfo.Builder addOptionalReplicasBuilder(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ReplicaInfo.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InstanceConfig.Builder |