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

grpc.control_client._ListCachesResponse Maven / Gradle / Ivy

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

package grpc.control_client;

/**
 * Protobuf type {@code control_client._ListCachesResponse}
 */
public final class _ListCachesResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:control_client._ListCachesResponse)
    _ListCachesResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _ListCachesResponse.newBuilder() to construct.
  private _ListCachesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _ListCachesResponse() {
    cache_ = java.util.Collections.emptyList();
    nextToken_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.control_client.Controlclient.internal_static_control_client__ListCachesResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.control_client.Controlclient.internal_static_control_client__ListCachesResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.control_client._ListCachesResponse.class, grpc.control_client._ListCachesResponse.Builder.class);
  }

  public static final int CACHE_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List cache_;
  /**
   * repeated .control_client._Cache cache = 1;
   */
  @java.lang.Override
  public java.util.List getCacheList() {
    return cache_;
  }
  /**
   * repeated .control_client._Cache cache = 1;
   */
  @java.lang.Override
  public java.util.List 
      getCacheOrBuilderList() {
    return cache_;
  }
  /**
   * repeated .control_client._Cache cache = 1;
   */
  @java.lang.Override
  public int getCacheCount() {
    return cache_.size();
  }
  /**
   * repeated .control_client._Cache cache = 1;
   */
  @java.lang.Override
  public grpc.control_client._Cache getCache(int index) {
    return cache_.get(index);
  }
  /**
   * repeated .control_client._Cache cache = 1;
   */
  @java.lang.Override
  public grpc.control_client._CacheOrBuilder getCacheOrBuilder(
      int index) {
    return cache_.get(index);
  }

  public static final int NEXT_TOKEN_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object nextToken_ = "";
  /**
   * string next_token = 2;
   * @return The nextToken.
   */
  @java.lang.Override
  public java.lang.String getNextToken() {
    java.lang.Object ref = nextToken_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      nextToken_ = s;
      return s;
    }
  }
  /**
   * string next_token = 2;
   * @return The bytes for nextToken.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNextTokenBytes() {
    java.lang.Object ref = nextToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nextToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 {
    for (int i = 0; i < cache_.size(); i++) {
      output.writeMessage(1, cache_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < cache_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, cache_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_);
    }
    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.control_client._ListCachesResponse)) {
      return super.equals(obj);
    }
    grpc.control_client._ListCachesResponse other = (grpc.control_client._ListCachesResponse) obj;

    if (!getCacheList()
        .equals(other.getCacheList())) return false;
    if (!getNextToken()
        .equals(other.getNextToken())) 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();
    if (getCacheCount() > 0) {
      hash = (37 * hash) + CACHE_FIELD_NUMBER;
      hash = (53 * hash) + getCacheList().hashCode();
    }
    hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getNextToken().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.control_client.Controlclient.internal_static_control_client__ListCachesResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.control_client._ListCachesResponse.class, grpc.control_client._ListCachesResponse.Builder.class);
    }

    // Construct using grpc.control_client._ListCachesResponse.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (cacheBuilder_ == null) {
        cache_ = java.util.Collections.emptyList();
      } else {
        cache_ = null;
        cacheBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      nextToken_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return grpc.control_client.Controlclient.internal_static_control_client__ListCachesResponse_descriptor;
    }

    @java.lang.Override
    public grpc.control_client._ListCachesResponse getDefaultInstanceForType() {
      return grpc.control_client._ListCachesResponse.getDefaultInstance();
    }

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

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

    private void buildPartialRepeatedFields(grpc.control_client._ListCachesResponse result) {
      if (cacheBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          cache_ = java.util.Collections.unmodifiableList(cache_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.cache_ = cache_;
      } else {
        result.cache_ = cacheBuilder_.build();
      }
    }

    private void buildPartial0(grpc.control_client._ListCachesResponse result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.nextToken_ = nextToken_;
      }
    }

    @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.control_client._ListCachesResponse) {
        return mergeFrom((grpc.control_client._ListCachesResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(grpc.control_client._ListCachesResponse other) {
      if (other == grpc.control_client._ListCachesResponse.getDefaultInstance()) return this;
      if (cacheBuilder_ == null) {
        if (!other.cache_.isEmpty()) {
          if (cache_.isEmpty()) {
            cache_ = other.cache_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureCacheIsMutable();
            cache_.addAll(other.cache_);
          }
          onChanged();
        }
      } else {
        if (!other.cache_.isEmpty()) {
          if (cacheBuilder_.isEmpty()) {
            cacheBuilder_.dispose();
            cacheBuilder_ = null;
            cache_ = other.cache_;
            bitField0_ = (bitField0_ & ~0x00000001);
            cacheBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getCacheFieldBuilder() : null;
          } else {
            cacheBuilder_.addAllMessages(other.cache_);
          }
        }
      }
      if (!other.getNextToken().isEmpty()) {
        nextToken_ = other.nextToken_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      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: {
              grpc.control_client._Cache m =
                  input.readMessage(
                      grpc.control_client._Cache.parser(),
                      extensionRegistry);
              if (cacheBuilder_ == null) {
                ensureCacheIsMutable();
                cache_.add(m);
              } else {
                cacheBuilder_.addMessage(m);
              }
              break;
            } // case 10
            case 18: {
              nextToken_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            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 java.util.List cache_ =
      java.util.Collections.emptyList();
    private void ensureCacheIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        cache_ = new java.util.ArrayList(cache_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        grpc.control_client._Cache, grpc.control_client._Cache.Builder, grpc.control_client._CacheOrBuilder> cacheBuilder_;

    /**
     * repeated .control_client._Cache cache = 1;
     */
    public java.util.List getCacheList() {
      if (cacheBuilder_ == null) {
        return java.util.Collections.unmodifiableList(cache_);
      } else {
        return cacheBuilder_.getMessageList();
      }
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public int getCacheCount() {
      if (cacheBuilder_ == null) {
        return cache_.size();
      } else {
        return cacheBuilder_.getCount();
      }
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public grpc.control_client._Cache getCache(int index) {
      if (cacheBuilder_ == null) {
        return cache_.get(index);
      } else {
        return cacheBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder setCache(
        int index, grpc.control_client._Cache value) {
      if (cacheBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCacheIsMutable();
        cache_.set(index, value);
        onChanged();
      } else {
        cacheBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder setCache(
        int index, grpc.control_client._Cache.Builder builderForValue) {
      if (cacheBuilder_ == null) {
        ensureCacheIsMutable();
        cache_.set(index, builderForValue.build());
        onChanged();
      } else {
        cacheBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder addCache(grpc.control_client._Cache value) {
      if (cacheBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCacheIsMutable();
        cache_.add(value);
        onChanged();
      } else {
        cacheBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder addCache(
        int index, grpc.control_client._Cache value) {
      if (cacheBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCacheIsMutable();
        cache_.add(index, value);
        onChanged();
      } else {
        cacheBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder addCache(
        grpc.control_client._Cache.Builder builderForValue) {
      if (cacheBuilder_ == null) {
        ensureCacheIsMutable();
        cache_.add(builderForValue.build());
        onChanged();
      } else {
        cacheBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder addCache(
        int index, grpc.control_client._Cache.Builder builderForValue) {
      if (cacheBuilder_ == null) {
        ensureCacheIsMutable();
        cache_.add(index, builderForValue.build());
        onChanged();
      } else {
        cacheBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder addAllCache(
        java.lang.Iterable values) {
      if (cacheBuilder_ == null) {
        ensureCacheIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, cache_);
        onChanged();
      } else {
        cacheBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder clearCache() {
      if (cacheBuilder_ == null) {
        cache_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        cacheBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public Builder removeCache(int index) {
      if (cacheBuilder_ == null) {
        ensureCacheIsMutable();
        cache_.remove(index);
        onChanged();
      } else {
        cacheBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public grpc.control_client._Cache.Builder getCacheBuilder(
        int index) {
      return getCacheFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public grpc.control_client._CacheOrBuilder getCacheOrBuilder(
        int index) {
      if (cacheBuilder_ == null) {
        return cache_.get(index);  } else {
        return cacheBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public java.util.List 
         getCacheOrBuilderList() {
      if (cacheBuilder_ != null) {
        return cacheBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(cache_);
      }
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public grpc.control_client._Cache.Builder addCacheBuilder() {
      return getCacheFieldBuilder().addBuilder(
          grpc.control_client._Cache.getDefaultInstance());
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public grpc.control_client._Cache.Builder addCacheBuilder(
        int index) {
      return getCacheFieldBuilder().addBuilder(
          index, grpc.control_client._Cache.getDefaultInstance());
    }
    /**
     * repeated .control_client._Cache cache = 1;
     */
    public java.util.List 
         getCacheBuilderList() {
      return getCacheFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        grpc.control_client._Cache, grpc.control_client._Cache.Builder, grpc.control_client._CacheOrBuilder> 
        getCacheFieldBuilder() {
      if (cacheBuilder_ == null) {
        cacheBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            grpc.control_client._Cache, grpc.control_client._Cache.Builder, grpc.control_client._CacheOrBuilder>(
                cache_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        cache_ = null;
      }
      return cacheBuilder_;
    }

    private java.lang.Object nextToken_ = "";
    /**
     * string next_token = 2;
     * @return The nextToken.
     */
    public java.lang.String getNextToken() {
      java.lang.Object ref = nextToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nextToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string next_token = 2;
     * @return The bytes for nextToken.
     */
    public com.google.protobuf.ByteString
        getNextTokenBytes() {
      java.lang.Object ref = nextToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nextToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string next_token = 2;
     * @param value The nextToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextToken(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      nextToken_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string next_token = 2;
     * @return This builder for chaining.
     */
    public Builder clearNextToken() {
      nextToken_ = getDefaultInstance().getNextToken();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * string next_token = 2;
     * @param value The bytes for nextToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      nextToken_ = value;
      bitField0_ |= 0x00000002;
      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:control_client._ListCachesResponse)
  }

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

  public static grpc.control_client._ListCachesResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public grpc.control_client._ListCachesResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy