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

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

There is a newer version: 1.1.6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/spanner/v1/spanner.proto

package nl.topicus.jdbc.shaded.com.google.spanner.v1;

/**
 * 
 * The request for [Read][google.spanner.v1.Spanner.Read] and
 * [StreamingRead][google.spanner.v1.Spanner.StreamingRead].
 * 
* * Protobuf type {@code google.spanner.v1.ReadRequest} */ public final class ReadRequest extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.v1.ReadRequest) ReadRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadRequest.newBuilder() to construct. private ReadRequest(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadRequest() { session_ = ""; table_ = ""; index_ = ""; columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; limit_ = 0L; resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; partitionToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadRequest( 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(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); session_ = s; break; } case 18: { nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); table_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); index_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { columns_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } columns_.add(s); break; } case 50: { nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder subBuilder = null; if (keySet_ != null) { subBuilder = keySet_.toBuilder(); } keySet_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keySet_); keySet_ = subBuilder.buildPartial(); } break; } case 64: { limit_ = input.readInt64(); break; } case 74: { resumeToken_ = input.readBytes(); break; } case 82: { partitionToken_ = input.readBytes(); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { columns_ = columns_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ReadRequest_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.Builder.class); } private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; private volatile java.lang.Object session_; /** *
   * Required. The session in which the read should be performed.
   * 
* * string session = 1; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } } /** *
   * Required. The session in which the read should be performed.
   * 
* * string session = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int TRANSACTION_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector transaction_; /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public boolean hasTransaction() { return transaction_ != null; } /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector getTransaction() { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int TABLE_FIELD_NUMBER = 3; private volatile java.lang.Object table_; /** *
   * Required. The name of the table in the database to be read.
   * 
* * string table = 3; */ public java.lang.String getTable() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** *
   * Required. The name of the table in the database to be read.
   * 
* * string table = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); table_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int INDEX_FIELD_NUMBER = 4; private volatile java.lang.Object index_; /** *
   * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
   * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
   * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
   * 
* * string index = 4; */ public java.lang.String getIndex() { java.lang.Object ref = index_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } } /** *
   * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
   * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
   * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
   * 
* * string index = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int COLUMNS_FIELD_NUMBER = 5; private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList columns_; /** *
   * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
   * this request.
   * 
* * repeated string columns = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList getColumnsList() { return columns_; } /** *
   * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
   * this request.
   * 
* * repeated string columns = 5; */ public int getColumnsCount() { return columns_.size(); } /** *
   * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
   * this request.
   * 
* * repeated string columns = 5; */ public java.lang.String getColumns(int index) { return columns_.get(index); } /** *
   * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
   * this request.
   * 
* * repeated string columns = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getColumnsBytes(int index) { return columns_.getByteString(index); } public static final int KEY_SET_FIELD_NUMBER = 6; private nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet keySet_; /** *
   * Required. `key_set` identifies the rows to be yielded. `key_set` names the
   * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
   * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
   * index keys in [index][google.spanner.v1.ReadRequest.index].
   * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
   * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
   * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
   * empty, rows will be yielded in an unspecified order.
   * It is not an error for the `key_set` to name rows that do not
   * exist in the database. Read yields nothing for nonexistent rows.
   * 
* * .google.spanner.v1.KeySet key_set = 6; */ public boolean hasKeySet() { return keySet_ != null; } /** *
   * Required. `key_set` identifies the rows to be yielded. `key_set` names the
   * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
   * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
   * index keys in [index][google.spanner.v1.ReadRequest.index].
   * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
   * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
   * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
   * empty, rows will be yielded in an unspecified order.
   * It is not an error for the `key_set` to name rows that do not
   * exist in the database. Read yields nothing for nonexistent rows.
   * 
* * .google.spanner.v1.KeySet key_set = 6; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getKeySet() { return keySet_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_; } /** *
   * Required. `key_set` identifies the rows to be yielded. `key_set` names the
   * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
   * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
   * index keys in [index][google.spanner.v1.ReadRequest.index].
   * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
   * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
   * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
   * empty, rows will be yielded in an unspecified order.
   * It is not an error for the `key_set` to name rows that do not
   * exist in the database. Read yields nothing for nonexistent rows.
   * 
* * .google.spanner.v1.KeySet key_set = 6; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder() { return getKeySet(); } public static final int LIMIT_FIELD_NUMBER = 8; private long limit_; /** *
   * If greater than zero, only the first `limit` rows are yielded. If `limit`
   * is zero, the default is no limit. A limit cannot be specified if
   * `partition_token` is set.
   * 
* * int64 limit = 8; */ public long getLimit() { return limit_; } public static final int RESUME_TOKEN_FIELD_NUMBER = 9; private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString resumeToken_; /** *
   * If this request is resuming a previously interrupted read,
   * `resume_token` should be copied from the last
   * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
   * enables the new read to resume where the last read left off. The
   * rest of the request parameters must exactly match the request
   * that yielded this token.
   * 
* * bytes resume_token = 9; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getResumeToken() { return resumeToken_; } public static final int PARTITION_TOKEN_FIELD_NUMBER = 10; private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString partitionToken_; /** *
   * If present, results will be restricted to the specified partition
   * previously created using PartitionRead().    There must be an exact
   * match for the values of fields common to this message and the
   * PartitionReadRequest message used to create this partition_token.
   * 
* * bytes partition_token = 10; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPartitionToken() { return partitionToken_; } 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.io.IOException { if (!getSessionBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (transaction_ != null) { output.writeMessage(2, getTransaction()); } if (!getTableBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, table_); } if (!getIndexBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, index_); } for (int i = 0; i < columns_.size(); i++) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, columns_.getRaw(i)); } if (keySet_ != null) { output.writeMessage(6, getKeySet()); } if (limit_ != 0L) { output.writeInt64(8, limit_); } if (!resumeToken_.isEmpty()) { output.writeBytes(9, resumeToken_); } if (!partitionToken_.isEmpty()) { output.writeBytes(10, partitionToken_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSessionBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (transaction_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTransaction()); } if (!getTableBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, table_); } if (!getIndexBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, index_); } { int dataSize = 0; for (int i = 0; i < columns_.size(); i++) { dataSize += computeStringSizeNoTag(columns_.getRaw(i)); } size += dataSize; size += 1 * getColumnsList().size(); } if (keySet_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(6, getKeySet()); } if (limit_ != 0L) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeInt64Size(8, limit_); } if (!resumeToken_.isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeBytesSize(9, resumeToken_); } if (!partitionToken_.isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeBytesSize(10, partitionToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @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.ReadRequest)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest) obj; boolean result = true; result = result && getSession() .equals(other.getSession()); result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { result = result && getTransaction() .equals(other.getTransaction()); } result = result && getTable() .equals(other.getTable()); result = result && getIndex() .equals(other.getIndex()); result = result && getColumnsList() .equals(other.getColumnsList()); result = result && (hasKeySet() == other.hasKeySet()); if (hasKeySet()) { result = result && getKeySet() .equals(other.getKeySet()); } result = result && (getLimit() == other.getLimit()); result = result && getResumeToken() .equals(other.getResumeToken()); result = result && getPartitionToken() .equals(other.getPartitionToken()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); if (getColumnsCount() > 0) { hash = (37 * hash) + COLUMNS_FIELD_NUMBER; hash = (53 * hash) + getColumnsList().hashCode(); } if (hasKeySet()) { hash = (37 * hash) + KEY_SET_FIELD_NUMBER; hash = (53 * hash) + getKeySet().hashCode(); } hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + nl.topicus.jdbc.shaded.com.google.protobuf.Internal.hashLong( getLimit()); hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); hash = (37 * hash) + PARTITION_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPartitionToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest 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.ReadRequest 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.ReadRequest 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.ReadRequest 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.ReadRequest 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.ReadRequest 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.ReadRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest parseFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.ReadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest parseDelimitedFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.ReadRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.ReadRequest 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; } /** *
   * The request for [Read][google.spanner.v1.Spanner.Read] and
   * [StreamingRead][google.spanner.v1.Spanner.StreamingRead].
   * 
* * Protobuf type {@code google.spanner.v1.ReadRequest} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.v1.ReadRequest) nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequestOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ReadRequest_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.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(); session_ = ""; if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } table_ = ""; index_ = ""; columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); if (keySetBuilder_ == null) { keySet_ = null; } else { keySet_ = null; keySetBuilder_ = null; } limit_ = 0L; resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; partitionToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ReadRequest_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest build() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.session_ = session_; if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } result.table_ = table_; result.index_ = index_; if (((bitField0_ & 0x00000010) == 0x00000010)) { columns_ = columns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.columns_ = columns_; if (keySetBuilder_ == null) { result.keySet_ = keySet_; } else { result.keySet_ = keySetBuilder_.build(); } result.limit_ = limit_; result.resumeToken_ = resumeToken_; result.partitionToken_ = partitionToken_; 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, java.lang.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, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ReadRequest) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest.getDefaultInstance()) return this; if (!other.getSession().isEmpty()) { session_ = other.session_; onChanged(); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (!other.getTable().isEmpty()) { table_ = other.table_; onChanged(); } if (!other.getIndex().isEmpty()) { index_ = other.index_; onChanged(); } if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } if (other.hasKeySet()) { mergeKeySet(other.getKeySet()); } if (other.getLimit() != 0L) { setLimit(other.getLimit()); } if (other.getResumeToken() != nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken()); } if (other.getPartitionToken() != nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY) { setPartitionToken(other.getPartitionToken()); } this.mergeUnknownFields(other.unknownFields); 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.io.IOException { nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest 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.ReadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object session_ = ""; /** *
     * Required. The session in which the read should be performed.
     * 
* * string session = 1; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The session in which the read should be performed.
     * 
* * string session = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Required. The session in which the read should be performed.
     * 
* * string session = 1; */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; onChanged(); return this; } /** *
     * Required. The session in which the read should be performed.
     * 
* * string session = 1; */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); onChanged(); return this; } /** *
     * Required. The session in which the read should be performed.
     * 
* * string session = 1; */ public Builder setSessionBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector transaction_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder> transactionBuilder_; /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder setTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder setTransaction( nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder mergeTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.lang.Object table_ = ""; /** *
     * Required. The name of the table in the database to be read.
     * 
* * string table = 3; */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The name of the table in the database to be read.
     * 
* * string table = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); table_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Required. The name of the table in the database to be read.
     * 
* * string table = 3; */ public Builder setTable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } table_ = value; onChanged(); return this; } /** *
     * Required. The name of the table in the database to be read.
     * 
* * string table = 3; */ public Builder clearTable() { table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** *
     * Required. The name of the table in the database to be read.
     * 
* * string table = 3; */ public Builder setTableBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; onChanged(); return this; } private java.lang.Object index_ = ""; /** *
     * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
     * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
     * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
     * 
* * string index = 4; */ public java.lang.String getIndex() { java.lang.Object ref = index_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
     * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
     * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
     * 
* * string index = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
     * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
     * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
     * 
* * string index = 4; */ public Builder setIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } index_ = value; onChanged(); return this; } /** *
     * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
     * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
     * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
     * 
* * string index = 4; */ public Builder clearIndex() { index_ = getDefaultInstance().getIndex(); onChanged(); return this; } /** *
     * If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is
     * used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set]
     * and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
     * 
* * string index = 4; */ public Builder setIndexBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); index_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { columns_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList(columns_); bitField0_ |= 0x00000010; } } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList getColumnsList() { return columns_.getUnmodifiableView(); } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public int getColumnsCount() { return columns_.size(); } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public java.lang.String getColumns(int index) { return columns_.get(index); } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getColumnsBytes(int index) { return columns_.getByteString(index); } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public Builder setColumns( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); return this; } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public Builder addColumns( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); return this; } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public Builder addAllColumns( java.lang.Iterable values) { ensureColumnsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); return this; } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public Builder clearColumns() { columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching
     * this request.
     * 
* * repeated string columns = 5; */ public Builder addColumnsBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureColumnsIsMutable(); columns_.add(value); onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet keySet_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder> keySetBuilder_; /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public boolean hasKeySet() { return keySetBuilder_ != null || keySet_ != null; } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getKeySet() { if (keySetBuilder_ == null) { return keySet_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_; } else { return keySetBuilder_.getMessage(); } } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public Builder setKeySet(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet value) { if (keySetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keySet_ = value; onChanged(); } else { keySetBuilder_.setMessage(value); } return this; } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public Builder setKeySet( nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder builderForValue) { if (keySetBuilder_ == null) { keySet_ = builderForValue.build(); onChanged(); } else { keySetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public Builder mergeKeySet(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet value) { if (keySetBuilder_ == null) { if (keySet_ != null) { keySet_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.newBuilder(keySet_).mergeFrom(value).buildPartial(); } else { keySet_ = value; } onChanged(); } else { keySetBuilder_.mergeFrom(value); } return this; } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public Builder clearKeySet() { if (keySetBuilder_ == null) { keySet_ = null; onChanged(); } else { keySet_ = null; keySetBuilder_ = null; } return this; } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder getKeySetBuilder() { onChanged(); return getKeySetFieldBuilder().getBuilder(); } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder() { if (keySetBuilder_ != null) { return keySetBuilder_.getMessageOrBuilder(); } else { return keySet_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_; } } /** *
     * Required. `key_set` identifies the rows to be yielded. `key_set` names the
     * primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index]
     * is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names
     * index keys in [index][google.spanner.v1.ReadRequest.index].
     * If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded
     * in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
     * (if [index][google.spanner.v1.ReadRequest.index] is non-empty).  If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not
     * empty, rows will be yielded in an unspecified order.
     * It is not an error for the `key_set` to name rows that do not
     * exist in the database. Read yields nothing for nonexistent rows.
     * 
* * .google.spanner.v1.KeySet key_set = 6; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder> getKeySetFieldBuilder() { if (keySetBuilder_ == null) { keySetBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder>( getKeySet(), getParentForChildren(), isClean()); keySet_ = null; } return keySetBuilder_; } private long limit_ ; /** *
     * If greater than zero, only the first `limit` rows are yielded. If `limit`
     * is zero, the default is no limit. A limit cannot be specified if
     * `partition_token` is set.
     * 
* * int64 limit = 8; */ public long getLimit() { return limit_; } /** *
     * If greater than zero, only the first `limit` rows are yielded. If `limit`
     * is zero, the default is no limit. A limit cannot be specified if
     * `partition_token` is set.
     * 
* * int64 limit = 8; */ public Builder setLimit(long value) { limit_ = value; onChanged(); return this; } /** *
     * If greater than zero, only the first `limit` rows are yielded. If `limit`
     * is zero, the default is no limit. A limit cannot be specified if
     * `partition_token` is set.
     * 
* * int64 limit = 8; */ public Builder clearLimit() { limit_ = 0L; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; /** *
     * If this request is resuming a previously interrupted read,
     * `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new read to resume where the last read left off. The
     * rest of the request parameters must exactly match the request
     * that yielded this token.
     * 
* * bytes resume_token = 9; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getResumeToken() { return resumeToken_; } /** *
     * If this request is resuming a previously interrupted read,
     * `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new read to resume where the last read left off. The
     * rest of the request parameters must exactly match the request
     * that yielded this token.
     * 
* * bytes resume_token = 9; */ public Builder setResumeToken(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resumeToken_ = value; onChanged(); return this; } /** *
     * If this request is resuming a previously interrupted read,
     * `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new read to resume where the last read left off. The
     * rest of the request parameters must exactly match the request
     * that yielded this token.
     * 
* * bytes resume_token = 9; */ public Builder clearResumeToken() { resumeToken_ = getDefaultInstance().getResumeToken(); onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString partitionToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; /** *
     * If present, results will be restricted to the specified partition
     * previously created using PartitionRead().    There must be an exact
     * match for the values of fields common to this message and the
     * PartitionReadRequest message used to create this partition_token.
     * 
* * bytes partition_token = 10; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPartitionToken() { return partitionToken_; } /** *
     * If present, results will be restricted to the specified partition
     * previously created using PartitionRead().    There must be an exact
     * match for the values of fields common to this message and the
     * PartitionReadRequest message used to create this partition_token.
     * 
* * bytes partition_token = 10; */ public Builder setPartitionToken(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } partitionToken_ = value; onChanged(); return this; } /** *
     * If present, results will be restricted to the specified partition
     * previously created using PartitionRead().    There must be an exact
     * match for the values of fields common to this message and the
     * PartitionReadRequest message used to create this partition_token.
     * 
* * bytes partition_token = 10; */ public Builder clearPartitionToken() { partitionToken_ = getDefaultInstance().getPartitionToken(); onChanged(); return this; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.spanner.v1.ReadRequest) } // @@protoc_insertion_point(class_scope:google.spanner.v1.ReadRequest) private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest(); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ReadRequest 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 ReadRequest 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 ReadRequest(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.ReadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy