public final class ExecuteSqlPayload extends GeneratedMessage implements ExecuteSqlPayloadOrBuilder
The request payload used to execute SQL statements.
Protobuf type google.cloud.sql.v1beta4.ExecuteSqlPayload
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
APPLICATION_FIELD_NUMBER
public static final int APPLICATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AUTO_IAM_AUTHN_FIELD_NUMBER
public static final int AUTO_IAM_AUTHN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTIAL_RESULT_MODE_FIELD_NUMBER
public static final int PARTIAL_RESULT_MODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PASSWORD_SECRET_VERSION_FIELD_NUMBER
public static final int PASSWORD_SECRET_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ROW_LIMIT_FIELD_NUMBER
public static final int ROW_LIMIT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SQL_STATEMENT_FIELD_NUMBER
public static final int SQL_STATEMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ExecuteSqlPayload getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ExecuteSqlPayload.Builder newBuilder()
newBuilder(ExecuteSqlPayload prototype)
public static ExecuteSqlPayload.Builder newBuilder(ExecuteSqlPayload prototype)
public static ExecuteSqlPayload parseDelimitedFrom(InputStream input)
public static ExecuteSqlPayload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ExecuteSqlPayload parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExecuteSqlPayload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ExecuteSqlPayload parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExecuteSqlPayload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExecuteSqlPayload parseFrom(CodedInputStream input)
public static ExecuteSqlPayload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ExecuteSqlPayload parseFrom(InputStream input)
public static ExecuteSqlPayload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ExecuteSqlPayload parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExecuteSqlPayload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ExecuteSqlPayload> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getApplication()
public String getApplication()
Optional. Specifies the name of the application that is making the request.
This field is used for telemetry. Only alphanumeric characters, dashes, and
underscores are allowed. The maximum length is 32 characters.
string application = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The application.
|
getApplicationBytes()
public ByteString getApplicationBytes()
Optional. Specifies the name of the application that is making the request.
This field is used for telemetry. Only alphanumeric characters, dashes, and
underscores are allowed. The maximum length is 32 characters.
string application = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for application.
|
getAutoIamAuthn()
public boolean getAutoIamAuthn()
Optional. When set to true, the API caller identity associated with the
request is used for database authentication. The API caller must be an
IAM user in the database.
bool auto_iam_authn = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The autoIamAuthn.
|
getDatabase()
public String getDatabase()
Optional. Name of the database on which the statement will be executed.
string database = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The database.
|
getDatabaseBytes()
public ByteString getDatabaseBytes()
Optional. Name of the database on which the statement will be executed.
string database = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for database.
|
getDefaultInstanceForType()
public ExecuteSqlPayload getDefaultInstanceForType()
getParserForType()
public Parser<ExecuteSqlPayload> getParserForType()
Overrides
getPartialResultMode()
public ExecuteSqlPayload.PartialResultMode getPartialResultMode()
Optional. Controls how the API should respond when the SQL execution result
is incomplete due to the size limit or another error. The default mode is
to throw an error.
.google.cloud.sql.v1beta4.ExecuteSqlPayload.PartialResultMode partial_result_mode = 13 [(.google.api.field_behavior) = OPTIONAL];
getPartialResultModeValue()
public int getPartialResultModeValue()
Optional. Controls how the API should respond when the SQL execution result
is incomplete due to the size limit or another error. The default mode is
to throw an error.
.google.cloud.sql.v1beta4.ExecuteSqlPayload.PartialResultMode partial_result_mode = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for partialResultMode.
|
getPasswordSecretVersion()
public String getPasswordSecretVersion()
Optional. The resource name of the Secret Manager secret holding the
password for the user to log into the database. The secret should be
created using the regional endpoint (for API) or from the Regional
Secrets page (for UI), and stored in the same region as the Cloud SQL
instance. The expected resource name format is
projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}.
This field is used together with the user field.
The secret resource name will not be stored.
string password_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The passwordSecretVersion.
|
getPasswordSecretVersionBytes()
public ByteString getPasswordSecretVersionBytes()
Optional. The resource name of the Secret Manager secret holding the
password for the user to log into the database. The secret should be
created using the regional endpoint (for API) or from the Regional
Secrets page (for UI), and stored in the same region as the Cloud SQL
instance. The expected resource name format is
projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}.
This field is used together with the user field.
The secret resource name will not be stored.
string password_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for passwordSecretVersion.
|
getRowLimit()
public long getRowLimit()
Optional. The maximum number of rows returned per SQL statement.
int64 row_limit = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
long |
The rowLimit.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSqlStatement()
public String getSqlStatement()
Required. SQL statements to run on the database. It can be a single
statement or a sequence of statements separated by semicolons.
string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The sqlStatement.
|
getSqlStatementBytes()
public ByteString getSqlStatementBytes()
Required. SQL statements to run on the database. It can be a single
statement or a sequence of statements separated by semicolons.
string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for sqlStatement.
|
getUser()
Optional. The name of an existing database user to connect to the database.
When auto_iam_authn is set to true, this field is ignored and the API
caller's IAM user is used.
string user = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The user.
|
getUserBytes()
public ByteString getUserBytes()
Optional. The name of an existing database user to connect to the database.
When auto_iam_authn is set to true, this field is ignored and the API
caller's IAM user is used.
string user = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for user.
|
getUserPasswordCase()
public ExecuteSqlPayload.UserPasswordCase getUserPasswordCase()
hasAutoIamAuthn()
public boolean hasAutoIamAuthn()
Optional. When set to true, the API caller identity associated with the
request is used for database authentication. The API caller must be an
IAM user in the database.
bool auto_iam_authn = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the autoIamAuthn field is set.
|
hasPasswordSecretVersion()
public boolean hasPasswordSecretVersion()
Optional. The resource name of the Secret Manager secret holding the
password for the user to log into the database. The secret should be
created using the regional endpoint (for API) or from the Regional
Secrets page (for UI), and stored in the same region as the Cloud SQL
instance. The expected resource name format is
projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}.
This field is used together with the user field.
The secret resource name will not be stored.
string password_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the passwordSecretVersion field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ExecuteSqlPayload.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ExecuteSqlPayload.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ExecuteSqlPayload.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides