Class ExecuteSqlResponse.Builder (0.42.0)

public static final class ExecuteSqlResponse.Builder extends GeneratedMessageV3.Builder<ExecuteSqlResponse.Builder> implements ExecuteSqlResponseOrBuilder

Execute a SQL statement response.

Protobuf type google.cloud.alloydb.v1.ExecuteSqlResponse

Static Methods

getDescriptor()

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

Methods

addAllSqlResults(Iterable<? extends SqlResult> values)

public ExecuteSqlResponse.Builder addAllSqlResults(Iterable<? extends SqlResult> values)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1.SqlResult>
Returns
Type Description
ExecuteSqlResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExecuteSqlResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

addSqlResults(SqlResult value)

public ExecuteSqlResponse.Builder addSqlResults(SqlResult value)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
value SqlResult
Returns
Type Description
ExecuteSqlResponse.Builder

addSqlResults(SqlResult.Builder builderForValue)

public ExecuteSqlResponse.Builder addSqlResults(SqlResult.Builder builderForValue)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
builderForValue SqlResult.Builder
Returns
Type Description
ExecuteSqlResponse.Builder

addSqlResults(int index, SqlResult value)

public ExecuteSqlResponse.Builder addSqlResults(int index, SqlResult value)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameters
Name Description
index int
value SqlResult
Returns
Type Description
ExecuteSqlResponse.Builder

addSqlResults(int index, SqlResult.Builder builderForValue)

public ExecuteSqlResponse.Builder addSqlResults(int index, SqlResult.Builder builderForValue)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameters
Name Description
index int
builderForValue SqlResult.Builder
Returns
Type Description
ExecuteSqlResponse.Builder

addSqlResultsBuilder()

public SqlResult.Builder addSqlResultsBuilder()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
SqlResult.Builder

addSqlResultsBuilder(int index)

public SqlResult.Builder addSqlResultsBuilder(int index)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResult.Builder

build()

public ExecuteSqlResponse build()
Returns
Type Description
ExecuteSqlResponse

buildPartial()

public ExecuteSqlResponse buildPartial()
Returns
Type Description
ExecuteSqlResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ExecuteSqlResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

clearMetadata()

public ExecuteSqlResponse.Builder clearMetadata()

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Returns
Type Description
ExecuteSqlResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExecuteSqlResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

clearSqlResults()

public ExecuteSqlResponse.Builder clearSqlResults()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
ExecuteSqlResponse.Builder

clone()

public ExecuteSqlResponse.Builder clone()
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

getDefaultInstanceForType()

public ExecuteSqlResponse getDefaultInstanceForType()
Returns
Type Description
ExecuteSqlResponse

getDescriptorForType()

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

getMetadata()

public ExecuteSqlMetadata getMetadata()

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Returns
Type Description
ExecuteSqlMetadata

The metadata.

getMetadataBuilder()

public ExecuteSqlMetadata.Builder getMetadataBuilder()

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Returns
Type Description
ExecuteSqlMetadata.Builder

getMetadataOrBuilder()

public ExecuteSqlMetadataOrBuilder getMetadataOrBuilder()

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Returns
Type Description
ExecuteSqlMetadataOrBuilder

getSqlResults(int index)

public SqlResult getSqlResults(int index)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResult

getSqlResultsBuilder(int index)

public SqlResult.Builder getSqlResultsBuilder(int index)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResult.Builder

getSqlResultsBuilderList()

public List<SqlResult.Builder> getSqlResultsBuilderList()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
List<Builder>

getSqlResultsCount()

public int getSqlResultsCount()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
int

getSqlResultsList()

public List<SqlResult> getSqlResultsList()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
List<SqlResult>

getSqlResultsOrBuilder(int index)

public SqlResultOrBuilder getSqlResultsOrBuilder(int index)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultOrBuilder

getSqlResultsOrBuilderList()

public List<? extends SqlResultOrBuilder> getSqlResultsOrBuilderList()

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1.SqlResultOrBuilder>

hasMetadata()

public boolean hasMetadata()

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExecuteSqlResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(ExecuteSqlMetadata value)

public ExecuteSqlResponse.Builder mergeMetadata(ExecuteSqlMetadata value)

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Parameter
Name Description
value ExecuteSqlMetadata
Returns
Type Description
ExecuteSqlResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExecuteSqlResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

removeSqlResults(int index)

public ExecuteSqlResponse.Builder removeSqlResults(int index)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameter
Name Description
index int
Returns
Type Description
ExecuteSqlResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExecuteSqlResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

setMetadata(ExecuteSqlMetadata value)

public ExecuteSqlResponse.Builder setMetadata(ExecuteSqlMetadata value)

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Parameter
Name Description
value ExecuteSqlMetadata
Returns
Type Description
ExecuteSqlResponse.Builder

setMetadata(ExecuteSqlMetadata.Builder builderForValue)

public ExecuteSqlResponse.Builder setMetadata(ExecuteSqlMetadata.Builder builderForValue)

Any additional metadata information regarding the execution of the sql statement.

.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3;

Parameter
Name Description
builderForValue ExecuteSqlMetadata.Builder
Returns
Type Description
ExecuteSqlResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExecuteSqlResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides

setSqlResults(int index, SqlResult value)

public ExecuteSqlResponse.Builder setSqlResults(int index, SqlResult value)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameters
Name Description
index int
value SqlResult
Returns
Type Description
ExecuteSqlResponse.Builder

setSqlResults(int index, SqlResult.Builder builderForValue)

public ExecuteSqlResponse.Builder setSqlResults(int index, SqlResult.Builder builderForValue)

SqlResult represents the results for the execution of sql statements.

repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1;

Parameters
Name Description
index int
builderForValue SqlResult.Builder
Returns
Type Description
ExecuteSqlResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExecuteSqlResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExecuteSqlResponse.Builder
Overrides