DirectedReadOptions class

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.

Constructors

DirectedReadOptions({ExcludeReplicas? excludeReplicas, IncludeReplicas? includeReplicas})
DirectedReadOptions.fromJson(Map json_)

Properties

excludeReplicas ExcludeReplicas?
Exclude_replicas indicates that specified replicas should be excluded from serving requests.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
includeReplicas IncludeReplicas?
Include_replicas indicates the order of replicas (as they appear in this list) to process the request.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited