// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/saved_object_graph.proto

package org.tensorflow.proto.framework;

/**
 * <pre>
 * Stores low-level information about a concrete function. Referenced in either
 * a SavedFunction or a SavedBareConcreteFunction.
 * </pre>
 *
 * Protobuf type {@code tensorflow.SavedConcreteFunction}
 */
public  final class SavedConcreteFunction extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.SavedConcreteFunction)
    SavedConcreteFunctionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SavedConcreteFunction.newBuilder() to construct.
  private SavedConcreteFunction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SavedConcreteFunction() {
    boundInputs_ = emptyIntList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SavedConcreteFunction(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 16: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              boundInputs_ = newIntList();
              mutable_bitField0_ |= 0x00000001;
            }
            boundInputs_.addInt(input.readInt32());
            break;
          }
          case 18: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
              boundInputs_ = newIntList();
              mutable_bitField0_ |= 0x00000001;
            }
            while (input.getBytesUntilLimit() > 0) {
              boundInputs_.addInt(input.readInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 26: {
            org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null;
            if (canonicalizedInputSignature_ != null) {
              subBuilder = canonicalizedInputSignature_.toBuilder();
            }
            canonicalizedInputSignature_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(canonicalizedInputSignature_);
              canonicalizedInputSignature_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null;
            if (outputSignature_ != null) {
              subBuilder = outputSignature_.toBuilder();
            }
            outputSignature_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(outputSignature_);
              outputSignature_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        boundInputs_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.framework.SavedConcreteFunction.class, org.tensorflow.proto.framework.SavedConcreteFunction.Builder.class);
  }

  public static final int BOUND_INPUTS_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.IntList boundInputs_;
  /**
   * <code>repeated int32 bound_inputs = 2;</code>
   */
  public java.util.List<java.lang.Integer>
      getBoundInputsList() {
    return boundInputs_;
  }
  /**
   * <code>repeated int32 bound_inputs = 2;</code>
   */
  public int getBoundInputsCount() {
    return boundInputs_.size();
  }
  /**
   * <code>repeated int32 bound_inputs = 2;</code>
   */
  public int getBoundInputs(int index) {
    return boundInputs_.getInt(index);
  }
  private int boundInputsMemoizedSerializedSize = -1;

  public static final int CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER = 3;
  private org.tensorflow.proto.framework.StructuredValue canonicalizedInputSignature_;
  /**
   * <pre>
   * Input in canonicalized form that was received to create this concrete
   * function.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
   */
  public boolean hasCanonicalizedInputSignature() {
    return canonicalizedInputSignature_ != null;
  }
  /**
   * <pre>
   * Input in canonicalized form that was received to create this concrete
   * function.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
   */
  public org.tensorflow.proto.framework.StructuredValue getCanonicalizedInputSignature() {
    return canonicalizedInputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_;
  }
  /**
   * <pre>
   * Input in canonicalized form that was received to create this concrete
   * function.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
   */
  public org.tensorflow.proto.framework.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() {
    return getCanonicalizedInputSignature();
  }

  public static final int OUTPUT_SIGNATURE_FIELD_NUMBER = 4;
  private org.tensorflow.proto.framework.StructuredValue outputSignature_;
  /**
   * <pre>
   * Output that was the return value of this function after replacing all
   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
   * be used to reconstruct the full structure from pure tensors.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue output_signature = 4;</code>
   */
  public boolean hasOutputSignature() {
    return outputSignature_ != null;
  }
  /**
   * <pre>
   * Output that was the return value of this function after replacing all
   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
   * be used to reconstruct the full structure from pure tensors.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue output_signature = 4;</code>
   */
  public org.tensorflow.proto.framework.StructuredValue getOutputSignature() {
    return outputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_;
  }
  /**
   * <pre>
   * Output that was the return value of this function after replacing all
   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
   * be used to reconstruct the full structure from pure tensors.
   * </pre>
   *
   * <code>.tensorflow.StructuredValue output_signature = 4;</code>
   */
  public org.tensorflow.proto.framework.StructuredValueOrBuilder getOutputSignatureOrBuilder() {
    return getOutputSignature();
  }

  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 {
    getSerializedSize();
    if (getBoundInputsList().size() > 0) {
      output.writeUInt32NoTag(18);
      output.writeUInt32NoTag(boundInputsMemoizedSerializedSize);
    }
    for (int i = 0; i < boundInputs_.size(); i++) {
      output.writeInt32NoTag(boundInputs_.getInt(i));
    }
    if (canonicalizedInputSignature_ != null) {
      output.writeMessage(3, getCanonicalizedInputSignature());
    }
    if (outputSignature_ != null) {
      output.writeMessage(4, getOutputSignature());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < boundInputs_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeInt32SizeNoTag(boundInputs_.getInt(i));
      }
      size += dataSize;
      if (!getBoundInputsList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      boundInputsMemoizedSerializedSize = dataSize;
    }
    if (canonicalizedInputSignature_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getCanonicalizedInputSignature());
    }
    if (outputSignature_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getOutputSignature());
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof org.tensorflow.proto.framework.SavedConcreteFunction)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.framework.SavedConcreteFunction other = (org.tensorflow.proto.framework.SavedConcreteFunction) obj;

    if (!getBoundInputsList()
        .equals(other.getBoundInputsList())) return false;
    if (hasCanonicalizedInputSignature() != other.hasCanonicalizedInputSignature()) return false;
    if (hasCanonicalizedInputSignature()) {
      if (!getCanonicalizedInputSignature()
          .equals(other.getCanonicalizedInputSignature())) return false;
    }
    if (hasOutputSignature() != other.hasOutputSignature()) return false;
    if (hasOutputSignature()) {
      if (!getOutputSignature()
          .equals(other.getOutputSignature())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getBoundInputsCount() > 0) {
      hash = (37 * hash) + BOUND_INPUTS_FIELD_NUMBER;
      hash = (53 * hash) + getBoundInputsList().hashCode();
    }
    if (hasCanonicalizedInputSignature()) {
      hash = (37 * hash) + CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER;
      hash = (53 * hash) + getCanonicalizedInputSignature().hashCode();
    }
    if (hasOutputSignature()) {
      hash = (37 * hash) + OUTPUT_SIGNATURE_FIELD_NUMBER;
      hash = (53 * hash) + getOutputSignature().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction 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 org.tensorflow.proto.framework.SavedConcreteFunction parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction 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 org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.SavedConcreteFunction 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(org.tensorflow.proto.framework.SavedConcreteFunction 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;
  }
  /**
   * <pre>
   * Stores low-level information about a concrete function. Referenced in either
   * a SavedFunction or a SavedBareConcreteFunction.
   * </pre>
   *
   * Protobuf type {@code tensorflow.SavedConcreteFunction}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.SavedConcreteFunction)
      org.tensorflow.proto.framework.SavedConcreteFunctionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.SavedConcreteFunction.class, org.tensorflow.proto.framework.SavedConcreteFunction.Builder.class);
    }

    // Construct using org.tensorflow.proto.framework.SavedConcreteFunction.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      boundInputs_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000001);
      if (canonicalizedInputSignatureBuilder_ == null) {
        canonicalizedInputSignature_ = null;
      } else {
        canonicalizedInputSignature_ = null;
        canonicalizedInputSignatureBuilder_ = null;
      }
      if (outputSignatureBuilder_ == null) {
        outputSignature_ = null;
      } else {
        outputSignature_ = null;
        outputSignatureBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstanceForType() {
      return org.tensorflow.proto.framework.SavedConcreteFunction.getDefaultInstance();
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.SavedConcreteFunction build() {
      org.tensorflow.proto.framework.SavedConcreteFunction result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.SavedConcreteFunction buildPartial() {
      org.tensorflow.proto.framework.SavedConcreteFunction result = new org.tensorflow.proto.framework.SavedConcreteFunction(this);
      int from_bitField0_ = bitField0_;
      if (((bitField0_ & 0x00000001) != 0)) {
        boundInputs_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.boundInputs_ = boundInputs_;
      if (canonicalizedInputSignatureBuilder_ == null) {
        result.canonicalizedInputSignature_ = canonicalizedInputSignature_;
      } else {
        result.canonicalizedInputSignature_ = canonicalizedInputSignatureBuilder_.build();
      }
      if (outputSignatureBuilder_ == null) {
        result.outputSignature_ = outputSignature_;
      } else {
        result.outputSignature_ = outputSignatureBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @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 org.tensorflow.proto.framework.SavedConcreteFunction) {
        return mergeFrom((org.tensorflow.proto.framework.SavedConcreteFunction)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.framework.SavedConcreteFunction other) {
      if (other == org.tensorflow.proto.framework.SavedConcreteFunction.getDefaultInstance()) return this;
      if (!other.boundInputs_.isEmpty()) {
        if (boundInputs_.isEmpty()) {
          boundInputs_ = other.boundInputs_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureBoundInputsIsMutable();
          boundInputs_.addAll(other.boundInputs_);
        }
        onChanged();
      }
      if (other.hasCanonicalizedInputSignature()) {
        mergeCanonicalizedInputSignature(other.getCanonicalizedInputSignature());
      }
      if (other.hasOutputSignature()) {
        mergeOutputSignature(other.getOutputSignature());
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      org.tensorflow.proto.framework.SavedConcreteFunction parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.framework.SavedConcreteFunction) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.Internal.IntList boundInputs_ = emptyIntList();
    private void ensureBoundInputsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        boundInputs_ = mutableCopy(boundInputs_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public java.util.List<java.lang.Integer>
        getBoundInputsList() {
      return ((bitField0_ & 0x00000001) != 0) ?
               java.util.Collections.unmodifiableList(boundInputs_) : boundInputs_;
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public int getBoundInputsCount() {
      return boundInputs_.size();
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public int getBoundInputs(int index) {
      return boundInputs_.getInt(index);
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public Builder setBoundInputs(
        int index, int value) {
      ensureBoundInputsIsMutable();
      boundInputs_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public Builder addBoundInputs(int value) {
      ensureBoundInputsIsMutable();
      boundInputs_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public Builder addAllBoundInputs(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureBoundInputsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, boundInputs_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 bound_inputs = 2;</code>
     */
    public Builder clearBoundInputs() {
      boundInputs_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    private org.tensorflow.proto.framework.StructuredValue canonicalizedInputSignature_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> canonicalizedInputSignatureBuilder_;
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public boolean hasCanonicalizedInputSignature() {
      return canonicalizedInputSignatureBuilder_ != null || canonicalizedInputSignature_ != null;
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public org.tensorflow.proto.framework.StructuredValue getCanonicalizedInputSignature() {
      if (canonicalizedInputSignatureBuilder_ == null) {
        return canonicalizedInputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_;
      } else {
        return canonicalizedInputSignatureBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public Builder setCanonicalizedInputSignature(org.tensorflow.proto.framework.StructuredValue value) {
      if (canonicalizedInputSignatureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        canonicalizedInputSignature_ = value;
        onChanged();
      } else {
        canonicalizedInputSignatureBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public Builder setCanonicalizedInputSignature(
        org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) {
      if (canonicalizedInputSignatureBuilder_ == null) {
        canonicalizedInputSignature_ = builderForValue.build();
        onChanged();
      } else {
        canonicalizedInputSignatureBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public Builder mergeCanonicalizedInputSignature(org.tensorflow.proto.framework.StructuredValue value) {
      if (canonicalizedInputSignatureBuilder_ == null) {
        if (canonicalizedInputSignature_ != null) {
          canonicalizedInputSignature_ =
            org.tensorflow.proto.framework.StructuredValue.newBuilder(canonicalizedInputSignature_).mergeFrom(value).buildPartial();
        } else {
          canonicalizedInputSignature_ = value;
        }
        onChanged();
      } else {
        canonicalizedInputSignatureBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public Builder clearCanonicalizedInputSignature() {
      if (canonicalizedInputSignatureBuilder_ == null) {
        canonicalizedInputSignature_ = null;
        onChanged();
      } else {
        canonicalizedInputSignature_ = null;
        canonicalizedInputSignatureBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public org.tensorflow.proto.framework.StructuredValue.Builder getCanonicalizedInputSignatureBuilder() {
      
      onChanged();
      return getCanonicalizedInputSignatureFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    public org.tensorflow.proto.framework.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() {
      if (canonicalizedInputSignatureBuilder_ != null) {
        return canonicalizedInputSignatureBuilder_.getMessageOrBuilder();
      } else {
        return canonicalizedInputSignature_ == null ?
            org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_;
      }
    }
    /**
     * <pre>
     * Input in canonicalized form that was received to create this concrete
     * function.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue canonicalized_input_signature = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> 
        getCanonicalizedInputSignatureFieldBuilder() {
      if (canonicalizedInputSignatureBuilder_ == null) {
        canonicalizedInputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>(
                getCanonicalizedInputSignature(),
                getParentForChildren(),
                isClean());
        canonicalizedInputSignature_ = null;
      }
      return canonicalizedInputSignatureBuilder_;
    }

    private org.tensorflow.proto.framework.StructuredValue outputSignature_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> outputSignatureBuilder_;
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public boolean hasOutputSignature() {
      return outputSignatureBuilder_ != null || outputSignature_ != null;
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public org.tensorflow.proto.framework.StructuredValue getOutputSignature() {
      if (outputSignatureBuilder_ == null) {
        return outputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_;
      } else {
        return outputSignatureBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public Builder setOutputSignature(org.tensorflow.proto.framework.StructuredValue value) {
      if (outputSignatureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        outputSignature_ = value;
        onChanged();
      } else {
        outputSignatureBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public Builder setOutputSignature(
        org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) {
      if (outputSignatureBuilder_ == null) {
        outputSignature_ = builderForValue.build();
        onChanged();
      } else {
        outputSignatureBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public Builder mergeOutputSignature(org.tensorflow.proto.framework.StructuredValue value) {
      if (outputSignatureBuilder_ == null) {
        if (outputSignature_ != null) {
          outputSignature_ =
            org.tensorflow.proto.framework.StructuredValue.newBuilder(outputSignature_).mergeFrom(value).buildPartial();
        } else {
          outputSignature_ = value;
        }
        onChanged();
      } else {
        outputSignatureBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public Builder clearOutputSignature() {
      if (outputSignatureBuilder_ == null) {
        outputSignature_ = null;
        onChanged();
      } else {
        outputSignature_ = null;
        outputSignatureBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public org.tensorflow.proto.framework.StructuredValue.Builder getOutputSignatureBuilder() {
      
      onChanged();
      return getOutputSignatureFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    public org.tensorflow.proto.framework.StructuredValueOrBuilder getOutputSignatureOrBuilder() {
      if (outputSignatureBuilder_ != null) {
        return outputSignatureBuilder_.getMessageOrBuilder();
      } else {
        return outputSignature_ == null ?
            org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_;
      }
    }
    /**
     * <pre>
     * Output that was the return value of this function after replacing all
     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
     * be used to reconstruct the full structure from pure tensors.
     * </pre>
     *
     * <code>.tensorflow.StructuredValue output_signature = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> 
        getOutputSignatureFieldBuilder() {
      if (outputSignatureBuilder_ == null) {
        outputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>(
                getOutputSignature(),
                getParentForChildren(),
                isClean());
        outputSignature_ = null;
      }
      return outputSignatureBuilder_;
    }
    @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:tensorflow.SavedConcreteFunction)
  }

  // @@protoc_insertion_point(class_scope:tensorflow.SavedConcreteFunction)
  private static final org.tensorflow.proto.framework.SavedConcreteFunction DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedConcreteFunction();
  }

  public static org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

