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

package org.tensorflow.proto.framework;

/**
 * <pre>
 * Performance data for tensorflow operations
 * </pre>
 *
 * Protobuf type {@code tensorflow.OpPerformance}
 */
public  final class OpPerformance extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance)
    OpPerformanceOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OpPerformance.newBuilder() to construct.
  private OpPerformance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OpPerformance() {
    node_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OpPerformance(
      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 10: {
            org.tensorflow.proto.framework.OpInfo.Builder subBuilder = null;
            if (op_ != null) {
              subBuilder = op_.toBuilder();
            }
            op_ = input.readMessage(org.tensorflow.proto.framework.OpInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(op_);
              op_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            temporaryMemorySize_ = input.readInt64();
            break;
          }
          case 24: {

            computeCost_ = input.readInt64();
            break;
          }
          case 33: {

            computeEfficiency_ = input.readDouble();
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            node_ = s;
            break;
          }
          case 48: {

            computeTime_ = input.readInt64();
            break;
          }
          case 56: {

            memoryTime_ = input.readInt64();
            break;
          }
          case 65: {

            memoryEfficiency_ = input.readDouble();
            break;
          }
          case 74: {
            org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder subBuilder = null;
            if (opMemory_ != null) {
              subBuilder = opMemory_.toBuilder();
            }
            opMemory_ = input.readMessage(org.tensorflow.proto.framework.OpPerformance.OpMemory.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(opMemory_);
              opMemory_ = subBuilder.buildPartial();
            }

            break;
          }
          case 82: {
            org.tensorflow.proto.framework.NormalDistribution.Builder subBuilder = null;
            if (executionTimeCase_ == 10) {
              subBuilder = ((org.tensorflow.proto.framework.NormalDistribution) executionTime_).toBuilder();
            }
            executionTime_ =
                input.readMessage(org.tensorflow.proto.framework.NormalDistribution.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.NormalDistribution) executionTime_);
              executionTime_ = subBuilder.buildPartial();
            }
            executionTimeCase_ = 10;
            break;
          }
          case 90: {
            org.tensorflow.proto.framework.LogNormalDistribution.Builder subBuilder = null;
            if (executionTimeCase_ == 11) {
              subBuilder = ((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_).toBuilder();
            }
            executionTime_ =
                input.readMessage(org.tensorflow.proto.framework.LogNormalDistribution.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_);
              executionTime_ = subBuilder.buildPartial();
            }
            executionTimeCase_ = 11;
            break;
          }
          case 98: {
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_descriptor;
  }

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

  public interface OpMemoryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance.OpMemory)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    java.util.List<java.lang.Long> getOutputMemoryList();
    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    int getOutputMemoryCount();
    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    long getOutputMemory(int index);

    /**
     * <pre>
     * Temp and persistent memory allocated by this node.
     * </pre>
     *
     * <code>int64 temp_memory = 2;</code>
     */
    long getTempMemory();

    /**
     * <code>int64 persistent_memory = 4;</code>
     */
    long getPersistentMemory();

    /**
     * <code>int64 device_temp_memory = 3 [deprecated = true];</code>
     */
    @java.lang.Deprecated long getDeviceTempMemory();

    /**
     * <code>int64 device_persistent_memory = 5 [deprecated = true];</code>
     */
    @java.lang.Deprecated long getDevicePersistentMemory();
  }
  /**
   * <pre>
   * Memory usage data for a tensorflow operation.
   * </pre>
   *
   * Protobuf type {@code tensorflow.OpPerformance.OpMemory}
   */
  public  static final class OpMemory extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance.OpMemory)
      OpMemoryOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use OpMemory.newBuilder() to construct.
    private OpMemory(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private OpMemory() {
      outputMemory_ = emptyLongList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private OpMemory(
        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 8: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                outputMemory_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              outputMemory_.addLong(input.readInt64());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                outputMemory_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                outputMemory_.addLong(input.readInt64());
              }
              input.popLimit(limit);
              break;
            }
            case 16: {

              tempMemory_ = input.readInt64();
              break;
            }
            case 24: {

              deviceTempMemory_ = input.readInt64();
              break;
            }
            case 32: {

              persistentMemory_ = input.readInt64();
              break;
            }
            case 40: {

              devicePersistentMemory_ = input.readInt64();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          outputMemory_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_descriptor;
    }

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

    public static final int OUTPUT_MEMORY_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.LongList outputMemory_;
    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    public java.util.List<java.lang.Long>
        getOutputMemoryList() {
      return outputMemory_;
    }
    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    public int getOutputMemoryCount() {
      return outputMemory_.size();
    }
    /**
     * <pre>
     * The output information may have memory usage and output shapes.
     * </pre>
     *
     * <code>repeated int64 output_memory = 1;</code>
     */
    public long getOutputMemory(int index) {
      return outputMemory_.getLong(index);
    }
    private int outputMemoryMemoizedSerializedSize = -1;

    public static final int TEMP_MEMORY_FIELD_NUMBER = 2;
    private long tempMemory_;
    /**
     * <pre>
     * Temp and persistent memory allocated by this node.
     * </pre>
     *
     * <code>int64 temp_memory = 2;</code>
     */
    public long getTempMemory() {
      return tempMemory_;
    }

    public static final int PERSISTENT_MEMORY_FIELD_NUMBER = 4;
    private long persistentMemory_;
    /**
     * <code>int64 persistent_memory = 4;</code>
     */
    public long getPersistentMemory() {
      return persistentMemory_;
    }

    public static final int DEVICE_TEMP_MEMORY_FIELD_NUMBER = 3;
    private long deviceTempMemory_;
    /**
     * <code>int64 device_temp_memory = 3 [deprecated = true];</code>
     */
    @java.lang.Deprecated public long getDeviceTempMemory() {
      return deviceTempMemory_;
    }

    public static final int DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER = 5;
    private long devicePersistentMemory_;
    /**
     * <code>int64 device_persistent_memory = 5 [deprecated = true];</code>
     */
    @java.lang.Deprecated public long getDevicePersistentMemory() {
      return devicePersistentMemory_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (getOutputMemoryList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(outputMemoryMemoizedSerializedSize);
      }
      for (int i = 0; i < outputMemory_.size(); i++) {
        output.writeInt64NoTag(outputMemory_.getLong(i));
      }
      if (tempMemory_ != 0L) {
        output.writeInt64(2, tempMemory_);
      }
      if (deviceTempMemory_ != 0L) {
        output.writeInt64(3, deviceTempMemory_);
      }
      if (persistentMemory_ != 0L) {
        output.writeInt64(4, persistentMemory_);
      }
      if (devicePersistentMemory_ != 0L) {
        output.writeInt64(5, devicePersistentMemory_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < outputMemory_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt64SizeNoTag(outputMemory_.getLong(i));
        }
        size += dataSize;
        if (!getOutputMemoryList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        outputMemoryMemoizedSerializedSize = dataSize;
      }
      if (tempMemory_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, tempMemory_);
      }
      if (deviceTempMemory_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, deviceTempMemory_);
      }
      if (persistentMemory_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, persistentMemory_);
      }
      if (devicePersistentMemory_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, devicePersistentMemory_);
      }
      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.OpPerformance.OpMemory)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.OpPerformance.OpMemory other = (org.tensorflow.proto.framework.OpPerformance.OpMemory) obj;

      if (!getOutputMemoryList()
          .equals(other.getOutputMemoryList())) return false;
      if (getTempMemory()
          != other.getTempMemory()) return false;
      if (getPersistentMemory()
          != other.getPersistentMemory()) return false;
      if (getDeviceTempMemory()
          != other.getDeviceTempMemory()) return false;
      if (getDevicePersistentMemory()
          != other.getDevicePersistentMemory()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getOutputMemoryCount() > 0) {
        hash = (37 * hash) + OUTPUT_MEMORY_FIELD_NUMBER;
        hash = (53 * hash) + getOutputMemoryList().hashCode();
      }
      hash = (37 * hash) + TEMP_MEMORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTempMemory());
      hash = (37 * hash) + PERSISTENT_MEMORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getPersistentMemory());
      hash = (37 * hash) + DEVICE_TEMP_MEMORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getDeviceTempMemory());
      hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getDevicePersistentMemory());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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.OpPerformance.OpMemory parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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.OpPerformance.OpMemory parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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.OpPerformance.OpMemory parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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.OpPerformance.OpMemory parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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.OpPerformance.OpMemory 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>
     * Memory usage data for a tensorflow operation.
     * </pre>
     *
     * Protobuf type {@code tensorflow.OpPerformance.OpMemory}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance.OpMemory)
        org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_descriptor;
      }

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

      // Construct using org.tensorflow.proto.framework.OpPerformance.OpMemory.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();
        outputMemory_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        tempMemory_ = 0L;

        persistentMemory_ = 0L;

        deviceTempMemory_ = 0L;

        devicePersistentMemory_ = 0L;

        return this;
      }

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

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

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

      @java.lang.Override
      public org.tensorflow.proto.framework.OpPerformance.OpMemory buildPartial() {
        org.tensorflow.proto.framework.OpPerformance.OpMemory result = new org.tensorflow.proto.framework.OpPerformance.OpMemory(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          outputMemory_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.outputMemory_ = outputMemory_;
        result.tempMemory_ = tempMemory_;
        result.persistentMemory_ = persistentMemory_;
        result.deviceTempMemory_ = deviceTempMemory_;
        result.devicePersistentMemory_ = devicePersistentMemory_;
        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.OpPerformance.OpMemory) {
          return mergeFrom((org.tensorflow.proto.framework.OpPerformance.OpMemory)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.OpPerformance.OpMemory other) {
        if (other == org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance()) return this;
        if (!other.outputMemory_.isEmpty()) {
          if (outputMemory_.isEmpty()) {
            outputMemory_ = other.outputMemory_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureOutputMemoryIsMutable();
            outputMemory_.addAll(other.outputMemory_);
          }
          onChanged();
        }
        if (other.getTempMemory() != 0L) {
          setTempMemory(other.getTempMemory());
        }
        if (other.getPersistentMemory() != 0L) {
          setPersistentMemory(other.getPersistentMemory());
        }
        if (other.getDeviceTempMemory() != 0L) {
          setDeviceTempMemory(other.getDeviceTempMemory());
        }
        if (other.getDevicePersistentMemory() != 0L) {
          setDevicePersistentMemory(other.getDevicePersistentMemory());
        }
        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.OpPerformance.OpMemory parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.OpPerformance.OpMemory) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.LongList outputMemory_ = emptyLongList();
      private void ensureOutputMemoryIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          outputMemory_ = mutableCopy(outputMemory_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public java.util.List<java.lang.Long>
          getOutputMemoryList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(outputMemory_) : outputMemory_;
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public int getOutputMemoryCount() {
        return outputMemory_.size();
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public long getOutputMemory(int index) {
        return outputMemory_.getLong(index);
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public Builder setOutputMemory(
          int index, long value) {
        ensureOutputMemoryIsMutable();
        outputMemory_.setLong(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public Builder addOutputMemory(long value) {
        ensureOutputMemoryIsMutable();
        outputMemory_.addLong(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public Builder addAllOutputMemory(
          java.lang.Iterable<? extends java.lang.Long> values) {
        ensureOutputMemoryIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, outputMemory_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The output information may have memory usage and output shapes.
       * </pre>
       *
       * <code>repeated int64 output_memory = 1;</code>
       */
      public Builder clearOutputMemory() {
        outputMemory_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private long tempMemory_ ;
      /**
       * <pre>
       * Temp and persistent memory allocated by this node.
       * </pre>
       *
       * <code>int64 temp_memory = 2;</code>
       */
      public long getTempMemory() {
        return tempMemory_;
      }
      /**
       * <pre>
       * Temp and persistent memory allocated by this node.
       * </pre>
       *
       * <code>int64 temp_memory = 2;</code>
       */
      public Builder setTempMemory(long value) {
        
        tempMemory_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Temp and persistent memory allocated by this node.
       * </pre>
       *
       * <code>int64 temp_memory = 2;</code>
       */
      public Builder clearTempMemory() {
        
        tempMemory_ = 0L;
        onChanged();
        return this;
      }

      private long persistentMemory_ ;
      /**
       * <code>int64 persistent_memory = 4;</code>
       */
      public long getPersistentMemory() {
        return persistentMemory_;
      }
      /**
       * <code>int64 persistent_memory = 4;</code>
       */
      public Builder setPersistentMemory(long value) {
        
        persistentMemory_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 persistent_memory = 4;</code>
       */
      public Builder clearPersistentMemory() {
        
        persistentMemory_ = 0L;
        onChanged();
        return this;
      }

      private long deviceTempMemory_ ;
      /**
       * <code>int64 device_temp_memory = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated public long getDeviceTempMemory() {
        return deviceTempMemory_;
      }
      /**
       * <code>int64 device_temp_memory = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated public Builder setDeviceTempMemory(long value) {
        
        deviceTempMemory_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 device_temp_memory = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated public Builder clearDeviceTempMemory() {
        
        deviceTempMemory_ = 0L;
        onChanged();
        return this;
      }

      private long devicePersistentMemory_ ;
      /**
       * <code>int64 device_persistent_memory = 5 [deprecated = true];</code>
       */
      @java.lang.Deprecated public long getDevicePersistentMemory() {
        return devicePersistentMemory_;
      }
      /**
       * <code>int64 device_persistent_memory = 5 [deprecated = true];</code>
       */
      @java.lang.Deprecated public Builder setDevicePersistentMemory(long value) {
        
        devicePersistentMemory_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 device_persistent_memory = 5 [deprecated = true];</code>
       */
      @java.lang.Deprecated public Builder clearDevicePersistentMemory() {
        
        devicePersistentMemory_ = 0L;
        onChanged();
        return this;
      }
      @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.OpPerformance.OpMemory)
    }

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

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

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

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

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

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

  }

  private int executionTimeCase_ = 0;
  private java.lang.Object executionTime_;
  public enum ExecutionTimeCase
      implements com.google.protobuf.Internal.EnumLite {
    EXECUTION_TIME_NORMAL(10),
    EXECUTION_TIME_LOG_NORMAL(11),
    EXECUTIONTIME_NOT_SET(0);
    private final int value;
    private ExecutionTimeCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ExecutionTimeCase valueOf(int value) {
      return forNumber(value);
    }

    public static ExecutionTimeCase forNumber(int value) {
      switch (value) {
        case 10: return EXECUTION_TIME_NORMAL;
        case 11: return EXECUTION_TIME_LOG_NORMAL;
        case 0: return EXECUTIONTIME_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ExecutionTimeCase
  getExecutionTimeCase() {
    return ExecutionTimeCase.forNumber(
        executionTimeCase_);
  }

  public static final int OP_FIELD_NUMBER = 1;
  private org.tensorflow.proto.framework.OpInfo op_;
  /**
   * <pre>
   * The op
   * </pre>
   *
   * <code>.tensorflow.OpInfo op = 1;</code>
   */
  public boolean hasOp() {
    return op_ != null;
  }
  /**
   * <pre>
   * The op
   * </pre>
   *
   * <code>.tensorflow.OpInfo op = 1;</code>
   */
  public org.tensorflow.proto.framework.OpInfo getOp() {
    return op_ == null ? org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_;
  }
  /**
   * <pre>
   * The op
   * </pre>
   *
   * <code>.tensorflow.OpInfo op = 1;</code>
   */
  public org.tensorflow.proto.framework.OpInfoOrBuilder getOpOrBuilder() {
    return getOp();
  }

  public static final int SESSION_INFO_FIELD_NUMBER = 12;
  private org.tensorflow.proto.framework.SessionInfo sessionInfo_;
  /**
   * <pre>
   * Information about the session configs.
   * </pre>
   *
   * <code>.tensorflow.SessionInfo session_info = 12 [deprecated = true];</code>
   */
  @java.lang.Deprecated public boolean hasSessionInfo() {
    return sessionInfo_ != null;
  }
  /**
   * <pre>
   * Information about the session configs.
   * </pre>
   *
   * <code>.tensorflow.SessionInfo session_info = 12 [deprecated = true];</code>
   */
  @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
   */
  @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() {
    return getSessionInfo();
  }

  public static final int NODE_FIELD_NUMBER = 5;
  private volatile java.lang.Object node_;
  /**
   * <pre>
   * The node name (optional). Makes it easier to associate the performance data
   * with a specific graph node.
   * </pre>
   *
   * <code>string node = 5;</code>
   */
  public java.lang.String getNode() {
    java.lang.Object ref = node_;
    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();
      node_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The node name (optional). Makes it easier to associate the performance data
   * with a specific graph node.
   * </pre>
   *
   * <code>string node = 5;</code>
   */
  public com.google.protobuf.ByteString
      getNodeBytes() {
    java.lang.Object ref = node_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      node_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 2;
  private long temporaryMemorySize_;
  /**
   * <pre>
   * Temporary memory used by this node (in bytes).
   * </pre>
   *
   * <code>int64 temporary_memory_size = 2;</code>
   */
  public long getTemporaryMemorySize() {
    return temporaryMemorySize_;
  }

  public static final int COMPUTE_COST_FIELD_NUMBER = 3;
  private long computeCost_;
  /**
   * <pre>
   * Time it takes to run the op (in nanoseconds).
   * </pre>
   *
   * <code>int64 compute_cost = 3;</code>
   */
  public long getComputeCost() {
    return computeCost_;
  }

  public static final int COMPUTE_TIME_FIELD_NUMBER = 6;
  private long computeTime_;
  /**
   * <pre>
   * Analytical compute cost (in nanoseconds).
   * </pre>
   *
   * <code>int64 compute_time = 6;</code>
   */
  public long getComputeTime() {
    return computeTime_;
  }

  public static final int MEMORY_TIME_FIELD_NUMBER = 7;
  private long memoryTime_;
  /**
   * <pre>
   * Analytical memory access cost (in nanoseconds).
   * </pre>
   *
   * <code>int64 memory_time = 7;</code>
   */
  public long getMemoryTime() {
    return memoryTime_;
  }

  public static final int COMPUTE_EFFICIENCY_FIELD_NUMBER = 4;
  private double computeEfficiency_;
  /**
   * <pre>
   * Percentage of theoretical compute performance.
   * </pre>
   *
   * <code>double compute_efficiency = 4;</code>
   */
  public double getComputeEfficiency() {
    return computeEfficiency_;
  }

  public static final int MEMORY_EFFICIENCY_FIELD_NUMBER = 8;
  private double memoryEfficiency_;
  /**
   * <pre>
   * Percentage of theoretical memory performance.
   * </pre>
   *
   * <code>double memory_efficiency = 8;</code>
   */
  public double getMemoryEfficiency() {
    return memoryEfficiency_;
  }

  public static final int EXECUTION_TIME_NORMAL_FIELD_NUMBER = 10;
  /**
   * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
   */
  public boolean hasExecutionTimeNormal() {
    return executionTimeCase_ == 10;
  }
  /**
   * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
   */
  public org.tensorflow.proto.framework.NormalDistribution getExecutionTimeNormal() {
    if (executionTimeCase_ == 10) {
       return (org.tensorflow.proto.framework.NormalDistribution) executionTime_;
    }
    return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
   */
  public org.tensorflow.proto.framework.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() {
    if (executionTimeCase_ == 10) {
       return (org.tensorflow.proto.framework.NormalDistribution) executionTime_;
    }
    return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
  }

  public static final int EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER = 11;
  /**
   * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
   */
  public boolean hasExecutionTimeLogNormal() {
    return executionTimeCase_ == 11;
  }
  /**
   * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
   */
  public org.tensorflow.proto.framework.LogNormalDistribution getExecutionTimeLogNormal() {
    if (executionTimeCase_ == 11) {
       return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_;
    }
    return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
   */
  public org.tensorflow.proto.framework.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() {
    if (executionTimeCase_ == 11) {
       return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_;
    }
    return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
  }

  public static final int OP_MEMORY_FIELD_NUMBER = 9;
  private org.tensorflow.proto.framework.OpPerformance.OpMemory opMemory_;
  /**
   * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
   */
  public boolean hasOpMemory() {
    return opMemory_ != null;
  }
  /**
   * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
   */
  public org.tensorflow.proto.framework.OpPerformance.OpMemory getOpMemory() {
    return opMemory_ == null ? org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_;
  }
  /**
   * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
   */
  public org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() {
    return getOpMemory();
  }

  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 (op_ != null) {
      output.writeMessage(1, getOp());
    }
    if (temporaryMemorySize_ != 0L) {
      output.writeInt64(2, temporaryMemorySize_);
    }
    if (computeCost_ != 0L) {
      output.writeInt64(3, computeCost_);
    }
    if (computeEfficiency_ != 0D) {
      output.writeDouble(4, computeEfficiency_);
    }
    if (!getNodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, node_);
    }
    if (computeTime_ != 0L) {
      output.writeInt64(6, computeTime_);
    }
    if (memoryTime_ != 0L) {
      output.writeInt64(7, memoryTime_);
    }
    if (memoryEfficiency_ != 0D) {
      output.writeDouble(8, memoryEfficiency_);
    }
    if (opMemory_ != null) {
      output.writeMessage(9, getOpMemory());
    }
    if (executionTimeCase_ == 10) {
      output.writeMessage(10, (org.tensorflow.proto.framework.NormalDistribution) executionTime_);
    }
    if (executionTimeCase_ == 11) {
      output.writeMessage(11, (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_);
    }
    if (sessionInfo_ != null) {
      output.writeMessage(12, getSessionInfo());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (op_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getOp());
    }
    if (temporaryMemorySize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, temporaryMemorySize_);
    }
    if (computeCost_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, computeCost_);
    }
    if (computeEfficiency_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(4, computeEfficiency_);
    }
    if (!getNodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, node_);
    }
    if (computeTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, computeTime_);
    }
    if (memoryTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, memoryTime_);
    }
    if (memoryEfficiency_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(8, memoryEfficiency_);
    }
    if (opMemory_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, getOpMemory());
    }
    if (executionTimeCase_ == 10) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, (org.tensorflow.proto.framework.NormalDistribution) executionTime_);
    }
    if (executionTimeCase_ == 11) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_);
    }
    if (sessionInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, 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.OpPerformance)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.framework.OpPerformance other = (org.tensorflow.proto.framework.OpPerformance) obj;

    if (hasOp() != other.hasOp()) return false;
    if (hasOp()) {
      if (!getOp()
          .equals(other.getOp())) return false;
    }
    if (hasSessionInfo() != other.hasSessionInfo()) return false;
    if (hasSessionInfo()) {
      if (!getSessionInfo()
          .equals(other.getSessionInfo())) return false;
    }
    if (!getNode()
        .equals(other.getNode())) return false;
    if (getTemporaryMemorySize()
        != other.getTemporaryMemorySize()) return false;
    if (getComputeCost()
        != other.getComputeCost()) return false;
    if (getComputeTime()
        != other.getComputeTime()) return false;
    if (getMemoryTime()
        != other.getMemoryTime()) return false;
    if (java.lang.Double.doubleToLongBits(getComputeEfficiency())
        != java.lang.Double.doubleToLongBits(
            other.getComputeEfficiency())) return false;
    if (java.lang.Double.doubleToLongBits(getMemoryEfficiency())
        != java.lang.Double.doubleToLongBits(
            other.getMemoryEfficiency())) return false;
    if (hasOpMemory() != other.hasOpMemory()) return false;
    if (hasOpMemory()) {
      if (!getOpMemory()
          .equals(other.getOpMemory())) return false;
    }
    if (!getExecutionTimeCase().equals(other.getExecutionTimeCase())) return false;
    switch (executionTimeCase_) {
      case 10:
        if (!getExecutionTimeNormal()
            .equals(other.getExecutionTimeNormal())) return false;
        break;
      case 11:
        if (!getExecutionTimeLogNormal()
            .equals(other.getExecutionTimeLogNormal())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasOp()) {
      hash = (37 * hash) + OP_FIELD_NUMBER;
      hash = (53 * hash) + getOp().hashCode();
    }
    if (hasSessionInfo()) {
      hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getSessionInfo().hashCode();
    }
    hash = (37 * hash) + NODE_FIELD_NUMBER;
    hash = (53 * hash) + getNode().hashCode();
    hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTemporaryMemorySize());
    hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getComputeCost());
    hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getComputeTime());
    hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMemoryTime());
    hash = (37 * hash) + COMPUTE_EFFICIENCY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getComputeEfficiency()));
    hash = (37 * hash) + MEMORY_EFFICIENCY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getMemoryEfficiency()));
    if (hasOpMemory()) {
      hash = (37 * hash) + OP_MEMORY_FIELD_NUMBER;
      hash = (53 * hash) + getOpMemory().hashCode();
    }
    switch (executionTimeCase_) {
      case 10:
        hash = (37 * hash) + EXECUTION_TIME_NORMAL_FIELD_NUMBER;
        hash = (53 * hash) + getExecutionTimeNormal().hashCode();
        break;
      case 11:
        hash = (37 * hash) + EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER;
        hash = (53 * hash) + getExecutionTimeLogNormal().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.framework.OpPerformance parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpPerformance 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.OpPerformance parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpPerformance 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.OpPerformance parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.OpPerformance parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.OpPerformance parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpPerformance 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.OpPerformance parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpPerformance 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.OpPerformance parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.OpPerformance 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.OpPerformance 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>
   * Performance data for tensorflow operations
   * </pre>
   *
   * Protobuf type {@code tensorflow.OpPerformance}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance)
      org.tensorflow.proto.framework.OpPerformanceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_descriptor;
    }

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

    // Construct using org.tensorflow.proto.framework.OpPerformance.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();
      if (opBuilder_ == null) {
        op_ = null;
      } else {
        op_ = null;
        opBuilder_ = null;
      }
      if (sessionInfoBuilder_ == null) {
        sessionInfo_ = null;
      } else {
        sessionInfo_ = null;
        sessionInfoBuilder_ = null;
      }
      node_ = "";

      temporaryMemorySize_ = 0L;

      computeCost_ = 0L;

      computeTime_ = 0L;

      memoryTime_ = 0L;

      computeEfficiency_ = 0D;

      memoryEfficiency_ = 0D;

      if (opMemoryBuilder_ == null) {
        opMemory_ = null;
      } else {
        opMemory_ = null;
        opMemoryBuilder_ = null;
      }
      executionTimeCase_ = 0;
      executionTime_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.OpPerformance buildPartial() {
      org.tensorflow.proto.framework.OpPerformance result = new org.tensorflow.proto.framework.OpPerformance(this);
      if (opBuilder_ == null) {
        result.op_ = op_;
      } else {
        result.op_ = opBuilder_.build();
      }
      if (sessionInfoBuilder_ == null) {
        result.sessionInfo_ = sessionInfo_;
      } else {
        result.sessionInfo_ = sessionInfoBuilder_.build();
      }
      result.node_ = node_;
      result.temporaryMemorySize_ = temporaryMemorySize_;
      result.computeCost_ = computeCost_;
      result.computeTime_ = computeTime_;
      result.memoryTime_ = memoryTime_;
      result.computeEfficiency_ = computeEfficiency_;
      result.memoryEfficiency_ = memoryEfficiency_;
      if (executionTimeCase_ == 10) {
        if (executionTimeNormalBuilder_ == null) {
          result.executionTime_ = executionTime_;
        } else {
          result.executionTime_ = executionTimeNormalBuilder_.build();
        }
      }
      if (executionTimeCase_ == 11) {
        if (executionTimeLogNormalBuilder_ == null) {
          result.executionTime_ = executionTime_;
        } else {
          result.executionTime_ = executionTimeLogNormalBuilder_.build();
        }
      }
      if (opMemoryBuilder_ == null) {
        result.opMemory_ = opMemory_;
      } else {
        result.opMemory_ = opMemoryBuilder_.build();
      }
      result.executionTimeCase_ = executionTimeCase_;
      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.OpPerformance) {
        return mergeFrom((org.tensorflow.proto.framework.OpPerformance)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.framework.OpPerformance other) {
      if (other == org.tensorflow.proto.framework.OpPerformance.getDefaultInstance()) return this;
      if (other.hasOp()) {
        mergeOp(other.getOp());
      }
      if (other.hasSessionInfo()) {
        mergeSessionInfo(other.getSessionInfo());
      }
      if (!other.getNode().isEmpty()) {
        node_ = other.node_;
        onChanged();
      }
      if (other.getTemporaryMemorySize() != 0L) {
        setTemporaryMemorySize(other.getTemporaryMemorySize());
      }
      if (other.getComputeCost() != 0L) {
        setComputeCost(other.getComputeCost());
      }
      if (other.getComputeTime() != 0L) {
        setComputeTime(other.getComputeTime());
      }
      if (other.getMemoryTime() != 0L) {
        setMemoryTime(other.getMemoryTime());
      }
      if (other.getComputeEfficiency() != 0D) {
        setComputeEfficiency(other.getComputeEfficiency());
      }
      if (other.getMemoryEfficiency() != 0D) {
        setMemoryEfficiency(other.getMemoryEfficiency());
      }
      if (other.hasOpMemory()) {
        mergeOpMemory(other.getOpMemory());
      }
      switch (other.getExecutionTimeCase()) {
        case EXECUTION_TIME_NORMAL: {
          mergeExecutionTimeNormal(other.getExecutionTimeNormal());
          break;
        }
        case EXECUTION_TIME_LOG_NORMAL: {
          mergeExecutionTimeLogNormal(other.getExecutionTimeLogNormal());
          break;
        }
        case EXECUTIONTIME_NOT_SET: {
          break;
        }
      }
      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.OpPerformance parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.framework.OpPerformance) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int executionTimeCase_ = 0;
    private java.lang.Object executionTime_;
    public ExecutionTimeCase
        getExecutionTimeCase() {
      return ExecutionTimeCase.forNumber(
          executionTimeCase_);
    }

    public Builder clearExecutionTime() {
      executionTimeCase_ = 0;
      executionTime_ = null;
      onChanged();
      return this;
    }


    private org.tensorflow.proto.framework.OpInfo op_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder> opBuilder_;
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public boolean hasOp() {
      return opBuilder_ != null || op_ != null;
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public org.tensorflow.proto.framework.OpInfo getOp() {
      if (opBuilder_ == null) {
        return op_ == null ? org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_;
      } else {
        return opBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public Builder setOp(org.tensorflow.proto.framework.OpInfo value) {
      if (opBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        op_ = value;
        onChanged();
      } else {
        opBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public Builder setOp(
        org.tensorflow.proto.framework.OpInfo.Builder builderForValue) {
      if (opBuilder_ == null) {
        op_ = builderForValue.build();
        onChanged();
      } else {
        opBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public Builder mergeOp(org.tensorflow.proto.framework.OpInfo value) {
      if (opBuilder_ == null) {
        if (op_ != null) {
          op_ =
            org.tensorflow.proto.framework.OpInfo.newBuilder(op_).mergeFrom(value).buildPartial();
        } else {
          op_ = value;
        }
        onChanged();
      } else {
        opBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public Builder clearOp() {
      if (opBuilder_ == null) {
        op_ = null;
        onChanged();
      } else {
        op_ = null;
        opBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public org.tensorflow.proto.framework.OpInfo.Builder getOpBuilder() {
      
      onChanged();
      return getOpFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    public org.tensorflow.proto.framework.OpInfoOrBuilder getOpOrBuilder() {
      if (opBuilder_ != null) {
        return opBuilder_.getMessageOrBuilder();
      } else {
        return op_ == null ?
            org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_;
      }
    }
    /**
     * <pre>
     * The op
     * </pre>
     *
     * <code>.tensorflow.OpInfo op = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder> 
        getOpFieldBuilder() {
      if (opBuilder_ == null) {
        opBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder>(
                getOp(),
                getParentForChildren(),
                isClean());
        op_ = null;
      }
      return opBuilder_;
    }

    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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated public boolean hasSessionInfo() {
      return sessionInfoBuilder_ != null || sessionInfo_ != null;
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfo.Builder getSessionInfoBuilder() {
      
      onChanged();
      return getSessionInfoFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Information about the session configs.
     * </pre>
     *
     * <code>.tensorflow.SessionInfo session_info = 12 [deprecated = true];</code>
     */
    @java.lang.Deprecated 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 = 12 [deprecated = true];</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_;
    }

    private java.lang.Object node_ = "";
    /**
     * <pre>
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * </pre>
     *
     * <code>string node = 5;</code>
     */
    public java.lang.String getNode() {
      java.lang.Object ref = node_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        node_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * </pre>
     *
     * <code>string node = 5;</code>
     */
    public com.google.protobuf.ByteString
        getNodeBytes() {
      java.lang.Object ref = node_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        node_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * </pre>
     *
     * <code>string node = 5;</code>
     */
    public Builder setNode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      node_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * </pre>
     *
     * <code>string node = 5;</code>
     */
    public Builder clearNode() {
      
      node_ = getDefaultInstance().getNode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * </pre>
     *
     * <code>string node = 5;</code>
     */
    public Builder setNodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      node_ = value;
      onChanged();
      return this;
    }

    private long temporaryMemorySize_ ;
    /**
     * <pre>
     * Temporary memory used by this node (in bytes).
     * </pre>
     *
     * <code>int64 temporary_memory_size = 2;</code>
     */
    public long getTemporaryMemorySize() {
      return temporaryMemorySize_;
    }
    /**
     * <pre>
     * Temporary memory used by this node (in bytes).
     * </pre>
     *
     * <code>int64 temporary_memory_size = 2;</code>
     */
    public Builder setTemporaryMemorySize(long value) {
      
      temporaryMemorySize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Temporary memory used by this node (in bytes).
     * </pre>
     *
     * <code>int64 temporary_memory_size = 2;</code>
     */
    public Builder clearTemporaryMemorySize() {
      
      temporaryMemorySize_ = 0L;
      onChanged();
      return this;
    }

    private long computeCost_ ;
    /**
     * <pre>
     * Time it takes to run the op (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_cost = 3;</code>
     */
    public long getComputeCost() {
      return computeCost_;
    }
    /**
     * <pre>
     * Time it takes to run the op (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_cost = 3;</code>
     */
    public Builder setComputeCost(long value) {
      
      computeCost_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Time it takes to run the op (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_cost = 3;</code>
     */
    public Builder clearComputeCost() {
      
      computeCost_ = 0L;
      onChanged();
      return this;
    }

    private long computeTime_ ;
    /**
     * <pre>
     * Analytical compute cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_time = 6;</code>
     */
    public long getComputeTime() {
      return computeTime_;
    }
    /**
     * <pre>
     * Analytical compute cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_time = 6;</code>
     */
    public Builder setComputeTime(long value) {
      
      computeTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Analytical compute cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 compute_time = 6;</code>
     */
    public Builder clearComputeTime() {
      
      computeTime_ = 0L;
      onChanged();
      return this;
    }

    private long memoryTime_ ;
    /**
     * <pre>
     * Analytical memory access cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 memory_time = 7;</code>
     */
    public long getMemoryTime() {
      return memoryTime_;
    }
    /**
     * <pre>
     * Analytical memory access cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 memory_time = 7;</code>
     */
    public Builder setMemoryTime(long value) {
      
      memoryTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Analytical memory access cost (in nanoseconds).
     * </pre>
     *
     * <code>int64 memory_time = 7;</code>
     */
    public Builder clearMemoryTime() {
      
      memoryTime_ = 0L;
      onChanged();
      return this;
    }

    private double computeEfficiency_ ;
    /**
     * <pre>
     * Percentage of theoretical compute performance.
     * </pre>
     *
     * <code>double compute_efficiency = 4;</code>
     */
    public double getComputeEfficiency() {
      return computeEfficiency_;
    }
    /**
     * <pre>
     * Percentage of theoretical compute performance.
     * </pre>
     *
     * <code>double compute_efficiency = 4;</code>
     */
    public Builder setComputeEfficiency(double value) {
      
      computeEfficiency_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Percentage of theoretical compute performance.
     * </pre>
     *
     * <code>double compute_efficiency = 4;</code>
     */
    public Builder clearComputeEfficiency() {
      
      computeEfficiency_ = 0D;
      onChanged();
      return this;
    }

    private double memoryEfficiency_ ;
    /**
     * <pre>
     * Percentage of theoretical memory performance.
     * </pre>
     *
     * <code>double memory_efficiency = 8;</code>
     */
    public double getMemoryEfficiency() {
      return memoryEfficiency_;
    }
    /**
     * <pre>
     * Percentage of theoretical memory performance.
     * </pre>
     *
     * <code>double memory_efficiency = 8;</code>
     */
    public Builder setMemoryEfficiency(double value) {
      
      memoryEfficiency_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Percentage of theoretical memory performance.
     * </pre>
     *
     * <code>double memory_efficiency = 8;</code>
     */
    public Builder clearMemoryEfficiency() {
      
      memoryEfficiency_ = 0D;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder> executionTimeNormalBuilder_;
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public boolean hasExecutionTimeNormal() {
      return executionTimeCase_ == 10;
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public org.tensorflow.proto.framework.NormalDistribution getExecutionTimeNormal() {
      if (executionTimeNormalBuilder_ == null) {
        if (executionTimeCase_ == 10) {
          return (org.tensorflow.proto.framework.NormalDistribution) executionTime_;
        }
        return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
      } else {
        if (executionTimeCase_ == 10) {
          return executionTimeNormalBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public Builder setExecutionTimeNormal(org.tensorflow.proto.framework.NormalDistribution value) {
      if (executionTimeNormalBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        executionTime_ = value;
        onChanged();
      } else {
        executionTimeNormalBuilder_.setMessage(value);
      }
      executionTimeCase_ = 10;
      return this;
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public Builder setExecutionTimeNormal(
        org.tensorflow.proto.framework.NormalDistribution.Builder builderForValue) {
      if (executionTimeNormalBuilder_ == null) {
        executionTime_ = builderForValue.build();
        onChanged();
      } else {
        executionTimeNormalBuilder_.setMessage(builderForValue.build());
      }
      executionTimeCase_ = 10;
      return this;
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public Builder mergeExecutionTimeNormal(org.tensorflow.proto.framework.NormalDistribution value) {
      if (executionTimeNormalBuilder_ == null) {
        if (executionTimeCase_ == 10 &&
            executionTime_ != org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance()) {
          executionTime_ = org.tensorflow.proto.framework.NormalDistribution.newBuilder((org.tensorflow.proto.framework.NormalDistribution) executionTime_)
              .mergeFrom(value).buildPartial();
        } else {
          executionTime_ = value;
        }
        onChanged();
      } else {
        if (executionTimeCase_ == 10) {
          executionTimeNormalBuilder_.mergeFrom(value);
        }
        executionTimeNormalBuilder_.setMessage(value);
      }
      executionTimeCase_ = 10;
      return this;
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public Builder clearExecutionTimeNormal() {
      if (executionTimeNormalBuilder_ == null) {
        if (executionTimeCase_ == 10) {
          executionTimeCase_ = 0;
          executionTime_ = null;
          onChanged();
        }
      } else {
        if (executionTimeCase_ == 10) {
          executionTimeCase_ = 0;
          executionTime_ = null;
        }
        executionTimeNormalBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public org.tensorflow.proto.framework.NormalDistribution.Builder getExecutionTimeNormalBuilder() {
      return getExecutionTimeNormalFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    public org.tensorflow.proto.framework.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() {
      if ((executionTimeCase_ == 10) && (executionTimeNormalBuilder_ != null)) {
        return executionTimeNormalBuilder_.getMessageOrBuilder();
      } else {
        if (executionTimeCase_ == 10) {
          return (org.tensorflow.proto.framework.NormalDistribution) executionTime_;
        }
        return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.NormalDistribution execution_time_normal = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder> 
        getExecutionTimeNormalFieldBuilder() {
      if (executionTimeNormalBuilder_ == null) {
        if (!(executionTimeCase_ == 10)) {
          executionTime_ = org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance();
        }
        executionTimeNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder>(
                (org.tensorflow.proto.framework.NormalDistribution) executionTime_,
                getParentForChildren(),
                isClean());
        executionTime_ = null;
      }
      executionTimeCase_ = 10;
      onChanged();;
      return executionTimeNormalBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder> executionTimeLogNormalBuilder_;
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public boolean hasExecutionTimeLogNormal() {
      return executionTimeCase_ == 11;
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public org.tensorflow.proto.framework.LogNormalDistribution getExecutionTimeLogNormal() {
      if (executionTimeLogNormalBuilder_ == null) {
        if (executionTimeCase_ == 11) {
          return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_;
        }
        return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
      } else {
        if (executionTimeCase_ == 11) {
          return executionTimeLogNormalBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public Builder setExecutionTimeLogNormal(org.tensorflow.proto.framework.LogNormalDistribution value) {
      if (executionTimeLogNormalBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        executionTime_ = value;
        onChanged();
      } else {
        executionTimeLogNormalBuilder_.setMessage(value);
      }
      executionTimeCase_ = 11;
      return this;
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public Builder setExecutionTimeLogNormal(
        org.tensorflow.proto.framework.LogNormalDistribution.Builder builderForValue) {
      if (executionTimeLogNormalBuilder_ == null) {
        executionTime_ = builderForValue.build();
        onChanged();
      } else {
        executionTimeLogNormalBuilder_.setMessage(builderForValue.build());
      }
      executionTimeCase_ = 11;
      return this;
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public Builder mergeExecutionTimeLogNormal(org.tensorflow.proto.framework.LogNormalDistribution value) {
      if (executionTimeLogNormalBuilder_ == null) {
        if (executionTimeCase_ == 11 &&
            executionTime_ != org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance()) {
          executionTime_ = org.tensorflow.proto.framework.LogNormalDistribution.newBuilder((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_)
              .mergeFrom(value).buildPartial();
        } else {
          executionTime_ = value;
        }
        onChanged();
      } else {
        if (executionTimeCase_ == 11) {
          executionTimeLogNormalBuilder_.mergeFrom(value);
        }
        executionTimeLogNormalBuilder_.setMessage(value);
      }
      executionTimeCase_ = 11;
      return this;
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public Builder clearExecutionTimeLogNormal() {
      if (executionTimeLogNormalBuilder_ == null) {
        if (executionTimeCase_ == 11) {
          executionTimeCase_ = 0;
          executionTime_ = null;
          onChanged();
        }
      } else {
        if (executionTimeCase_ == 11) {
          executionTimeCase_ = 0;
          executionTime_ = null;
        }
        executionTimeLogNormalBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public org.tensorflow.proto.framework.LogNormalDistribution.Builder getExecutionTimeLogNormalBuilder() {
      return getExecutionTimeLogNormalFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    public org.tensorflow.proto.framework.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() {
      if ((executionTimeCase_ == 11) && (executionTimeLogNormalBuilder_ != null)) {
        return executionTimeLogNormalBuilder_.getMessageOrBuilder();
      } else {
        if (executionTimeCase_ == 11) {
          return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_;
        }
        return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.LogNormalDistribution execution_time_log_normal = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder> 
        getExecutionTimeLogNormalFieldBuilder() {
      if (executionTimeLogNormalBuilder_ == null) {
        if (!(executionTimeCase_ == 11)) {
          executionTime_ = org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance();
        }
        executionTimeLogNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder>(
                (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_,
                getParentForChildren(),
                isClean());
        executionTime_ = null;
      }
      executionTimeCase_ = 11;
      onChanged();;
      return executionTimeLogNormalBuilder_;
    }

    private org.tensorflow.proto.framework.OpPerformance.OpMemory opMemory_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder> opMemoryBuilder_;
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public boolean hasOpMemory() {
      return opMemoryBuilder_ != null || opMemory_ != null;
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public org.tensorflow.proto.framework.OpPerformance.OpMemory getOpMemory() {
      if (opMemoryBuilder_ == null) {
        return opMemory_ == null ? org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_;
      } else {
        return opMemoryBuilder_.getMessage();
      }
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public Builder setOpMemory(org.tensorflow.proto.framework.OpPerformance.OpMemory value) {
      if (opMemoryBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        opMemory_ = value;
        onChanged();
      } else {
        opMemoryBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public Builder setOpMemory(
        org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder builderForValue) {
      if (opMemoryBuilder_ == null) {
        opMemory_ = builderForValue.build();
        onChanged();
      } else {
        opMemoryBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public Builder mergeOpMemory(org.tensorflow.proto.framework.OpPerformance.OpMemory value) {
      if (opMemoryBuilder_ == null) {
        if (opMemory_ != null) {
          opMemory_ =
            org.tensorflow.proto.framework.OpPerformance.OpMemory.newBuilder(opMemory_).mergeFrom(value).buildPartial();
        } else {
          opMemory_ = value;
        }
        onChanged();
      } else {
        opMemoryBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public Builder clearOpMemory() {
      if (opMemoryBuilder_ == null) {
        opMemory_ = null;
        onChanged();
      } else {
        opMemory_ = null;
        opMemoryBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder getOpMemoryBuilder() {
      
      onChanged();
      return getOpMemoryFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    public org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() {
      if (opMemoryBuilder_ != null) {
        return opMemoryBuilder_.getMessageOrBuilder();
      } else {
        return opMemory_ == null ?
            org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_;
      }
    }
    /**
     * <code>.tensorflow.OpPerformance.OpMemory op_memory = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder> 
        getOpMemoryFieldBuilder() {
      if (opMemoryBuilder_ == null) {
        opMemoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder>(
                getOpMemory(),
                getParentForChildren(),
                isClean());
        opMemory_ = null;
      }
      return opMemoryBuilder_;
    }
    @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.OpPerformance)
  }

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

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

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

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

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

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

}

