// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: frontEndGRPC.proto

package com.intel.analytics.zoo.serving.grpc.service.generated;

/**
 * Protobuf type {@code grpc.ClusterServingGRPCMetaData}
 */
public  final class ClusterServingGRPCMetaData extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.ClusterServingGRPCMetaData)
    ClusterServingGRPCMetaDataOrBuilder {
  // Use ClusterServingGRPCMetaData.newBuilder() to construct.
  private ClusterServingGRPCMetaData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ClusterServingGRPCMetaData() {
    modelName_ = "";
    modelVersion_ = "";
    redisHost_ = "";
    redisPort_ = "";
    redisInputQueue_ = "";
    redisOutputQueue_ = "";
    timeWindow_ = 0;
    countWindow_ = 0;
    redisSecureEnabled_ = false;
    redisTrustStorePath_ = "";
    redisTrustStoreToken_ = "";
    features_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private ClusterServingGRPCMetaData(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            String s = input.readStringRequireUtf8();

            modelName_ = s;
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();

            modelVersion_ = s;
            break;
          }
          case 26: {
            String s = input.readStringRequireUtf8();

            redisHost_ = s;
            break;
          }
          case 34: {
            String s = input.readStringRequireUtf8();

            redisPort_ = s;
            break;
          }
          case 42: {
            String s = input.readStringRequireUtf8();

            redisInputQueue_ = s;
            break;
          }
          case 50: {
            String s = input.readStringRequireUtf8();

            redisOutputQueue_ = s;
            break;
          }
          case 56: {

            timeWindow_ = input.readInt32();
            break;
          }
          case 64: {

            countWindow_ = input.readInt32();
            break;
          }
          case 72: {

            redisSecureEnabled_ = input.readBool();
            break;
          }
          case 82: {
            String s = input.readStringRequireUtf8();

            redisTrustStorePath_ = s;
            break;
          }
          case 90: {
            String s = input.readStringRequireUtf8();

            redisTrustStoreToken_ = s;
            break;
          }
          case 98: {
            String s = input.readStringRequireUtf8();

            features_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return GrpcFrontEndProto.internal_static_grpc_ClusterServingGRPCMetaData_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return GrpcFrontEndProto.internal_static_grpc_ClusterServingGRPCMetaData_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ClusterServingGRPCMetaData.class, ClusterServingGRPCMetaData.Builder.class);
  }

  public static final int MODELNAME_FIELD_NUMBER = 1;
  private volatile Object modelName_;
  /**
   * <code>optional string modelName = 1;</code>
   */
  public String getModelName() {
    Object ref = modelName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      modelName_ = s;
      return s;
    }
  }
  /**
   * <code>optional string modelName = 1;</code>
   */
  public com.google.protobuf.ByteString
      getModelNameBytes() {
    Object ref = modelName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      modelName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MODELVERSION_FIELD_NUMBER = 2;
  private volatile Object modelVersion_;
  /**
   * <code>optional string modelVersion = 2;</code>
   */
  public String getModelVersion() {
    Object ref = modelVersion_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      modelVersion_ = s;
      return s;
    }
  }
  /**
   * <code>optional string modelVersion = 2;</code>
   */
  public com.google.protobuf.ByteString
      getModelVersionBytes() {
    Object ref = modelVersion_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      modelVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDISHOST_FIELD_NUMBER = 3;
  private volatile Object redisHost_;
  /**
   * <code>optional string redisHost = 3;</code>
   */
  public String getRedisHost() {
    Object ref = redisHost_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisHost_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisHost = 3;</code>
   */
  public com.google.protobuf.ByteString
      getRedisHostBytes() {
    Object ref = redisHost_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisHost_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDISPORT_FIELD_NUMBER = 4;
  private volatile Object redisPort_;
  /**
   * <code>optional string redisPort = 4;</code>
   */
  public String getRedisPort() {
    Object ref = redisPort_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisPort_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisPort = 4;</code>
   */
  public com.google.protobuf.ByteString
      getRedisPortBytes() {
    Object ref = redisPort_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisPort_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDISINPUTQUEUE_FIELD_NUMBER = 5;
  private volatile Object redisInputQueue_;
  /**
   * <code>optional string redisInputQueue = 5;</code>
   */
  public String getRedisInputQueue() {
    Object ref = redisInputQueue_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisInputQueue_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisInputQueue = 5;</code>
   */
  public com.google.protobuf.ByteString
      getRedisInputQueueBytes() {
    Object ref = redisInputQueue_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisInputQueue_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDISOUTPUTQUEUE_FIELD_NUMBER = 6;
  private volatile Object redisOutputQueue_;
  /**
   * <code>optional string redisOutputQueue = 6;</code>
   */
  public String getRedisOutputQueue() {
    Object ref = redisOutputQueue_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisOutputQueue_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisOutputQueue = 6;</code>
   */
  public com.google.protobuf.ByteString
      getRedisOutputQueueBytes() {
    Object ref = redisOutputQueue_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisOutputQueue_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TIMEWINDOW_FIELD_NUMBER = 7;
  private int timeWindow_;
  /**
   * <code>optional int32 timeWindow = 7;</code>
   */
  public int getTimeWindow() {
    return timeWindow_;
  }

  public static final int COUNTWINDOW_FIELD_NUMBER = 8;
  private int countWindow_;
  /**
   * <code>optional int32 countWindow = 8;</code>
   */
  public int getCountWindow() {
    return countWindow_;
  }

  public static final int REDISSECUREENABLED_FIELD_NUMBER = 9;
  private boolean redisSecureEnabled_;
  /**
   * <code>optional bool redisSecureEnabled = 9;</code>
   */
  public boolean getRedisSecureEnabled() {
    return redisSecureEnabled_;
  }

  public static final int REDISTRUSTSTOREPATH_FIELD_NUMBER = 10;
  private volatile Object redisTrustStorePath_;
  /**
   * <code>optional string redisTrustStorePath = 10;</code>
   */
  public String getRedisTrustStorePath() {
    Object ref = redisTrustStorePath_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisTrustStorePath_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisTrustStorePath = 10;</code>
   */
  public com.google.protobuf.ByteString
      getRedisTrustStorePathBytes() {
    Object ref = redisTrustStorePath_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisTrustStorePath_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDISTRUSTSTORETOKEN_FIELD_NUMBER = 11;
  private volatile Object redisTrustStoreToken_;
  /**
   * <code>optional string redisTrustStoreToken = 11;</code>
   */
  public String getRedisTrustStoreToken() {
    Object ref = redisTrustStoreToken_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      redisTrustStoreToken_ = s;
      return s;
    }
  }
  /**
   * <code>optional string redisTrustStoreToken = 11;</code>
   */
  public com.google.protobuf.ByteString
      getRedisTrustStoreTokenBytes() {
    Object ref = redisTrustStoreToken_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      redisTrustStoreToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FEATURES_FIELD_NUMBER = 12;
  private volatile Object features_;
  /**
   * <code>optional string features = 12;</code>
   */
  public String getFeatures() {
    Object ref = features_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      features_ = s;
      return s;
    }
  }
  /**
   * <code>optional string features = 12;</code>
   */
  public com.google.protobuf.ByteString
      getFeaturesBytes() {
    Object ref = features_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      features_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getModelNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_);
    }
    if (!getModelVersionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelVersion_);
    }
    if (!getRedisHostBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redisHost_);
    }
    if (!getRedisPortBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, redisPort_);
    }
    if (!getRedisInputQueueBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, redisInputQueue_);
    }
    if (!getRedisOutputQueueBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, redisOutputQueue_);
    }
    if (timeWindow_ != 0) {
      output.writeInt32(7, timeWindow_);
    }
    if (countWindow_ != 0) {
      output.writeInt32(8, countWindow_);
    }
    if (redisSecureEnabled_ != false) {
      output.writeBool(9, redisSecureEnabled_);
    }
    if (!getRedisTrustStorePathBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, redisTrustStorePath_);
    }
    if (!getRedisTrustStoreTokenBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, redisTrustStoreToken_);
    }
    if (!getFeaturesBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, features_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getModelNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelName_);
    }
    if (!getModelVersionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelVersion_);
    }
    if (!getRedisHostBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redisHost_);
    }
    if (!getRedisPortBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, redisPort_);
    }
    if (!getRedisInputQueueBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, redisInputQueue_);
    }
    if (!getRedisOutputQueueBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, redisOutputQueue_);
    }
    if (timeWindow_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, timeWindow_);
    }
    if (countWindow_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, countWindow_);
    }
    if (redisSecureEnabled_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(9, redisSecureEnabled_);
    }
    if (!getRedisTrustStorePathBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, redisTrustStorePath_);
    }
    if (!getRedisTrustStoreTokenBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, redisTrustStoreToken_);
    }
    if (!getFeaturesBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, features_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof ClusterServingGRPCMetaData)) {
      return super.equals(obj);
    }
    ClusterServingGRPCMetaData other = (ClusterServingGRPCMetaData) obj;

    boolean result = true;
    result = result && getModelName()
        .equals(other.getModelName());
    result = result && getModelVersion()
        .equals(other.getModelVersion());
    result = result && getRedisHost()
        .equals(other.getRedisHost());
    result = result && getRedisPort()
        .equals(other.getRedisPort());
    result = result && getRedisInputQueue()
        .equals(other.getRedisInputQueue());
    result = result && getRedisOutputQueue()
        .equals(other.getRedisOutputQueue());
    result = result && (getTimeWindow()
        == other.getTimeWindow());
    result = result && (getCountWindow()
        == other.getCountWindow());
    result = result && (getRedisSecureEnabled()
        == other.getRedisSecureEnabled());
    result = result && getRedisTrustStorePath()
        .equals(other.getRedisTrustStorePath());
    result = result && getRedisTrustStoreToken()
        .equals(other.getRedisTrustStoreToken());
    result = result && getFeatures()
        .equals(other.getFeatures());
    return result;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptorForType().hashCode();
    hash = (37 * hash) + MODELNAME_FIELD_NUMBER;
    hash = (53 * hash) + getModelName().hashCode();
    hash = (37 * hash) + MODELVERSION_FIELD_NUMBER;
    hash = (53 * hash) + getModelVersion().hashCode();
    hash = (37 * hash) + REDISHOST_FIELD_NUMBER;
    hash = (53 * hash) + getRedisHost().hashCode();
    hash = (37 * hash) + REDISPORT_FIELD_NUMBER;
    hash = (53 * hash) + getRedisPort().hashCode();
    hash = (37 * hash) + REDISINPUTQUEUE_FIELD_NUMBER;
    hash = (53 * hash) + getRedisInputQueue().hashCode();
    hash = (37 * hash) + REDISOUTPUTQUEUE_FIELD_NUMBER;
    hash = (53 * hash) + getRedisOutputQueue().hashCode();
    hash = (37 * hash) + TIMEWINDOW_FIELD_NUMBER;
    hash = (53 * hash) + getTimeWindow();
    hash = (37 * hash) + COUNTWINDOW_FIELD_NUMBER;
    hash = (53 * hash) + getCountWindow();
    hash = (37 * hash) + REDISSECUREENABLED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getRedisSecureEnabled());
    hash = (37 * hash) + REDISTRUSTSTOREPATH_FIELD_NUMBER;
    hash = (53 * hash) + getRedisTrustStorePath().hashCode();
    hash = (37 * hash) + REDISTRUSTSTORETOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getRedisTrustStoreToken().hashCode();
    hash = (37 * hash) + FEATURES_FIELD_NUMBER;
    hash = (53 * hash) + getFeatures().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(ClusterServingGRPCMetaData prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code grpc.ClusterServingGRPCMetaData}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:grpc.ClusterServingGRPCMetaData)
      ClusterServingGRPCMetaDataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return GrpcFrontEndProto.internal_static_grpc_ClusterServingGRPCMetaData_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return GrpcFrontEndProto.internal_static_grpc_ClusterServingGRPCMetaData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ClusterServingGRPCMetaData.class, ClusterServingGRPCMetaData.Builder.class);
    }

    // Construct using com.intel.analytics.zoo.serving.grpc.service.com.intel.analytics.zoo.serving.generated.ClusterServingGRPCMetaData.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      modelName_ = "";

      modelVersion_ = "";

      redisHost_ = "";

      redisPort_ = "";

      redisInputQueue_ = "";

      redisOutputQueue_ = "";

      timeWindow_ = 0;

      countWindow_ = 0;

      redisSecureEnabled_ = false;

      redisTrustStorePath_ = "";

      redisTrustStoreToken_ = "";

      features_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return GrpcFrontEndProto.internal_static_grpc_ClusterServingGRPCMetaData_descriptor;
    }

    public ClusterServingGRPCMetaData getDefaultInstanceForType() {
      return ClusterServingGRPCMetaData.getDefaultInstance();
    }

    public ClusterServingGRPCMetaData build() {
      ClusterServingGRPCMetaData result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public ClusterServingGRPCMetaData buildPartial() {
      ClusterServingGRPCMetaData result = new ClusterServingGRPCMetaData(this);
      result.modelName_ = modelName_;
      result.modelVersion_ = modelVersion_;
      result.redisHost_ = redisHost_;
      result.redisPort_ = redisPort_;
      result.redisInputQueue_ = redisInputQueue_;
      result.redisOutputQueue_ = redisOutputQueue_;
      result.timeWindow_ = timeWindow_;
      result.countWindow_ = countWindow_;
      result.redisSecureEnabled_ = redisSecureEnabled_;
      result.redisTrustStorePath_ = redisTrustStorePath_;
      result.redisTrustStoreToken_ = redisTrustStoreToken_;
      result.features_ = features_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof ClusterServingGRPCMetaData) {
        return mergeFrom((ClusterServingGRPCMetaData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ClusterServingGRPCMetaData other) {
      if (other == ClusterServingGRPCMetaData.getDefaultInstance()) return this;
      if (!other.getModelName().isEmpty()) {
        modelName_ = other.modelName_;
        onChanged();
      }
      if (!other.getModelVersion().isEmpty()) {
        modelVersion_ = other.modelVersion_;
        onChanged();
      }
      if (!other.getRedisHost().isEmpty()) {
        redisHost_ = other.redisHost_;
        onChanged();
      }
      if (!other.getRedisPort().isEmpty()) {
        redisPort_ = other.redisPort_;
        onChanged();
      }
      if (!other.getRedisInputQueue().isEmpty()) {
        redisInputQueue_ = other.redisInputQueue_;
        onChanged();
      }
      if (!other.getRedisOutputQueue().isEmpty()) {
        redisOutputQueue_ = other.redisOutputQueue_;
        onChanged();
      }
      if (other.getTimeWindow() != 0) {
        setTimeWindow(other.getTimeWindow());
      }
      if (other.getCountWindow() != 0) {
        setCountWindow(other.getCountWindow());
      }
      if (other.getRedisSecureEnabled() != false) {
        setRedisSecureEnabled(other.getRedisSecureEnabled());
      }
      if (!other.getRedisTrustStorePath().isEmpty()) {
        redisTrustStorePath_ = other.redisTrustStorePath_;
        onChanged();
      }
      if (!other.getRedisTrustStoreToken().isEmpty()) {
        redisTrustStoreToken_ = other.redisTrustStoreToken_;
        onChanged();
      }
      if (!other.getFeatures().isEmpty()) {
        features_ = other.features_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      ClusterServingGRPCMetaData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ClusterServingGRPCMetaData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private Object modelName_ = "";
    /**
     * <code>optional string modelName = 1;</code>
     */
    public String getModelName() {
      Object ref = modelName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        modelName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string modelName = 1;</code>
     */
    public com.google.protobuf.ByteString
        getModelNameBytes() {
      Object ref = modelName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        modelName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string modelName = 1;</code>
     */
    public Builder setModelName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      modelName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelName = 1;</code>
     */
    public Builder clearModelName() {

      modelName_ = getDefaultInstance().getModelName();
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelName = 1;</code>
     */
    public Builder setModelNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      modelName_ = value;
      onChanged();
      return this;
    }

    private Object modelVersion_ = "";
    /**
     * <code>optional string modelVersion = 2;</code>
     */
    public String getModelVersion() {
      Object ref = modelVersion_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        modelVersion_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string modelVersion = 2;</code>
     */
    public com.google.protobuf.ByteString
        getModelVersionBytes() {
      Object ref = modelVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        modelVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string modelVersion = 2;</code>
     */
    public Builder setModelVersion(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      modelVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelVersion = 2;</code>
     */
    public Builder clearModelVersion() {

      modelVersion_ = getDefaultInstance().getModelVersion();
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelVersion = 2;</code>
     */
    public Builder setModelVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      modelVersion_ = value;
      onChanged();
      return this;
    }

    private Object redisHost_ = "";
    /**
     * <code>optional string redisHost = 3;</code>
     */
    public String getRedisHost() {
      Object ref = redisHost_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisHost_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisHost = 3;</code>
     */
    public com.google.protobuf.ByteString
        getRedisHostBytes() {
      Object ref = redisHost_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisHost_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisHost = 3;</code>
     */
    public Builder setRedisHost(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisHost_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisHost = 3;</code>
     */
    public Builder clearRedisHost() {

      redisHost_ = getDefaultInstance().getRedisHost();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisHost = 3;</code>
     */
    public Builder setRedisHostBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisHost_ = value;
      onChanged();
      return this;
    }

    private Object redisPort_ = "";
    /**
     * <code>optional string redisPort = 4;</code>
     */
    public String getRedisPort() {
      Object ref = redisPort_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisPort_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisPort = 4;</code>
     */
    public com.google.protobuf.ByteString
        getRedisPortBytes() {
      Object ref = redisPort_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisPort_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisPort = 4;</code>
     */
    public Builder setRedisPort(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisPort_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisPort = 4;</code>
     */
    public Builder clearRedisPort() {

      redisPort_ = getDefaultInstance().getRedisPort();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisPort = 4;</code>
     */
    public Builder setRedisPortBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisPort_ = value;
      onChanged();
      return this;
    }

    private Object redisInputQueue_ = "";
    /**
     * <code>optional string redisInputQueue = 5;</code>
     */
    public String getRedisInputQueue() {
      Object ref = redisInputQueue_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisInputQueue_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisInputQueue = 5;</code>
     */
    public com.google.protobuf.ByteString
        getRedisInputQueueBytes() {
      Object ref = redisInputQueue_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisInputQueue_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisInputQueue = 5;</code>
     */
    public Builder setRedisInputQueue(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisInputQueue_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisInputQueue = 5;</code>
     */
    public Builder clearRedisInputQueue() {

      redisInputQueue_ = getDefaultInstance().getRedisInputQueue();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisInputQueue = 5;</code>
     */
    public Builder setRedisInputQueueBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisInputQueue_ = value;
      onChanged();
      return this;
    }

    private Object redisOutputQueue_ = "";
    /**
     * <code>optional string redisOutputQueue = 6;</code>
     */
    public String getRedisOutputQueue() {
      Object ref = redisOutputQueue_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisOutputQueue_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisOutputQueue = 6;</code>
     */
    public com.google.protobuf.ByteString
        getRedisOutputQueueBytes() {
      Object ref = redisOutputQueue_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisOutputQueue_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisOutputQueue = 6;</code>
     */
    public Builder setRedisOutputQueue(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisOutputQueue_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisOutputQueue = 6;</code>
     */
    public Builder clearRedisOutputQueue() {

      redisOutputQueue_ = getDefaultInstance().getRedisOutputQueue();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisOutputQueue = 6;</code>
     */
    public Builder setRedisOutputQueueBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisOutputQueue_ = value;
      onChanged();
      return this;
    }

    private int timeWindow_ ;
    /**
     * <code>optional int32 timeWindow = 7;</code>
     */
    public int getTimeWindow() {
      return timeWindow_;
    }
    /**
     * <code>optional int32 timeWindow = 7;</code>
     */
    public Builder setTimeWindow(int value) {

      timeWindow_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional int32 timeWindow = 7;</code>
     */
    public Builder clearTimeWindow() {

      timeWindow_ = 0;
      onChanged();
      return this;
    }

    private int countWindow_ ;
    /**
     * <code>optional int32 countWindow = 8;</code>
     */
    public int getCountWindow() {
      return countWindow_;
    }
    /**
     * <code>optional int32 countWindow = 8;</code>
     */
    public Builder setCountWindow(int value) {

      countWindow_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional int32 countWindow = 8;</code>
     */
    public Builder clearCountWindow() {

      countWindow_ = 0;
      onChanged();
      return this;
    }

    private boolean redisSecureEnabled_ ;
    /**
     * <code>optional bool redisSecureEnabled = 9;</code>
     */
    public boolean getRedisSecureEnabled() {
      return redisSecureEnabled_;
    }
    /**
     * <code>optional bool redisSecureEnabled = 9;</code>
     */
    public Builder setRedisSecureEnabled(boolean value) {

      redisSecureEnabled_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional bool redisSecureEnabled = 9;</code>
     */
    public Builder clearRedisSecureEnabled() {

      redisSecureEnabled_ = false;
      onChanged();
      return this;
    }

    private Object redisTrustStorePath_ = "";
    /**
     * <code>optional string redisTrustStorePath = 10;</code>
     */
    public String getRedisTrustStorePath() {
      Object ref = redisTrustStorePath_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisTrustStorePath_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisTrustStorePath = 10;</code>
     */
    public com.google.protobuf.ByteString
        getRedisTrustStorePathBytes() {
      Object ref = redisTrustStorePath_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisTrustStorePath_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisTrustStorePath = 10;</code>
     */
    public Builder setRedisTrustStorePath(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisTrustStorePath_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisTrustStorePath = 10;</code>
     */
    public Builder clearRedisTrustStorePath() {

      redisTrustStorePath_ = getDefaultInstance().getRedisTrustStorePath();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisTrustStorePath = 10;</code>
     */
    public Builder setRedisTrustStorePathBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisTrustStorePath_ = value;
      onChanged();
      return this;
    }

    private Object redisTrustStoreToken_ = "";
    /**
     * <code>optional string redisTrustStoreToken = 11;</code>
     */
    public String getRedisTrustStoreToken() {
      Object ref = redisTrustStoreToken_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        redisTrustStoreToken_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string redisTrustStoreToken = 11;</code>
     */
    public com.google.protobuf.ByteString
        getRedisTrustStoreTokenBytes() {
      Object ref = redisTrustStoreToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        redisTrustStoreToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string redisTrustStoreToken = 11;</code>
     */
    public Builder setRedisTrustStoreToken(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      redisTrustStoreToken_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisTrustStoreToken = 11;</code>
     */
    public Builder clearRedisTrustStoreToken() {

      redisTrustStoreToken_ = getDefaultInstance().getRedisTrustStoreToken();
      onChanged();
      return this;
    }
    /**
     * <code>optional string redisTrustStoreToken = 11;</code>
     */
    public Builder setRedisTrustStoreTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      redisTrustStoreToken_ = value;
      onChanged();
      return this;
    }

    private Object features_ = "";
    /**
     * <code>optional string features = 12;</code>
     */
    public String getFeatures() {
      Object ref = features_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        features_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string features = 12;</code>
     */
    public com.google.protobuf.ByteString
        getFeaturesBytes() {
      Object ref = features_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        features_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string features = 12;</code>
     */
    public Builder setFeatures(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      features_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string features = 12;</code>
     */
    public Builder clearFeatures() {

      features_ = getDefaultInstance().getFeatures();
      onChanged();
      return this;
    }
    /**
     * <code>optional string features = 12;</code>
     */
    public Builder setFeaturesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      features_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:grpc.ClusterServingGRPCMetaData)
  }

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

  public static ClusterServingGRPCMetaData getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ClusterServingGRPCMetaData>
      PARSER = new com.google.protobuf.AbstractParser<ClusterServingGRPCMetaData>() {
    public ClusterServingGRPCMetaData parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClusterServingGRPCMetaData(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<ClusterServingGRPCMetaData> parser() {
    return PARSER;
  }

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

  public ClusterServingGRPCMetaData getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

