@Generated public final class ExecuteSqlRequest extends com.google.protobuf.GeneratedMessage implements ExecuteSqlRequestOrBuilder
Request for ExecuteSql rpc.Protobuf type
google.cloud.alloydb.v1beta.ExecuteSqlRequest| Modifier and Type | Class and Description |
|---|---|
static class |
ExecuteSqlRequest.Builder
Request for ExecuteSql rpc.
|
static class |
ExecuteSqlRequest.UserCredentialCase |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DATABASE_FIELD_NUMBER |
static int |
INSTANCE_FIELD_NUMBER |
static int |
PASSWORD_FIELD_NUMBER |
static int |
SQL_STATEMENT_FIELD_NUMBER |
static int |
USER_FIELD_NUMBER |
static int |
VALIDATE_ONLY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDatabase()
Required.
|
com.google.protobuf.ByteString |
getDatabaseBytes()
Required.
|
static ExecuteSqlRequest |
getDefaultInstance() |
ExecuteSqlRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getInstance()
Required.
|
com.google.protobuf.ByteString |
getInstanceBytes()
Required.
|
com.google.protobuf.Parser<ExecuteSqlRequest> |
getParserForType() |
String |
getPassword()
Optional.
|
com.google.protobuf.ByteString |
getPasswordBytes()
Optional.
|
int |
getSerializedSize() |
String |
getSqlStatement()
Required.
|
com.google.protobuf.ByteString |
getSqlStatementBytes()
Required.
|
String |
getUser()
Required.
|
com.google.protobuf.ByteString |
getUserBytes()
Required.
|
ExecuteSqlRequest.UserCredentialCase |
getUserCredentialCase() |
boolean |
getValidateOnly()
Optional.
|
int |
hashCode() |
boolean |
hasPassword()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ExecuteSqlRequest.Builder |
newBuilder() |
static ExecuteSqlRequest.Builder |
newBuilder(ExecuteSqlRequest prototype) |
ExecuteSqlRequest.Builder |
newBuilderForType() |
protected ExecuteSqlRequest.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static ExecuteSqlRequest |
parseDelimitedFrom(InputStream input) |
static ExecuteSqlRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExecuteSqlRequest |
parseFrom(byte[] data) |
static ExecuteSqlRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExecuteSqlRequest |
parseFrom(ByteBuffer data) |
static ExecuteSqlRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExecuteSqlRequest |
parseFrom(com.google.protobuf.ByteString data) |
static ExecuteSqlRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExecuteSqlRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ExecuteSqlRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExecuteSqlRequest |
parseFrom(InputStream input) |
static ExecuteSqlRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ExecuteSqlRequest> |
parser() |
ExecuteSqlRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PASSWORD_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
public static final int SQL_STATEMENT_FIELD_NUMBER
public static final int VALIDATE_ONLY_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic ExecuteSqlRequest.UserCredentialCase getUserCredentialCase()
getUserCredentialCase in interface ExecuteSqlRequestOrBuilderpublic boolean hasPassword()
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];hasPassword in interface ExecuteSqlRequestOrBuilderpublic String getPassword()
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];getPassword in interface ExecuteSqlRequestOrBuilderpublic com.google.protobuf.ByteString getPasswordBytes()
Optional. The database native user’s password.
string password = 5 [(.google.api.field_behavior) = OPTIONAL];getPasswordBytes in interface ExecuteSqlRequestOrBuilderpublic 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) = { ... }
getInstance in interface ExecuteSqlRequestOrBuilderpublic 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) = { ... }
getInstanceBytes in interface ExecuteSqlRequestOrBuilderpublic 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];getDatabase in interface ExecuteSqlRequestOrBuilderpublic 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];getDatabaseBytes in interface ExecuteSqlRequestOrBuilderpublic 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];getUser in interface ExecuteSqlRequestOrBuilderpublic 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];getUserBytes in interface ExecuteSqlRequestOrBuilderpublic 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];getSqlStatement in interface ExecuteSqlRequestOrBuilderpublic 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];getSqlStatementBytes in interface ExecuteSqlRequestOrBuilderpublic 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];getValidateOnly in interface ExecuteSqlRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ExecuteSqlRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExecuteSqlRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static ExecuteSqlRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExecuteSqlRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ExecuteSqlRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ExecuteSqlRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ExecuteSqlRequest.Builder newBuilder()
public static ExecuteSqlRequest.Builder newBuilder(ExecuteSqlRequest prototype)
public ExecuteSqlRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ExecuteSqlRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static ExecuteSqlRequest getDefaultInstance()
public static com.google.protobuf.Parser<ExecuteSqlRequest> parser()
public com.google.protobuf.Parser<ExecuteSqlRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic ExecuteSqlRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.