Class ReplicaSelection.Builder (6.80.1)

public static final class ReplicaSelection.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ReplicaSelection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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