Interface CloudSpannerPropertiesOrBuilder (2.42.0)

public interface CloudSpannerPropertiesOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatabase()

public abstract String getDatabase()

Cloud Spanner database in the form `project/instance/database'

string database = 1;

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public abstract ByteString getDatabaseBytes()

Cloud Spanner database in the form `project/instance/database'

string database = 1;

Returns
TypeDescription
ByteString

The bytes for database.

getDatabaseRole()

public abstract String getDatabaseRole()

Optional. Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as SELECT and INSERT. Other users should only use roles provided by their Cloud Spanner admins.

For more details, see About fine-grained access control.

REQUIRES: The database role name must start with a letter, and can only contain letters, numbers, and underscores.

string database_role = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The databaseRole.

getDatabaseRoleBytes()

public abstract ByteString getDatabaseRoleBytes()

Optional. Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as SELECT and INSERT. Other users should only use roles provided by their Cloud Spanner admins.

For more details, see About fine-grained access control.

REQUIRES: The database role name must start with a letter, and can only contain letters, numbers, and underscores.

string database_role = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for databaseRole.

getMaxParallelism()

public abstract int getMaxParallelism()

Allows setting max parallelism per query when executing on Spanner independent compute resources. If unspecified, default values of parallelism are chosen that are dependent on the Cloud Spanner instance configuration.

REQUIRES: use_parallelism must be set. REQUIRES: Either use_data_boost or use_serverless_analytics must be set.

int32 max_parallelism = 5;

Returns
TypeDescription
int

The maxParallelism.

getUseDataBoost()

public abstract boolean getUseDataBoost()

If set, the request will be executed via Spanner independent compute resources. REQUIRES: use_parallelism must be set.

NOTE: use_serverless_analytics will be deprecated. Prefer use_data_boost over use_serverless_analytics.

bool use_data_boost = 6;

Returns
TypeDescription
boolean

The useDataBoost.

getUseParallelism()

public abstract boolean getUseParallelism()

If parallelism should be used when reading from Cloud Spanner

bool use_parallelism = 2;

Returns
TypeDescription
boolean

The useParallelism.

getUseServerlessAnalytics()

public abstract boolean getUseServerlessAnalytics()

If the serverless analytics service should be used to read data from Cloud Spanner. Note: use_parallelism must be set when using serverless analytics.

bool use_serverless_analytics = 3;

Returns
TypeDescription
boolean

The useServerlessAnalytics.