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

grpc.cache_client._ListRetainRequest Maven / Gradle / Ivy

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

package grpc.cache_client;

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

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

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

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

  private int startIndexCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object startIndex_;
  public enum StartIndexCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    UNBOUNDED_START(2),
    INCLUSIVE_START(3),
    STARTINDEX_NOT_SET(0);
    private final int value;
    private StartIndexCase(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 StartIndexCase valueOf(int value) {
      return forNumber(value);
    }

    public static StartIndexCase forNumber(int value) {
      switch (value) {
        case 2: return UNBOUNDED_START;
        case 3: return INCLUSIVE_START;
        case 0: return STARTINDEX_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public StartIndexCase
  getStartIndexCase() {
    return StartIndexCase.forNumber(
        startIndexCase_);
  }

  private int endIndexCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object endIndex_;
  public enum EndIndexCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    UNBOUNDED_END(4),
    EXCLUSIVE_END(5),
    ENDINDEX_NOT_SET(0);
    private final int value;
    private EndIndexCase(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 EndIndexCase valueOf(int value) {
      return forNumber(value);
    }

    public static EndIndexCase forNumber(int value) {
      switch (value) {
        case 4: return UNBOUNDED_END;
        case 5: return EXCLUSIVE_END;
        case 0: return ENDINDEX_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public EndIndexCase
  getEndIndexCase() {
    return EndIndexCase.forNumber(
        endIndexCase_);
  }

  public static final int LIST_NAME_FIELD_NUMBER = 1;
  private com.google.protobuf.ByteString listName_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes list_name = 1;
   * @return The listName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getListName() {
    return listName_;
  }

  public static final int UNBOUNDED_START_FIELD_NUMBER = 2;
  /**
   * .common._Unbounded unbounded_start = 2;
   * @return Whether the unboundedStart field is set.
   */
  @java.lang.Override
  public boolean hasUnboundedStart() {
    return startIndexCase_ == 2;
  }
  /**
   * .common._Unbounded unbounded_start = 2;
   * @return The unboundedStart.
   */
  @java.lang.Override
  public grpc.common._Unbounded getUnboundedStart() {
    if (startIndexCase_ == 2) {
       return (grpc.common._Unbounded) startIndex_;
    }
    return grpc.common._Unbounded.getDefaultInstance();
  }
  /**
   * .common._Unbounded unbounded_start = 2;
   */
  @java.lang.Override
  public grpc.common._UnboundedOrBuilder getUnboundedStartOrBuilder() {
    if (startIndexCase_ == 2) {
       return (grpc.common._Unbounded) startIndex_;
    }
    return grpc.common._Unbounded.getDefaultInstance();
  }

  public static final int INCLUSIVE_START_FIELD_NUMBER = 3;
  /**
   * sint32 inclusive_start = 3;
   * @return Whether the inclusiveStart field is set.
   */
  @java.lang.Override
  public boolean hasInclusiveStart() {
    return startIndexCase_ == 3;
  }
  /**
   * sint32 inclusive_start = 3;
   * @return The inclusiveStart.
   */
  @java.lang.Override
  public int getInclusiveStart() {
    if (startIndexCase_ == 3) {
      return (java.lang.Integer) startIndex_;
    }
    return 0;
  }

  public static final int UNBOUNDED_END_FIELD_NUMBER = 4;
  /**
   * .common._Unbounded unbounded_end = 4;
   * @return Whether the unboundedEnd field is set.
   */
  @java.lang.Override
  public boolean hasUnboundedEnd() {
    return endIndexCase_ == 4;
  }
  /**
   * .common._Unbounded unbounded_end = 4;
   * @return The unboundedEnd.
   */
  @java.lang.Override
  public grpc.common._Unbounded getUnboundedEnd() {
    if (endIndexCase_ == 4) {
       return (grpc.common._Unbounded) endIndex_;
    }
    return grpc.common._Unbounded.getDefaultInstance();
  }
  /**
   * .common._Unbounded unbounded_end = 4;
   */
  @java.lang.Override
  public grpc.common._UnboundedOrBuilder getUnboundedEndOrBuilder() {
    if (endIndexCase_ == 4) {
       return (grpc.common._Unbounded) endIndex_;
    }
    return grpc.common._Unbounded.getDefaultInstance();
  }

  public static final int EXCLUSIVE_END_FIELD_NUMBER = 5;
  /**
   * sint32 exclusive_end = 5;
   * @return Whether the exclusiveEnd field is set.
   */
  @java.lang.Override
  public boolean hasExclusiveEnd() {
    return endIndexCase_ == 5;
  }
  /**
   * sint32 exclusive_end = 5;
   * @return The exclusiveEnd.
   */
  @java.lang.Override
  public int getExclusiveEnd() {
    if (endIndexCase_ == 5) {
      return (java.lang.Integer) endIndex_;
    }
    return 0;
  }

  public static final int TTL_MILLISECONDS_FIELD_NUMBER = 6;
  private long ttlMilliseconds_ = 0L;
  /**
   * uint64 ttl_milliseconds = 6;
   * @return The ttlMilliseconds.
   */
  @java.lang.Override
  public long getTtlMilliseconds() {
    return ttlMilliseconds_;
  }

  public static final int REFRESH_TTL_FIELD_NUMBER = 7;
  private boolean refreshTtl_ = false;
  /**
   * bool refresh_ttl = 7;
   * @return The refreshTtl.
   */
  @java.lang.Override
  public boolean getRefreshTtl() {
    return refreshTtl_;
  }

  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 (!listName_.isEmpty()) {
      output.writeBytes(1, listName_);
    }
    if (startIndexCase_ == 2) {
      output.writeMessage(2, (grpc.common._Unbounded) startIndex_);
    }
    if (startIndexCase_ == 3) {
      output.writeSInt32(
          3, (int)((java.lang.Integer) startIndex_));
    }
    if (endIndexCase_ == 4) {
      output.writeMessage(4, (grpc.common._Unbounded) endIndex_);
    }
    if (endIndexCase_ == 5) {
      output.writeSInt32(
          5, (int)((java.lang.Integer) endIndex_));
    }
    if (ttlMilliseconds_ != 0L) {
      output.writeUInt64(6, ttlMilliseconds_);
    }
    if (refreshTtl_ != false) {
      output.writeBool(7, refreshTtl_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!listName_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(1, listName_);
    }
    if (startIndexCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (grpc.common._Unbounded) startIndex_);
    }
    if (startIndexCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeSInt32Size(
            3, (int)((java.lang.Integer) startIndex_));
    }
    if (endIndexCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (grpc.common._Unbounded) endIndex_);
    }
    if (endIndexCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeSInt32Size(
            5, (int)((java.lang.Integer) endIndex_));
    }
    if (ttlMilliseconds_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(6, ttlMilliseconds_);
    }
    if (refreshTtl_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, refreshTtl_);
    }
    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._ListRetainRequest)) {
      return super.equals(obj);
    }
    grpc.cache_client._ListRetainRequest other = (grpc.cache_client._ListRetainRequest) obj;

    if (!getListName()
        .equals(other.getListName())) return false;
    if (getTtlMilliseconds()
        != other.getTtlMilliseconds()) return false;
    if (getRefreshTtl()
        != other.getRefreshTtl()) return false;
    if (!getStartIndexCase().equals(other.getStartIndexCase())) return false;
    switch (startIndexCase_) {
      case 2:
        if (!getUnboundedStart()
            .equals(other.getUnboundedStart())) return false;
        break;
      case 3:
        if (getInclusiveStart()
            != other.getInclusiveStart()) return false;
        break;
      case 0:
      default:
    }
    if (!getEndIndexCase().equals(other.getEndIndexCase())) return false;
    switch (endIndexCase_) {
      case 4:
        if (!getUnboundedEnd()
            .equals(other.getUnboundedEnd())) return false;
        break;
      case 5:
        if (getExclusiveEnd()
            != other.getExclusiveEnd()) 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) + LIST_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getListName().hashCode();
    hash = (37 * hash) + TTL_MILLISECONDS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTtlMilliseconds());
    hash = (37 * hash) + REFRESH_TTL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getRefreshTtl());
    switch (startIndexCase_) {
      case 2:
        hash = (37 * hash) + UNBOUNDED_START_FIELD_NUMBER;
        hash = (53 * hash) + getUnboundedStart().hashCode();
        break;
      case 3:
        hash = (37 * hash) + INCLUSIVE_START_FIELD_NUMBER;
        hash = (53 * hash) + getInclusiveStart();
        break;
      case 0:
      default:
    }
    switch (endIndexCase_) {
      case 4:
        hash = (37 * hash) + UNBOUNDED_END_FIELD_NUMBER;
        hash = (53 * hash) + getUnboundedEnd().hashCode();
        break;
      case 5:
        hash = (37 * hash) + EXCLUSIVE_END_FIELD_NUMBER;
        hash = (53 * hash) + getExclusiveEnd();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static grpc.cache_client._ListRetainRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.cache_client._ListRetainRequest 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._ListRetainRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.cache_client._ListRetainRequest 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._ListRetainRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static grpc.cache_client._ListRetainRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static grpc.cache_client._ListRetainRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static grpc.cache_client._ListRetainRequest 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._ListRetainRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static grpc.cache_client._ListRetainRequest 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._ListRetainRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static grpc.cache_client._ListRetainRequest 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._ListRetainRequest 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._ListRetainRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cache_client._ListRetainRequest)
      grpc.cache_client._ListRetainRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return grpc.cache_client.Cacheclient.internal_static_cache_client__ListRetainRequest_descriptor;
    }

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

    // Construct using grpc.cache_client._ListRetainRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      listName_ = com.google.protobuf.ByteString.EMPTY;
      if (unboundedStartBuilder_ != null) {
        unboundedStartBuilder_.clear();
      }
      if (unboundedEndBuilder_ != null) {
        unboundedEndBuilder_.clear();
      }
      ttlMilliseconds_ = 0L;
      refreshTtl_ = false;
      startIndexCase_ = 0;
      startIndex_ = null;
      endIndexCase_ = 0;
      endIndex_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return grpc.cache_client.Cacheclient.internal_static_cache_client__ListRetainRequest_descriptor;
    }

    @java.lang.Override
    public grpc.cache_client._ListRetainRequest getDefaultInstanceForType() {
      return grpc.cache_client._ListRetainRequest.getDefaultInstance();
    }

    @java.lang.Override
    public grpc.cache_client._ListRetainRequest build() {
      grpc.cache_client._ListRetainRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public grpc.cache_client._ListRetainRequest buildPartial() {
      grpc.cache_client._ListRetainRequest result = new grpc.cache_client._ListRetainRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(grpc.cache_client._ListRetainRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.listName_ = listName_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.ttlMilliseconds_ = ttlMilliseconds_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.refreshTtl_ = refreshTtl_;
      }
    }

    private void buildPartialOneofs(grpc.cache_client._ListRetainRequest result) {
      result.startIndexCase_ = startIndexCase_;
      result.startIndex_ = this.startIndex_;
      if (startIndexCase_ == 2 &&
          unboundedStartBuilder_ != null) {
        result.startIndex_ = unboundedStartBuilder_.build();
      }
      result.endIndexCase_ = endIndexCase_;
      result.endIndex_ = this.endIndex_;
      if (endIndexCase_ == 4 &&
          unboundedEndBuilder_ != null) {
        result.endIndex_ = 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._ListRetainRequest) {
        return mergeFrom((grpc.cache_client._ListRetainRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(grpc.cache_client._ListRetainRequest other) {
      if (other == grpc.cache_client._ListRetainRequest.getDefaultInstance()) return this;
      if (other.getListName() != com.google.protobuf.ByteString.EMPTY) {
        setListName(other.getListName());
      }
      if (other.getTtlMilliseconds() != 0L) {
        setTtlMilliseconds(other.getTtlMilliseconds());
      }
      if (other.getRefreshTtl() != false) {
        setRefreshTtl(other.getRefreshTtl());
      }
      switch (other.getStartIndexCase()) {
        case UNBOUNDED_START: {
          mergeUnboundedStart(other.getUnboundedStart());
          break;
        }
        case INCLUSIVE_START: {
          setInclusiveStart(other.getInclusiveStart());
          break;
        }
        case STARTINDEX_NOT_SET: {
          break;
        }
      }
      switch (other.getEndIndexCase()) {
        case UNBOUNDED_END: {
          mergeUnboundedEnd(other.getUnboundedEnd());
          break;
        }
        case EXCLUSIVE_END: {
          setExclusiveEnd(other.getExclusiveEnd());
          break;
        }
        case ENDINDEX_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: {
              listName_ = input.readBytes();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getUnboundedStartFieldBuilder().getBuilder(),
                  extensionRegistry);
              startIndexCase_ = 2;
              break;
            } // case 18
            case 24: {
              startIndex_ = input.readSInt32();
              startIndexCase_ = 3;
              break;
            } // case 24
            case 34: {
              input.readMessage(
                  getUnboundedEndFieldBuilder().getBuilder(),
                  extensionRegistry);
              endIndexCase_ = 4;
              break;
            } // case 34
            case 40: {
              endIndex_ = input.readSInt32();
              endIndexCase_ = 5;
              break;
            } // case 40
            case 48: {
              ttlMilliseconds_ = input.readUInt64();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 56: {
              refreshTtl_ = input.readBool();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            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 startIndexCase_ = 0;
    private java.lang.Object startIndex_;
    public StartIndexCase
        getStartIndexCase() {
      return StartIndexCase.forNumber(
          startIndexCase_);
    }

    public Builder clearStartIndex() {
      startIndexCase_ = 0;
      startIndex_ = null;
      onChanged();
      return this;
    }

    private int endIndexCase_ = 0;
    private java.lang.Object endIndex_;
    public EndIndexCase
        getEndIndexCase() {
      return EndIndexCase.forNumber(
          endIndexCase_);
    }

    public Builder clearEndIndex() {
      endIndexCase_ = 0;
      endIndex_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.ByteString listName_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes list_name = 1;
     * @return The listName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getListName() {
      return listName_;
    }
    /**
     * bytes list_name = 1;
     * @param value The listName to set.
     * @return This builder for chaining.
     */
    public Builder setListName(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      listName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * bytes list_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearListName() {
      bitField0_ = (bitField0_ & ~0x00000001);
      listName_ = getDefaultInstance().getListName();
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedStartBuilder_;
    /**
     * .common._Unbounded unbounded_start = 2;
     * @return Whether the unboundedStart field is set.
     */
    @java.lang.Override
    public boolean hasUnboundedStart() {
      return startIndexCase_ == 2;
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     * @return The unboundedStart.
     */
    @java.lang.Override
    public grpc.common._Unbounded getUnboundedStart() {
      if (unboundedStartBuilder_ == null) {
        if (startIndexCase_ == 2) {
          return (grpc.common._Unbounded) startIndex_;
        }
        return grpc.common._Unbounded.getDefaultInstance();
      } else {
        if (startIndexCase_ == 2) {
          return unboundedStartBuilder_.getMessage();
        }
        return grpc.common._Unbounded.getDefaultInstance();
      }
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    public Builder setUnboundedStart(grpc.common._Unbounded value) {
      if (unboundedStartBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startIndex_ = value;
        onChanged();
      } else {
        unboundedStartBuilder_.setMessage(value);
      }
      startIndexCase_ = 2;
      return this;
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    public Builder setUnboundedStart(
        grpc.common._Unbounded.Builder builderForValue) {
      if (unboundedStartBuilder_ == null) {
        startIndex_ = builderForValue.build();
        onChanged();
      } else {
        unboundedStartBuilder_.setMessage(builderForValue.build());
      }
      startIndexCase_ = 2;
      return this;
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    public Builder mergeUnboundedStart(grpc.common._Unbounded value) {
      if (unboundedStartBuilder_ == null) {
        if (startIndexCase_ == 2 &&
            startIndex_ != grpc.common._Unbounded.getDefaultInstance()) {
          startIndex_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) startIndex_)
              .mergeFrom(value).buildPartial();
        } else {
          startIndex_ = value;
        }
        onChanged();
      } else {
        if (startIndexCase_ == 2) {
          unboundedStartBuilder_.mergeFrom(value);
        } else {
          unboundedStartBuilder_.setMessage(value);
        }
      }
      startIndexCase_ = 2;
      return this;
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    public Builder clearUnboundedStart() {
      if (unboundedStartBuilder_ == null) {
        if (startIndexCase_ == 2) {
          startIndexCase_ = 0;
          startIndex_ = null;
          onChanged();
        }
      } else {
        if (startIndexCase_ == 2) {
          startIndexCase_ = 0;
          startIndex_ = null;
        }
        unboundedStartBuilder_.clear();
      }
      return this;
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    public grpc.common._Unbounded.Builder getUnboundedStartBuilder() {
      return getUnboundedStartFieldBuilder().getBuilder();
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    @java.lang.Override
    public grpc.common._UnboundedOrBuilder getUnboundedStartOrBuilder() {
      if ((startIndexCase_ == 2) && (unboundedStartBuilder_ != null)) {
        return unboundedStartBuilder_.getMessageOrBuilder();
      } else {
        if (startIndexCase_ == 2) {
          return (grpc.common._Unbounded) startIndex_;
        }
        return grpc.common._Unbounded.getDefaultInstance();
      }
    }
    /**
     * .common._Unbounded unbounded_start = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> 
        getUnboundedStartFieldBuilder() {
      if (unboundedStartBuilder_ == null) {
        if (!(startIndexCase_ == 2)) {
          startIndex_ = grpc.common._Unbounded.getDefaultInstance();
        }
        unboundedStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>(
                (grpc.common._Unbounded) startIndex_,
                getParentForChildren(),
                isClean());
        startIndex_ = null;
      }
      startIndexCase_ = 2;
      onChanged();
      return unboundedStartBuilder_;
    }

    /**
     * sint32 inclusive_start = 3;
     * @return Whether the inclusiveStart field is set.
     */
    public boolean hasInclusiveStart() {
      return startIndexCase_ == 3;
    }
    /**
     * sint32 inclusive_start = 3;
     * @return The inclusiveStart.
     */
    public int getInclusiveStart() {
      if (startIndexCase_ == 3) {
        return (java.lang.Integer) startIndex_;
      }
      return 0;
    }
    /**
     * sint32 inclusive_start = 3;
     * @param value The inclusiveStart to set.
     * @return This builder for chaining.
     */
    public Builder setInclusiveStart(int value) {

      startIndexCase_ = 3;
      startIndex_ = value;
      onChanged();
      return this;
    }
    /**
     * sint32 inclusive_start = 3;
     * @return This builder for chaining.
     */
    public Builder clearInclusiveStart() {
      if (startIndexCase_ == 3) {
        startIndexCase_ = 0;
        startIndex_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> unboundedEndBuilder_;
    /**
     * .common._Unbounded unbounded_end = 4;
     * @return Whether the unboundedEnd field is set.
     */
    @java.lang.Override
    public boolean hasUnboundedEnd() {
      return endIndexCase_ == 4;
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     * @return The unboundedEnd.
     */
    @java.lang.Override
    public grpc.common._Unbounded getUnboundedEnd() {
      if (unboundedEndBuilder_ == null) {
        if (endIndexCase_ == 4) {
          return (grpc.common._Unbounded) endIndex_;
        }
        return grpc.common._Unbounded.getDefaultInstance();
      } else {
        if (endIndexCase_ == 4) {
          return unboundedEndBuilder_.getMessage();
        }
        return grpc.common._Unbounded.getDefaultInstance();
      }
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    public Builder setUnboundedEnd(grpc.common._Unbounded value) {
      if (unboundedEndBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endIndex_ = value;
        onChanged();
      } else {
        unboundedEndBuilder_.setMessage(value);
      }
      endIndexCase_ = 4;
      return this;
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    public Builder setUnboundedEnd(
        grpc.common._Unbounded.Builder builderForValue) {
      if (unboundedEndBuilder_ == null) {
        endIndex_ = builderForValue.build();
        onChanged();
      } else {
        unboundedEndBuilder_.setMessage(builderForValue.build());
      }
      endIndexCase_ = 4;
      return this;
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    public Builder mergeUnboundedEnd(grpc.common._Unbounded value) {
      if (unboundedEndBuilder_ == null) {
        if (endIndexCase_ == 4 &&
            endIndex_ != grpc.common._Unbounded.getDefaultInstance()) {
          endIndex_ = grpc.common._Unbounded.newBuilder((grpc.common._Unbounded) endIndex_)
              .mergeFrom(value).buildPartial();
        } else {
          endIndex_ = value;
        }
        onChanged();
      } else {
        if (endIndexCase_ == 4) {
          unboundedEndBuilder_.mergeFrom(value);
        } else {
          unboundedEndBuilder_.setMessage(value);
        }
      }
      endIndexCase_ = 4;
      return this;
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    public Builder clearUnboundedEnd() {
      if (unboundedEndBuilder_ == null) {
        if (endIndexCase_ == 4) {
          endIndexCase_ = 0;
          endIndex_ = null;
          onChanged();
        }
      } else {
        if (endIndexCase_ == 4) {
          endIndexCase_ = 0;
          endIndex_ = null;
        }
        unboundedEndBuilder_.clear();
      }
      return this;
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    public grpc.common._Unbounded.Builder getUnboundedEndBuilder() {
      return getUnboundedEndFieldBuilder().getBuilder();
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    @java.lang.Override
    public grpc.common._UnboundedOrBuilder getUnboundedEndOrBuilder() {
      if ((endIndexCase_ == 4) && (unboundedEndBuilder_ != null)) {
        return unboundedEndBuilder_.getMessageOrBuilder();
      } else {
        if (endIndexCase_ == 4) {
          return (grpc.common._Unbounded) endIndex_;
        }
        return grpc.common._Unbounded.getDefaultInstance();
      }
    }
    /**
     * .common._Unbounded unbounded_end = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder> 
        getUnboundedEndFieldBuilder() {
      if (unboundedEndBuilder_ == null) {
        if (!(endIndexCase_ == 4)) {
          endIndex_ = grpc.common._Unbounded.getDefaultInstance();
        }
        unboundedEndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.common._Unbounded, grpc.common._Unbounded.Builder, grpc.common._UnboundedOrBuilder>(
                (grpc.common._Unbounded) endIndex_,
                getParentForChildren(),
                isClean());
        endIndex_ = null;
      }
      endIndexCase_ = 4;
      onChanged();
      return unboundedEndBuilder_;
    }

    /**
     * sint32 exclusive_end = 5;
     * @return Whether the exclusiveEnd field is set.
     */
    public boolean hasExclusiveEnd() {
      return endIndexCase_ == 5;
    }
    /**
     * sint32 exclusive_end = 5;
     * @return The exclusiveEnd.
     */
    public int getExclusiveEnd() {
      if (endIndexCase_ == 5) {
        return (java.lang.Integer) endIndex_;
      }
      return 0;
    }
    /**
     * sint32 exclusive_end = 5;
     * @param value The exclusiveEnd to set.
     * @return This builder for chaining.
     */
    public Builder setExclusiveEnd(int value) {

      endIndexCase_ = 5;
      endIndex_ = value;
      onChanged();
      return this;
    }
    /**
     * sint32 exclusive_end = 5;
     * @return This builder for chaining.
     */
    public Builder clearExclusiveEnd() {
      if (endIndexCase_ == 5) {
        endIndexCase_ = 0;
        endIndex_ = null;
        onChanged();
      }
      return this;
    }

    private long ttlMilliseconds_ ;
    /**
     * uint64 ttl_milliseconds = 6;
     * @return The ttlMilliseconds.
     */
    @java.lang.Override
    public long getTtlMilliseconds() {
      return ttlMilliseconds_;
    }
    /**
     * uint64 ttl_milliseconds = 6;
     * @param value The ttlMilliseconds to set.
     * @return This builder for chaining.
     */
    public Builder setTtlMilliseconds(long value) {

      ttlMilliseconds_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * uint64 ttl_milliseconds = 6;
     * @return This builder for chaining.
     */
    public Builder clearTtlMilliseconds() {
      bitField0_ = (bitField0_ & ~0x00000020);
      ttlMilliseconds_ = 0L;
      onChanged();
      return this;
    }

    private boolean refreshTtl_ ;
    /**
     * bool refresh_ttl = 7;
     * @return The refreshTtl.
     */
    @java.lang.Override
    public boolean getRefreshTtl() {
      return refreshTtl_;
    }
    /**
     * bool refresh_ttl = 7;
     * @param value The refreshTtl to set.
     * @return This builder for chaining.
     */
    public Builder setRefreshTtl(boolean value) {

      refreshTtl_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * bool refresh_ttl = 7;
     * @return This builder for chaining.
     */
    public Builder clearRefreshTtl() {
      bitField0_ = (bitField0_ & ~0x00000040);
      refreshTtl_ = 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._ListRetainRequest)
  }

  // @@protoc_insertion_point(class_scope:cache_client._ListRetainRequest)
  private static final grpc.cache_client._ListRetainRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new grpc.cache_client._ListRetainRequest();
  }

  public static grpc.cache_client._ListRetainRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<_ListRetainRequest>
      PARSER = new com.google.protobuf.AbstractParser<_ListRetainRequest>() {
    @java.lang.Override
    public _ListRetainRequest 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<_ListRetainRequest> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<_ListRetainRequest> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public grpc.cache_client._ListRetainRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy