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

grpc.control_client._Cache 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._Cache}
 */
public final class _Cache extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:control_client._Cache)
    _CacheOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _Cache.newBuilder() to construct.
  private _Cache(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _Cache() {
    cacheName_ = "";
  }

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

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

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

  private int bitField0_;
  public static final int CACHE_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object cacheName_ = "";
  /**
   * string cache_name = 1;
   * @return The cacheName.
   */
  @java.lang.Override
  public java.lang.String getCacheName() {
    java.lang.Object ref = cacheName_;
    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();
      cacheName_ = s;
      return s;
    }
  }
  /**
   * string cache_name = 1;
   * @return The bytes for cacheName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCacheNameBytes() {
    java.lang.Object ref = cacheName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cacheName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CACHE_LIMITS_FIELD_NUMBER = 2;
  private grpc.control_client._CacheLimits cacheLimits_;
  /**
   * .control_client._CacheLimits cache_limits = 2;
   * @return Whether the cacheLimits field is set.
   */
  @java.lang.Override
  public boolean hasCacheLimits() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .control_client._CacheLimits cache_limits = 2;
   * @return The cacheLimits.
   */
  @java.lang.Override
  public grpc.control_client._CacheLimits getCacheLimits() {
    return cacheLimits_ == null ? grpc.control_client._CacheLimits.getDefaultInstance() : cacheLimits_;
  }
  /**
   * .control_client._CacheLimits cache_limits = 2;
   */
  @java.lang.Override
  public grpc.control_client._CacheLimitsOrBuilder getCacheLimitsOrBuilder() {
    return cacheLimits_ == null ? grpc.control_client._CacheLimits.getDefaultInstance() : cacheLimits_;
  }

  public static final int TOPIC_LIMITS_FIELD_NUMBER = 3;
  private grpc.control_client._TopicLimits topicLimits_;
  /**
   * .control_client._TopicLimits topic_limits = 3;
   * @return Whether the topicLimits field is set.
   */
  @java.lang.Override
  public boolean hasTopicLimits() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .control_client._TopicLimits topic_limits = 3;
   * @return The topicLimits.
   */
  @java.lang.Override
  public grpc.control_client._TopicLimits getTopicLimits() {
    return topicLimits_ == null ? grpc.control_client._TopicLimits.getDefaultInstance() : topicLimits_;
  }
  /**
   * .control_client._TopicLimits topic_limits = 3;
   */
  @java.lang.Override
  public grpc.control_client._TopicLimitsOrBuilder getTopicLimitsOrBuilder() {
    return topicLimits_ == null ? grpc.control_client._TopicLimits.getDefaultInstance() : topicLimits_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getCacheLimits());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getTopicLimits());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getCacheLimits());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getTopicLimits());
    }
    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._Cache)) {
      return super.equals(obj);
    }
    grpc.control_client._Cache other = (grpc.control_client._Cache) obj;

    if (!getCacheName()
        .equals(other.getCacheName())) return false;
    if (hasCacheLimits() != other.hasCacheLimits()) return false;
    if (hasCacheLimits()) {
      if (!getCacheLimits()
          .equals(other.getCacheLimits())) return false;
    }
    if (hasTopicLimits() != other.hasTopicLimits()) return false;
    if (hasTopicLimits()) {
      if (!getTopicLimits()
          .equals(other.getTopicLimits())) 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) + CACHE_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getCacheName().hashCode();
    if (hasCacheLimits()) {
      hash = (37 * hash) + CACHE_LIMITS_FIELD_NUMBER;
      hash = (53 * hash) + getCacheLimits().hashCode();
    }
    if (hasTopicLimits()) {
      hash = (37 * hash) + TOPIC_LIMITS_FIELD_NUMBER;
      hash = (53 * hash) + getTopicLimits().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    // Construct using grpc.control_client._Cache.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCacheLimitsFieldBuilder();
        getTopicLimitsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      cacheName_ = "";
      cacheLimits_ = null;
      if (cacheLimitsBuilder_ != null) {
        cacheLimitsBuilder_.dispose();
        cacheLimitsBuilder_ = null;
      }
      topicLimits_ = null;
      if (topicLimitsBuilder_ != null) {
        topicLimitsBuilder_.dispose();
        topicLimitsBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(grpc.control_client._Cache result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.cacheName_ = cacheName_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.cacheLimits_ = cacheLimitsBuilder_ == null
            ? cacheLimits_
            : cacheLimitsBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.topicLimits_ = topicLimitsBuilder_ == null
            ? topicLimits_
            : topicLimitsBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      result.bitField0_ |= to_bitField0_;
    }

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

    public Builder mergeFrom(grpc.control_client._Cache other) {
      if (other == grpc.control_client._Cache.getDefaultInstance()) return this;
      if (!other.getCacheName().isEmpty()) {
        cacheName_ = other.cacheName_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasCacheLimits()) {
        mergeCacheLimits(other.getCacheLimits());
      }
      if (other.hasTopicLimits()) {
        mergeTopicLimits(other.getTopicLimits());
      }
      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: {
              cacheName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getCacheLimitsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getTopicLimitsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            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.lang.Object cacheName_ = "";
    /**
     * string cache_name = 1;
     * @return The cacheName.
     */
    public java.lang.String getCacheName() {
      java.lang.Object ref = cacheName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cacheName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string cache_name = 1;
     * @return The bytes for cacheName.
     */
    public com.google.protobuf.ByteString
        getCacheNameBytes() {
      java.lang.Object ref = cacheName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cacheName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string cache_name = 1;
     * @param value The cacheName to set.
     * @return This builder for chaining.
     */
    public Builder setCacheName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      cacheName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string cache_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearCacheName() {
      cacheName_ = getDefaultInstance().getCacheName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string cache_name = 1;
     * @param value The bytes for cacheName to set.
     * @return This builder for chaining.
     */
    public Builder setCacheNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      cacheName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private grpc.control_client._CacheLimits cacheLimits_;
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.control_client._CacheLimits, grpc.control_client._CacheLimits.Builder, grpc.control_client._CacheLimitsOrBuilder> cacheLimitsBuilder_;
    /**
     * .control_client._CacheLimits cache_limits = 2;
     * @return Whether the cacheLimits field is set.
     */
    public boolean hasCacheLimits() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     * @return The cacheLimits.
     */
    public grpc.control_client._CacheLimits getCacheLimits() {
      if (cacheLimitsBuilder_ == null) {
        return cacheLimits_ == null ? grpc.control_client._CacheLimits.getDefaultInstance() : cacheLimits_;
      } else {
        return cacheLimitsBuilder_.getMessage();
      }
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public Builder setCacheLimits(grpc.control_client._CacheLimits value) {
      if (cacheLimitsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cacheLimits_ = value;
      } else {
        cacheLimitsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public Builder setCacheLimits(
        grpc.control_client._CacheLimits.Builder builderForValue) {
      if (cacheLimitsBuilder_ == null) {
        cacheLimits_ = builderForValue.build();
      } else {
        cacheLimitsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public Builder mergeCacheLimits(grpc.control_client._CacheLimits value) {
      if (cacheLimitsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          cacheLimits_ != null &&
          cacheLimits_ != grpc.control_client._CacheLimits.getDefaultInstance()) {
          getCacheLimitsBuilder().mergeFrom(value);
        } else {
          cacheLimits_ = value;
        }
      } else {
        cacheLimitsBuilder_.mergeFrom(value);
      }
      if (cacheLimits_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public Builder clearCacheLimits() {
      bitField0_ = (bitField0_ & ~0x00000002);
      cacheLimits_ = null;
      if (cacheLimitsBuilder_ != null) {
        cacheLimitsBuilder_.dispose();
        cacheLimitsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public grpc.control_client._CacheLimits.Builder getCacheLimitsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getCacheLimitsFieldBuilder().getBuilder();
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    public grpc.control_client._CacheLimitsOrBuilder getCacheLimitsOrBuilder() {
      if (cacheLimitsBuilder_ != null) {
        return cacheLimitsBuilder_.getMessageOrBuilder();
      } else {
        return cacheLimits_ == null ?
            grpc.control_client._CacheLimits.getDefaultInstance() : cacheLimits_;
      }
    }
    /**
     * .control_client._CacheLimits cache_limits = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.control_client._CacheLimits, grpc.control_client._CacheLimits.Builder, grpc.control_client._CacheLimitsOrBuilder> 
        getCacheLimitsFieldBuilder() {
      if (cacheLimitsBuilder_ == null) {
        cacheLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.control_client._CacheLimits, grpc.control_client._CacheLimits.Builder, grpc.control_client._CacheLimitsOrBuilder>(
                getCacheLimits(),
                getParentForChildren(),
                isClean());
        cacheLimits_ = null;
      }
      return cacheLimitsBuilder_;
    }

    private grpc.control_client._TopicLimits topicLimits_;
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.control_client._TopicLimits, grpc.control_client._TopicLimits.Builder, grpc.control_client._TopicLimitsOrBuilder> topicLimitsBuilder_;
    /**
     * .control_client._TopicLimits topic_limits = 3;
     * @return Whether the topicLimits field is set.
     */
    public boolean hasTopicLimits() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     * @return The topicLimits.
     */
    public grpc.control_client._TopicLimits getTopicLimits() {
      if (topicLimitsBuilder_ == null) {
        return topicLimits_ == null ? grpc.control_client._TopicLimits.getDefaultInstance() : topicLimits_;
      } else {
        return topicLimitsBuilder_.getMessage();
      }
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public Builder setTopicLimits(grpc.control_client._TopicLimits value) {
      if (topicLimitsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        topicLimits_ = value;
      } else {
        topicLimitsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public Builder setTopicLimits(
        grpc.control_client._TopicLimits.Builder builderForValue) {
      if (topicLimitsBuilder_ == null) {
        topicLimits_ = builderForValue.build();
      } else {
        topicLimitsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public Builder mergeTopicLimits(grpc.control_client._TopicLimits value) {
      if (topicLimitsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          topicLimits_ != null &&
          topicLimits_ != grpc.control_client._TopicLimits.getDefaultInstance()) {
          getTopicLimitsBuilder().mergeFrom(value);
        } else {
          topicLimits_ = value;
        }
      } else {
        topicLimitsBuilder_.mergeFrom(value);
      }
      if (topicLimits_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public Builder clearTopicLimits() {
      bitField0_ = (bitField0_ & ~0x00000004);
      topicLimits_ = null;
      if (topicLimitsBuilder_ != null) {
        topicLimitsBuilder_.dispose();
        topicLimitsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public grpc.control_client._TopicLimits.Builder getTopicLimitsBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getTopicLimitsFieldBuilder().getBuilder();
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    public grpc.control_client._TopicLimitsOrBuilder getTopicLimitsOrBuilder() {
      if (topicLimitsBuilder_ != null) {
        return topicLimitsBuilder_.getMessageOrBuilder();
      } else {
        return topicLimits_ == null ?
            grpc.control_client._TopicLimits.getDefaultInstance() : topicLimits_;
      }
    }
    /**
     * .control_client._TopicLimits topic_limits = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.control_client._TopicLimits, grpc.control_client._TopicLimits.Builder, grpc.control_client._TopicLimitsOrBuilder> 
        getTopicLimitsFieldBuilder() {
      if (topicLimitsBuilder_ == null) {
        topicLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.control_client._TopicLimits, grpc.control_client._TopicLimits.Builder, grpc.control_client._TopicLimitsOrBuilder>(
                getTopicLimits(),
                getParentForChildren(),
                isClean());
        topicLimits_ = null;
      }
      return topicLimitsBuilder_;
    }
    @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._Cache)
  }

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

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

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy