Package com.google.cloud.alloydb.v1beta
Class ExecuteSqlRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
com.google.cloud.alloydb.v1beta.ExecuteSqlRequest.Builder
- All Implemented Interfaces:
ExecuteSqlRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExecuteSqlRequest
public static final class ExecuteSqlRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
implements ExecuteSqlRequestOrBuilder
Request for ExecuteSql rpc.Protobuf type
google.cloud.alloydb.v1beta.ExecuteSqlRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Optional.Required.Required.Optional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getUser()Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExecuteSqlRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDatabase(String value) Required.setDatabaseBytes(com.google.protobuf.ByteString value) Required.setInstance(String value) Required.setInstanceBytes(com.google.protobuf.ByteString value) Required.setPassword(String value) Optional.setPasswordBytes(com.google.protobuf.ByteString value) Optional.setSqlStatement(String value) Required.setSqlStatementBytes(com.google.protobuf.ByteString value) Required.Required.setUserBytes(com.google.protobuf.ByteString value) Required.setValidateOnly(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExecuteSqlRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExecuteSqlRequest.Builder>
-
mergeFrom
public ExecuteSqlRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExecuteSqlRequest.Builder>- Throws:
IOException
-
getUserCredentialCase
- Specified by:
getUserCredentialCasein interfaceExecuteSqlRequestOrBuilder
-
clearUserCredential
-
hasPassword
public boolean hasPassword()Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPasswordin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the password field is set.
-
getPassword
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPasswordin interfaceExecuteSqlRequestOrBuilder- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPasswordBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for password.
-
setPassword
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPasswordBytes
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getInstancein interfaceExecuteSqlRequestOrBuilder- Returns:
- The instance.
-
getInstanceBytes
public 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) = { ... }- Specified by:
getInstanceBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for instance.
-
setInstance
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) = { ... }- Parameters:
value- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
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:
- This builder for chaining.
-
setInstanceBytes
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) = { ... }- Parameters:
value- The bytes for instance to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDatabasein interfaceExecuteSqlRequestOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public 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];- Specified by:
getDatabaseBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for database.
-
setDatabase
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];- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
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:
- This builder for chaining.
-
setDatabaseBytes
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];- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getUserin interfaceExecuteSqlRequestOrBuilder- Returns:
- The user.
-
getUserBytes
public 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];- Specified by:
getUserBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for user.
-
setUser
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];- Parameters:
value- The user to set.- Returns:
- This builder for chaining.
-
clearUser
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:
- This builder for chaining.
-
setUserBytes
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];- Parameters:
value- The bytes for user to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getSqlStatementin interfaceExecuteSqlRequestOrBuilder- Returns:
- The sqlStatement.
-
getSqlStatementBytes
public 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];- Specified by:
getSqlStatementBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for sqlStatement.
-
setSqlStatement
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];- Parameters:
value- The sqlStatement to set.- Returns:
- This builder for chaining.
-
clearSqlStatement
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:
- This builder for chaining.
-
setSqlStatementBytes
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];- Parameters:
value- The bytes for sqlStatement to set.- Returns:
- This builder for chaining.
-
getValidateOnly
public 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];- Specified by:
getValidateOnlyin interfaceExecuteSqlRequestOrBuilder- Returns:
- The validateOnly.
-
setValidateOnly
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];- Parameters:
value- The validateOnly to set.- Returns:
- This builder for chaining.
-
clearValidateOnly
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:
- This builder for chaining.
-