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

grpc.cache_client._SortedSetFetchRequest Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cacheclient.proto

package grpc.cache_client;

/**
 * Protobuf type {@code cache_client._SortedSetFetchRequest}
 */
public final class _SortedSetFetchRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cache_client._SortedSetFetchRequest)
    _SortedSetFetchRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _SortedSetFetchRequest.newBuilder() to construct.
  private _SortedSetFetchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _SortedSetFetchRequest() {
    setName_ = com.google.protobuf.ByteString.EMPTY;
    order_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new _SortedSetFetchRequest();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.cache_client._SortedSetFetchRequest.class, grpc.cache_client._SortedSetFetchRequest.Builder.class);
  }

  /**
   * Protobuf enum {@code cache_client._SortedSetFetchRequest.Order}
   */
  public enum Order
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * ASCENDING = 0;
     */
    ASCENDING(0),
    /**
     * DESCENDING = 1;
     */
    DESCENDING(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * ASCENDING = 0;
     */
    public static final int ASCENDING_VALUE = 0;
    /**
     * DESCENDING = 1;
     */
    public static final int DESCENDING_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Order valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Order forNumber(int value) {
      switch (value) {
        case 0: return ASCENDING;
        case 1: return DESCENDING;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Order> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Order findValueByNumber(int number) {
              return Order.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return grpc.cache_client._SortedSetFetchRequest.getDescriptor().getEnumTypes().get(0);
    }

    private static final Order[] VALUES = values();

    public static Order valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Order(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:cache_client._SortedSetFetchRequest.Order)
  }

  public interface _ByIndexOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cache_client._SortedSetFetchRequest._ByIndex)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .common._Unbounded unbounded_start = 1;
     * @return Whether the unboundedStart field is set.
     */
    boolean hasUnboundedStart();
    /**
     * .common._Unbounded unbounded_start = 1;
     * @return The unboundedStart.
     */
    grpc.common._Unbounded getUnboundedStart();
    /**
     * .common._Unbounded unbounded_start = 1;
     */
    grpc.common._UnboundedOrBuilder getUnboundedStartOrBuilder();

    /**
     * sint32 inclusive_start_index = 2;
     * @return Whether the inclusiveStartIndex field is set.
     */
    boolean hasInclusiveStartIndex();
    /**
     * sint32 inclusive_start_index = 2;
     * @return The inclusiveStartIndex.
     */
    int getInclusiveStartIndex();

    /**
     * .common._Unbounded unbounded_end = 3;
     * @return Whether the unboundedEnd field is set.
     */
    boolean hasUnboundedEnd();
    /**
     * .common._Unbounded unbounded_end = 3;
     * @return The unboundedEnd.
     */
    grpc.common._Unbounded getUnboundedEnd();
    /**
     * .common._Unbounded unbounded_end = 3;
     */
    grpc.common._UnboundedOrBuilder getUnboundedEndOrBuilder();

    /**
     * sint32 exclusive_end_index = 4;
     * @return Whether the exclusiveEndIndex field is set.
     */
    boolean hasExclusiveEndIndex();
    /**
     * sint32 exclusive_end_index = 4;
     * @return The exclusiveEndIndex.
     */
    int getExclusiveEndIndex();

    grpc.cache_client._SortedSetFetchRequest._ByIndex.StartCase getStartCase();

    grpc.cache_client._SortedSetFetchRequest._ByIndex.EndCase getEndCase();
  }
  /**
   * 
   * Start and end are zero-based indexes, with 0 being the first element.
   * A negative index indicates offsets from the end of the sorted set, with
   * -1 being the last element.
   * 
* * Protobuf type {@code cache_client._SortedSetFetchRequest._ByIndex} */ public static final class _ByIndex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cache_client._SortedSetFetchRequest._ByIndex) _ByIndexOrBuilder { private static final long serialVersionUID = 0L; // Use _ByIndex.newBuilder() to construct. private _ByIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _ByIndex() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _ByIndex(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByIndex.class, grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder.class); } private int startCase_ = 0; @SuppressWarnings("serial") private java.lang.Object start_; public enum StartCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_START(1), INCLUSIVE_START_INDEX(2), START_NOT_SET(0); private final int value; private StartCase(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 StartCase valueOf(int value) { return forNumber(value); } public static StartCase forNumber(int value) { switch (value) { case 1: return UNBOUNDED_START; case 2: return INCLUSIVE_START_INDEX; case 0: return START_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public StartCase getStartCase() { return StartCase.forNumber( startCase_); } private int endCase_ = 0; @SuppressWarnings("serial") private java.lang.Object end_; public enum EndCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_END(3), EXCLUSIVE_END_INDEX(4), END_NOT_SET(0); private final int value; private EndCase(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 EndCase valueOf(int value) { return forNumber(value); } public static EndCase forNumber(int value) { switch (value) { case 3: return UNBOUNDED_END; case 4: return EXCLUSIVE_END_INDEX; case 0: return END_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EndCase getEndCase() { return EndCase.forNumber( endCase_); } public static final int UNBOUNDED_START_FIELD_NUMBER = 1; /** * .common._Unbounded unbounded_start = 1; * @return Whether the unboundedStart field is set. */ @java.lang.Override public boolean hasUnboundedStart() { return startCase_ == 1; } /** * .common._Unbounded unbounded_start = 1; * @return The unboundedStart. */ @java.lang.Override public grpc.common._Unbounded getUnboundedStart() { if (startCase_ == 1) { return (grpc.common._Unbounded) start_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_start = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedStartOrBuilder() { if (startCase_ == 1) { return (grpc.common._Unbounded) start_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int INCLUSIVE_START_INDEX_FIELD_NUMBER = 2; /** * sint32 inclusive_start_index = 2; * @return Whether the inclusiveStartIndex field is set. */ @java.lang.Override public boolean hasInclusiveStartIndex() { return startCase_ == 2; } /** * sint32 inclusive_start_index = 2; * @return The inclusiveStartIndex. */ @java.lang.Override public int getInclusiveStartIndex() { if (startCase_ == 2) { return (java.lang.Integer) start_; } return 0; } public static final int UNBOUNDED_END_FIELD_NUMBER = 3; /** * .common._Unbounded unbounded_end = 3; * @return Whether the unboundedEnd field is set. */ @java.lang.Override public boolean hasUnboundedEnd() { return endCase_ == 3; } /** * .common._Unbounded unbounded_end = 3; * @return The unboundedEnd. */ @java.lang.Override public grpc.common._Unbounded getUnboundedEnd() { if (endCase_ == 3) { return (grpc.common._Unbounded) end_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_end = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedEndOrBuilder() { if (endCase_ == 3) { return (grpc.common._Unbounded) end_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int EXCLUSIVE_END_INDEX_FIELD_NUMBER = 4; /** * sint32 exclusive_end_index = 4; * @return Whether the exclusiveEndIndex field is set. */ @java.lang.Override public boolean hasExclusiveEndIndex() { return endCase_ == 4; } /** * sint32 exclusive_end_index = 4; * @return The exclusiveEndIndex. */ @java.lang.Override public int getExclusiveEndIndex() { if (endCase_ == 4) { return (java.lang.Integer) end_; } return 0; } 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 (startCase_ == 1) { output.writeMessage(1, (grpc.common._Unbounded) start_); } if (startCase_ == 2) { output.writeSInt32( 2, (int)((java.lang.Integer) start_)); } if (endCase_ == 3) { output.writeMessage(3, (grpc.common._Unbounded) end_); } if (endCase_ == 4) { output.writeSInt32( 4, (int)((java.lang.Integer) end_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (grpc.common._Unbounded) start_); } if (startCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size( 2, (int)((java.lang.Integer) start_)); } if (endCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (grpc.common._Unbounded) end_); } if (endCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size( 4, (int)((java.lang.Integer) end_)); } 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 grpc.cache_client._SortedSetFetchRequest._ByIndex)) { return super.equals(obj); } grpc.cache_client._SortedSetFetchRequest._ByIndex other = (grpc.cache_client._SortedSetFetchRequest._ByIndex) obj; if (!getStartCase().equals(other.getStartCase())) return false; switch (startCase_) { case 1: if (!getUnboundedStart() .equals(other.getUnboundedStart())) return false; break; case 2: if (getInclusiveStartIndex() != other.getInclusiveStartIndex()) return false; break; case 0: default: } if (!getEndCase().equals(other.getEndCase())) return false; switch (endCase_) { case 3: if (!getUnboundedEnd() .equals(other.getUnboundedEnd())) return false; break; case 4: if (getExclusiveEndIndex() != other.getExclusiveEndIndex()) 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(); switch (startCase_) { case 1: hash = (37 * hash) + UNBOUNDED_START_FIELD_NUMBER; hash = (53 * hash) + getUnboundedStart().hashCode(); break; case 2: hash = (37 * hash) + INCLUSIVE_START_INDEX_FIELD_NUMBER; hash = (53 * hash) + getInclusiveStartIndex(); break; case 0: default: } switch (endCase_) { case 3: hash = (37 * hash) + UNBOUNDED_END_FIELD_NUMBER; hash = (53 * hash) + getUnboundedEnd().hashCode(); break; case 4: hash = (37 * hash) + EXCLUSIVE_END_INDEX_FIELD_NUMBER; hash = (53 * hash) + getExclusiveEndIndex(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex 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 grpc.cache_client._SortedSetFetchRequest._ByIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex 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 grpc.cache_client._SortedSetFetchRequest._ByIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex 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(grpc.cache_client._SortedSetFetchRequest._ByIndex 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; } /** *
     * Start and end are zero-based indexes, with 0 being the first element.
     * A negative index indicates offsets from the end of the sorted set, with
     * -1 being the last element.
     * 
* * Protobuf type {@code cache_client._SortedSetFetchRequest._ByIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cache_client._SortedSetFetchRequest._ByIndex) grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByIndex.class, grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder.class); } // Construct using grpc.cache_client._SortedSetFetchRequest._ByIndex.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (unboundedStartBuilder_ != null) { unboundedStartBuilder_.clear(); } if (unboundedEndBuilder_ != null) { unboundedEndBuilder_.clear(); } startCase_ = 0; start_ = null; endCase_ = 0; end_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByIndex_descriptor; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex getDefaultInstanceForType() { return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex build() { grpc.cache_client._SortedSetFetchRequest._ByIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex buildPartial() { grpc.cache_client._SortedSetFetchRequest._ByIndex result = new grpc.cache_client._SortedSetFetchRequest._ByIndex(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(grpc.cache_client._SortedSetFetchRequest._ByIndex result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(grpc.cache_client._SortedSetFetchRequest._ByIndex result) { result.startCase_ = startCase_; result.start_ = this.start_; if (startCase_ == 1 && unboundedStartBuilder_ != null) { result.start_ = unboundedStartBuilder_.build(); } result.endCase_ = endCase_; result.end_ = this.end_; if (endCase_ == 3 && unboundedEndBuilder_ != null) { result.end_ = unboundedEndBuilder_.build(); } } @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 grpc.cache_client._SortedSetFetchRequest._ByIndex) { return mergeFrom((grpc.cache_client._SortedSetFetchRequest._ByIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.cache_client._SortedSetFetchRequest._ByIndex other) { if (other == grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance()) return this; switch (other.getStartCase()) { case UNBOUNDED_START: { mergeUnboundedStart(other.getUnboundedStart()); break; } case INCLUSIVE_START_INDEX: { setInclusiveStartIndex(other.getInclusiveStartIndex()); break; } case START_NOT_SET: { break; } } switch (other.getEndCase()) { case UNBOUNDED_END: { mergeUnboundedEnd(other.getUnboundedEnd()); break; } case EXCLUSIVE_END_INDEX: { setExclusiveEndIndex(other.getExclusiveEndIndex()); break; } case END_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: { input.readMessage( getUnboundedStartFieldBuilder().getBuilder(), extensionRegistry); startCase_ = 1; break; } // case 10 case 16: { start_ = input.readSInt32(); startCase_ = 2; break; } // case 16 case 26: { input.readMessage( getUnboundedEndFieldBuilder().getBuilder(), extensionRegistry); endCase_ = 3; break; } // case 26 case 32: { end_ = input.readSInt32(); endCase_ = 4; break; } // case 32 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 startCase_ = 0; private java.lang.Object start_; public StartCase getStartCase() { return StartCase.forNumber( startCase_); } public Builder clearStart() { startCase_ = 0; start_ = null; onChanged(); return this; } private int endCase_ = 0; private java.lang.Object end_; public EndCase getEndCase() { return EndCase.forNumber( endCase_); } public Builder clearEnd() { endCase_ = 0; end_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedStartBuilder_; /** * .common._Unbounded unbounded_start = 1; * @return Whether the unboundedStart field is set. */ @java.lang.Override public boolean hasUnboundedStart() { return startCase_ == 1; } /** * .common._Unbounded unbounded_start = 1; * @return The unboundedStart. */ @java.lang.Override public grpc.common._Unbounded getUnboundedStart() { if (unboundedStartBuilder_ == null) { if (startCase_ == 1) { return (grpc.common._Unbounded) start_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (startCase_ == 1) { return unboundedStartBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_start = 1; */ public Builder setUnboundedStart(grpc.common._Unbounded value) { if (unboundedStartBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { unboundedStartBuilder_.setMessage(value); } startCase_ = 1; return this; } /** * .common._Unbounded unbounded_start = 1; */ public Builder setUnboundedStart( grpc.common._Unbounded.Builder builderForValue) { if (unboundedStartBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { unboundedStartBuilder_.setMessage(builderForValue.build()); } startCase_ = 1; return this; } /** * .common._Unbounded unbounded_start = 1; */ public Builder mergeUnboundedStart(grpc.common._Unbounded value) { if (unboundedStartBuilder_ == null) { if (startCase_ == 1 && start_ != grpc.common._Unbounded.getDefaultInstance()) { start_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) start_) .mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { if (startCase_ == 1) { unboundedStartBuilder_.mergeFrom(value); } else { unboundedStartBuilder_.setMessage(value); } } startCase_ = 1; return this; } /** * .common._Unbounded unbounded_start = 1; */ public Builder clearUnboundedStart() { if (unboundedStartBuilder_ == null) { if (startCase_ == 1) { startCase_ = 0; start_ = null; onChanged(); } } else { if (startCase_ == 1) { startCase_ = 0; start_ = null; } unboundedStartBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_start = 1; */ public grpc.common._Unbounded.Builder getUnboundedStartBuilder() { return getUnboundedStartFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_start = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedStartOrBuilder() { if ((startCase_ == 1) && (unboundedStartBuilder_ != null)) { return unboundedStartBuilder_.getMessageOrBuilder(); } else { if (startCase_ == 1) { return (grpc.common._Unbounded) start_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_start = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedStartFieldBuilder() { if (unboundedStartBuilder_ == null) { if (!(startCase_ == 1)) { start_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) start_, getParentForChildren(), isClean()); start_ = null; } startCase_ = 1; onChanged(); return unboundedStartBuilder_; } /** * sint32 inclusive_start_index = 2; * @return Whether the inclusiveStartIndex field is set. */ public boolean hasInclusiveStartIndex() { return startCase_ == 2; } /** * sint32 inclusive_start_index = 2; * @return The inclusiveStartIndex. */ public int getInclusiveStartIndex() { if (startCase_ == 2) { return (java.lang.Integer) start_; } return 0; } /** * sint32 inclusive_start_index = 2; * @param value The inclusiveStartIndex to set. * @return This builder for chaining. */ public Builder setInclusiveStartIndex(int value) { startCase_ = 2; start_ = value; onChanged(); return this; } /** * sint32 inclusive_start_index = 2; * @return This builder for chaining. */ public Builder clearInclusiveStartIndex() { if (startCase_ == 2) { startCase_ = 0; start_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedEndBuilder_; /** * .common._Unbounded unbounded_end = 3; * @return Whether the unboundedEnd field is set. */ @java.lang.Override public boolean hasUnboundedEnd() { return endCase_ == 3; } /** * .common._Unbounded unbounded_end = 3; * @return The unboundedEnd. */ @java.lang.Override public grpc.common._Unbounded getUnboundedEnd() { if (unboundedEndBuilder_ == null) { if (endCase_ == 3) { return (grpc.common._Unbounded) end_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (endCase_ == 3) { return unboundedEndBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_end = 3; */ public Builder setUnboundedEnd(grpc.common._Unbounded value) { if (unboundedEndBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; onChanged(); } else { unboundedEndBuilder_.setMessage(value); } endCase_ = 3; return this; } /** * .common._Unbounded unbounded_end = 3; */ public Builder setUnboundedEnd( grpc.common._Unbounded.Builder builderForValue) { if (unboundedEndBuilder_ == null) { end_ = builderForValue.build(); onChanged(); } else { unboundedEndBuilder_.setMessage(builderForValue.build()); } endCase_ = 3; return this; } /** * .common._Unbounded unbounded_end = 3; */ public Builder mergeUnboundedEnd(grpc.common._Unbounded value) { if (unboundedEndBuilder_ == null) { if (endCase_ == 3 && end_ != grpc.common._Unbounded.getDefaultInstance()) { end_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) end_) .mergeFrom(value).buildPartial(); } else { end_ = value; } onChanged(); } else { if (endCase_ == 3) { unboundedEndBuilder_.mergeFrom(value); } else { unboundedEndBuilder_.setMessage(value); } } endCase_ = 3; return this; } /** * .common._Unbounded unbounded_end = 3; */ public Builder clearUnboundedEnd() { if (unboundedEndBuilder_ == null) { if (endCase_ == 3) { endCase_ = 0; end_ = null; onChanged(); } } else { if (endCase_ == 3) { endCase_ = 0; end_ = null; } unboundedEndBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_end = 3; */ public grpc.common._Unbounded.Builder getUnboundedEndBuilder() { return getUnboundedEndFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_end = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedEndOrBuilder() { if ((endCase_ == 3) && (unboundedEndBuilder_ != null)) { return unboundedEndBuilder_.getMessageOrBuilder(); } else { if (endCase_ == 3) { return (grpc.common._Unbounded) end_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_end = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedEndFieldBuilder() { if (unboundedEndBuilder_ == null) { if (!(endCase_ == 3)) { end_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedEndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) end_, getParentForChildren(), isClean()); end_ = null; } endCase_ = 3; onChanged(); return unboundedEndBuilder_; } /** * sint32 exclusive_end_index = 4; * @return Whether the exclusiveEndIndex field is set. */ public boolean hasExclusiveEndIndex() { return endCase_ == 4; } /** * sint32 exclusive_end_index = 4; * @return The exclusiveEndIndex. */ public int getExclusiveEndIndex() { if (endCase_ == 4) { return (java.lang.Integer) end_; } return 0; } /** * sint32 exclusive_end_index = 4; * @param value The exclusiveEndIndex to set. * @return This builder for chaining. */ public Builder setExclusiveEndIndex(int value) { endCase_ = 4; end_ = value; onChanged(); return this; } /** * sint32 exclusive_end_index = 4; * @return This builder for chaining. */ public Builder clearExclusiveEndIndex() { if (endCase_ == 4) { endCase_ = 0; end_ = 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:cache_client._SortedSetFetchRequest._ByIndex) } // @@protoc_insertion_point(class_scope:cache_client._SortedSetFetchRequest._ByIndex) private static final grpc.cache_client._SortedSetFetchRequest._ByIndex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.cache_client._SortedSetFetchRequest._ByIndex(); } public static grpc.cache_client._SortedSetFetchRequest._ByIndex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_ByIndex> PARSER = new com.google.protobuf.AbstractParser<_ByIndex>() { @java.lang.Override public _ByIndex 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<_ByIndex> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_ByIndex> getParserForType() { return PARSER; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _ByScoreOrBuilder extends // @@protoc_insertion_point(interface_extends:cache_client._SortedSetFetchRequest._ByScore) com.google.protobuf.MessageOrBuilder { /** * .common._Unbounded unbounded_min = 1; * @return Whether the unboundedMin field is set. */ boolean hasUnboundedMin(); /** * .common._Unbounded unbounded_min = 1; * @return The unboundedMin. */ grpc.common._Unbounded getUnboundedMin(); /** * .common._Unbounded unbounded_min = 1; */ grpc.common._UnboundedOrBuilder getUnboundedMinOrBuilder(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return Whether the minScore field is set. */ boolean hasMinScore(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return The minScore. */ grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMinScore(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMinScoreOrBuilder(); /** * .common._Unbounded unbounded_max = 3; * @return Whether the unboundedMax field is set. */ boolean hasUnboundedMax(); /** * .common._Unbounded unbounded_max = 3; * @return The unboundedMax. */ grpc.common._Unbounded getUnboundedMax(); /** * .common._Unbounded unbounded_max = 3; */ grpc.common._UnboundedOrBuilder getUnboundedMaxOrBuilder(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return Whether the maxScore field is set. */ boolean hasMaxScore(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return The maxScore. */ grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMaxScore(); /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMaxScoreOrBuilder(); /** *
     * Offset and count are used to only get a range of the matching elements,
     * similar to "SELECT LIMIT offset, count" in SQL.
     * A negative count returns all elements from the offset.
     * Use (0, -1) to return all matching elements.
     * 
* * uint32 offset = 5; * @return The offset. */ int getOffset(); /** * sint32 count = 6; * @return The count. */ int getCount(); grpc.cache_client._SortedSetFetchRequest._ByScore.MinCase getMinCase(); grpc.cache_client._SortedSetFetchRequest._ByScore.MaxCase getMaxCase(); } /** * Protobuf type {@code cache_client._SortedSetFetchRequest._ByScore} */ public static final class _ByScore extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cache_client._SortedSetFetchRequest._ByScore) _ByScoreOrBuilder { private static final long serialVersionUID = 0L; // Use _ByScore.newBuilder() to construct. private _ByScore(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _ByScore() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _ByScore(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByScore.class, grpc.cache_client._SortedSetFetchRequest._ByScore.Builder.class); } public interface _ScoreOrBuilder extends // @@protoc_insertion_point(interface_extends:cache_client._SortedSetFetchRequest._ByScore._Score) com.google.protobuf.MessageOrBuilder { /** * double score = 1; * @return The score. */ double getScore(); /** * bool exclusive = 2; * @return The exclusive. */ boolean getExclusive(); } /** * Protobuf type {@code cache_client._SortedSetFetchRequest._ByScore._Score} */ public static final class _Score extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cache_client._SortedSetFetchRequest._ByScore._Score) _ScoreOrBuilder { private static final long serialVersionUID = 0L; // Use _Score.newBuilder() to construct. private _Score(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _Score() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _Score(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore__Score_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore__Score_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByScore._Score.class, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder.class); } public static final int SCORE_FIELD_NUMBER = 1; private double score_ = 0D; /** * double score = 1; * @return The score. */ @java.lang.Override public double getScore() { return score_; } public static final int EXCLUSIVE_FIELD_NUMBER = 2; private boolean exclusive_ = false; /** * bool exclusive = 2; * @return The exclusive. */ @java.lang.Override public boolean getExclusive() { return exclusive_; } 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 (java.lang.Double.doubleToRawLongBits(score_) != 0) { output.writeDouble(1, score_); } if (exclusive_ != false) { output.writeBool(2, exclusive_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, score_); } if (exclusive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, exclusive_); } 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 grpc.cache_client._SortedSetFetchRequest._ByScore._Score)) { return super.equals(obj); } grpc.cache_client._SortedSetFetchRequest._ByScore._Score other = (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) obj; if (java.lang.Double.doubleToLongBits(getScore()) != java.lang.Double.doubleToLongBits( other.getScore())) return false; if (getExclusive() != other.getExclusive()) return false; 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) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getScore())); hash = (37 * hash) + EXCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExclusive()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score 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 grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score 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 grpc.cache_client._SortedSetFetchRequest._ByScore._Score parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score 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(grpc.cache_client._SortedSetFetchRequest._ByScore._Score 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; } /** * Protobuf type {@code cache_client._SortedSetFetchRequest._ByScore._Score} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cache_client._SortedSetFetchRequest._ByScore._Score) grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore__Score_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore__Score_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByScore._Score.class, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder.class); } // Construct using grpc.cache_client._SortedSetFetchRequest._ByScore._Score.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; score_ = 0D; exclusive_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore__Score_descriptor; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getDefaultInstanceForType() { return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score build() { grpc.cache_client._SortedSetFetchRequest._ByScore._Score result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score buildPartial() { grpc.cache_client._SortedSetFetchRequest._ByScore._Score result = new grpc.cache_client._SortedSetFetchRequest._ByScore._Score(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.cache_client._SortedSetFetchRequest._ByScore._Score result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exclusive_ = exclusive_; } } @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 grpc.cache_client._SortedSetFetchRequest._ByScore._Score) { return mergeFrom((grpc.cache_client._SortedSetFetchRequest._ByScore._Score)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.cache_client._SortedSetFetchRequest._ByScore._Score other) { if (other == grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance()) return this; if (other.getScore() != 0D) { setScore(other.getScore()); } if (other.getExclusive() != false) { setExclusive(other.getExclusive()); } 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 9: { score_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 16: { exclusive_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 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 bitField0_; private double score_ ; /** * double score = 1; * @return The score. */ @java.lang.Override public double getScore() { return score_; } /** * double score = 1; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(double value) { score_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * double score = 1; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000001); score_ = 0D; onChanged(); return this; } private boolean exclusive_ ; /** * bool exclusive = 2; * @return The exclusive. */ @java.lang.Override public boolean getExclusive() { return exclusive_; } /** * bool exclusive = 2; * @param value The exclusive to set. * @return This builder for chaining. */ public Builder setExclusive(boolean value) { exclusive_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bool exclusive = 2; * @return This builder for chaining. */ public Builder clearExclusive() { bitField0_ = (bitField0_ & ~0x00000002); exclusive_ = false; 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:cache_client._SortedSetFetchRequest._ByScore._Score) } // @@protoc_insertion_point(class_scope:cache_client._SortedSetFetchRequest._ByScore._Score) private static final grpc.cache_client._SortedSetFetchRequest._ByScore._Score DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.cache_client._SortedSetFetchRequest._ByScore._Score(); } public static grpc.cache_client._SortedSetFetchRequest._ByScore._Score getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_Score> PARSER = new com.google.protobuf.AbstractParser<_Score>() { @java.lang.Override public _Score 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<_Score> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_Score> getParserForType() { return PARSER; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int minCase_ = 0; @SuppressWarnings("serial") private java.lang.Object min_; public enum MinCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_MIN(1), MIN_SCORE(2), MIN_NOT_SET(0); private final int value; private MinCase(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 MinCase valueOf(int value) { return forNumber(value); } public static MinCase forNumber(int value) { switch (value) { case 1: return UNBOUNDED_MIN; case 2: return MIN_SCORE; case 0: return MIN_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MinCase getMinCase() { return MinCase.forNumber( minCase_); } private int maxCase_ = 0; @SuppressWarnings("serial") private java.lang.Object max_; public enum MaxCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNBOUNDED_MAX(3), MAX_SCORE(4), MAX_NOT_SET(0); private final int value; private MaxCase(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 MaxCase valueOf(int value) { return forNumber(value); } public static MaxCase forNumber(int value) { switch (value) { case 3: return UNBOUNDED_MAX; case 4: return MAX_SCORE; case 0: return MAX_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MaxCase getMaxCase() { return MaxCase.forNumber( maxCase_); } public static final int UNBOUNDED_MIN_FIELD_NUMBER = 1; /** * .common._Unbounded unbounded_min = 1; * @return Whether the unboundedMin field is set. */ @java.lang.Override public boolean hasUnboundedMin() { return minCase_ == 1; } /** * .common._Unbounded unbounded_min = 1; * @return The unboundedMin. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMin() { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_min = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMinOrBuilder() { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int MIN_SCORE_FIELD_NUMBER = 2; /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return Whether the minScore field is set. */ @java.lang.Override public boolean hasMinScore() { return minCase_ == 2; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return The minScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMinScore() { if (minCase_ == 2) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMinScoreOrBuilder() { if (minCase_ == 2) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } public static final int UNBOUNDED_MAX_FIELD_NUMBER = 3; /** * .common._Unbounded unbounded_max = 3; * @return Whether the unboundedMax field is set. */ @java.lang.Override public boolean hasUnboundedMax() { return maxCase_ == 3; } /** * .common._Unbounded unbounded_max = 3; * @return The unboundedMax. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMax() { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } /** * .common._Unbounded unbounded_max = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMaxOrBuilder() { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } public static final int MAX_SCORE_FIELD_NUMBER = 4; /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return Whether the maxScore field is set. */ @java.lang.Override public boolean hasMaxScore() { return maxCase_ == 4; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return The maxScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMaxScore() { if (maxCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMaxScoreOrBuilder() { if (maxCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } public static final int OFFSET_FIELD_NUMBER = 5; private int offset_ = 0; /** *
     * Offset and count are used to only get a range of the matching elements,
     * similar to "SELECT LIMIT offset, count" in SQL.
     * A negative count returns all elements from the offset.
     * Use (0, -1) to return all matching elements.
     * 
* * uint32 offset = 5; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int COUNT_FIELD_NUMBER = 6; private int count_ = 0; /** * sint32 count = 6; * @return The count. */ @java.lang.Override public int getCount() { return count_; } 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 (minCase_ == 1) { output.writeMessage(1, (grpc.common._Unbounded) min_); } if (minCase_ == 2) { output.writeMessage(2, (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_); } if (maxCase_ == 3) { output.writeMessage(3, (grpc.common._Unbounded) max_); } if (maxCase_ == 4) { output.writeMessage(4, (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_); } if (offset_ != 0) { output.writeUInt32(5, offset_); } if (count_ != 0) { output.writeSInt32(6, count_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (grpc.common._Unbounded) min_); } if (minCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_); } if (maxCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (grpc.common._Unbounded) max_); } if (maxCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_); } if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, offset_); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(6, count_); } 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 grpc.cache_client._SortedSetFetchRequest._ByScore)) { return super.equals(obj); } grpc.cache_client._SortedSetFetchRequest._ByScore other = (grpc.cache_client._SortedSetFetchRequest._ByScore) obj; if (getOffset() != other.getOffset()) return false; if (getCount() != other.getCount()) return false; if (!getMinCase().equals(other.getMinCase())) return false; switch (minCase_) { case 1: if (!getUnboundedMin() .equals(other.getUnboundedMin())) return false; break; case 2: if (!getMinScore() .equals(other.getMinScore())) return false; break; case 0: default: } if (!getMaxCase().equals(other.getMaxCase())) return false; switch (maxCase_) { case 3: if (!getUnboundedMax() .equals(other.getUnboundedMax())) return false; break; case 4: if (!getMaxScore() .equals(other.getMaxScore())) 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) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); switch (minCase_) { case 1: hash = (37 * hash) + UNBOUNDED_MIN_FIELD_NUMBER; hash = (53 * hash) + getUnboundedMin().hashCode(); break; case 2: hash = (37 * hash) + MIN_SCORE_FIELD_NUMBER; hash = (53 * hash) + getMinScore().hashCode(); break; case 0: default: } switch (maxCase_) { case 3: hash = (37 * hash) + UNBOUNDED_MAX_FIELD_NUMBER; hash = (53 * hash) + getUnboundedMax().hashCode(); break; case 4: hash = (37 * hash) + MAX_SCORE_FIELD_NUMBER; hash = (53 * hash) + getMaxScore().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore 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 grpc.cache_client._SortedSetFetchRequest._ByScore parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore 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 grpc.cache_client._SortedSetFetchRequest._ByScore parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest._ByScore 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(grpc.cache_client._SortedSetFetchRequest._ByScore 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; } /** * Protobuf type {@code cache_client._SortedSetFetchRequest._ByScore} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cache_client._SortedSetFetchRequest._ByScore) grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest._ByScore.class, grpc.cache_client._SortedSetFetchRequest._ByScore.Builder.class); } // Construct using grpc.cache_client._SortedSetFetchRequest._ByScore.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (unboundedMinBuilder_ != null) { unboundedMinBuilder_.clear(); } if (minScoreBuilder_ != null) { minScoreBuilder_.clear(); } if (unboundedMaxBuilder_ != null) { unboundedMaxBuilder_.clear(); } if (maxScoreBuilder_ != null) { maxScoreBuilder_.clear(); } offset_ = 0; count_ = 0; minCase_ = 0; min_ = null; maxCase_ = 0; max_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest__ByScore_descriptor; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore getDefaultInstanceForType() { return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore build() { grpc.cache_client._SortedSetFetchRequest._ByScore result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore buildPartial() { grpc.cache_client._SortedSetFetchRequest._ByScore result = new grpc.cache_client._SortedSetFetchRequest._ByScore(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(grpc.cache_client._SortedSetFetchRequest._ByScore result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { result.offset_ = offset_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.count_ = count_; } } private void buildPartialOneofs(grpc.cache_client._SortedSetFetchRequest._ByScore result) { result.minCase_ = minCase_; result.min_ = this.min_; if (minCase_ == 1 && unboundedMinBuilder_ != null) { result.min_ = unboundedMinBuilder_.build(); } if (minCase_ == 2 && minScoreBuilder_ != null) { result.min_ = minScoreBuilder_.build(); } result.maxCase_ = maxCase_; result.max_ = this.max_; if (maxCase_ == 3 && unboundedMaxBuilder_ != null) { result.max_ = unboundedMaxBuilder_.build(); } if (maxCase_ == 4 && maxScoreBuilder_ != null) { result.max_ = maxScoreBuilder_.build(); } } @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 grpc.cache_client._SortedSetFetchRequest._ByScore) { return mergeFrom((grpc.cache_client._SortedSetFetchRequest._ByScore)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.cache_client._SortedSetFetchRequest._ByScore other) { if (other == grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance()) return this; if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.getCount() != 0) { setCount(other.getCount()); } switch (other.getMinCase()) { case UNBOUNDED_MIN: { mergeUnboundedMin(other.getUnboundedMin()); break; } case MIN_SCORE: { mergeMinScore(other.getMinScore()); break; } case MIN_NOT_SET: { break; } } switch (other.getMaxCase()) { case UNBOUNDED_MAX: { mergeUnboundedMax(other.getUnboundedMax()); break; } case MAX_SCORE: { mergeMaxScore(other.getMaxScore()); break; } case MAX_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: { input.readMessage( getUnboundedMinFieldBuilder().getBuilder(), extensionRegistry); minCase_ = 1; break; } // case 10 case 18: { input.readMessage( getMinScoreFieldBuilder().getBuilder(), extensionRegistry); minCase_ = 2; break; } // case 18 case 26: { input.readMessage( getUnboundedMaxFieldBuilder().getBuilder(), extensionRegistry); maxCase_ = 3; break; } // case 26 case 34: { input.readMessage( getMaxScoreFieldBuilder().getBuilder(), extensionRegistry); maxCase_ = 4; break; } // case 34 case 40: { offset_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { count_ = input.readSInt32(); bitField0_ |= 0x00000020; break; } // case 48 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 minCase_ = 0; private java.lang.Object min_; public MinCase getMinCase() { return MinCase.forNumber( minCase_); } public Builder clearMin() { minCase_ = 0; min_ = null; onChanged(); return this; } private int maxCase_ = 0; private java.lang.Object max_; public MaxCase getMaxCase() { return MaxCase.forNumber( maxCase_); } public Builder clearMax() { maxCase_ = 0; max_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedMinBuilder_; /** * .common._Unbounded unbounded_min = 1; * @return Whether the unboundedMin field is set. */ @java.lang.Override public boolean hasUnboundedMin() { return minCase_ == 1; } /** * .common._Unbounded unbounded_min = 1; * @return The unboundedMin. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMin() { if (unboundedMinBuilder_ == null) { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (minCase_ == 1) { return unboundedMinBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_min = 1; */ public Builder setUnboundedMin(grpc.common._Unbounded value) { if (unboundedMinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } min_ = value; onChanged(); } else { unboundedMinBuilder_.setMessage(value); } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder setUnboundedMin( grpc.common._Unbounded.Builder builderForValue) { if (unboundedMinBuilder_ == null) { min_ = builderForValue.build(); onChanged(); } else { unboundedMinBuilder_.setMessage(builderForValue.build()); } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder mergeUnboundedMin(grpc.common._Unbounded value) { if (unboundedMinBuilder_ == null) { if (minCase_ == 1 && min_ != grpc.common._Unbounded.getDefaultInstance()) { min_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) min_) .mergeFrom(value).buildPartial(); } else { min_ = value; } onChanged(); } else { if (minCase_ == 1) { unboundedMinBuilder_.mergeFrom(value); } else { unboundedMinBuilder_.setMessage(value); } } minCase_ = 1; return this; } /** * .common._Unbounded unbounded_min = 1; */ public Builder clearUnboundedMin() { if (unboundedMinBuilder_ == null) { if (minCase_ == 1) { minCase_ = 0; min_ = null; onChanged(); } } else { if (minCase_ == 1) { minCase_ = 0; min_ = null; } unboundedMinBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_min = 1; */ public grpc.common._Unbounded.Builder getUnboundedMinBuilder() { return getUnboundedMinFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_min = 1; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMinOrBuilder() { if ((minCase_ == 1) && (unboundedMinBuilder_ != null)) { return unboundedMinBuilder_.getMessageOrBuilder(); } else { if (minCase_ == 1) { return (grpc.common._Unbounded) min_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_min = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedMinFieldBuilder() { if (unboundedMinBuilder_ == null) { if (!(minCase_ == 1)) { min_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) min_, getParentForChildren(), isClean()); min_ = null; } minCase_ = 1; onChanged(); return unboundedMinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder> minScoreBuilder_; /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return Whether the minScore field is set. */ @java.lang.Override public boolean hasMinScore() { return minCase_ == 2; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; * @return The minScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMinScore() { if (minScoreBuilder_ == null) { if (minCase_ == 2) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } else { if (minCase_ == 2) { return minScoreBuilder_.getMessage(); } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ public Builder setMinScore(grpc.cache_client._SortedSetFetchRequest._ByScore._Score value) { if (minScoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } min_ = value; onChanged(); } else { minScoreBuilder_.setMessage(value); } minCase_ = 2; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ public Builder setMinScore( grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder builderForValue) { if (minScoreBuilder_ == null) { min_ = builderForValue.build(); onChanged(); } else { minScoreBuilder_.setMessage(builderForValue.build()); } minCase_ = 2; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ public Builder mergeMinScore(grpc.cache_client._SortedSetFetchRequest._ByScore._Score value) { if (minScoreBuilder_ == null) { if (minCase_ == 2 && min_ != grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance()) { min_ = grpc.cache_client._SortedSetFetchRequest._ByScore._Score.newBuilder((grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_) .mergeFrom(value).buildPartial(); } else { min_ = value; } onChanged(); } else { if (minCase_ == 2) { minScoreBuilder_.mergeFrom(value); } else { minScoreBuilder_.setMessage(value); } } minCase_ = 2; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ public Builder clearMinScore() { if (minScoreBuilder_ == null) { if (minCase_ == 2) { minCase_ = 0; min_ = null; onChanged(); } } else { if (minCase_ == 2) { minCase_ = 0; min_ = null; } minScoreBuilder_.clear(); } return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ public grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder getMinScoreBuilder() { return getMinScoreFieldBuilder().getBuilder(); } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMinScoreOrBuilder() { if ((minCase_ == 2) && (minScoreBuilder_ != null)) { return minScoreBuilder_.getMessageOrBuilder(); } else { if (minCase_ == 2) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore._Score min_score = 2; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder> getMinScoreFieldBuilder() { if (minScoreBuilder_ == null) { if (!(minCase_ == 2)) { min_ = grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } minScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder>( (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) min_, getParentForChildren(), isClean()); min_ = null; } minCase_ = 2; onChanged(); return minScoreBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedMaxBuilder_; /** * .common._Unbounded unbounded_max = 3; * @return Whether the unboundedMax field is set. */ @java.lang.Override public boolean hasUnboundedMax() { return maxCase_ == 3; } /** * .common._Unbounded unbounded_max = 3; * @return The unboundedMax. */ @java.lang.Override public grpc.common._Unbounded getUnboundedMax() { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } else { if (maxCase_ == 3) { return unboundedMaxBuilder_.getMessage(); } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_max = 3; */ public Builder setUnboundedMax(grpc.common._Unbounded value) { if (unboundedMaxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } max_ = value; onChanged(); } else { unboundedMaxBuilder_.setMessage(value); } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder setUnboundedMax( grpc.common._Unbounded.Builder builderForValue) { if (unboundedMaxBuilder_ == null) { max_ = builderForValue.build(); onChanged(); } else { unboundedMaxBuilder_.setMessage(builderForValue.build()); } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder mergeUnboundedMax(grpc.common._Unbounded value) { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3 && max_ != grpc.common._Unbounded.getDefaultInstance()) { max_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) max_) .mergeFrom(value).buildPartial(); } else { max_ = value; } onChanged(); } else { if (maxCase_ == 3) { unboundedMaxBuilder_.mergeFrom(value); } else { unboundedMaxBuilder_.setMessage(value); } } maxCase_ = 3; return this; } /** * .common._Unbounded unbounded_max = 3; */ public Builder clearUnboundedMax() { if (unboundedMaxBuilder_ == null) { if (maxCase_ == 3) { maxCase_ = 0; max_ = null; onChanged(); } } else { if (maxCase_ == 3) { maxCase_ = 0; max_ = null; } unboundedMaxBuilder_.clear(); } return this; } /** * .common._Unbounded unbounded_max = 3; */ public grpc.common._Unbounded.Builder getUnboundedMaxBuilder() { return getUnboundedMaxFieldBuilder().getBuilder(); } /** * .common._Unbounded unbounded_max = 3; */ @java.lang.Override public grpc.common._UnboundedOrBuilder getUnboundedMaxOrBuilder() { if ((maxCase_ == 3) && (unboundedMaxBuilder_ != null)) { return unboundedMaxBuilder_.getMessageOrBuilder(); } else { if (maxCase_ == 3) { return (grpc.common._Unbounded) max_; } return grpc.common._Unbounded.getDefaultInstance(); } } /** * .common._Unbounded unbounded_max = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> getUnboundedMaxFieldBuilder() { if (unboundedMaxBuilder_ == null) { if (!(maxCase_ == 3)) { max_ = grpc.common._Unbounded.getDefaultInstance(); } unboundedMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>( (grpc.common._Unbounded) max_, getParentForChildren(), isClean()); max_ = null; } maxCase_ = 3; onChanged(); return unboundedMaxBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder> maxScoreBuilder_; /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return Whether the maxScore field is set. */ @java.lang.Override public boolean hasMaxScore() { return maxCase_ == 4; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; * @return The maxScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._Score getMaxScore() { if (maxScoreBuilder_ == null) { if (maxCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } else { if (maxCase_ == 4) { return maxScoreBuilder_.getMessage(); } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ public Builder setMaxScore(grpc.cache_client._SortedSetFetchRequest._ByScore._Score value) { if (maxScoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } max_ = value; onChanged(); } else { maxScoreBuilder_.setMessage(value); } maxCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ public Builder setMaxScore( grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder builderForValue) { if (maxScoreBuilder_ == null) { max_ = builderForValue.build(); onChanged(); } else { maxScoreBuilder_.setMessage(builderForValue.build()); } maxCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ public Builder mergeMaxScore(grpc.cache_client._SortedSetFetchRequest._ByScore._Score value) { if (maxScoreBuilder_ == null) { if (maxCase_ == 4 && max_ != grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance()) { max_ = grpc.cache_client._SortedSetFetchRequest._ByScore._Score.newBuilder((grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_) .mergeFrom(value).buildPartial(); } else { max_ = value; } onChanged(); } else { if (maxCase_ == 4) { maxScoreBuilder_.mergeFrom(value); } else { maxScoreBuilder_.setMessage(value); } } maxCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ public Builder clearMaxScore() { if (maxScoreBuilder_ == null) { if (maxCase_ == 4) { maxCase_ = 0; max_ = null; onChanged(); } } else { if (maxCase_ == 4) { maxCase_ = 0; max_ = null; } maxScoreBuilder_.clear(); } return this; } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ public grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder getMaxScoreBuilder() { return getMaxScoreFieldBuilder().getBuilder(); } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder getMaxScoreOrBuilder() { if ((maxCase_ == 4) && (maxScoreBuilder_ != null)) { return maxScoreBuilder_.getMessageOrBuilder(); } else { if (maxCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_; } return grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore._Score max_score = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder> getMaxScoreFieldBuilder() { if (maxScoreBuilder_ == null) { if (!(maxCase_ == 4)) { max_ = grpc.cache_client._SortedSetFetchRequest._ByScore._Score.getDefaultInstance(); } maxScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore._Score, grpc.cache_client._SortedSetFetchRequest._ByScore._Score.Builder, grpc.cache_client._SortedSetFetchRequest._ByScore._ScoreOrBuilder>( (grpc.cache_client._SortedSetFetchRequest._ByScore._Score) max_, getParentForChildren(), isClean()); max_ = null; } maxCase_ = 4; onChanged(); return maxScoreBuilder_; } private int offset_ ; /** *
       * Offset and count are used to only get a range of the matching elements,
       * similar to "SELECT LIMIT offset, count" in SQL.
       * A negative count returns all elements from the offset.
       * Use (0, -1) to return all matching elements.
       * 
* * uint32 offset = 5; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** *
       * Offset and count are used to only get a range of the matching elements,
       * similar to "SELECT LIMIT offset, count" in SQL.
       * A negative count returns all elements from the offset.
       * Use (0, -1) to return all matching elements.
       * 
* * uint32 offset = 5; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Offset and count are used to only get a range of the matching elements,
       * similar to "SELECT LIMIT offset, count" in SQL.
       * A negative count returns all elements from the offset.
       * Use (0, -1) to return all matching elements.
       * 
* * uint32 offset = 5; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000010); offset_ = 0; onChanged(); return this; } private int count_ ; /** * sint32 count = 6; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** * sint32 count = 6; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * sint32 count = 6; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000020); count_ = 0; 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:cache_client._SortedSetFetchRequest._ByScore) } // @@protoc_insertion_point(class_scope:cache_client._SortedSetFetchRequest._ByScore) private static final grpc.cache_client._SortedSetFetchRequest._ByScore DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.cache_client._SortedSetFetchRequest._ByScore(); } public static grpc.cache_client._SortedSetFetchRequest._ByScore getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_ByScore> PARSER = new com.google.protobuf.AbstractParser<_ByScore>() { @java.lang.Override public _ByScore 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<_ByScore> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_ByScore> getParserForType() { return PARSER; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int rangeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object range_; public enum RangeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BY_INDEX(4), BY_SCORE(5), RANGE_NOT_SET(0); private final int value; private RangeCase(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 RangeCase valueOf(int value) { return forNumber(value); } public static RangeCase forNumber(int value) { switch (value) { case 4: return BY_INDEX; case 5: return BY_SCORE; case 0: return RANGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RangeCase getRangeCase() { return RangeCase.forNumber( rangeCase_); } public static final int SET_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString setName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes set_name = 1; * @return The setName. */ @java.lang.Override public com.google.protobuf.ByteString getSetName() { return setName_; } public static final int ORDER_FIELD_NUMBER = 2; private int order_ = 0; /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @return The enum numeric value on the wire for order. */ @java.lang.Override public int getOrderValue() { return order_; } /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @return The order. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest.Order getOrder() { grpc.cache_client._SortedSetFetchRequest.Order result = grpc.cache_client._SortedSetFetchRequest.Order.forNumber(order_); return result == null ? grpc.cache_client._SortedSetFetchRequest.Order.UNRECOGNIZED : result; } public static final int WITH_SCORES_FIELD_NUMBER = 3; private boolean withScores_ = false; /** * bool with_scores = 3; * @return The withScores. */ @java.lang.Override public boolean getWithScores() { return withScores_; } public static final int BY_INDEX_FIELD_NUMBER = 4; /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; * @return Whether the byIndex field is set. */ @java.lang.Override public boolean hasByIndex() { return rangeCase_ == 4; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; * @return The byIndex. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex getByIndex() { if (rangeCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_; } return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder getByIndexOrBuilder() { if (rangeCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_; } return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } public static final int BY_SCORE_FIELD_NUMBER = 5; /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; * @return Whether the byScore field is set. */ @java.lang.Override public boolean hasByScore() { return rangeCase_ == 5; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; * @return The byScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore getByScore() { if (rangeCase_ == 5) { return (grpc.cache_client._SortedSetFetchRequest._ByScore) range_; } return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder getByScoreOrBuilder() { if (rangeCase_ == 5) { return (grpc.cache_client._SortedSetFetchRequest._ByScore) range_; } return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } 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 (!setName_.isEmpty()) { output.writeBytes(1, setName_); } if (order_ != grpc.cache_client._SortedSetFetchRequest.Order.ASCENDING.getNumber()) { output.writeEnum(2, order_); } if (withScores_ != false) { output.writeBool(3, withScores_); } if (rangeCase_ == 4) { output.writeMessage(4, (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_); } if (rangeCase_ == 5) { output.writeMessage(5, (grpc.cache_client._SortedSetFetchRequest._ByScore) range_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!setName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, setName_); } if (order_ != grpc.cache_client._SortedSetFetchRequest.Order.ASCENDING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, order_); } if (withScores_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, withScores_); } if (rangeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_); } if (rangeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (grpc.cache_client._SortedSetFetchRequest._ByScore) range_); } 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 grpc.cache_client._SortedSetFetchRequest)) { return super.equals(obj); } grpc.cache_client._SortedSetFetchRequest other = (grpc.cache_client._SortedSetFetchRequest) obj; if (!getSetName() .equals(other.getSetName())) return false; if (order_ != other.order_) return false; if (getWithScores() != other.getWithScores()) return false; if (!getRangeCase().equals(other.getRangeCase())) return false; switch (rangeCase_) { case 4: if (!getByIndex() .equals(other.getByIndex())) return false; break; case 5: if (!getByScore() .equals(other.getByScore())) 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) + SET_NAME_FIELD_NUMBER; hash = (53 * hash) + getSetName().hashCode(); hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + order_; hash = (37 * hash) + WITH_SCORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithScores()); switch (rangeCase_) { case 4: hash = (37 * hash) + BY_INDEX_FIELD_NUMBER; hash = (53 * hash) + getByIndex().hashCode(); break; case 5: hash = (37 * hash) + BY_SCORE_FIELD_NUMBER; hash = (53 * hash) + getByScore().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.cache_client._SortedSetFetchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client._SortedSetFetchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client._SortedSetFetchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest 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 grpc.cache_client._SortedSetFetchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest 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 grpc.cache_client._SortedSetFetchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client._SortedSetFetchRequest 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(grpc.cache_client._SortedSetFetchRequest 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; } /** * Protobuf type {@code cache_client._SortedSetFetchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cache_client._SortedSetFetchRequest) grpc.cache_client._SortedSetFetchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client._SortedSetFetchRequest.class, grpc.cache_client._SortedSetFetchRequest.Builder.class); } // Construct using grpc.cache_client._SortedSetFetchRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; setName_ = com.google.protobuf.ByteString.EMPTY; order_ = 0; withScores_ = false; if (byIndexBuilder_ != null) { byIndexBuilder_.clear(); } if (byScoreBuilder_ != null) { byScoreBuilder_.clear(); } rangeCase_ = 0; range_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.cache_client.Cacheclient.internal_static_cache_client__SortedSetFetchRequest_descriptor; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest getDefaultInstanceForType() { return grpc.cache_client._SortedSetFetchRequest.getDefaultInstance(); } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest build() { grpc.cache_client._SortedSetFetchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest buildPartial() { grpc.cache_client._SortedSetFetchRequest result = new grpc.cache_client._SortedSetFetchRequest(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(grpc.cache_client._SortedSetFetchRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.setName_ = setName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.order_ = order_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.withScores_ = withScores_; } } private void buildPartialOneofs(grpc.cache_client._SortedSetFetchRequest result) { result.rangeCase_ = rangeCase_; result.range_ = this.range_; if (rangeCase_ == 4 && byIndexBuilder_ != null) { result.range_ = byIndexBuilder_.build(); } if (rangeCase_ == 5 && byScoreBuilder_ != null) { result.range_ = byScoreBuilder_.build(); } } @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 grpc.cache_client._SortedSetFetchRequest) { return mergeFrom((grpc.cache_client._SortedSetFetchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.cache_client._SortedSetFetchRequest other) { if (other == grpc.cache_client._SortedSetFetchRequest.getDefaultInstance()) return this; if (other.getSetName() != com.google.protobuf.ByteString.EMPTY) { setSetName(other.getSetName()); } if (other.order_ != 0) { setOrderValue(other.getOrderValue()); } if (other.getWithScores() != false) { setWithScores(other.getWithScores()); } switch (other.getRangeCase()) { case BY_INDEX: { mergeByIndex(other.getByIndex()); break; } case BY_SCORE: { mergeByScore(other.getByScore()); break; } case RANGE_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: { setName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { order_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { withScores_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getByIndexFieldBuilder().getBuilder(), extensionRegistry); rangeCase_ = 4; break; } // case 34 case 42: { input.readMessage( getByScoreFieldBuilder().getBuilder(), extensionRegistry); rangeCase_ = 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 rangeCase_ = 0; private java.lang.Object range_; public RangeCase getRangeCase() { return RangeCase.forNumber( rangeCase_); } public Builder clearRange() { rangeCase_ = 0; range_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.ByteString setName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes set_name = 1; * @return The setName. */ @java.lang.Override public com.google.protobuf.ByteString getSetName() { return setName_; } /** * bytes set_name = 1; * @param value The setName to set. * @return This builder for chaining. */ public Builder setSetName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } setName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes set_name = 1; * @return This builder for chaining. */ public Builder clearSetName() { bitField0_ = (bitField0_ & ~0x00000001); setName_ = getDefaultInstance().getSetName(); onChanged(); return this; } private int order_ = 0; /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @return The enum numeric value on the wire for order. */ @java.lang.Override public int getOrderValue() { return order_; } /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @param value The enum numeric value on the wire for order to set. * @return This builder for chaining. */ public Builder setOrderValue(int value) { order_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @return The order. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest.Order getOrder() { grpc.cache_client._SortedSetFetchRequest.Order result = grpc.cache_client._SortedSetFetchRequest.Order.forNumber(order_); return result == null ? grpc.cache_client._SortedSetFetchRequest.Order.UNRECOGNIZED : result; } /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @param value The order to set. * @return This builder for chaining. */ public Builder setOrder(grpc.cache_client._SortedSetFetchRequest.Order value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; order_ = value.getNumber(); onChanged(); return this; } /** * .cache_client._SortedSetFetchRequest.Order order = 2; * @return This builder for chaining. */ public Builder clearOrder() { bitField0_ = (bitField0_ & ~0x00000002); order_ = 0; onChanged(); return this; } private boolean withScores_ ; /** * bool with_scores = 3; * @return The withScores. */ @java.lang.Override public boolean getWithScores() { return withScores_; } /** * bool with_scores = 3; * @param value The withScores to set. * @return This builder for chaining. */ public Builder setWithScores(boolean value) { withScores_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool with_scores = 3; * @return This builder for chaining. */ public Builder clearWithScores() { bitField0_ = (bitField0_ & ~0x00000004); withScores_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByIndex, grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder, grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder> byIndexBuilder_; /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; * @return Whether the byIndex field is set. */ @java.lang.Override public boolean hasByIndex() { return rangeCase_ == 4; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; * @return The byIndex. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndex getByIndex() { if (byIndexBuilder_ == null) { if (rangeCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_; } return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } else { if (rangeCase_ == 4) { return byIndexBuilder_.getMessage(); } return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ public Builder setByIndex(grpc.cache_client._SortedSetFetchRequest._ByIndex value) { if (byIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; onChanged(); } else { byIndexBuilder_.setMessage(value); } rangeCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ public Builder setByIndex( grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder builderForValue) { if (byIndexBuilder_ == null) { range_ = builderForValue.build(); onChanged(); } else { byIndexBuilder_.setMessage(builderForValue.build()); } rangeCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ public Builder mergeByIndex(grpc.cache_client._SortedSetFetchRequest._ByIndex value) { if (byIndexBuilder_ == null) { if (rangeCase_ == 4 && range_ != grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance()) { range_ = grpc.cache_client._SortedSetFetchRequest._ByIndex.newBuilder((grpc.cache_client._SortedSetFetchRequest._ByIndex) range_) .mergeFrom(value).buildPartial(); } else { range_ = value; } onChanged(); } else { if (rangeCase_ == 4) { byIndexBuilder_.mergeFrom(value); } else { byIndexBuilder_.setMessage(value); } } rangeCase_ = 4; return this; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ public Builder clearByIndex() { if (byIndexBuilder_ == null) { if (rangeCase_ == 4) { rangeCase_ = 0; range_ = null; onChanged(); } } else { if (rangeCase_ == 4) { rangeCase_ = 0; range_ = null; } byIndexBuilder_.clear(); } return this; } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ public grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder getByIndexBuilder() { return getByIndexFieldBuilder().getBuilder(); } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder getByIndexOrBuilder() { if ((rangeCase_ == 4) && (byIndexBuilder_ != null)) { return byIndexBuilder_.getMessageOrBuilder(); } else { if (rangeCase_ == 4) { return (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_; } return grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByIndex by_index = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByIndex, grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder, grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder> getByIndexFieldBuilder() { if (byIndexBuilder_ == null) { if (!(rangeCase_ == 4)) { range_ = grpc.cache_client._SortedSetFetchRequest._ByIndex.getDefaultInstance(); } byIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByIndex, grpc.cache_client._SortedSetFetchRequest._ByIndex.Builder, grpc.cache_client._SortedSetFetchRequest._ByIndexOrBuilder>( (grpc.cache_client._SortedSetFetchRequest._ByIndex) range_, getParentForChildren(), isClean()); range_ = null; } rangeCase_ = 4; onChanged(); return byIndexBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore, grpc.cache_client._SortedSetFetchRequest._ByScore.Builder, grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder> byScoreBuilder_; /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; * @return Whether the byScore field is set. */ @java.lang.Override public boolean hasByScore() { return rangeCase_ == 5; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; * @return The byScore. */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScore getByScore() { if (byScoreBuilder_ == null) { if (rangeCase_ == 5) { return (grpc.cache_client._SortedSetFetchRequest._ByScore) range_; } return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } else { if (rangeCase_ == 5) { return byScoreBuilder_.getMessage(); } return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ public Builder setByScore(grpc.cache_client._SortedSetFetchRequest._ByScore value) { if (byScoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; onChanged(); } else { byScoreBuilder_.setMessage(value); } rangeCase_ = 5; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ public Builder setByScore( grpc.cache_client._SortedSetFetchRequest._ByScore.Builder builderForValue) { if (byScoreBuilder_ == null) { range_ = builderForValue.build(); onChanged(); } else { byScoreBuilder_.setMessage(builderForValue.build()); } rangeCase_ = 5; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ public Builder mergeByScore(grpc.cache_client._SortedSetFetchRequest._ByScore value) { if (byScoreBuilder_ == null) { if (rangeCase_ == 5 && range_ != grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance()) { range_ = grpc.cache_client._SortedSetFetchRequest._ByScore.newBuilder((grpc.cache_client._SortedSetFetchRequest._ByScore) range_) .mergeFrom(value).buildPartial(); } else { range_ = value; } onChanged(); } else { if (rangeCase_ == 5) { byScoreBuilder_.mergeFrom(value); } else { byScoreBuilder_.setMessage(value); } } rangeCase_ = 5; return this; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ public Builder clearByScore() { if (byScoreBuilder_ == null) { if (rangeCase_ == 5) { rangeCase_ = 0; range_ = null; onChanged(); } } else { if (rangeCase_ == 5) { rangeCase_ = 0; range_ = null; } byScoreBuilder_.clear(); } return this; } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ public grpc.cache_client._SortedSetFetchRequest._ByScore.Builder getByScoreBuilder() { return getByScoreFieldBuilder().getBuilder(); } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ @java.lang.Override public grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder getByScoreOrBuilder() { if ((rangeCase_ == 5) && (byScoreBuilder_ != null)) { return byScoreBuilder_.getMessageOrBuilder(); } else { if (rangeCase_ == 5) { return (grpc.cache_client._SortedSetFetchRequest._ByScore) range_; } return grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } } /** * .cache_client._SortedSetFetchRequest._ByScore by_score = 5; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore, grpc.cache_client._SortedSetFetchRequest._ByScore.Builder, grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder> getByScoreFieldBuilder() { if (byScoreBuilder_ == null) { if (!(rangeCase_ == 5)) { range_ = grpc.cache_client._SortedSetFetchRequest._ByScore.getDefaultInstance(); } byScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client._SortedSetFetchRequest._ByScore, grpc.cache_client._SortedSetFetchRequest._ByScore.Builder, grpc.cache_client._SortedSetFetchRequest._ByScoreOrBuilder>( (grpc.cache_client._SortedSetFetchRequest._ByScore) range_, getParentForChildren(), isClean()); range_ = null; } rangeCase_ = 5; onChanged(); return byScoreBuilder_; } @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:cache_client._SortedSetFetchRequest) } // @@protoc_insertion_point(class_scope:cache_client._SortedSetFetchRequest) private static final grpc.cache_client._SortedSetFetchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.cache_client._SortedSetFetchRequest(); } public static grpc.cache_client._SortedSetFetchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_SortedSetFetchRequest> PARSER = new com.google.protobuf.AbstractParser<_SortedSetFetchRequest>() { @java.lang.Override public _SortedSetFetchRequest 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<_SortedSetFetchRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_SortedSetFetchRequest> getParserForType() { return PARSER; } @java.lang.Override public grpc.cache_client._SortedSetFetchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy