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

package org.tensorflow.proto.util;

/**
 * <pre>
 * The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
 * </pre>
 *
 * Protobuf type {@code tensorflow.GraphOpCreation}
 */
public  final class GraphOpCreation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.GraphOpCreation)
    GraphOpCreationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GraphOpCreation.newBuilder() to construct.
  private GraphOpCreation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GraphOpCreation() {
    opType_ = "";
    opName_ = "";
    graphName_ = "";
    graphId_ = "";
    deviceName_ = "";
    inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    outputTensorIds_ = emptyIntList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GraphOpCreation(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            opType_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            opName_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            graphName_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

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

            deviceName_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              inputNames_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            inputNames_.add(s);
            break;
          }
          case 56: {

            numOutputs_ = input.readInt32();
            break;
          }
          case 66: {
            org.tensorflow.proto.util.CodeLocation.Builder subBuilder = null;
            if (codeLocation_ != null) {
              subBuilder = codeLocation_.toBuilder();
            }
            codeLocation_ = input.readMessage(org.tensorflow.proto.util.CodeLocation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(codeLocation_);
              codeLocation_ = subBuilder.buildPartial();
            }

            break;
          }
          case 72: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              outputTensorIds_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            outputTensorIds_.addInt(input.readInt32());
            break;
          }
          case 74: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              outputTensorIds_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              outputTensorIds_.addInt(input.readInt32());
            }
            input.popLimit(limit);
            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)) {
        inputNames_ = inputNames_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        outputTensorIds_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.util.GraphOpCreation.class, org.tensorflow.proto.util.GraphOpCreation.Builder.class);
  }

  public static final int OP_TYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object opType_;
  /**
   * <pre>
   * Type of the op (e.g., "MatMul").
   * </pre>
   *
   * <code>string op_type = 1;</code>
   */
  public java.lang.String getOpType() {
    java.lang.Object ref = opType_;
    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();
      opType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Type of the op (e.g., "MatMul").
   * </pre>
   *
   * <code>string op_type = 1;</code>
   */
  public com.google.protobuf.ByteString
      getOpTypeBytes() {
    java.lang.Object ref = opType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      opType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OP_NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object opName_;
  /**
   * <pre>
   * Name of the op (e.g., "Dense/MatMul_1").
   * </pre>
   *
   * <code>string op_name = 2;</code>
   */
  public java.lang.String getOpName() {
    java.lang.Object ref = opName_;
    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();
      opName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Name of the op (e.g., "Dense/MatMul_1").
   * </pre>
   *
   * <code>string op_name = 2;</code>
   */
  public com.google.protobuf.ByteString
      getOpNameBytes() {
    java.lang.Object ref = opName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      opName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GRAPH_NAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object graphName_;
  /**
   * <pre>
   * Name of the graph that the op is a part of (if available).
   * </pre>
   *
   * <code>string graph_name = 3;</code>
   */
  public java.lang.String getGraphName() {
    java.lang.Object ref = graphName_;
    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();
      graphName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Name of the graph that the op is a part of (if available).
   * </pre>
   *
   * <code>string graph_name = 3;</code>
   */
  public com.google.protobuf.ByteString
      getGraphNameBytes() {
    java.lang.Object ref = graphName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      graphName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GRAPH_ID_FIELD_NUMBER = 4;
  private volatile java.lang.Object graphId_;
  /**
   * <pre>
   * Unique ID of the graph (generated by debugger).
   * This is the ID of the immediately-enclosing graph.
   * </pre>
   *
   * <code>string graph_id = 4;</code>
   */
  public java.lang.String getGraphId() {
    java.lang.Object ref = graphId_;
    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();
      graphId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Unique ID of the graph (generated by debugger).
   * This is the ID of the immediately-enclosing graph.
   * </pre>
   *
   * <code>string graph_id = 4;</code>
   */
  public com.google.protobuf.ByteString
      getGraphIdBytes() {
    java.lang.Object ref = graphId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      graphId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEVICE_NAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object deviceName_;
  /**
   * <pre>
   * Name of the device that the op is assigned to (if available).
   * </pre>
   *
   * <code>string device_name = 5;</code>
   */
  public java.lang.String getDeviceName() {
    java.lang.Object ref = deviceName_;
    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();
      deviceName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Name of the device that the op is assigned to (if available).
   * </pre>
   *
   * <code>string device_name = 5;</code>
   */
  public com.google.protobuf.ByteString
      getDeviceNameBytes() {
    java.lang.Object ref = deviceName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deviceName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INPUT_NAMES_FIELD_NUMBER = 6;
  private com.google.protobuf.LazyStringList inputNames_;
  /**
   * <pre>
   * Names of the input tensors to the op.
   * </pre>
   *
   * <code>repeated string input_names = 6;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getInputNamesList() {
    return inputNames_;
  }
  /**
   * <pre>
   * Names of the input tensors to the op.
   * </pre>
   *
   * <code>repeated string input_names = 6;</code>
   */
  public int getInputNamesCount() {
    return inputNames_.size();
  }
  /**
   * <pre>
   * Names of the input tensors to the op.
   * </pre>
   *
   * <code>repeated string input_names = 6;</code>
   */
  public java.lang.String getInputNames(int index) {
    return inputNames_.get(index);
  }
  /**
   * <pre>
   * Names of the input tensors to the op.
   * </pre>
   *
   * <code>repeated string input_names = 6;</code>
   */
  public com.google.protobuf.ByteString
      getInputNamesBytes(int index) {
    return inputNames_.getByteString(index);
  }

  public static final int NUM_OUTPUTS_FIELD_NUMBER = 7;
  private int numOutputs_;
  /**
   * <pre>
   * Number of output tensors emitted by the op.
   * </pre>
   *
   * <code>int32 num_outputs = 7;</code>
   */
  public int getNumOutputs() {
    return numOutputs_;
  }

  public static final int CODE_LOCATION_FIELD_NUMBER = 8;
  private org.tensorflow.proto.util.CodeLocation codeLocation_;
  /**
   * <pre>
   * The unique ID for code location (stack trace) of the op's creation.
   * </pre>
   *
   * <code>.tensorflow.CodeLocation code_location = 8;</code>
   */
  public boolean hasCodeLocation() {
    return codeLocation_ != null;
  }
  /**
   * <pre>
   * The unique ID for code location (stack trace) of the op's creation.
   * </pre>
   *
   * <code>.tensorflow.CodeLocation code_location = 8;</code>
   */
  public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
    return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
  }
  /**
   * <pre>
   * The unique ID for code location (stack trace) of the op's creation.
   * </pre>
   *
   * <code>.tensorflow.CodeLocation code_location = 8;</code>
   */
  public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() {
    return getCodeLocation();
  }

  public static final int OUTPUT_TENSOR_IDS_FIELD_NUMBER = 9;
  private com.google.protobuf.Internal.IntList outputTensorIds_;
  /**
   * <pre>
   * Unique IDs for the output tensors of this op.
   * </pre>
   *
   * <code>repeated int32 output_tensor_ids = 9;</code>
   */
  public java.util.List<java.lang.Integer>
      getOutputTensorIdsList() {
    return outputTensorIds_;
  }
  /**
   * <pre>
   * Unique IDs for the output tensors of this op.
   * </pre>
   *
   * <code>repeated int32 output_tensor_ids = 9;</code>
   */
  public int getOutputTensorIdsCount() {
    return outputTensorIds_.size();
  }
  /**
   * <pre>
   * Unique IDs for the output tensors of this op.
   * </pre>
   *
   * <code>repeated int32 output_tensor_ids = 9;</code>
   */
  public int getOutputTensorIds(int index) {
    return outputTensorIds_.getInt(index);
  }
  private int outputTensorIdsMemoizedSerializedSize = -1;

  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 (!getOpTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, opType_);
    }
    if (!getOpNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, opName_);
    }
    if (!getGraphNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graphName_);
    }
    if (!getGraphIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, graphId_);
    }
    if (!getDeviceNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deviceName_);
    }
    for (int i = 0; i < inputNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, inputNames_.getRaw(i));
    }
    if (numOutputs_ != 0) {
      output.writeInt32(7, numOutputs_);
    }
    if (codeLocation_ != null) {
      output.writeMessage(8, getCodeLocation());
    }
    if (getOutputTensorIdsList().size() > 0) {
      output.writeUInt32NoTag(74);
      output.writeUInt32NoTag(outputTensorIdsMemoizedSerializedSize);
    }
    for (int i = 0; i < outputTensorIds_.size(); i++) {
      output.writeInt32NoTag(outputTensorIds_.getInt(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getOpTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, opType_);
    }
    if (!getOpNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, opName_);
    }
    if (!getGraphNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graphName_);
    }
    if (!getGraphIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, graphId_);
    }
    if (!getDeviceNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deviceName_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < inputNames_.size(); i++) {
        dataSize += computeStringSizeNoTag(inputNames_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInputNamesList().size();
    }
    if (numOutputs_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, numOutputs_);
    }
    if (codeLocation_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getCodeLocation());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < outputTensorIds_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeInt32SizeNoTag(outputTensorIds_.getInt(i));
      }
      size += dataSize;
      if (!getOutputTensorIdsList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      outputTensorIdsMemoizedSerializedSize = dataSize;
    }
    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.util.GraphOpCreation)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.util.GraphOpCreation other = (org.tensorflow.proto.util.GraphOpCreation) obj;

    if (!getOpType()
        .equals(other.getOpType())) return false;
    if (!getOpName()
        .equals(other.getOpName())) return false;
    if (!getGraphName()
        .equals(other.getGraphName())) return false;
    if (!getGraphId()
        .equals(other.getGraphId())) return false;
    if (!getDeviceName()
        .equals(other.getDeviceName())) return false;
    if (!getInputNamesList()
        .equals(other.getInputNamesList())) return false;
    if (getNumOutputs()
        != other.getNumOutputs()) return false;
    if (hasCodeLocation() != other.hasCodeLocation()) return false;
    if (hasCodeLocation()) {
      if (!getCodeLocation()
          .equals(other.getCodeLocation())) return false;
    }
    if (!getOutputTensorIdsList()
        .equals(other.getOutputTensorIdsList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + OP_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOpType().hashCode();
    hash = (37 * hash) + OP_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getOpName().hashCode();
    hash = (37 * hash) + GRAPH_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getGraphName().hashCode();
    hash = (37 * hash) + GRAPH_ID_FIELD_NUMBER;
    hash = (53 * hash) + getGraphId().hashCode();
    hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeviceName().hashCode();
    if (getInputNamesCount() > 0) {
      hash = (37 * hash) + INPUT_NAMES_FIELD_NUMBER;
      hash = (53 * hash) + getInputNamesList().hashCode();
    }
    hash = (37 * hash) + NUM_OUTPUTS_FIELD_NUMBER;
    hash = (53 * hash) + getNumOutputs();
    if (hasCodeLocation()) {
      hash = (37 * hash) + CODE_LOCATION_FIELD_NUMBER;
      hash = (53 * hash) + getCodeLocation().hashCode();
    }
    if (getOutputTensorIdsCount() > 0) {
      hash = (37 * hash) + OUTPUT_TENSOR_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getOutputTensorIdsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.util.GraphOpCreation parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.util.GraphOpCreation 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.util.GraphOpCreation parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.util.GraphOpCreation 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.util.GraphOpCreation parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.util.GraphOpCreation parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.util.GraphOpCreation parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.util.GraphOpCreation 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.util.GraphOpCreation parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.util.GraphOpCreation 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.util.GraphOpCreation parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.util.GraphOpCreation 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.util.GraphOpCreation 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>
   * The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
   * </pre>
   *
   * Protobuf type {@code tensorflow.GraphOpCreation}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.GraphOpCreation)
      org.tensorflow.proto.util.GraphOpCreationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.util.GraphOpCreation.class, org.tensorflow.proto.util.GraphOpCreation.Builder.class);
    }

    // Construct using org.tensorflow.proto.util.GraphOpCreation.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();
      opType_ = "";

      opName_ = "";

      graphName_ = "";

      graphId_ = "";

      deviceName_ = "";

      inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      numOutputs_ = 0;

      if (codeLocationBuilder_ == null) {
        codeLocation_ = null;
      } else {
        codeLocation_ = null;
        codeLocationBuilder_ = null;
      }
      outputTensorIds_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor;
    }

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

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

    @java.lang.Override
    public org.tensorflow.proto.util.GraphOpCreation buildPartial() {
      org.tensorflow.proto.util.GraphOpCreation result = new org.tensorflow.proto.util.GraphOpCreation(this);
      int from_bitField0_ = bitField0_;
      result.opType_ = opType_;
      result.opName_ = opName_;
      result.graphName_ = graphName_;
      result.graphId_ = graphId_;
      result.deviceName_ = deviceName_;
      if (((bitField0_ & 0x00000001) != 0)) {
        inputNames_ = inputNames_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.inputNames_ = inputNames_;
      result.numOutputs_ = numOutputs_;
      if (codeLocationBuilder_ == null) {
        result.codeLocation_ = codeLocation_;
      } else {
        result.codeLocation_ = codeLocationBuilder_.build();
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        outputTensorIds_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.outputTensorIds_ = outputTensorIds_;
      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.util.GraphOpCreation) {
        return mergeFrom((org.tensorflow.proto.util.GraphOpCreation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.util.GraphOpCreation other) {
      if (other == org.tensorflow.proto.util.GraphOpCreation.getDefaultInstance()) return this;
      if (!other.getOpType().isEmpty()) {
        opType_ = other.opType_;
        onChanged();
      }
      if (!other.getOpName().isEmpty()) {
        opName_ = other.opName_;
        onChanged();
      }
      if (!other.getGraphName().isEmpty()) {
        graphName_ = other.graphName_;
        onChanged();
      }
      if (!other.getGraphId().isEmpty()) {
        graphId_ = other.graphId_;
        onChanged();
      }
      if (!other.getDeviceName().isEmpty()) {
        deviceName_ = other.deviceName_;
        onChanged();
      }
      if (!other.inputNames_.isEmpty()) {
        if (inputNames_.isEmpty()) {
          inputNames_ = other.inputNames_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureInputNamesIsMutable();
          inputNames_.addAll(other.inputNames_);
        }
        onChanged();
      }
      if (other.getNumOutputs() != 0) {
        setNumOutputs(other.getNumOutputs());
      }
      if (other.hasCodeLocation()) {
        mergeCodeLocation(other.getCodeLocation());
      }
      if (!other.outputTensorIds_.isEmpty()) {
        if (outputTensorIds_.isEmpty()) {
          outputTensorIds_ = other.outputTensorIds_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureOutputTensorIdsIsMutable();
          outputTensorIds_.addAll(other.outputTensorIds_);
        }
        onChanged();
      }
      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.util.GraphOpCreation parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.util.GraphOpCreation) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object opType_ = "";
    /**
     * <pre>
     * Type of the op (e.g., "MatMul").
     * </pre>
     *
     * <code>string op_type = 1;</code>
     */
    public java.lang.String getOpType() {
      java.lang.Object ref = opType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        opType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Type of the op (e.g., "MatMul").
     * </pre>
     *
     * <code>string op_type = 1;</code>
     */
    public com.google.protobuf.ByteString
        getOpTypeBytes() {
      java.lang.Object ref = opType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        opType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Type of the op (e.g., "MatMul").
     * </pre>
     *
     * <code>string op_type = 1;</code>
     */
    public Builder setOpType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      opType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Type of the op (e.g., "MatMul").
     * </pre>
     *
     * <code>string op_type = 1;</code>
     */
    public Builder clearOpType() {
      
      opType_ = getDefaultInstance().getOpType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Type of the op (e.g., "MatMul").
     * </pre>
     *
     * <code>string op_type = 1;</code>
     */
    public Builder setOpTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      opType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object opName_ = "";
    /**
     * <pre>
     * Name of the op (e.g., "Dense/MatMul_1").
     * </pre>
     *
     * <code>string op_name = 2;</code>
     */
    public java.lang.String getOpName() {
      java.lang.Object ref = opName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        opName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Name of the op (e.g., "Dense/MatMul_1").
     * </pre>
     *
     * <code>string op_name = 2;</code>
     */
    public com.google.protobuf.ByteString
        getOpNameBytes() {
      java.lang.Object ref = opName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        opName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Name of the op (e.g., "Dense/MatMul_1").
     * </pre>
     *
     * <code>string op_name = 2;</code>
     */
    public Builder setOpName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      opName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the op (e.g., "Dense/MatMul_1").
     * </pre>
     *
     * <code>string op_name = 2;</code>
     */
    public Builder clearOpName() {
      
      opName_ = getDefaultInstance().getOpName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the op (e.g., "Dense/MatMul_1").
     * </pre>
     *
     * <code>string op_name = 2;</code>
     */
    public Builder setOpNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      opName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object graphName_ = "";
    /**
     * <pre>
     * Name of the graph that the op is a part of (if available).
     * </pre>
     *
     * <code>string graph_name = 3;</code>
     */
    public java.lang.String getGraphName() {
      java.lang.Object ref = graphName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        graphName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Name of the graph that the op is a part of (if available).
     * </pre>
     *
     * <code>string graph_name = 3;</code>
     */
    public com.google.protobuf.ByteString
        getGraphNameBytes() {
      java.lang.Object ref = graphName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        graphName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Name of the graph that the op is a part of (if available).
     * </pre>
     *
     * <code>string graph_name = 3;</code>
     */
    public Builder setGraphName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      graphName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the graph that the op is a part of (if available).
     * </pre>
     *
     * <code>string graph_name = 3;</code>
     */
    public Builder clearGraphName() {
      
      graphName_ = getDefaultInstance().getGraphName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the graph that the op is a part of (if available).
     * </pre>
     *
     * <code>string graph_name = 3;</code>
     */
    public Builder setGraphNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      graphName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object graphId_ = "";
    /**
     * <pre>
     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     * </pre>
     *
     * <code>string graph_id = 4;</code>
     */
    public java.lang.String getGraphId() {
      java.lang.Object ref = graphId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        graphId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     * </pre>
     *
     * <code>string graph_id = 4;</code>
     */
    public com.google.protobuf.ByteString
        getGraphIdBytes() {
      java.lang.Object ref = graphId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        graphId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     * </pre>
     *
     * <code>string graph_id = 4;</code>
     */
    public Builder setGraphId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      graphId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     * </pre>
     *
     * <code>string graph_id = 4;</code>
     */
    public Builder clearGraphId() {
      
      graphId_ = getDefaultInstance().getGraphId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     * </pre>
     *
     * <code>string graph_id = 4;</code>
     */
    public Builder setGraphIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      graphId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deviceName_ = "";
    /**
     * <pre>
     * Name of the device that the op is assigned to (if available).
     * </pre>
     *
     * <code>string device_name = 5;</code>
     */
    public java.lang.String getDeviceName() {
      java.lang.Object ref = deviceName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deviceName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Name of the device that the op is assigned to (if available).
     * </pre>
     *
     * <code>string device_name = 5;</code>
     */
    public com.google.protobuf.ByteString
        getDeviceNameBytes() {
      java.lang.Object ref = deviceName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deviceName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Name of the device that the op is assigned to (if available).
     * </pre>
     *
     * <code>string device_name = 5;</code>
     */
    public Builder setDeviceName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deviceName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the device that the op is assigned to (if available).
     * </pre>
     *
     * <code>string device_name = 5;</code>
     */
    public Builder clearDeviceName() {
      
      deviceName_ = getDefaultInstance().getDeviceName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the device that the op is assigned to (if available).
     * </pre>
     *
     * <code>string device_name = 5;</code>
     */
    public Builder setDeviceNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deviceName_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureInputNamesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        inputNames_ = new com.google.protobuf.LazyStringArrayList(inputNames_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getInputNamesList() {
      return inputNames_.getUnmodifiableView();
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public int getInputNamesCount() {
      return inputNames_.size();
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public java.lang.String getInputNames(int index) {
      return inputNames_.get(index);
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public com.google.protobuf.ByteString
        getInputNamesBytes(int index) {
      return inputNames_.getByteString(index);
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public Builder setInputNames(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputNamesIsMutable();
      inputNames_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public Builder addInputNames(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputNamesIsMutable();
      inputNames_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public Builder addAllInputNames(
        java.lang.Iterable<java.lang.String> values) {
      ensureInputNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, inputNames_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public Builder clearInputNames() {
      inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Names of the input tensors to the op.
     * </pre>
     *
     * <code>repeated string input_names = 6;</code>
     */
    public Builder addInputNamesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureInputNamesIsMutable();
      inputNames_.add(value);
      onChanged();
      return this;
    }

    private int numOutputs_ ;
    /**
     * <pre>
     * Number of output tensors emitted by the op.
     * </pre>
     *
     * <code>int32 num_outputs = 7;</code>
     */
    public int getNumOutputs() {
      return numOutputs_;
    }
    /**
     * <pre>
     * Number of output tensors emitted by the op.
     * </pre>
     *
     * <code>int32 num_outputs = 7;</code>
     */
    public Builder setNumOutputs(int value) {
      
      numOutputs_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Number of output tensors emitted by the op.
     * </pre>
     *
     * <code>int32 num_outputs = 7;</code>
     */
    public Builder clearNumOutputs() {
      
      numOutputs_ = 0;
      onChanged();
      return this;
    }

    private org.tensorflow.proto.util.CodeLocation codeLocation_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> codeLocationBuilder_;
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public boolean hasCodeLocation() {
      return codeLocationBuilder_ != null || codeLocation_ != null;
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
      if (codeLocationBuilder_ == null) {
        return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
      } else {
        return codeLocationBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public Builder setCodeLocation(org.tensorflow.proto.util.CodeLocation value) {
      if (codeLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        codeLocation_ = value;
        onChanged();
      } else {
        codeLocationBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public Builder setCodeLocation(
        org.tensorflow.proto.util.CodeLocation.Builder builderForValue) {
      if (codeLocationBuilder_ == null) {
        codeLocation_ = builderForValue.build();
        onChanged();
      } else {
        codeLocationBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public Builder mergeCodeLocation(org.tensorflow.proto.util.CodeLocation value) {
      if (codeLocationBuilder_ == null) {
        if (codeLocation_ != null) {
          codeLocation_ =
            org.tensorflow.proto.util.CodeLocation.newBuilder(codeLocation_).mergeFrom(value).buildPartial();
        } else {
          codeLocation_ = value;
        }
        onChanged();
      } else {
        codeLocationBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public Builder clearCodeLocation() {
      if (codeLocationBuilder_ == null) {
        codeLocation_ = null;
        onChanged();
      } else {
        codeLocation_ = null;
        codeLocationBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() {
      
      onChanged();
      return getCodeLocationFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() {
      if (codeLocationBuilder_ != null) {
        return codeLocationBuilder_.getMessageOrBuilder();
      } else {
        return codeLocation_ == null ?
            org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
      }
    }
    /**
     * <pre>
     * The unique ID for code location (stack trace) of the op's creation.
     * </pre>
     *
     * <code>.tensorflow.CodeLocation code_location = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> 
        getCodeLocationFieldBuilder() {
      if (codeLocationBuilder_ == null) {
        codeLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder>(
                getCodeLocation(),
                getParentForChildren(),
                isClean());
        codeLocation_ = null;
      }
      return codeLocationBuilder_;
    }

    private com.google.protobuf.Internal.IntList outputTensorIds_ = emptyIntList();
    private void ensureOutputTensorIdsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        outputTensorIds_ = mutableCopy(outputTensorIds_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public java.util.List<java.lang.Integer>
        getOutputTensorIdsList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(outputTensorIds_) : outputTensorIds_;
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public int getOutputTensorIdsCount() {
      return outputTensorIds_.size();
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public int getOutputTensorIds(int index) {
      return outputTensorIds_.getInt(index);
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public Builder setOutputTensorIds(
        int index, int value) {
      ensureOutputTensorIdsIsMutable();
      outputTensorIds_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public Builder addOutputTensorIds(int value) {
      ensureOutputTensorIdsIsMutable();
      outputTensorIds_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public Builder addAllOutputTensorIds(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureOutputTensorIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, outputTensorIds_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique IDs for the output tensors of this op.
     * </pre>
     *
     * <code>repeated int32 output_tensor_ids = 9;</code>
     */
    public Builder clearOutputTensorIds() {
      outputTensorIds_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      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.GraphOpCreation)
  }

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

  public static org.tensorflow.proto.util.GraphOpCreation getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

