public final class ExecuteSqlRequest extends com.google.protobuf.GeneratedMessageV3 implements ExecuteSqlRequestOrBuilder
Request for ExecuteSql rpc.Protobuf type
google.cloud.alloydb.v1.ExecuteSqlRequest| Modifier and Type | Class and Description |
|---|---|
static class |
ExecuteSqlRequest.Builder
Request for ExecuteSql rpc.
|
static class |
ExecuteSqlRequest.UserCredentialCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.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 |
| 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() |
int |
hashCode() |
boolean |
hasPassword()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ExecuteSqlRequest.Builder |
newBuilder() |
static ExecuteSqlRequest.Builder |
newBuilder(ExecuteSqlRequest prototype) |
ExecuteSqlRequest.Builder |
newBuilderForType() |
protected ExecuteSqlRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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) = OPTIONAL];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) = OPTIONAL];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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3public ExecuteSqlRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.