Class MetadataUpdatePolicy (2.14.0)

MetadataUpdatePolicy holds supported metadata and setup ClientContext.

Constructors

MetadataUpdatePolicy(std::string const &, MetadataParamTypes const &)

Constructor with default metadata pair.

Parameters
NameDescription
resource_name std::string const &

hierarchical name of resource, including project id, instance id and/or table_id.

metadata_param_type MetadataParamTypes const &

type to decide prefix for the value of x-goog-request-params

MetadataUpdatePolicy(MetadataUpdatePolicy &&)

Parameter
NameDescription
MetadataUpdatePolicy &&

MetadataUpdatePolicy(MetadataUpdatePolicy const &)

Parameter
NameDescription
MetadataUpdatePolicy const &

Operators

operator=(MetadataUpdatePolicy &&)

Parameter
NameDescription
MetadataUpdatePolicy &&
Returns
TypeDescription
MetadataUpdatePolicy &

operator=(MetadataUpdatePolicy const &)

Parameter
NameDescription
MetadataUpdatePolicy const &
Returns
TypeDescription
MetadataUpdatePolicy &

Functions

Setup(grpc::ClientContext &) const

Parameter
NameDescription
context grpc::ClientContext &
Returns
TypeDescription
void

value() const

Returns
TypeDescription
std::string const &

api_client_header() const

Returns
TypeDescription
std::string const &