- 6.108.0 (latest)
- 6.107.0
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class DirectedReadOptions.Builder extends GeneratedMessage.Builder<DirectedReadOptions.Builder> implements DirectedReadOptionsOrBuilder The DirectedReadOptions can be used to indicate which replicas or regions
should be used for non-transactional reads or queries.
DirectedReadOptions can only be specified for a read-only transaction,
otherwise the API returns an INVALID_ARGUMENT error.
Protobuf type google.spanner.v1.DirectedReadOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DirectedReadOptions.BuilderImplements
DirectedReadOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DirectedReadOptions build()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions |
|
buildPartial()
public DirectedReadOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions |
|
clear()
public DirectedReadOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
clearExcludeReplicas()
public DirectedReadOptions.Builder clearExcludeReplicas() Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
clearIncludeReplicas()
public DirectedReadOptions.Builder clearIncludeReplicas() Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
clearReplicas()
public DirectedReadOptions.Builder clearReplicas()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
getDefaultInstanceForType()
public DirectedReadOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExcludeReplicas()
public DirectedReadOptions.ExcludeReplicas getExcludeReplicas() Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.ExcludeReplicas |
The excludeReplicas. |
getExcludeReplicasBuilder()
public DirectedReadOptions.ExcludeReplicas.Builder getExcludeReplicasBuilder() Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
|
getExcludeReplicasOrBuilder()
public DirectedReadOptions.ExcludeReplicasOrBuilder getExcludeReplicasOrBuilder() Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.ExcludeReplicasOrBuilder |
|
getIncludeReplicas()
public DirectedReadOptions.IncludeReplicas getIncludeReplicas() Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.IncludeReplicas |
The includeReplicas. |
getIncludeReplicasBuilder()
public DirectedReadOptions.IncludeReplicas.Builder getIncludeReplicasBuilder() Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
|
getIncludeReplicasOrBuilder()
public DirectedReadOptions.IncludeReplicasOrBuilder getIncludeReplicasOrBuilder() Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.IncludeReplicasOrBuilder |
|
getReplicasCase()
public DirectedReadOptions.ReplicasCase getReplicasCase()| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.ReplicasCase |
|
hasExcludeReplicas()
public boolean hasExcludeReplicas() Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the excludeReplicas field is set. |
hasIncludeReplicas()
public boolean hasIncludeReplicas() Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the includeReplicas field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeExcludeReplicas(DirectedReadOptions.ExcludeReplicas value)
public DirectedReadOptions.Builder mergeExcludeReplicas(DirectedReadOptions.ExcludeReplicas value) Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
DirectedReadOptions.ExcludeReplicas |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DirectedReadOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DirectedReadOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
mergeFrom(DirectedReadOptions other)
public DirectedReadOptions.Builder mergeFrom(DirectedReadOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
DirectedReadOptions |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
mergeIncludeReplicas(DirectedReadOptions.IncludeReplicas value)
public DirectedReadOptions.Builder mergeIncludeReplicas(DirectedReadOptions.IncludeReplicas value) Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DirectedReadOptions.IncludeReplicas |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
setExcludeReplicas(DirectedReadOptions.ExcludeReplicas value)
public DirectedReadOptions.Builder setExcludeReplicas(DirectedReadOptions.ExcludeReplicas value) Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
DirectedReadOptions.ExcludeReplicas |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
setExcludeReplicas(DirectedReadOptions.ExcludeReplicas.Builder builderForValue)
public DirectedReadOptions.Builder setExcludeReplicas(DirectedReadOptions.ExcludeReplicas.Builder builderForValue) Exclude_replicas indicates that specified replicas should be excluded
from serving requests. Spanner doesn't route requests to the replicas
in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DirectedReadOptions.ExcludeReplicas.Builder |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
setIncludeReplicas(DirectedReadOptions.IncludeReplicas value)
public DirectedReadOptions.Builder setIncludeReplicas(DirectedReadOptions.IncludeReplicas value) Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DirectedReadOptions.IncludeReplicas |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|
setIncludeReplicas(DirectedReadOptions.IncludeReplicas.Builder builderForValue)
public DirectedReadOptions.Builder setIncludeReplicas(DirectedReadOptions.IncludeReplicas.Builder builderForValue) Include_replicas indicates the order of replicas (as they appear in
this list) to process the request. If auto_failover_disabled is set to
true and all replicas are exhausted without finding a healthy replica,
Spanner waits for a replica in the list to become available, requests
might fail due to DEADLINE_EXCEEDED errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DirectedReadOptions.IncludeReplicas.Builder |
| Returns | |
|---|---|
| Type | Description |
DirectedReadOptions.Builder |
|