Class ExecuteSqlRequest.Builder (0.52.0)

public static final class ExecuteSqlRequest.Builder extends GeneratedMessage.Builder<ExecuteSqlRequest.Builder> implements ExecuteSqlRequestOrBuilder

The request for DatabaseConnection.ExecuteSql.

Protobuf type google.cloud.oracledatabase.v1.ExecuteSqlRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllParams(Iterable<? extends SqlParameter> values)

public ExecuteSqlRequest.Builder addAllParams(Iterable<? extends SqlParameter> values)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.oracledatabase.v1.SqlParameter>
Returns
Type Description
ExecuteSqlRequest.Builder

addParams(SqlParameter value)

public ExecuteSqlRequest.Builder addParams(SqlParameter value)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SqlParameter
Returns
Type Description
ExecuteSqlRequest.Builder

addParams(SqlParameter.Builder builderForValue)

public ExecuteSqlRequest.Builder addParams(SqlParameter.Builder builderForValue)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SqlParameter.Builder
Returns
Type Description
ExecuteSqlRequest.Builder

addParams(int index, SqlParameter value)

public ExecuteSqlRequest.Builder addParams(int index, SqlParameter value)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SqlParameter
Returns
Type Description
ExecuteSqlRequest.Builder

addParams(int index, SqlParameter.Builder builderForValue)

public ExecuteSqlRequest.Builder addParams(int index, SqlParameter.Builder builderForValue)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SqlParameter.Builder
Returns
Type Description
ExecuteSqlRequest.Builder

addParamsBuilder()

public SqlParameter.Builder addParamsBuilder()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlParameter.Builder

addParamsBuilder(int index)

public SqlParameter.Builder addParamsBuilder(int index)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SqlParameter.Builder

build()

public ExecuteSqlRequest build()
Returns
Type Description
ExecuteSqlRequest

buildPartial()

public ExecuteSqlRequest buildPartial()
Returns
Type Description
ExecuteSqlRequest

clear()

public ExecuteSqlRequest.Builder clear()
Returns
Type Description
ExecuteSqlRequest.Builder
Overrides

clearName()

public ExecuteSqlRequest.Builder clearName()

Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.

clearParams()

public ExecuteSqlRequest.Builder clearParams()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExecuteSqlRequest.Builder

clearSqlStatement()

public ExecuteSqlRequest.Builder clearSqlStatement()

Required. The SQL statement to execute.

string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExecuteSqlRequest getDefaultInstanceForType()
Returns
Type Description
ExecuteSqlRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParams(int index)

public SqlParameter getParams(int index)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SqlParameter

getParamsBuilder(int index)

public SqlParameter.Builder getParamsBuilder(int index)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SqlParameter.Builder

getParamsBuilderList()

public List<SqlParameter.Builder> getParamsBuilderList()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getParamsCount()

public int getParamsCount()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getParamsList()

public List<SqlParameter> getParamsList()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SqlParameter>

getParamsOrBuilder(int index)

public SqlParameterOrBuilder getParamsOrBuilder(int index)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SqlParameterOrBuilder

getParamsOrBuilderList()

public List<? extends SqlParameterOrBuilder> getParamsOrBuilderList()

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.oracledatabase.v1.SqlParameterOrBuilder>

getSqlStatement()

public String getSqlStatement()

Required. The SQL statement to execute.

string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sqlStatement.

getSqlStatementBytes()

public ByteString getSqlStatementBytes()

Required. The SQL statement to execute.

string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sqlStatement.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExecuteSqlRequest other)

public ExecuteSqlRequest.Builder mergeFrom(ExecuteSqlRequest other)
Parameter
Name Description
other ExecuteSqlRequest
Returns
Type Description
ExecuteSqlRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExecuteSqlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteSqlRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExecuteSqlRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExecuteSqlRequest.Builder
Overrides

removeParams(int index)

public ExecuteSqlRequest.Builder removeParams(int index)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExecuteSqlRequest.Builder

setName(String value)

public ExecuteSqlRequest.Builder setName(String value)

Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExecuteSqlRequest.Builder setNameBytes(ByteString value)

Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.

setParams(int index, SqlParameter value)

public ExecuteSqlRequest.Builder setParams(int index, SqlParameter value)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SqlParameter
Returns
Type Description
ExecuteSqlRequest.Builder

setParams(int index, SqlParameter.Builder builderForValue)

public ExecuteSqlRequest.Builder setParams(int index, SqlParameter.Builder builderForValue)

Optional. Optional: Bind variables (parameters) to be used with the SQL statement. Supports named bind variables (e.g., :dept_id, :status in Oracle SQL) or positional parameters (:1, :2).

repeated .google.cloud.oracledatabase.v1.SqlParameter params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SqlParameter.Builder
Returns
Type Description
ExecuteSqlRequest.Builder

setSqlStatement(String value)

public ExecuteSqlRequest.Builder setSqlStatement(String value)

Required. The SQL statement to execute.

string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sqlStatement to set.

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.

setSqlStatementBytes(ByteString value)

public ExecuteSqlRequest.Builder setSqlStatementBytes(ByteString value)

Required. The SQL statement to execute.

string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sqlStatement to set.

Returns
Type Description
ExecuteSqlRequest.Builder

This builder for chaining.