// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/grappler/costs/op_performance_data.proto

package org.tensorflow.proto.framework;

/**
 * <pre>
 * Description of an operation as well as the parameters expected to impact its
 * performance.
 * </pre>
 *
 * Protobuf type {@code tensorflow.OpInfo}
 */
public  final class OpInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.OpInfo)
    OpInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OpInfo.newBuilder() to construct.
  private OpInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OpInfo() {
    op_ = "";
    inputs_ = java.util.Collections.emptyList();
    outputs_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OpInfo(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

            op_ = s;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              attr_ = com.google.protobuf.MapField.newMapField(
                  AttrDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.String, org.tensorflow.proto.framework.AttrValue>
            attr__ = input.readMessage(
                AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            attr_.getMutableMap().put(
                attr__.getKey(), attr__.getValue());
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              inputs_ = new java.util.ArrayList<org.tensorflow.proto.framework.OpInfo.TensorProperties>();
              mutable_bitField0_ |= 0x00000002;
            }
            inputs_.add(
                input.readMessage(org.tensorflow.proto.framework.OpInfo.TensorProperties.parser(), extensionRegistry));
            break;
          }
          case 34: {
            org.tensorflow.proto.framework.DeviceProperties.Builder subBuilder = null;
            if (device_ != null) {
              subBuilder = device_.toBuilder();
            }
            device_ = input.readMessage(org.tensorflow.proto.framework.DeviceProperties.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(device_);
              device_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              outputs_ = new java.util.ArrayList<org.tensorflow.proto.framework.OpInfo.TensorProperties>();
              mutable_bitField0_ |= 0x00000004;
            }
            outputs_.add(
                input.readMessage(org.tensorflow.proto.framework.OpInfo.TensorProperties.parser(), extensionRegistry));
            break;
          }
          case 50: {
            org.tensorflow.proto.framework.SessionInfo.Builder subBuilder = null;
            if (sessionInfo_ != null) {
              subBuilder = sessionInfo_.toBuilder();
            }
            sessionInfo_ = input.readMessage(org.tensorflow.proto.framework.SessionInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(sessionInfo_);
              sessionInfo_ = 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_ & 0x00000002) != 0)) {
        inputs_ = java.util.Collections.unmodifiableList(inputs_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        outputs_ = java.util.Collections.unmodifiableList(outputs_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 2:
        return internalGetAttr();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.framework.OpInfo.class, org.tensorflow.proto.framework.OpInfo.Builder.class);
  }

  public interface TensorPropertiesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo.TensorProperties)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.tensorflow.DataType dtype = 1;</code>
     */
    int getDtypeValue();
    /**
     * <code>.tensorflow.DataType dtype = 1;</code>
     */
    org.tensorflow.proto.framework.DataType getDtype();

    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    boolean hasShape();
    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    org.tensorflow.proto.framework.TensorShapeProto getShape();
    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder();

    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    boolean hasValue();
    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    org.tensorflow.proto.framework.TensorProto getValue();
    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder();
  }
  /**
   * <pre>
   * Input data types, shapes and values if known.
   * </pre>
   *
   * Protobuf type {@code tensorflow.OpInfo.TensorProperties}
   */
  public  static final class TensorProperties extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.OpInfo.TensorProperties)
      TensorPropertiesOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TensorProperties.newBuilder() to construct.
    private TensorProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TensorProperties() {
      dtype_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TensorProperties(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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 8: {
              int rawValue = input.readEnum();

              dtype_ = rawValue;
              break;
            }
            case 18: {
              org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null;
              if (shape_ != null) {
                subBuilder = shape_.toBuilder();
              }
              shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(shape_);
                shape_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {
              org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null;
              if (value_ != null) {
                subBuilder = value_.toBuilder();
              }
              value_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(value_);
                value_ = 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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.OpInfo.TensorProperties.class, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder.class);
    }

    public static final int DTYPE_FIELD_NUMBER = 1;
    private int dtype_;
    /**
     * <code>.tensorflow.DataType dtype = 1;</code>
     */
    public int getDtypeValue() {
      return dtype_;
    }
    /**
     * <code>.tensorflow.DataType dtype = 1;</code>
     */
    public org.tensorflow.proto.framework.DataType getDtype() {
      @SuppressWarnings("deprecation")
      org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_);
      return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result;
    }

    public static final int SHAPE_FIELD_NUMBER = 2;
    private org.tensorflow.proto.framework.TensorShapeProto shape_;
    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    public boolean hasShape() {
      return shape_ != null;
    }
    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    public org.tensorflow.proto.framework.TensorShapeProto getShape() {
      return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_;
    }
    /**
     * <code>.tensorflow.TensorShapeProto shape = 2;</code>
     */
    public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
      return getShape();
    }

    public static final int VALUE_FIELD_NUMBER = 3;
    private org.tensorflow.proto.framework.TensorProto value_;
    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    public boolean hasValue() {
      return value_ != null;
    }
    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    public org.tensorflow.proto.framework.TensorProto getValue() {
      return value_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_;
    }
    /**
     * <code>.tensorflow.TensorProto value = 3;</code>
     */
    public org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder() {
      return getValue();
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
        output.writeEnum(1, dtype_);
      }
      if (shape_ != null) {
        output.writeMessage(2, getShape());
      }
      if (value_ != null) {
        output.writeMessage(3, getValue());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, dtype_);
      }
      if (shape_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getShape());
      }
      if (value_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getValue());
      }
      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.OpInfo.TensorProperties)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.OpInfo.TensorProperties other = (org.tensorflow.proto.framework.OpInfo.TensorProperties) obj;

      if (dtype_ != other.dtype_) return false;
      if (hasShape() != other.hasShape()) return false;
      if (hasShape()) {
        if (!getShape()
            .equals(other.getShape())) return false;
      }
      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (!getValue()
            .equals(other.getValue())) 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();
      hash = (37 * hash) + DTYPE_FIELD_NUMBER;
      hash = (53 * hash) + dtype_;
      if (hasShape()) {
        hash = (37 * hash) + SHAPE_FIELD_NUMBER;
        hash = (53 * hash) + getShape().hashCode();
      }
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValue().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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.OpInfo.TensorProperties parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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.OpInfo.TensorProperties parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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.OpInfo.TensorProperties parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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.OpInfo.TensorProperties parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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.OpInfo.TensorProperties 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>
     * Input data types, shapes and values if known.
     * </pre>
     *
     * Protobuf type {@code tensorflow.OpInfo.TensorProperties}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo.TensorProperties)
        org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.OpInfo.TensorProperties.class, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.OpInfo.TensorProperties.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();
        dtype_ = 0;

        if (shapeBuilder_ == null) {
          shape_ = null;
        } else {
          shape_ = null;
          shapeBuilder_ = null;
        }
        if (valueBuilder_ == null) {
          value_ = null;
        } else {
          value_ = null;
          valueBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public org.tensorflow.proto.framework.OpInfo.TensorProperties buildPartial() {
        org.tensorflow.proto.framework.OpInfo.TensorProperties result = new org.tensorflow.proto.framework.OpInfo.TensorProperties(this);
        result.dtype_ = dtype_;
        if (shapeBuilder_ == null) {
          result.shape_ = shape_;
        } else {
          result.shape_ = shapeBuilder_.build();
        }
        if (valueBuilder_ == null) {
          result.value_ = value_;
        } else {
          result.value_ = valueBuilder_.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.OpInfo.TensorProperties) {
          return mergeFrom((org.tensorflow.proto.framework.OpInfo.TensorProperties)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.OpInfo.TensorProperties other) {
        if (other == org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()) return this;
        if (other.dtype_ != 0) {
          setDtypeValue(other.getDtypeValue());
        }
        if (other.hasShape()) {
          mergeShape(other.getShape());
        }
        if (other.hasValue()) {
          mergeValue(other.getValue());
        }
        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.OpInfo.TensorProperties parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.OpInfo.TensorProperties) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int dtype_ = 0;
      /**
       * <code>.tensorflow.DataType dtype = 1;</code>
       */
      public int getDtypeValue() {
        return dtype_;
      }
      /**
       * <code>.tensorflow.DataType dtype = 1;</code>
       */
      public Builder setDtypeValue(int value) {
        dtype_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.tensorflow.DataType dtype = 1;</code>
       */
      public org.tensorflow.proto.framework.DataType getDtype() {
        @SuppressWarnings("deprecation")
        org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_);
        return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result;
      }
      /**
       * <code>.tensorflow.DataType dtype = 1;</code>
       */
      public Builder setDtype(org.tensorflow.proto.framework.DataType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        dtype_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.tensorflow.DataType dtype = 1;</code>
       */
      public Builder clearDtype() {
        
        dtype_ = 0;
        onChanged();
        return this;
      }

      private org.tensorflow.proto.framework.TensorShapeProto shape_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_;
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public boolean hasShape() {
        return shapeBuilder_ != null || shape_ != null;
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public org.tensorflow.proto.framework.TensorShapeProto getShape() {
        if (shapeBuilder_ == null) {
          return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_;
        } else {
          return shapeBuilder_.getMessage();
        }
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) {
        if (shapeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          shape_ = value;
          onChanged();
        } else {
          shapeBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public Builder setShape(
          org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) {
        if (shapeBuilder_ == null) {
          shape_ = builderForValue.build();
          onChanged();
        } else {
          shapeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) {
        if (shapeBuilder_ == null) {
          if (shape_ != null) {
            shape_ =
              org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
          } else {
            shape_ = value;
          }
          onChanged();
        } else {
          shapeBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public Builder clearShape() {
        if (shapeBuilder_ == null) {
          shape_ = null;
          onChanged();
        } else {
          shape_ = null;
          shapeBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() {
        
        onChanged();
        return getShapeFieldBuilder().getBuilder();
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
        if (shapeBuilder_ != null) {
          return shapeBuilder_.getMessageOrBuilder();
        } else {
          return shape_ == null ?
              org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_;
        }
      }
      /**
       * <code>.tensorflow.TensorShapeProto shape = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> 
          getShapeFieldBuilder() {
        if (shapeBuilder_ == null) {
          shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>(
                  getShape(),
                  getParentForChildren(),
                  isClean());
          shape_ = null;
        }
        return shapeBuilder_;
      }

      private org.tensorflow.proto.framework.TensorProto value_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> valueBuilder_;
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public boolean hasValue() {
        return valueBuilder_ != null || value_ != null;
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public org.tensorflow.proto.framework.TensorProto getValue() {
        if (valueBuilder_ == null) {
          return value_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_;
        } else {
          return valueBuilder_.getMessage();
        }
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public Builder setValue(org.tensorflow.proto.framework.TensorProto value) {
        if (valueBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          value_ = value;
          onChanged();
        } else {
          valueBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public Builder setValue(
          org.tensorflow.proto.framework.TensorProto.Builder builderForValue) {
        if (valueBuilder_ == null) {
          value_ = builderForValue.build();
          onChanged();
        } else {
          valueBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public Builder mergeValue(org.tensorflow.proto.framework.TensorProto value) {
        if (valueBuilder_ == null) {
          if (value_ != null) {
            value_ =
              org.tensorflow.proto.framework.TensorProto.newBuilder(value_).mergeFrom(value).buildPartial();
          } else {
            value_ = value;
          }
          onChanged();
        } else {
          valueBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public Builder clearValue() {
        if (valueBuilder_ == null) {
          value_ = null;
          onChanged();
        } else {
          value_ = null;
          valueBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public org.tensorflow.proto.framework.TensorProto.Builder getValueBuilder() {
        
        onChanged();
        return getValueFieldBuilder().getBuilder();
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      public org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder() {
        if (valueBuilder_ != null) {
          return valueBuilder_.getMessageOrBuilder();
        } else {
          return value_ == null ?
              org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_;
        }
      }
      /**
       * <code>.tensorflow.TensorProto value = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> 
          getValueFieldBuilder() {
        if (valueBuilder_ == null) {
          valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>(
                  getValue(),
                  getParentForChildren(),
                  isClean());
          value_ = null;
        }
        return valueBuilder_;
      }
      @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.OpInfo.TensorProperties)
    }

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

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

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

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

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

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

  }

  public static final int OP_FIELD_NUMBER = 1;
  private volatile java.lang.Object op_;
  /**
   * <pre>
   * The operation name.  There may be custom parameters in attrs.
   * </pre>
   *
   * <code>string op = 1;</code>
   */
  public java.lang.String getOp() {
    java.lang.Object ref = op_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      op_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The operation name.  There may be custom parameters in attrs.
   * </pre>
   *
   * <code>string op = 1;</code>
   */
  public com.google.protobuf.ByteString
      getOpBytes() {
    java.lang.Object ref = op_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      op_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ATTR_FIELD_NUMBER = 2;
  private static final class AttrDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.String, org.tensorflow.proto.framework.AttrValue>newDefaultInstance(
                org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_AttrEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                org.tensorflow.proto.framework.AttrValue.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_;
  private com.google.protobuf.MapField<java.lang.String, org.tensorflow.proto.framework.AttrValue>
  internalGetAttr() {
    if (attr_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          AttrDefaultEntryHolder.defaultEntry);
    }
    return attr_;
  }

  public int getAttrCount() {
    return internalGetAttr().getMap().size();
  }
  /**
   * <pre>
   * Custom parameters impacting the behavior of the op.
   * </pre>
   *
   * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
   */

  public boolean containsAttr(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetAttr().getMap().containsKey(key);
  }
  /**
   * Use {@link #getAttrMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> getAttr() {
    return getAttrMap();
  }
  /**
   * <pre>
   * Custom parameters impacting the behavior of the op.
   * </pre>
   *
   * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
   */

  public java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> getAttrMap() {
    return internalGetAttr().getMap();
  }
  /**
   * <pre>
   * Custom parameters impacting the behavior of the op.
   * </pre>
   *
   * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
   */

  public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
      java.lang.String key,
      org.tensorflow.proto.framework.AttrValue defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> map =
        internalGetAttr().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * Custom parameters impacting the behavior of the op.
   * </pre>
   *
   * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
   */

  public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> map =
        internalGetAttr().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int INPUTS_FIELD_NUMBER = 3;
  private java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> inputs_;
  /**
   * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
   */
  public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> getInputsList() {
    return inputs_;
  }
  /**
   * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
   */
  public java.util.List<? extends org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
      getInputsOrBuilderList() {
    return inputs_;
  }
  /**
   * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
   */
  public int getInputsCount() {
    return inputs_.size();
  }
  /**
   * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
   */
  public org.tensorflow.proto.framework.OpInfo.TensorProperties getInputs(int index) {
    return inputs_.get(index);
  }
  /**
   * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
   */
  public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder(
      int index) {
    return inputs_.get(index);
  }

  public static final int OUTPUTS_FIELD_NUMBER = 5;
  private java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> outputs_;
  /**
   * <pre>
   * Optional description of the op outputs
   * </pre>
   *
   * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
   */
  public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> getOutputsList() {
    return outputs_;
  }
  /**
   * <pre>
   * Optional description of the op outputs
   * </pre>
   *
   * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
   */
  public java.util.List<? extends org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
      getOutputsOrBuilderList() {
    return outputs_;
  }
  /**
   * <pre>
   * Optional description of the op outputs
   * </pre>
   *
   * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
   */
  public int getOutputsCount() {
    return outputs_.size();
  }
  /**
   * <pre>
   * Optional description of the op outputs
   * </pre>
   *
   * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
   */
  public org.tensorflow.proto.framework.OpInfo.TensorProperties getOutputs(int index) {
    return outputs_.get(index);
  }
  /**
   * <pre>
   * Optional description of the op outputs
   * </pre>
   *
   * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
   */
  public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder(
      int index) {
    return outputs_.get(index);
  }

  public static final int DEVICE_FIELD_NUMBER = 4;
  private org.tensorflow.proto.framework.DeviceProperties device_;
  /**
   * <pre>
   * Device on which the operation is run.
   * </pre>
   *
   * <code>.tensorflow.DeviceProperties device = 4;</code>
   */
  public boolean hasDevice() {
    return device_ != null;
  }
  /**
   * <pre>
   * Device on which the operation is run.
   * </pre>
   *
   * <code>.tensorflow.DeviceProperties device = 4;</code>
   */
  public org.tensorflow.proto.framework.DeviceProperties getDevice() {
    return device_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_;
  }
  /**
   * <pre>
   * Device on which the operation is run.
   * </pre>
   *
   * <code>.tensorflow.DeviceProperties device = 4;</code>
   */
  public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getDeviceOrBuilder() {
    return getDevice();
  }

  public static final int SESSION_INFO_FIELD_NUMBER = 6;
  private org.tensorflow.proto.framework.SessionInfo sessionInfo_;
  /**
   * <pre>
   * Information about the session configs.
   * </pre>
   *
   * <code>.tensorflow.SessionInfo session_info = 6;</code>
   */
  public boolean hasSessionInfo() {
    return sessionInfo_ != null;
  }
  /**
   * <pre>
   * Information about the session configs.
   * </pre>
   *
   * <code>.tensorflow.SessionInfo session_info = 6;</code>
   */
  public org.tensorflow.proto.framework.SessionInfo getSessionInfo() {
    return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_;
  }
  /**
   * <pre>
   * Information about the session configs.
   * </pre>
   *
   * <code>.tensorflow.SessionInfo session_info = 6;</code>
   */
  public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() {
    return getSessionInfo();
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getOpBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, op_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetAttr(),
        AttrDefaultEntryHolder.defaultEntry,
        2);
    for (int i = 0; i < inputs_.size(); i++) {
      output.writeMessage(3, inputs_.get(i));
    }
    if (device_ != null) {
      output.writeMessage(4, getDevice());
    }
    for (int i = 0; i < outputs_.size(); i++) {
      output.writeMessage(5, outputs_.get(i));
    }
    if (sessionInfo_ != null) {
      output.writeMessage(6, getSessionInfo());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getOpBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, op_);
    }
    for (java.util.Map.Entry<java.lang.String, org.tensorflow.proto.framework.AttrValue> entry
         : internalGetAttr().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, org.tensorflow.proto.framework.AttrValue>
      attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, attr__);
    }
    for (int i = 0; i < inputs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, inputs_.get(i));
    }
    if (device_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getDevice());
    }
    for (int i = 0; i < outputs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, outputs_.get(i));
    }
    if (sessionInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getSessionInfo());
    }
    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.OpInfo)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.framework.OpInfo other = (org.tensorflow.proto.framework.OpInfo) obj;

    if (!getOp()
        .equals(other.getOp())) return false;
    if (!internalGetAttr().equals(
        other.internalGetAttr())) return false;
    if (!getInputsList()
        .equals(other.getInputsList())) return false;
    if (!getOutputsList()
        .equals(other.getOutputsList())) return false;
    if (hasDevice() != other.hasDevice()) return false;
    if (hasDevice()) {
      if (!getDevice()
          .equals(other.getDevice())) return false;
    }
    if (hasSessionInfo() != other.hasSessionInfo()) return false;
    if (hasSessionInfo()) {
      if (!getSessionInfo()
          .equals(other.getSessionInfo())) 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();
    hash = (37 * hash) + OP_FIELD_NUMBER;
    hash = (53 * hash) + getOp().hashCode();
    if (!internalGetAttr().getMap().isEmpty()) {
      hash = (37 * hash) + ATTR_FIELD_NUMBER;
      hash = (53 * hash) + internalGetAttr().hashCode();
    }
    if (getInputsCount() > 0) {
      hash = (37 * hash) + INPUTS_FIELD_NUMBER;
      hash = (53 * hash) + getInputsList().hashCode();
    }
    if (getOutputsCount() > 0) {
      hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
      hash = (53 * hash) + getOutputsList().hashCode();
    }
    if (hasDevice()) {
      hash = (37 * hash) + DEVICE_FIELD_NUMBER;
      hash = (53 * hash) + getDevice().hashCode();
    }
    if (hasSessionInfo()) {
      hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getSessionInfo().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.framework.OpInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpInfo 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.OpInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpInfo 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.OpInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.OpInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpInfo 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.OpInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpInfo 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.OpInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpInfo 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.OpInfo 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>
   * Description of an operation as well as the parameters expected to impact its
   * performance.
   * </pre>
   *
   * Protobuf type {@code tensorflow.OpInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo)
      org.tensorflow.proto.framework.OpInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetAttr();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableAttr();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.OpInfo.class, org.tensorflow.proto.framework.OpInfo.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getInputsFieldBuilder();
        getOutputsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      op_ = "";

      internalGetMutableAttr().clear();
      if (inputsBuilder_ == null) {
        inputs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        inputsBuilder_.clear();
      }
      if (outputsBuilder_ == null) {
        outputs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        outputsBuilder_.clear();
      }
      if (deviceBuilder_ == null) {
        device_ = null;
      } else {
        device_ = null;
        deviceBuilder_ = null;
      }
      if (sessionInfoBuilder_ == null) {
        sessionInfo_ = null;
      } else {
        sessionInfo_ = null;
        sessionInfoBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.OpInfo buildPartial() {
      org.tensorflow.proto.framework.OpInfo result = new org.tensorflow.proto.framework.OpInfo(this);
      int from_bitField0_ = bitField0_;
      result.op_ = op_;
      result.attr_ = internalGetAttr();
      result.attr_.makeImmutable();
      if (inputsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          inputs_ = java.util.Collections.unmodifiableList(inputs_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.inputs_ = inputs_;
      } else {
        result.inputs_ = inputsBuilder_.build();
      }
      if (outputsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          outputs_ = java.util.Collections.unmodifiableList(outputs_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.outputs_ = outputs_;
      } else {
        result.outputs_ = outputsBuilder_.build();
      }
      if (deviceBuilder_ == null) {
        result.device_ = device_;
      } else {
        result.device_ = deviceBuilder_.build();
      }
      if (sessionInfoBuilder_ == null) {
        result.sessionInfo_ = sessionInfo_;
      } else {
        result.sessionInfo_ = sessionInfoBuilder_.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.OpInfo) {
        return mergeFrom((org.tensorflow.proto.framework.OpInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.framework.OpInfo other) {
      if (other == org.tensorflow.proto.framework.OpInfo.getDefaultInstance()) return this;
      if (!other.getOp().isEmpty()) {
        op_ = other.op_;
        onChanged();
      }
      internalGetMutableAttr().mergeFrom(
          other.internalGetAttr());
      if (inputsBuilder_ == null) {
        if (!other.inputs_.isEmpty()) {
          if (inputs_.isEmpty()) {
            inputs_ = other.inputs_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureInputsIsMutable();
            inputs_.addAll(other.inputs_);
          }
          onChanged();
        }
      } else {
        if (!other.inputs_.isEmpty()) {
          if (inputsBuilder_.isEmpty()) {
            inputsBuilder_.dispose();
            inputsBuilder_ = null;
            inputs_ = other.inputs_;
            bitField0_ = (bitField0_ & ~0x00000002);
            inputsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInputsFieldBuilder() : null;
          } else {
            inputsBuilder_.addAllMessages(other.inputs_);
          }
        }
      }
      if (outputsBuilder_ == null) {
        if (!other.outputs_.isEmpty()) {
          if (outputs_.isEmpty()) {
            outputs_ = other.outputs_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureOutputsIsMutable();
            outputs_.addAll(other.outputs_);
          }
          onChanged();
        }
      } else {
        if (!other.outputs_.isEmpty()) {
          if (outputsBuilder_.isEmpty()) {
            outputsBuilder_.dispose();
            outputsBuilder_ = null;
            outputs_ = other.outputs_;
            bitField0_ = (bitField0_ & ~0x00000004);
            outputsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOutputsFieldBuilder() : null;
          } else {
            outputsBuilder_.addAllMessages(other.outputs_);
          }
        }
      }
      if (other.hasDevice()) {
        mergeDevice(other.getDevice());
      }
      if (other.hasSessionInfo()) {
        mergeSessionInfo(other.getSessionInfo());
      }
      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.OpInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.framework.OpInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object op_ = "";
    /**
     * <pre>
     * The operation name.  There may be custom parameters in attrs.
     * </pre>
     *
     * <code>string op = 1;</code>
     */
    public java.lang.String getOp() {
      java.lang.Object ref = op_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        op_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The operation name.  There may be custom parameters in attrs.
     * </pre>
     *
     * <code>string op = 1;</code>
     */
    public com.google.protobuf.ByteString
        getOpBytes() {
      java.lang.Object ref = op_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        op_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The operation name.  There may be custom parameters in attrs.
     * </pre>
     *
     * <code>string op = 1;</code>
     */
    public Builder setOp(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      op_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The operation name.  There may be custom parameters in attrs.
     * </pre>
     *
     * <code>string op = 1;</code>
     */
    public Builder clearOp() {
      
      op_ = getDefaultInstance().getOp();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The operation name.  There may be custom parameters in attrs.
     * </pre>
     *
     * <code>string op = 1;</code>
     */
    public Builder setOpBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      op_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_;
    private com.google.protobuf.MapField<java.lang.String, org.tensorflow.proto.framework.AttrValue>
    internalGetAttr() {
      if (attr_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            AttrDefaultEntryHolder.defaultEntry);
      }
      return attr_;
    }
    private com.google.protobuf.MapField<java.lang.String, org.tensorflow.proto.framework.AttrValue>
    internalGetMutableAttr() {
      onChanged();;
      if (attr_ == null) {
        attr_ = com.google.protobuf.MapField.newMapField(
            AttrDefaultEntryHolder.defaultEntry);
      }
      if (!attr_.isMutable()) {
        attr_ = attr_.copy();
      }
      return attr_;
    }

    public int getAttrCount() {
      return internalGetAttr().getMap().size();
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public boolean containsAttr(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetAttr().getMap().containsKey(key);
    }
    /**
     * Use {@link #getAttrMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> getAttr() {
      return getAttrMap();
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> getAttrMap() {
      return internalGetAttr().getMap();
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
        java.lang.String key,
        org.tensorflow.proto.framework.AttrValue defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> map =
          internalGetAttr().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> map =
          internalGetAttr().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearAttr() {
      internalGetMutableAttr().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public Builder removeAttr(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableAttr().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue>
    getMutableAttr() {
      return internalGetMutableAttr().getMutableMap();
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */
    public Builder putAttr(
        java.lang.String key,
        org.tensorflow.proto.framework.AttrValue value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableAttr().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * Custom parameters impacting the behavior of the op.
     * </pre>
     *
     * <code>map&lt;string, .tensorflow.AttrValue&gt; attr = 2;</code>
     */

    public Builder putAllAttr(
        java.util.Map<java.lang.String, org.tensorflow.proto.framework.AttrValue> values) {
      internalGetMutableAttr().getMutableMap()
          .putAll(values);
      return this;
    }

    private java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> inputs_ =
      java.util.Collections.emptyList();
    private void ensureInputsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        inputs_ = new java.util.ArrayList<org.tensorflow.proto.framework.OpInfo.TensorProperties>(inputs_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> inputsBuilder_;

    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> getInputsList() {
      if (inputsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(inputs_);
      } else {
        return inputsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public int getInputsCount() {
      if (inputsBuilder_ == null) {
        return inputs_.size();
      } else {
        return inputsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties getInputs(int index) {
      if (inputsBuilder_ == null) {
        return inputs_.get(index);
      } else {
        return inputsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder setInputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (inputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputsIsMutable();
        inputs_.set(index, value);
        onChanged();
      } else {
        inputsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder setInputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (inputsBuilder_ == null) {
        ensureInputsIsMutable();
        inputs_.set(index, builderForValue.build());
        onChanged();
      } else {
        inputsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder addInputs(org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (inputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputsIsMutable();
        inputs_.add(value);
        onChanged();
      } else {
        inputsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder addInputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (inputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputsIsMutable();
        inputs_.add(index, value);
        onChanged();
      } else {
        inputsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder addInputs(
        org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (inputsBuilder_ == null) {
        ensureInputsIsMutable();
        inputs_.add(builderForValue.build());
        onChanged();
      } else {
        inputsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder addInputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (inputsBuilder_ == null) {
        ensureInputsIsMutable();
        inputs_.add(index, builderForValue.build());
        onChanged();
      } else {
        inputsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder addAllInputs(
        java.lang.Iterable<? extends org.tensorflow.proto.framework.OpInfo.TensorProperties> values) {
      if (inputsBuilder_ == null) {
        ensureInputsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, inputs_);
        onChanged();
      } else {
        inputsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder clearInputs() {
      if (inputsBuilder_ == null) {
        inputs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        inputsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public Builder removeInputs(int index) {
      if (inputsBuilder_ == null) {
        ensureInputsIsMutable();
        inputs_.remove(index);
        onChanged();
      } else {
        inputsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder getInputsBuilder(
        int index) {
      return getInputsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder(
        int index) {
      if (inputsBuilder_ == null) {
        return inputs_.get(index);  } else {
        return inputsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public java.util.List<? extends org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
         getInputsOrBuilderList() {
      if (inputsBuilder_ != null) {
        return inputsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(inputs_);
      }
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addInputsBuilder() {
      return getInputsFieldBuilder().addBuilder(
          org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance());
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addInputsBuilder(
        int index) {
      return getInputsFieldBuilder().addBuilder(
          index, org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance());
    }
    /**
     * <code>repeated .tensorflow.OpInfo.TensorProperties inputs = 3;</code>
     */
    public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder> 
         getInputsBuilderList() {
      return getInputsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
        getInputsFieldBuilder() {
      if (inputsBuilder_ == null) {
        inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder>(
                inputs_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        inputs_ = null;
      }
      return inputsBuilder_;
    }

    private java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> outputs_ =
      java.util.Collections.emptyList();
    private void ensureOutputsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        outputs_ = new java.util.ArrayList<org.tensorflow.proto.framework.OpInfo.TensorProperties>(outputs_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> outputsBuilder_;

    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties> getOutputsList() {
      if (outputsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(outputs_);
      } else {
        return outputsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public int getOutputsCount() {
      if (outputsBuilder_ == null) {
        return outputs_.size();
      } else {
        return outputsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties getOutputs(int index) {
      if (outputsBuilder_ == null) {
        return outputs_.get(index);
      } else {
        return outputsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder setOutputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (outputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputsIsMutable();
        outputs_.set(index, value);
        onChanged();
      } else {
        outputsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder setOutputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (outputsBuilder_ == null) {
        ensureOutputsIsMutable();
        outputs_.set(index, builderForValue.build());
        onChanged();
      } else {
        outputsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder addOutputs(org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (outputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputsIsMutable();
        outputs_.add(value);
        onChanged();
      } else {
        outputsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder addOutputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) {
      if (outputsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputsIsMutable();
        outputs_.add(index, value);
        onChanged();
      } else {
        outputsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder addOutputs(
        org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (outputsBuilder_ == null) {
        ensureOutputsIsMutable();
        outputs_.add(builderForValue.build());
        onChanged();
      } else {
        outputsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder addOutputs(
        int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) {
      if (outputsBuilder_ == null) {
        ensureOutputsIsMutable();
        outputs_.add(index, builderForValue.build());
        onChanged();
      } else {
        outputsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder addAllOutputs(
        java.lang.Iterable<? extends org.tensorflow.proto.framework.OpInfo.TensorProperties> values) {
      if (outputsBuilder_ == null) {
        ensureOutputsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, outputs_);
        onChanged();
      } else {
        outputsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder clearOutputs() {
      if (outputsBuilder_ == null) {
        outputs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        outputsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public Builder removeOutputs(int index) {
      if (outputsBuilder_ == null) {
        ensureOutputsIsMutable();
        outputs_.remove(index);
        onChanged();
      } else {
        outputsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder getOutputsBuilder(
        int index) {
      return getOutputsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder(
        int index) {
      if (outputsBuilder_ == null) {
        return outputs_.get(index);  } else {
        return outputsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public java.util.List<? extends org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
         getOutputsOrBuilderList() {
      if (outputsBuilder_ != null) {
        return outputsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(outputs_);
      }
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addOutputsBuilder() {
      return getOutputsFieldBuilder().addBuilder(
          org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance());
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addOutputsBuilder(
        int index) {
      return getOutputsFieldBuilder().addBuilder(
          index, org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance());
    }
    /**
     * <pre>
     * Optional description of the op outputs
     * </pre>
     *
     * <code>repeated .tensorflow.OpInfo.TensorProperties outputs = 5;</code>
     */
    public java.util.List<org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder> 
         getOutputsBuilderList() {
      return getOutputsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> 
        getOutputsFieldBuilder() {
      if (outputsBuilder_ == null) {
        outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder>(
                outputs_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        outputs_ = null;
      }
      return outputsBuilder_;
    }

    private org.tensorflow.proto.framework.DeviceProperties device_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> deviceBuilder_;
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public boolean hasDevice() {
      return deviceBuilder_ != null || device_ != null;
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public org.tensorflow.proto.framework.DeviceProperties getDevice() {
      if (deviceBuilder_ == null) {
        return device_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_;
      } else {
        return deviceBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public Builder setDevice(org.tensorflow.proto.framework.DeviceProperties value) {
      if (deviceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        device_ = value;
        onChanged();
      } else {
        deviceBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public Builder setDevice(
        org.tensorflow.proto.framework.DeviceProperties.Builder builderForValue) {
      if (deviceBuilder_ == null) {
        device_ = builderForValue.build();
        onChanged();
      } else {
        deviceBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public Builder mergeDevice(org.tensorflow.proto.framework.DeviceProperties value) {
      if (deviceBuilder_ == null) {
        if (device_ != null) {
          device_ =
            org.tensorflow.proto.framework.DeviceProperties.newBuilder(device_).mergeFrom(value).buildPartial();
        } else {
          device_ = value;
        }
        onChanged();
      } else {
        deviceBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public Builder clearDevice() {
      if (deviceBuilder_ == null) {
        device_ = null;
        onChanged();
      } else {
        device_ = null;
        deviceBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public org.tensorflow.proto.framework.DeviceProperties.Builder getDeviceBuilder() {
      
      onChanged();
      return getDeviceFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getDeviceOrBuilder() {
      if (deviceBuilder_ != null) {
        return deviceBuilder_.getMessageOrBuilder();
      } else {
        return device_ == null ?
            org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_;
      }
    }
    /**
     * <pre>
     * Device on which the operation is run.
     * </pre>
     *
     * <code>.tensorflow.DeviceProperties device = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> 
        getDeviceFieldBuilder() {
      if (deviceBuilder_ == null) {
        deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder>(
                getDevice(),
                getParentForChildren(),
                isClean());
        device_ = null;
      }
      return deviceBuilder_;
    }

    private org.tensorflow.proto.framework.SessionInfo sessionInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> sessionInfoBuilder_;
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public boolean hasSessionInfo() {
      return sessionInfoBuilder_ != null || sessionInfo_ != null;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public org.tensorflow.proto.framework.SessionInfo getSessionInfo() {
      if (sessionInfoBuilder_ == null) {
        return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_;
      } else {
        return sessionInfoBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public Builder setSessionInfo(org.tensorflow.proto.framework.SessionInfo value) {
      if (sessionInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sessionInfo_ = value;
        onChanged();
      } else {
        sessionInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public Builder setSessionInfo(
        org.tensorflow.proto.framework.SessionInfo.Builder builderForValue) {
      if (sessionInfoBuilder_ == null) {
        sessionInfo_ = builderForValue.build();
        onChanged();
      } else {
        sessionInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public Builder mergeSessionInfo(org.tensorflow.proto.framework.SessionInfo value) {
      if (sessionInfoBuilder_ == null) {
        if (sessionInfo_ != null) {
          sessionInfo_ =
            org.tensorflow.proto.framework.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial();
        } else {
          sessionInfo_ = value;
        }
        onChanged();
      } else {
        sessionInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public Builder clearSessionInfo() {
      if (sessionInfoBuilder_ == null) {
        sessionInfo_ = null;
        onChanged();
      } else {
        sessionInfo_ = null;
        sessionInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public org.tensorflow.proto.framework.SessionInfo.Builder getSessionInfoBuilder() {
      
      onChanged();
      return getSessionInfoFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() {
      if (sessionInfoBuilder_ != null) {
        return sessionInfoBuilder_.getMessageOrBuilder();
      } else {
        return sessionInfo_ == null ?
            org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_;
      }
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> 
        getSessionInfoFieldBuilder() {
      if (sessionInfoBuilder_ == null) {
        sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder>(
                getSessionInfo(),
                getParentForChildren(),
                isClean());
        sessionInfo_ = null;
      }
      return sessionInfoBuilder_;
    }
    @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.OpInfo)
  }

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

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

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

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

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

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

}

