Package com.google.spanner.v1
Class DirectedReadOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
com.google.spanner.v1.DirectedReadOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DirectedReadOptionsOrBuilder,Cloneable
- Enclosing class:
- DirectedReadOptions
public static final class DirectedReadOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.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 may only be specified for a read-only transaction, otherwise the API will return an `INVALID_ARGUMENT` error.Protobuf type
google.spanner.v1.DirectedReadOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Exclude_replicas indicates that should be excluded from serving requests.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Include_replicas indicates the order of replicas (as they appear in this list) to process the request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExclude_replicas indicates that should be excluded from serving requests.Exclude_replicas indicates that should be excluded from serving requests.Exclude_replicas indicates that should be excluded from serving requests.Include_replicas indicates the order of replicas (as they appear in this list) to process the request.Include_replicas indicates the order of replicas (as they appear in this list) to process the request.Include_replicas indicates the order of replicas (as they appear in this list) to process the request.booleanExclude_replicas indicates that should be excluded from serving requests.booleanInclude_replicas indicates the order of replicas (as they appear in this list) to process the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanExclude_replicas indicates that should be excluded from serving requests.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DirectedReadOptions other) Include_replicas indicates the order of replicas (as they appear in this list) to process the request.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Exclude_replicas indicates that should be excluded from serving requests.setExcludeReplicas(DirectedReadOptions.ExcludeReplicas.Builder builderForValue) Exclude_replicas indicates that should be excluded from serving requests.Include_replicas indicates the order of replicas (as they appear in this list) to process the request.setIncludeReplicas(DirectedReadOptions.IncludeReplicas.Builder builderForValue) Include_replicas indicates the order of replicas (as they appear in this list) to process the request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
setField
public DirectedReadOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
clearField
public DirectedReadOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
clearOneof
public DirectedReadOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
setRepeatedField
public DirectedReadOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
addRepeatedField
public DirectedReadOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DirectedReadOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
mergeFrom
public DirectedReadOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DirectedReadOptions.Builder>- Throws:
IOException
-
getReplicasCase
- Specified by:
getReplicasCasein interfaceDirectedReadOptionsOrBuilder
-
clearReplicas
-
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;- Specified by:
hasIncludeReplicasin interfaceDirectedReadOptionsOrBuilder- Returns:
- Whether the includeReplicas field is set.
-
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;- Specified by:
getIncludeReplicasin interfaceDirectedReadOptionsOrBuilder- Returns:
- The includeReplicas.
-
setIncludeReplicas
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1; -
setIncludeReplicas
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1; -
mergeIncludeReplicas
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1; -
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1; -
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1; -
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 will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
.google.spanner.v1.DirectedReadOptions.IncludeReplicas include_replicas = 1;- Specified by:
getIncludeReplicasOrBuilderin interfaceDirectedReadOptionsOrBuilder
-
hasExcludeReplicas
public boolean hasExcludeReplicas()Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;- Specified by:
hasExcludeReplicasin interfaceDirectedReadOptionsOrBuilder- Returns:
- Whether the excludeReplicas field is set.
-
getExcludeReplicas
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;- Specified by:
getExcludeReplicasin interfaceDirectedReadOptionsOrBuilder- Returns:
- The excludeReplicas.
-
setExcludeReplicas
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; -
setExcludeReplicas
public DirectedReadOptions.Builder setExcludeReplicas(DirectedReadOptions.ExcludeReplicas.Builder builderForValue) Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; -
mergeExcludeReplicas
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; -
clearExcludeReplicas
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; -
getExcludeReplicasBuilder
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; -
getExcludeReplicasOrBuilder
Exclude_replicas indicates that should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
.google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2;- Specified by:
getExcludeReplicasOrBuilderin interfaceDirectedReadOptionsOrBuilder
-
setUnknownFields
public final DirectedReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-
mergeUnknownFields
public final DirectedReadOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DirectedReadOptions.Builder>
-