// 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.InferenceModelGRPCMetaData}
 */
public  final class InferenceModelGRPCMetaData extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.InferenceModelGRPCMetaData)
    InferenceModelGRPCMetaDataOrBuilder {
  // Use InferenceModelGRPCMetaData.newBuilder() to construct.
  private InferenceModelGRPCMetaData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private InferenceModelGRPCMetaData() {
    modelName_ = "";
    modelVersion_ = "";
    modelPath_ = "";
    modelType_ = "";
    weightPath_ = "";
    modelConCurrentNum_ = 0;
    inputCompileType_ = "";
    features_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private InferenceModelGRPCMetaData(
      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();

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

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

            weightPath_ = s;
            break;
          }
          case 48: {

            modelConCurrentNum_ = input.readInt32();
            break;
          }
          case 58: {
            String s = input.readStringRequireUtf8();

            inputCompileType_ = s;
            break;
          }
          case 66: {
            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_InferenceModelGRPCMetaData_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return GrpcFrontEndProto.internal_static_grpc_InferenceModelGRPCMetaData_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            InferenceModelGRPCMetaData.class, InferenceModelGRPCMetaData.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 MODELPATH_FIELD_NUMBER = 3;
  private volatile Object modelPath_;
  /**
   * <code>optional string modelPath = 3;</code>
   */
  public String getModelPath() {
    Object ref = modelPath_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      modelPath_ = s;
      return s;
    }
  }
  /**
   * <code>optional string modelPath = 3;</code>
   */
  public com.google.protobuf.ByteString
      getModelPathBytes() {
    Object ref = modelPath_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      modelPath_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MODELTYPE_FIELD_NUMBER = 4;
  private volatile Object modelType_;
  /**
   * <code>optional string modelType = 4;</code>
   */
  public String getModelType() {
    Object ref = modelType_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      modelType_ = s;
      return s;
    }
  }
  /**
   * <code>optional string modelType = 4;</code>
   */
  public com.google.protobuf.ByteString
      getModelTypeBytes() {
    Object ref = modelType_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      modelType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WEIGHTPATH_FIELD_NUMBER = 5;
  private volatile Object weightPath_;
  /**
   * <code>optional string weightPath = 5;</code>
   */
  public String getWeightPath() {
    Object ref = weightPath_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      weightPath_ = s;
      return s;
    }
  }
  /**
   * <code>optional string weightPath = 5;</code>
   */
  public com.google.protobuf.ByteString
      getWeightPathBytes() {
    Object ref = weightPath_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      weightPath_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MODELCONCURRENTNUM_FIELD_NUMBER = 6;
  private int modelConCurrentNum_;
  /**
   * <code>optional int32 modelConCurrentNum = 6;</code>
   */
  public int getModelConCurrentNum() {
    return modelConCurrentNum_;
  }

  public static final int INPUTCOMPILETYPE_FIELD_NUMBER = 7;
  private volatile Object inputCompileType_;
  /**
   * <pre>
   *direct or instance
   * </pre>
   *
   * <code>optional string inputCompileType = 7;</code>
   */
  public String getInputCompileType() {
    Object ref = inputCompileType_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      inputCompileType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *direct or instance
   * </pre>
   *
   * <code>optional string inputCompileType = 7;</code>
   */
  public com.google.protobuf.ByteString
      getInputCompileTypeBytes() {
    Object ref = inputCompileType_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      inputCompileType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FEATURES_FIELD_NUMBER = 8;
  private volatile Object features_;
  /**
   * <code>optional string features = 8;</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 = 8;</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 (!getModelPathBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelPath_);
    }
    if (!getModelTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelType_);
    }
    if (!getWeightPathBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, weightPath_);
    }
    if (modelConCurrentNum_ != 0) {
      output.writeInt32(6, modelConCurrentNum_);
    }
    if (!getInputCompileTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputCompileType_);
    }
    if (!getFeaturesBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, 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 (!getModelPathBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelPath_);
    }
    if (!getModelTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelType_);
    }
    if (!getWeightPathBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, weightPath_);
    }
    if (modelConCurrentNum_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, modelConCurrentNum_);
    }
    if (!getInputCompileTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inputCompileType_);
    }
    if (!getFeaturesBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, 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 InferenceModelGRPCMetaData)) {
      return super.equals(obj);
    }
    InferenceModelGRPCMetaData other = (InferenceModelGRPCMetaData) obj;

    boolean result = true;
    result = result && getModelName()
        .equals(other.getModelName());
    result = result && getModelVersion()
        .equals(other.getModelVersion());
    result = result && getModelPath()
        .equals(other.getModelPath());
    result = result && getModelType()
        .equals(other.getModelType());
    result = result && getWeightPath()
        .equals(other.getWeightPath());
    result = result && (getModelConCurrentNum()
        == other.getModelConCurrentNum());
    result = result && getInputCompileType()
        .equals(other.getInputCompileType());
    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) + MODELPATH_FIELD_NUMBER;
    hash = (53 * hash) + getModelPath().hashCode();
    hash = (37 * hash) + MODELTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getModelType().hashCode();
    hash = (37 * hash) + WEIGHTPATH_FIELD_NUMBER;
    hash = (53 * hash) + getWeightPath().hashCode();
    hash = (37 * hash) + MODELCONCURRENTNUM_FIELD_NUMBER;
    hash = (53 * hash) + getModelConCurrentNum();
    hash = (37 * hash) + INPUTCOMPILETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInputCompileType().hashCode();
    hash = (37 * hash) + FEATURES_FIELD_NUMBER;
    hash = (53 * hash) + getFeatures().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static InferenceModelGRPCMetaData parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static InferenceModelGRPCMetaData parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static InferenceModelGRPCMetaData parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static InferenceModelGRPCMetaData parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static InferenceModelGRPCMetaData parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static InferenceModelGRPCMetaData 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 InferenceModelGRPCMetaData parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static InferenceModelGRPCMetaData 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 InferenceModelGRPCMetaData parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static InferenceModelGRPCMetaData 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(InferenceModelGRPCMetaData 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.InferenceModelGRPCMetaData}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:grpc.InferenceModelGRPCMetaData)
      InferenceModelGRPCMetaDataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return GrpcFrontEndProto.internal_static_grpc_InferenceModelGRPCMetaData_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return GrpcFrontEndProto.internal_static_grpc_InferenceModelGRPCMetaData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              InferenceModelGRPCMetaData.class, InferenceModelGRPCMetaData.Builder.class);
    }

    // Construct using com.intel.analytics.zoo.serving.grpc.service.com.intel.analytics.zoo.serving.generated.InferenceModelGRPCMetaData.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_ = "";

      modelPath_ = "";

      modelType_ = "";

      weightPath_ = "";

      modelConCurrentNum_ = 0;

      inputCompileType_ = "";

      features_ = "";

      return this;
    }

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

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

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

    public InferenceModelGRPCMetaData buildPartial() {
      InferenceModelGRPCMetaData result = new InferenceModelGRPCMetaData(this);
      result.modelName_ = modelName_;
      result.modelVersion_ = modelVersion_;
      result.modelPath_ = modelPath_;
      result.modelType_ = modelType_;
      result.weightPath_ = weightPath_;
      result.modelConCurrentNum_ = modelConCurrentNum_;
      result.inputCompileType_ = inputCompileType_;
      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 InferenceModelGRPCMetaData) {
        return mergeFrom((InferenceModelGRPCMetaData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(InferenceModelGRPCMetaData other) {
      if (other == InferenceModelGRPCMetaData.getDefaultInstance()) return this;
      if (!other.getModelName().isEmpty()) {
        modelName_ = other.modelName_;
        onChanged();
      }
      if (!other.getModelVersion().isEmpty()) {
        modelVersion_ = other.modelVersion_;
        onChanged();
      }
      if (!other.getModelPath().isEmpty()) {
        modelPath_ = other.modelPath_;
        onChanged();
      }
      if (!other.getModelType().isEmpty()) {
        modelType_ = other.modelType_;
        onChanged();
      }
      if (!other.getWeightPath().isEmpty()) {
        weightPath_ = other.weightPath_;
        onChanged();
      }
      if (other.getModelConCurrentNum() != 0) {
        setModelConCurrentNum(other.getModelConCurrentNum());
      }
      if (!other.getInputCompileType().isEmpty()) {
        inputCompileType_ = other.inputCompileType_;
        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 {
      InferenceModelGRPCMetaData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (InferenceModelGRPCMetaData) 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 modelPath_ = "";
    /**
     * <code>optional string modelPath = 3;</code>
     */
    public String getModelPath() {
      Object ref = modelPath_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        modelPath_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>optional string modelPath = 3;</code>
     */
    public com.google.protobuf.ByteString
        getModelPathBytes() {
      Object ref = modelPath_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        modelPath_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string modelPath = 3;</code>
     */
    public Builder setModelPath(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      modelPath_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelPath = 3;</code>
     */
    public Builder clearModelPath() {

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

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

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

      modelType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string modelType = 4;</code>
     */
    public Builder clearModelType() {

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

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

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

      weightPath_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string weightPath = 5;</code>
     */
    public Builder clearWeightPath() {

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

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

    private int modelConCurrentNum_ ;
    /**
     * <code>optional int32 modelConCurrentNum = 6;</code>
     */
    public int getModelConCurrentNum() {
      return modelConCurrentNum_;
    }
    /**
     * <code>optional int32 modelConCurrentNum = 6;</code>
     */
    public Builder setModelConCurrentNum(int value) {

      modelConCurrentNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional int32 modelConCurrentNum = 6;</code>
     */
    public Builder clearModelConCurrentNum() {

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

    private Object inputCompileType_ = "";
    /**
     * <pre>
     *direct or instance
     * </pre>
     *
     * <code>optional string inputCompileType = 7;</code>
     */
    public String getInputCompileType() {
      Object ref = inputCompileType_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        inputCompileType_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *direct or instance
     * </pre>
     *
     * <code>optional string inputCompileType = 7;</code>
     */
    public com.google.protobuf.ByteString
        getInputCompileTypeBytes() {
      Object ref = inputCompileType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        inputCompileType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *direct or instance
     * </pre>
     *
     * <code>optional string inputCompileType = 7;</code>
     */
    public Builder setInputCompileType(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      inputCompileType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *direct or instance
     * </pre>
     *
     * <code>optional string inputCompileType = 7;</code>
     */
    public Builder clearInputCompileType() {

      inputCompileType_ = getDefaultInstance().getInputCompileType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *direct or instance
     * </pre>
     *
     * <code>optional string inputCompileType = 7;</code>
     */
    public Builder setInputCompileTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

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

    private Object features_ = "";
    /**
     * <code>optional string features = 8;</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 = 8;</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 = 8;</code>
     */
    public Builder setFeatures(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

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

      features_ = getDefaultInstance().getFeatures();
      onChanged();
      return this;
    }
    /**
     * <code>optional string features = 8;</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.InferenceModelGRPCMetaData)
  }

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

  public static InferenceModelGRPCMetaData getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public InferenceModelGRPCMetaData getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

