Class ExecuteSqlRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.ExecuteSqlRequest
All Implemented Interfaces:
ExecuteSqlRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ExecuteSqlRequest extends com.google.protobuf.GeneratedMessage implements ExecuteSqlRequestOrBuilder
 Request for ExecuteSql rpc.
 
Protobuf type google.cloud.alloydb.v1beta.ExecuteSqlRequest
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getUserCredentialCase

      public ExecuteSqlRequest.UserCredentialCase getUserCredentialCase()
      Specified by:
      getUserCredentialCase in interface ExecuteSqlRequestOrBuilder
    • hasPassword

      public boolean hasPassword()
       Optional. The database native user’s password.
       
      string password = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPassword in interface ExecuteSqlRequestOrBuilder
      Returns:
      Whether the password field is set.
    • getPassword

      public String getPassword()
       Optional. The database native user’s password.
       
      string password = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPassword in interface ExecuteSqlRequestOrBuilder
      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:
      getPasswordBytes in interface ExecuteSqlRequestOrBuilder
      Returns:
      The bytes for password.
    • getInstance

      public 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) = { ... }
      Specified by:
      getInstance in interface ExecuteSqlRequestOrBuilder
      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:
      getInstanceBytes in interface ExecuteSqlRequestOrBuilder
      Returns:
      The bytes for instance.
    • getDatabase

      public 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];
      Specified by:
      getDatabase in interface ExecuteSqlRequestOrBuilder
      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:
      getDatabaseBytes in interface ExecuteSqlRequestOrBuilder
      Returns:
      The bytes for database.
    • getUser

      public 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];
      Specified by:
      getUser in interface ExecuteSqlRequestOrBuilder
      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:
      getUserBytes in interface ExecuteSqlRequestOrBuilder
      Returns:
      The bytes for user.
    • getSqlStatement

      public 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];
      Specified by:
      getSqlStatement in interface ExecuteSqlRequestOrBuilder
      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:
      getSqlStatementBytes in interface ExecuteSqlRequestOrBuilder
      Returns:
      The bytes for sqlStatement.
    • 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:
      getValidateOnly in interface ExecuteSqlRequestOrBuilder
      Returns:
      The validateOnly.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ExecuteSqlRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExecuteSqlRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExecuteSqlRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ExecuteSqlRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExecuteSqlRequest.Builder newBuilder()
    • newBuilder

      public static ExecuteSqlRequest.Builder newBuilder(ExecuteSqlRequest prototype)
    • toBuilder

      public ExecuteSqlRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExecuteSqlRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExecuteSqlRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExecuteSqlRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExecuteSqlRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ExecuteSqlRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder