nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
// Generated by the protocol buffer nl.topicus.jdbc.shaded.com.iler. DO NOT EDIT!
// source: google/spanner/v1/result_set.proto
package nl.topicus.jdbc.shaded.com.google.spanner.v1;
/**
*
* Results from [Read][google.spanner.v1.Spanner.Read] or
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
*
*
* Protobuf type {@code google.spanner.v1.ResultSet}
*/
public final class ResultSet extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.spanner.v1.ResultSet)
ResultSetOrBuilder {
// Use ResultSet.newBuilder() to construct.
private ResultSet(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResultSet() {
rows_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ResultSet(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
rows_.add(
input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.parser(), extensionRegistry));
break;
}
case 26: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder subBuilder = null;
if (stats_ != null) {
subBuilder = stats_.toBuilder();
}
stats_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stats_);
stats_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.nl.topicus.jdbc.shaded.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
}
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSet_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata metadata_;
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata getMetadata() {
return metadata_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.getDefaultInstance() : metadata_;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int ROWS_FIELD_NUMBER = 2;
private java.util.List rows_;
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public java.util.List getRowsList() {
return rows_;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public int getRowsCount() {
return rows_.size();
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getRows(int index) {
return rows_.get(index);
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
public static final int STATS_FIELD_NUMBER = 3;
private nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats stats_;
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public boolean hasStats() {
return stats_ != null;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats getStats() {
return stats_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.getDefaultInstance() : stats_;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
return getStats();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.nl.topicus.jdbc.shaded.io.IOException {
if (metadata_ != null) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(2, rows_.get(i));
}
if (stats_ != null) {
output.writeMessage(3, getStats());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metadata_ != null) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.nl.topicus.jdbc.shaded.com.uteMessageSize(1, getMetadata());
}
for (int i = 0; i < rows_.size(); i++) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.nl.topicus.jdbc.shaded.com.uteMessageSize(2, rows_.get(i));
}
if (stats_ != null) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.nl.topicus.jdbc.shaded.com.uteMessageSize(3, getStats());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && getRowsList()
.equals(other.getRowsList());
result = result && (hasStats() == other.hasStats());
if (hasStats()) {
result = result && getStats()
.equals(other.getStats());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
if (hasStats()) {
hash = (37 * hash) + STATS_FIELD_NUMBER;
hash = (53 * hash) + getStats().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseDelimitedFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseDelimitedFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Results from [Read][google.spanner.v1.Spanner.Read] or
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
*
*
* Protobuf type {@code google.spanner.v1.ResultSet}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.spanner.v1.ResultSet)
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSet_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRowsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
rowsBuilder_.clear();
}
if (statsBuilder_ == null) {
stats_ = null;
} else {
stats_ = null;
statsBuilder_ = null;
}
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSet_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet build() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet buildPartial() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
if (statsBuilder_ == null) {
result.stats_ = stats_;
} else {
result.stats_ = statsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet other) {
if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
rowsBuilder_ =
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
if (other.hasStats()) {
mergeStats(other.getStats());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata metadata_ = null;
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder> metadataBuilder_;
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public Builder setMetadata(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public Builder setMetadata(
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public Builder mergeMetadata(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.getDefaultInstance() : metadata_;
}
}
/**
*
* Metadata about the result set, such as row type information.
*
*
* .google.spanner.v1.ResultSetMetadata metadata = 1;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000002;
}
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder> rowsBuilder_;
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder setRows(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder setRows(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder addRows(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder addRows(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder addRows(
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder addRows(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder addAllRows(
java.lang.Iterable extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValue> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance());
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance());
}
/**
*
* Each element in `rows` is a row whose format is defined by
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
* in each row matches the ith field in
* [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
* encoded based on type as described
* [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue rows = 2;
*/
public java.util.List
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>(
rows_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
private nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats stats_ = null;
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder> statsBuilder_;
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public boolean hasStats() {
return statsBuilder_ != null || stats_ != null;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats getStats() {
if (statsBuilder_ == null) {
return stats_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.getDefaultInstance() : stats_;
} else {
return statsBuilder_.getMessage();
}
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public Builder setStats(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats value) {
if (statsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
statsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public Builder setStats(
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder builderForValue) {
if (statsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
statsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public Builder mergeStats(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats value) {
if (statsBuilder_ == null) {
if (stats_ != null) {
stats_ =
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.newBuilder(stats_).mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
statsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public Builder clearStats() {
if (statsBuilder_ == null) {
stats_ = null;
onChanged();
} else {
stats_ = null;
statsBuilder_ = null;
}
return this;
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder getStatsBuilder() {
onChanged();
return getStatsFieldBuilder().getBuilder();
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
if (statsBuilder_ != null) {
return statsBuilder_.getMessageOrBuilder();
} else {
return stats_ == null ?
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.getDefaultInstance() : stats_;
}
}
/**
*
* Query plan and execution statistics for the query that produced this
* result set. These can be requested by setting
* [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
*
*
* .google.spanner.v1.ResultSetStats stats = 3;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder>
getStatsFieldBuilder() {
if (statsBuilder_ == null) {
statsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder>(
getStats(),
getParentForChildren(),
isClean());
stats_ = null;
}
return statsBuilder_;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:google.spanner.v1.ResultSet)
}
// @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSet)
private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet();
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public ResultSet parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new ResultSet(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}