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

com.google.bigtable.v2.ColumnRange Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/bigtable/v2/data.proto

// Protobuf Java Version: 3.25.2
package com.google.bigtable.v2;

/**
 *
 *
 * 
 * Specifies a contiguous range of columns within a single column family.
 * The range spans from <column_family>:<start_qualifier> to
 * <column_family>:<end_qualifier>, where both bounds can be either
 * inclusive or exclusive.
 * 
* * Protobuf type {@code google.bigtable.v2.ColumnRange} */ public final class ColumnRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.bigtable.v2.ColumnRange) ColumnRangeOrBuilder { private static final long serialVersionUID = 0L; // Use ColumnRange.newBuilder() to construct. private ColumnRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ColumnRange() { familyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ColumnRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.v2.DataProto .internal_static_google_bigtable_v2_ColumnRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.v2.DataProto .internal_static_google_bigtable_v2_ColumnRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.bigtable.v2.ColumnRange.class, com.google.bigtable.v2.ColumnRange.Builder.class); } private int startQualifierCase_ = 0; @SuppressWarnings("serial") private java.lang.Object startQualifier_; public enum StartQualifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { START_QUALIFIER_CLOSED(2), START_QUALIFIER_OPEN(3), STARTQUALIFIER_NOT_SET(0); private final int value; private StartQualifierCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StartQualifierCase valueOf(int value) { return forNumber(value); } public static StartQualifierCase forNumber(int value) { switch (value) { case 2: return START_QUALIFIER_CLOSED; case 3: return START_QUALIFIER_OPEN; case 0: return STARTQUALIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public StartQualifierCase getStartQualifierCase() { return StartQualifierCase.forNumber(startQualifierCase_); } private int endQualifierCase_ = 0; @SuppressWarnings("serial") private java.lang.Object endQualifier_; public enum EndQualifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { END_QUALIFIER_CLOSED(4), END_QUALIFIER_OPEN(5), ENDQUALIFIER_NOT_SET(0); private final int value; private EndQualifierCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EndQualifierCase valueOf(int value) { return forNumber(value); } public static EndQualifierCase forNumber(int value) { switch (value) { case 4: return END_QUALIFIER_CLOSED; case 5: return END_QUALIFIER_OPEN; case 0: return ENDQUALIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EndQualifierCase getEndQualifierCase() { return EndQualifierCase.forNumber(endQualifierCase_); } public static final int FAMILY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object familyName_ = ""; /** * * *
   * The name of the column family within which this range falls.
   * 
* * string family_name = 1; * * @return The familyName. */ @java.lang.Override public java.lang.String getFamilyName() { java.lang.Object ref = familyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); familyName_ = s; return s; } } /** * * *
   * The name of the column family within which this range falls.
   * 
* * string family_name = 1; * * @return The bytes for familyName. */ @java.lang.Override public com.google.protobuf.ByteString getFamilyNameBytes() { java.lang.Object ref = familyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); familyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_QUALIFIER_CLOSED_FIELD_NUMBER = 2; /** * * *
   * Used when giving an inclusive lower bound for the range.
   * 
* * bytes start_qualifier_closed = 2; * * @return Whether the startQualifierClosed field is set. */ @java.lang.Override public boolean hasStartQualifierClosed() { return startQualifierCase_ == 2; } /** * * *
   * Used when giving an inclusive lower bound for the range.
   * 
* * bytes start_qualifier_closed = 2; * * @return The startQualifierClosed. */ @java.lang.Override public com.google.protobuf.ByteString getStartQualifierClosed() { if (startQualifierCase_ == 2) { return (com.google.protobuf.ByteString) startQualifier_; } return com.google.protobuf.ByteString.EMPTY; } public static final int START_QUALIFIER_OPEN_FIELD_NUMBER = 3; /** * * *
   * Used when giving an exclusive lower bound for the range.
   * 
* * bytes start_qualifier_open = 3; * * @return Whether the startQualifierOpen field is set. */ @java.lang.Override public boolean hasStartQualifierOpen() { return startQualifierCase_ == 3; } /** * * *
   * Used when giving an exclusive lower bound for the range.
   * 
* * bytes start_qualifier_open = 3; * * @return The startQualifierOpen. */ @java.lang.Override public com.google.protobuf.ByteString getStartQualifierOpen() { if (startQualifierCase_ == 3) { return (com.google.protobuf.ByteString) startQualifier_; } return com.google.protobuf.ByteString.EMPTY; } public static final int END_QUALIFIER_CLOSED_FIELD_NUMBER = 4; /** * * *
   * Used when giving an inclusive upper bound for the range.
   * 
* * bytes end_qualifier_closed = 4; * * @return Whether the endQualifierClosed field is set. */ @java.lang.Override public boolean hasEndQualifierClosed() { return endQualifierCase_ == 4; } /** * * *
   * Used when giving an inclusive upper bound for the range.
   * 
* * bytes end_qualifier_closed = 4; * * @return The endQualifierClosed. */ @java.lang.Override public com.google.protobuf.ByteString getEndQualifierClosed() { if (endQualifierCase_ == 4) { return (com.google.protobuf.ByteString) endQualifier_; } return com.google.protobuf.ByteString.EMPTY; } public static final int END_QUALIFIER_OPEN_FIELD_NUMBER = 5; /** * * *
   * Used when giving an exclusive upper bound for the range.
   * 
* * bytes end_qualifier_open = 5; * * @return Whether the endQualifierOpen field is set. */ @java.lang.Override public boolean hasEndQualifierOpen() { return endQualifierCase_ == 5; } /** * * *
   * Used when giving an exclusive upper bound for the range.
   * 
* * bytes end_qualifier_open = 5; * * @return The endQualifierOpen. */ @java.lang.Override public com.google.protobuf.ByteString getEndQualifierOpen() { if (endQualifierCase_ == 5) { return (com.google.protobuf.ByteString) endQualifier_; } return com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, familyName_); } if (startQualifierCase_ == 2) { output.writeBytes(2, (com.google.protobuf.ByteString) startQualifier_); } if (startQualifierCase_ == 3) { output.writeBytes(3, (com.google.protobuf.ByteString) startQualifier_); } if (endQualifierCase_ == 4) { output.writeBytes(4, (com.google.protobuf.ByteString) endQualifier_); } if (endQualifierCase_ == 5) { output.writeBytes(5, (com.google.protobuf.ByteString) endQualifier_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, familyName_); } if (startQualifierCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeBytesSize( 2, (com.google.protobuf.ByteString) startQualifier_); } if (startQualifierCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeBytesSize( 3, (com.google.protobuf.ByteString) startQualifier_); } if (endQualifierCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeBytesSize( 4, (com.google.protobuf.ByteString) endQualifier_); } if (endQualifierCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeBytesSize( 5, (com.google.protobuf.ByteString) endQualifier_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.ColumnRange)) { return super.equals(obj); } com.google.bigtable.v2.ColumnRange other = (com.google.bigtable.v2.ColumnRange) obj; if (!getFamilyName().equals(other.getFamilyName())) return false; if (!getStartQualifierCase().equals(other.getStartQualifierCase())) return false; switch (startQualifierCase_) { case 2: if (!getStartQualifierClosed().equals(other.getStartQualifierClosed())) return false; break; case 3: if (!getStartQualifierOpen().equals(other.getStartQualifierOpen())) return false; break; case 0: default: } if (!getEndQualifierCase().equals(other.getEndQualifierCase())) return false; switch (endQualifierCase_) { case 4: if (!getEndQualifierClosed().equals(other.getEndQualifierClosed())) return false; break; case 5: if (!getEndQualifierOpen().equals(other.getEndQualifierOpen())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); switch (startQualifierCase_) { case 2: hash = (37 * hash) + START_QUALIFIER_CLOSED_FIELD_NUMBER; hash = (53 * hash) + getStartQualifierClosed().hashCode(); break; case 3: hash = (37 * hash) + START_QUALIFIER_OPEN_FIELD_NUMBER; hash = (53 * hash) + getStartQualifierOpen().hashCode(); break; case 0: default: } switch (endQualifierCase_) { case 4: hash = (37 * hash) + END_QUALIFIER_CLOSED_FIELD_NUMBER; hash = (53 * hash) + getEndQualifierClosed().hashCode(); break; case 5: hash = (37 * hash) + END_QUALIFIER_OPEN_FIELD_NUMBER; hash = (53 * hash) + getEndQualifierOpen().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.bigtable.v2.ColumnRange parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.bigtable.v2.ColumnRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.bigtable.v2.ColumnRange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.bigtable.v2.ColumnRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.bigtable.v2.ColumnRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.bigtable.v2.ColumnRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.bigtable.v2.ColumnRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.bigtable.v2.ColumnRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.bigtable.v2.ColumnRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.bigtable.v2.ColumnRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.bigtable.v2.ColumnRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.bigtable.v2.ColumnRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.bigtable.v2.ColumnRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Specifies a contiguous range of columns within a single column family.
   * The range spans from <column_family>:<start_qualifier> to
   * <column_family>:<end_qualifier>, where both bounds can be either
   * inclusive or exclusive.
   * 
* * Protobuf type {@code google.bigtable.v2.ColumnRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ColumnRange) com.google.bigtable.v2.ColumnRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.v2.DataProto .internal_static_google_bigtable_v2_ColumnRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.v2.DataProto .internal_static_google_bigtable_v2_ColumnRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.bigtable.v2.ColumnRange.class, com.google.bigtable.v2.ColumnRange.Builder.class); } // Construct using com.google.bigtable.v2.ColumnRange.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; familyName_ = ""; startQualifierCase_ = 0; startQualifier_ = null; endQualifierCase_ = 0; endQualifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.bigtable.v2.DataProto .internal_static_google_bigtable_v2_ColumnRange_descriptor; } @java.lang.Override public com.google.bigtable.v2.ColumnRange getDefaultInstanceForType() { return com.google.bigtable.v2.ColumnRange.getDefaultInstance(); } @java.lang.Override public com.google.bigtable.v2.ColumnRange build() { com.google.bigtable.v2.ColumnRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.bigtable.v2.ColumnRange buildPartial() { com.google.bigtable.v2.ColumnRange result = new com.google.bigtable.v2.ColumnRange(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.bigtable.v2.ColumnRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.familyName_ = familyName_; } } private void buildPartialOneofs(com.google.bigtable.v2.ColumnRange result) { result.startQualifierCase_ = startQualifierCase_; result.startQualifier_ = this.startQualifier_; result.endQualifierCase_ = endQualifierCase_; result.endQualifier_ = this.endQualifier_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.bigtable.v2.ColumnRange) { return mergeFrom((com.google.bigtable.v2.ColumnRange) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.bigtable.v2.ColumnRange other) { if (other == com.google.bigtable.v2.ColumnRange.getDefaultInstance()) return this; if (!other.getFamilyName().isEmpty()) { familyName_ = other.familyName_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getStartQualifierCase()) { case START_QUALIFIER_CLOSED: { setStartQualifierClosed(other.getStartQualifierClosed()); break; } case START_QUALIFIER_OPEN: { setStartQualifierOpen(other.getStartQualifierOpen()); break; } case STARTQUALIFIER_NOT_SET: { break; } } switch (other.getEndQualifierCase()) { case END_QUALIFIER_CLOSED: { setEndQualifierClosed(other.getEndQualifierClosed()); break; } case END_QUALIFIER_OPEN: { setEndQualifierOpen(other.getEndQualifierOpen()); break; } case ENDQUALIFIER_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { familyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { startQualifier_ = input.readBytes(); startQualifierCase_ = 2; break; } // case 18 case 26: { startQualifier_ = input.readBytes(); startQualifierCase_ = 3; break; } // case 26 case 34: { endQualifier_ = input.readBytes(); endQualifierCase_ = 4; break; } // case 34 case 42: { endQualifier_ = input.readBytes(); endQualifierCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int startQualifierCase_ = 0; private java.lang.Object startQualifier_; public StartQualifierCase getStartQualifierCase() { return StartQualifierCase.forNumber(startQualifierCase_); } public Builder clearStartQualifier() { startQualifierCase_ = 0; startQualifier_ = null; onChanged(); return this; } private int endQualifierCase_ = 0; private java.lang.Object endQualifier_; public EndQualifierCase getEndQualifierCase() { return EndQualifierCase.forNumber(endQualifierCase_); } public Builder clearEndQualifier() { endQualifierCase_ = 0; endQualifier_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object familyName_ = ""; /** * * *
     * The name of the column family within which this range falls.
     * 
* * string family_name = 1; * * @return The familyName. */ public java.lang.String getFamilyName() { java.lang.Object ref = familyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); familyName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the column family within which this range falls.
     * 
* * string family_name = 1; * * @return The bytes for familyName. */ public com.google.protobuf.ByteString getFamilyNameBytes() { java.lang.Object ref = familyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); familyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the column family within which this range falls.
     * 
* * string family_name = 1; * * @param value The familyName to set. * @return This builder for chaining. */ public Builder setFamilyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } familyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of the column family within which this range falls.
     * 
* * string family_name = 1; * * @return This builder for chaining. */ public Builder clearFamilyName() { familyName_ = getDefaultInstance().getFamilyName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The name of the column family within which this range falls.
     * 
* * string family_name = 1; * * @param value The bytes for familyName to set. * @return This builder for chaining. */ public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); familyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Used when giving an inclusive lower bound for the range.
     * 
* * bytes start_qualifier_closed = 2; * * @return Whether the startQualifierClosed field is set. */ public boolean hasStartQualifierClosed() { return startQualifierCase_ == 2; } /** * * *
     * Used when giving an inclusive lower bound for the range.
     * 
* * bytes start_qualifier_closed = 2; * * @return The startQualifierClosed. */ public com.google.protobuf.ByteString getStartQualifierClosed() { if (startQualifierCase_ == 2) { return (com.google.protobuf.ByteString) startQualifier_; } return com.google.protobuf.ByteString.EMPTY; } /** * * *
     * Used when giving an inclusive lower bound for the range.
     * 
* * bytes start_qualifier_closed = 2; * * @param value The startQualifierClosed to set. * @return This builder for chaining. */ public Builder setStartQualifierClosed(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startQualifierCase_ = 2; startQualifier_ = value; onChanged(); return this; } /** * * *
     * Used when giving an inclusive lower bound for the range.
     * 
* * bytes start_qualifier_closed = 2; * * @return This builder for chaining. */ public Builder clearStartQualifierClosed() { if (startQualifierCase_ == 2) { startQualifierCase_ = 0; startQualifier_ = null; onChanged(); } return this; } /** * * *
     * Used when giving an exclusive lower bound for the range.
     * 
* * bytes start_qualifier_open = 3; * * @return Whether the startQualifierOpen field is set. */ public boolean hasStartQualifierOpen() { return startQualifierCase_ == 3; } /** * * *
     * Used when giving an exclusive lower bound for the range.
     * 
* * bytes start_qualifier_open = 3; * * @return The startQualifierOpen. */ public com.google.protobuf.ByteString getStartQualifierOpen() { if (startQualifierCase_ == 3) { return (com.google.protobuf.ByteString) startQualifier_; } return com.google.protobuf.ByteString.EMPTY; } /** * * *
     * Used when giving an exclusive lower bound for the range.
     * 
* * bytes start_qualifier_open = 3; * * @param value The startQualifierOpen to set. * @return This builder for chaining. */ public Builder setStartQualifierOpen(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startQualifierCase_ = 3; startQualifier_ = value; onChanged(); return this; } /** * * *
     * Used when giving an exclusive lower bound for the range.
     * 
* * bytes start_qualifier_open = 3; * * @return This builder for chaining. */ public Builder clearStartQualifierOpen() { if (startQualifierCase_ == 3) { startQualifierCase_ = 0; startQualifier_ = null; onChanged(); } return this; } /** * * *
     * Used when giving an inclusive upper bound for the range.
     * 
* * bytes end_qualifier_closed = 4; * * @return Whether the endQualifierClosed field is set. */ public boolean hasEndQualifierClosed() { return endQualifierCase_ == 4; } /** * * *
     * Used when giving an inclusive upper bound for the range.
     * 
* * bytes end_qualifier_closed = 4; * * @return The endQualifierClosed. */ public com.google.protobuf.ByteString getEndQualifierClosed() { if (endQualifierCase_ == 4) { return (com.google.protobuf.ByteString) endQualifier_; } return com.google.protobuf.ByteString.EMPTY; } /** * * *
     * Used when giving an inclusive upper bound for the range.
     * 
* * bytes end_qualifier_closed = 4; * * @param value The endQualifierClosed to set. * @return This builder for chaining. */ public Builder setEndQualifierClosed(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endQualifierCase_ = 4; endQualifier_ = value; onChanged(); return this; } /** * * *
     * Used when giving an inclusive upper bound for the range.
     * 
* * bytes end_qualifier_closed = 4; * * @return This builder for chaining. */ public Builder clearEndQualifierClosed() { if (endQualifierCase_ == 4) { endQualifierCase_ = 0; endQualifier_ = null; onChanged(); } return this; } /** * * *
     * Used when giving an exclusive upper bound for the range.
     * 
* * bytes end_qualifier_open = 5; * * @return Whether the endQualifierOpen field is set. */ public boolean hasEndQualifierOpen() { return endQualifierCase_ == 5; } /** * * *
     * Used when giving an exclusive upper bound for the range.
     * 
* * bytes end_qualifier_open = 5; * * @return The endQualifierOpen. */ public com.google.protobuf.ByteString getEndQualifierOpen() { if (endQualifierCase_ == 5) { return (com.google.protobuf.ByteString) endQualifier_; } return com.google.protobuf.ByteString.EMPTY; } /** * * *
     * Used when giving an exclusive upper bound for the range.
     * 
* * bytes end_qualifier_open = 5; * * @param value The endQualifierOpen to set. * @return This builder for chaining. */ public Builder setEndQualifierOpen(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endQualifierCase_ = 5; endQualifier_ = value; onChanged(); return this; } /** * * *
     * Used when giving an exclusive upper bound for the range.
     * 
* * bytes end_qualifier_open = 5; * * @return This builder for chaining. */ public Builder clearEndQualifierOpen() { if (endQualifierCase_ == 5) { endQualifierCase_ = 0; endQualifier_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ColumnRange) } // @@protoc_insertion_point(class_scope:google.bigtable.v2.ColumnRange) private static final com.google.bigtable.v2.ColumnRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.bigtable.v2.ColumnRange(); } public static com.google.bigtable.v2.ColumnRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ColumnRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.bigtable.v2.ColumnRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy