Package com.google.cloud.alloydb.v1beta
Interface ExecuteSqlRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ExecuteSqlRequest,ExecuteSqlRequest.Builder
@Generated
public interface ExecuteSqlRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getUser()Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasPassword
boolean hasPassword()Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the password field is set.
-
getPassword
String getPassword()Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The password.
-
getPasswordBytes
com.google.protobuf.ByteString getPasswordBytes()Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for password.
-
getInstance
String getInstance()Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The instance.
-
getInstanceBytes
com.google.protobuf.ByteString getInstanceBytes()Required. The instance where the SQL will be executed. For the required format, see the comment on the Instance.name field.
string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for instance.
-
getDatabase
String getDatabase()Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
string database = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The database.
-
getDatabaseBytes
com.google.protobuf.ByteString getDatabaseBytes()Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
string database = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for database.
-
getUser
String getUser()Required. Database user to be used for executing the SQL. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
string user = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The user.
-
getUserBytes
com.google.protobuf.ByteString getUserBytes()Required. Database user to be used for executing the SQL. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
string user = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for user.
-
getSqlStatement
String getSqlStatement()Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The sqlStatement.
-
getSqlStatementBytes
com.google.protobuf.ByteString getSqlStatementBytes()Required. SQL statement to execute on database. Any valid statement is permitted, including DDL, DML, DQL statements.
string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for sqlStatement.
-
getValidateOnly
boolean getValidateOnly()Optional. If set, validates the sql statement by performing syntax and semantic validation and doesn't execute the query.
bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The validateOnly.
-
getUserCredentialCase
ExecuteSqlRequest.UserCredentialCase getUserCredentialCase()
-