Struct DirectedReadOption (2.31.0-rc)

Option for google::cloud::Options to indicate which replicas or regions should be used for reads/queries in read-only or single-use transactions.

Use of DirectedReadOptions within a read-write transaction will result in a kInvalidArgument error.

The IncludeReplicas variant lists the replicas to try (in order) to process the request, and what to do if the list is exhausted without finding a healthy replica.

Alternately, the ExcludeReplicas variant lists replicas that should be excluded from serving the request.

Type Aliases

Type

Alias Of: absl::variant< absl::monostate, IncludeReplicas, ExcludeReplicas >