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

nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet 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/keys.proto

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

/**
 * 
 * `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
 * the keys are expected to be in the same table or index. The keys need
 * not be sorted in any particular way.
 * If the same key is specified multiple times in the set (for example
 * if two ranges, two keys, or a key and a range overlap), Cloud Spanner
 * behaves as if the key were only specified once.
 * 
* * Protobuf type {@code google.spanner.v1.KeySet} */ public final class KeySet extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.v1.KeySet) KeySetOrBuilder { // Use KeySet.newBuilder() to construct. private KeySet(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeySet() { keys_ = java.util.Collections.emptyList(); ranges_ = java.util.Collections.emptyList(); all_ = false; } @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 KeySet( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } keys_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.parser(), extensionRegistry)); break; } case 24: { all_ = input.readBool(); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.nl.topicus.jdbc.shaded.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeysProto.internal_static_google_spanner_v1_KeySet_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeysProto.internal_static_google_spanner_v1_KeySet_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder.class); } private int bitField0_; public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** *
   * A list of specific keys. Entries in `keys` should have exactly as
   * many elements as there are columns in the primary or index key
   * with which this `KeySet` is used.  Individual key values are
   * encoded as described [here][google.spanner.v1.TypeCode].
   * 
* * repeated .google.protobuf.ListValue keys = 1; */ public java.util.List getKeysList() { return keys_; } /** *
   * A list of specific keys. Entries in `keys` should have exactly as
   * many elements as there are columns in the primary or index key
   * with which this `KeySet` is used.  Individual key values are
   * encoded as described [here][google.spanner.v1.TypeCode].
   * 
* * repeated .google.protobuf.ListValue keys = 1; */ public java.util.List getKeysOrBuilderList() { return keys_; } /** *
   * A list of specific keys. Entries in `keys` should have exactly as
   * many elements as there are columns in the primary or index key
   * with which this `KeySet` is used.  Individual key values are
   * encoded as described [here][google.spanner.v1.TypeCode].
   * 
* * repeated .google.protobuf.ListValue keys = 1; */ public int getKeysCount() { return keys_.size(); } /** *
   * A list of specific keys. Entries in `keys` should have exactly as
   * many elements as there are columns in the primary or index key
   * with which this `KeySet` is used.  Individual key values are
   * encoded as described [here][google.spanner.v1.TypeCode].
   * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getKeys(int index) { return keys_.get(index); } /** *
   * A list of specific keys. Entries in `keys` should have exactly as
   * many elements as there are columns in the primary or index key
   * with which this `KeySet` is used.  Individual key values are
   * encoded as described [here][google.spanner.v1.TypeCode].
   * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getKeysOrBuilder( int index) { return keys_.get(index); } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** *
   * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
   * key range specifications.
   * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** *
   * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
   * key range specifications.
   * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** *
   * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
   * key range specifications.
   * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** *
   * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
   * key range specifications.
   * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange getRanges(int index) { return ranges_.get(index); } /** *
   * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
   * key range specifications.
   * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRangeOrBuilder getRangesOrBuilder( int index) { return ranges_.get(index); } public static final int ALL_FIELD_NUMBER = 3; private boolean all_; /** *
   * For convenience `all` can be set to `true` to indicate that this
   * `KeySet` matches all keys in the table or index. Note that any keys
   * specified in `keys` or `ranges` are only yielded once.
   * 
* * bool all = 3; */ public boolean getAll() { return all_; } 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 { for (int i = 0; i < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.get(i)); } if (all_ != false) { output.writeBool(3, all_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < keys_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(1, keys_.get(i)); } for (int i = 0; i < ranges_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(2, ranges_.get(i)); } if (all_ != false) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteBoolSize(3, all_); } 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.KeySet)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet) obj; boolean result = true; result = result && getKeysList() .equals(other.getKeysList()); result = result && getRangesList() .equals(other.getRangesList()); result = result && (getAll() == other.getAll()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (37 * hash) + ALL_FIELD_NUMBER; hash = (53 * hash) + nl.topicus.jdbc.shaded.com.google.protobuf.Internal.hashBoolean( getAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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.KeySet 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; } /** *
   * `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
   * the keys are expected to be in the same table or index. The keys need
   * not be sorted in any particular way.
   * If the same key is specified multiple times in the set (for example
   * if two ranges, two keys, or a key and a range overlap), Cloud Spanner
   * behaves as if the key were only specified once.
   * 
* * Protobuf type {@code google.spanner.v1.KeySet} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.v1.KeySet) nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeysProto.internal_static_google_spanner_v1_KeySet_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeysProto.internal_static_google_spanner_v1_KeySet_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.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) { getKeysFieldBuilder(); getRangesFieldBuilder(); } } public Builder clear() { super.clear(); if (keysBuilder_ == null) { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { keysBuilder_.clear(); } if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } all_ = false; return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeysProto.internal_static_google_spanner_v1_KeySet_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet build() { nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; } else { result.keys_ = keysBuilder_.build(); } if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } result.all_ = all_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance()) return this; if (keysBuilder_ == null) { if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } } else { if (!other.keys_.isEmpty()) { if (keysBuilder_.isEmpty()) { keysBuilder_.dispose(); keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); keysBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } } } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } if (other.getAll() != false) { setAll(other.getAll()); } 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.KeySet 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.KeySet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder> keysBuilder_; /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public java.util.List getKeysList() { if (keysBuilder_ == null) { return java.util.Collections.unmodifiableList(keys_); } else { return keysBuilder_.getMessageList(); } } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public int getKeysCount() { if (keysBuilder_ == null) { return keys_.size(); } else { return keysBuilder_.getCount(); } } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getKeys(int index) { if (keysBuilder_ == null) { return keys_.get(index); } else { return keysBuilder_.getMessage(index); } } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder setKeys( int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); } else { keysBuilder_.setMessage(index, value); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder setKeys( int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); onChanged(); } else { keysBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder addKeys(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); } else { keysBuilder_.addMessage(value); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder addKeys( int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(index, value); onChanged(); } else { keysBuilder_.addMessage(index, value); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder addKeys( nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); onChanged(); } else { keysBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder addKeys( int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); onChanged(); } else { keysBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder addAllKeys( java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder clearKeys() { if (keysBuilder_ == null) { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keysBuilder_.clear(); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.remove(index); onChanged(); } else { keysBuilder_.remove(index); } return this; } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder getKeysBuilder( int index) { return getKeysFieldBuilder().getBuilder(index); } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getKeysOrBuilder( int index) { if (keysBuilder_ == null) { return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public java.util.List getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keys_); } } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addKeysBuilder() { return getKeysFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance()); } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addKeysBuilder( int index) { return getKeysFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance()); } /** *
     * A list of specific keys. Entries in `keys` should have exactly as
     * many elements as there are columns in the primary or index key
     * with which this `KeySet` is used.  Individual key values are
     * encoded as described [here][google.spanner.v1.TypeCode].
     * 
* * repeated .google.protobuf.ListValue keys = 1; */ public java.util.List getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { keysBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>( keys_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRangeOrBuilder> rangesBuilder_; /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder setRanges( int index, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder setRanges( int index, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder addRanges(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder addRanges( int index, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder addRanges( nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder addRanges( int index, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder getRangesBuilder( int index) { return getRangesFieldBuilder().getBuilder(index); } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder addRangesBuilder() { return getRangesFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.getDefaultInstance()); } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder addRangesBuilder( int index) { return getRangesFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.getDefaultInstance()); } /** *
     * A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
     * key range specifications.
     * 
* * repeated .google.spanner.v1.KeyRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRange.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeyRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } private boolean all_ ; /** *
     * For convenience `all` can be set to `true` to indicate that this
     * `KeySet` matches all keys in the table or index. Note that any keys
     * specified in `keys` or `ranges` are only yielded once.
     * 
* * bool all = 3; */ public boolean getAll() { return all_; } /** *
     * For convenience `all` can be set to `true` to indicate that this
     * `KeySet` matches all keys in the table or index. Note that any keys
     * specified in `keys` or `ranges` are only yielded once.
     * 
* * bool all = 3; */ public Builder setAll(boolean value) { all_ = value; onChanged(); return this; } /** *
     * For convenience `all` can be set to `true` to indicate that this
     * `KeySet` matches all keys in the table or index. Note that any keys
     * specified in `keys` or `ranges` are only yielded once.
     * 
* * bool all = 3; */ public Builder clearAll() { all_ = false; onChanged(); return this; } 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.KeySet) } // @@protoc_insertion_point(class_scope:google.spanner.v1.KeySet) private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet(); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet 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 KeySet 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 KeySet(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.KeySet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy