public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
An isolated set of Cloud Spanner resources on which databases can be hosted.
Protobuf type google.spanner.admin.instance.v1.Instance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.BuilderImplements
InstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllEndpointUris(Iterable<String> values)
public Instance.Builder addAllEndpointUris(Iterable<String> values)
Deprecated. This field is not populated.
repeated string endpoint_uris = 8;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The endpointUris to add. |
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
addEndpointUris(String value)
public Instance.Builder addEndpointUris(String value)
Deprecated. This field is not populated.
repeated string endpoint_uris = 8;
Parameter | |
---|---|
Name | Description |
value |
String The endpointUris to add. |
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
addEndpointUrisBytes(ByteString value)
public Instance.Builder addEndpointUrisBytes(ByteString value)
Deprecated. This field is not populated.
repeated string endpoint_uris = 8;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the endpointUris to add. |
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Instance.Builder |
build()
public Instance build()
Returns | |
---|---|
Type | Description |
Instance |
buildPartial()
public Instance buildPartial()
Returns | |
---|---|
Type | Description |
Instance |
clear()
public Instance.Builder clear()
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearAutoscalingConfig()
public Instance.Builder clearAutoscalingConfig()
Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.
.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearConfig()
public Instance.Builder clearConfig()
Required. The name of the instance's configuration. Values are of the form
projects/<project>/instanceConfigs/<configuration>
. See
also InstanceConfig and
ListInstanceConfigs.
string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
clearCreateTime()
public Instance.Builder clearCreateTime()
Output only. The time at which the instance was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearDisplayName()
public Instance.Builder clearDisplayName()
Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
clearEdition()
public Instance.Builder clearEdition()
Optional. The Edition
of the current instance.
.google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Instance.Builder |
This builder for chaining. |
clearEndpointUris()
public Instance.Builder clearEndpointUris()
Deprecated. This field is not populated.
repeated string endpoint_uris = 8;
Returns | |
---|---|
Type |