Class ReplicaSelection.Builder (6.108.0)

public static final class ReplicaSelection.Builder extends GeneratedMessage.Builder<ReplicaSelection.Builder> implements ReplicaSelectionOrBuilder

ReplicaSelection identifies replicas with common properties.

Protobuf type google.spanner.admin.instance.v1.ReplicaSelection

Static Methods

getDescriptor()

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

Methods

build()

public ReplicaSelection build()
Returns
Type Description
ReplicaSelection

buildPartial()

public ReplicaSelection buildPartial()
Returns
Type Description
ReplicaSelection

clear()

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

clearLocation()

public ReplicaSelection.Builder clearLocation()

Required. Name of the location of the replicas (e.g., "us-central1").

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplicaSelection.Builder

This builder for chaining.

getDefaultInstanceForType()

public ReplicaSelection getDefaultInstanceForType()
Returns
Type Description
ReplicaSelection

getDescriptorForType()

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

getLocation()

public String getLocation()

Required. Name of the location of the replicas (e.g., "us-central1").

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. Name of the location of the replicas (e.g., "us-central1").

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplicaSelection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaSelection.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ReplicaSelection other)

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

setLocation(String value)

public ReplicaSelection.Builder setLocation(String value)

Required. Name of the location of the replicas (e.g., "us-central1").

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
ReplicaSelection.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ReplicaSelection.Builder setLocationBytes(ByteString value)

Required. Name of the location of the replicas (e.g., "us-central1").

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
ReplicaSelection.Builder

This builder for chaining.