All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
// 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;

/**
 * 
 * Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
 * 
* * Protobuf type {@code google.spanner.v1.ResultSetMetadata} */ public final class ResultSetMetadata extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.v1.ResultSetMetadata) ResultSetMetadataOrBuilder { // Use ResultSetMetadata.newBuilder() to construct. private ResultSetMetadata(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResultSetMetadata() { } @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 ResultSetMetadata( 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.StructType.Builder subBuilder = null; if (rowType_ != null) { subBuilder = rowType_.toBuilder(); } rowType_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rowType_); rowType_ = subBuilder.buildPartial(); } break; } case 18: { nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = 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 { 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_ResultSetMetadata_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_ResultSetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder.class); } public static final int ROW_TYPE_FIELD_NUMBER = 1; private nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType rowType_; /** *
   * Indicates the field names and types for the rows in the result
   * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
   * Users"` could return a `row_type` value like:
   *     "fields": [
   *       { "name": "UserId", "type": { "code": "INT64" } },
   *       { "name": "UserName", "type": { "code": "STRING" } },
   *     ]
   * 
* * .google.spanner.v1.StructType row_type = 1; */ public boolean hasRowType() { return rowType_ != null; } /** *
   * Indicates the field names and types for the rows in the result
   * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
   * Users"` could return a `row_type` value like:
   *     "fields": [
   *       { "name": "UserId", "type": { "code": "INT64" } },
   *       { "name": "UserName", "type": { "code": "STRING" } },
   *     ]
   * 
* * .google.spanner.v1.StructType row_type = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType getRowType() { return rowType_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } /** *
   * Indicates the field names and types for the rows in the result
   * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
   * Users"` could return a `row_type` value like:
   *     "fields": [
   *       { "name": "UserId", "type": { "code": "INT64" } },
   *       { "name": "UserName", "type": { "code": "STRING" } },
   *     ]
   * 
* * .google.spanner.v1.StructType row_type = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { return getRowType(); } public static final int TRANSACTION_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction transaction_; /** *
   * If the read or SQL query began a transaction as a side-effect, the
   * information about the new transaction is yielded here.
   * 
* * .google.spanner.v1.Transaction transaction = 2; */ public boolean hasTransaction() { return transaction_ != null; } /** *
   * If the read or SQL query began a transaction as a side-effect, the
   * information about the new transaction is yielded here.
   * 
* * .google.spanner.v1.Transaction transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction getTransaction() { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.getDefaultInstance() : transaction_; } /** *
   * If the read or SQL query began a transaction as a side-effect, the
   * information about the new transaction is yielded here.
   * 
* * .google.spanner.v1.Transaction transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOrBuilder getTransactionOrBuilder() { return getTransaction(); } 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 (rowType_ != null) { output.writeMessage(1, getRowType()); } if (transaction_ != null) { output.writeMessage(2, getTransaction()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (rowType_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(1, getRowType()); } if (transaction_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(2, getTransaction()); } 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.ResultSetMetadata)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata) obj; boolean result = true; result = result && (hasRowType() == other.hasRowType()); if (hasRowType()) { result = result && getRowType() .equals(other.getRowType()); } result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { result = result && getTransaction() .equals(other.getTransaction()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRowType()) { hash = (37 * hash) + ROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRowType().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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.ResultSetMetadata 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; } /** *
   * Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
   * 
* * Protobuf type {@code google.spanner.v1.ResultSetMetadata} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.v1.ResultSetMetadata) nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadataOrBuilder { 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_ResultSetMetadata_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_ResultSetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.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) { } } public Builder clear() { super.clear(); if (rowTypeBuilder_ == null) { rowType_ = null; } else { rowType_ = null; rowTypeBuilder_ = null; } if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = 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_ResultSetMetadata_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata build() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata(this); if (rowTypeBuilder_ == null) { result.rowType_ = rowType_; } else { result.rowType_ = rowTypeBuilder_.build(); } if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } 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.ResultSetMetadata) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata.getDefaultInstance()) return this; if (other.hasRowType()) { mergeRowType(other.getRowType()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } 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.ResultSetMetadata 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.ResultSetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType rowType_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructTypeOrBuilder> rowTypeBuilder_; /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public boolean hasRowType() { return rowTypeBuilder_ != null || rowType_ != null; } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType getRowType() { if (rowTypeBuilder_ == null) { return rowType_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } else { return rowTypeBuilder_.getMessage(); } } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public Builder setRowType(nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rowType_ = value; onChanged(); } else { rowTypeBuilder_.setMessage(value); } return this; } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public Builder setRowType( nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.Builder builderForValue) { if (rowTypeBuilder_ == null) { rowType_ = builderForValue.build(); onChanged(); } else { rowTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public Builder mergeRowType(nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { if (rowType_ != null) { rowType_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.newBuilder(rowType_).mergeFrom(value).buildPartial(); } else { rowType_ = value; } onChanged(); } else { rowTypeBuilder_.mergeFrom(value); } return this; } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public Builder clearRowType() { if (rowTypeBuilder_ == null) { rowType_ = null; onChanged(); } else { rowType_ = null; rowTypeBuilder_ = null; } return this; } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.Builder getRowTypeBuilder() { onChanged(); return getRowTypeFieldBuilder().getBuilder(); } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { if (rowTypeBuilder_ != null) { return rowTypeBuilder_.getMessageOrBuilder(); } else { return rowType_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } } /** *
     * Indicates the field names and types for the rows in the result
     * set.  For example, a SQL query like `"SELECT UserId, UserName FROM
     * Users"` could return a `row_type` value like:
     *     "fields": [
     *       { "name": "UserId", "type": { "code": "INT64" } },
     *       { "name": "UserName", "type": { "code": "STRING" } },
     *     ]
     * 
* * .google.spanner.v1.StructType row_type = 1; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructTypeOrBuilder> getRowTypeFieldBuilder() { if (rowTypeBuilder_ == null) { rowTypeBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructType.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.StructTypeOrBuilder>( getRowType(), getParentForChildren(), isClean()); rowType_ = null; } return rowTypeBuilder_; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction transaction_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction, nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOrBuilder> transactionBuilder_; /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public Builder setTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public Builder setTransaction( nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public Builder mergeTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.getDefaultInstance() : transaction_; } } /** *
     * If the read or SQL query began a transaction as a side-effect, the
     * information about the new transaction is yielded here.
     * 
* * .google.spanner.v1.Transaction transaction = 2; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction, nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction, nl.topicus.jdbc.shaded.com.google.spanner.v1.Transaction.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } 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.ResultSetMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetMetadata) private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata(); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetMetadata 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 ResultSetMetadata 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 ResultSetMetadata(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.ResultSetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy