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

package org.tensorflow.proto.util;

/**
 *

 * The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
 *

 *
 * 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_;
  /**
   *

   * Type of the op (e.g., "MatMul").
   *

   *
   * string op_type = 1;
   */
  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;
    }
  }
  /**
   *

   * Type of the op (e.g., "MatMul").
   *

   *
   * string op_type = 1;
   */
  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_;
  /**
   *

   * Name of the op (e.g., "Dense/MatMul_1").
   *

   *
   * string op_name = 2;
   */
  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;
    }
  }
  /**
   *

   * Name of the op (e.g., "Dense/MatMul_1").
   *

   *
   * string op_name = 2;
   */
  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_;
  /**
   *

   * Name of the graph that the op is a part of (if available).
   *

   *
   * string graph_name = 3;
   */
  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;
    }
  }
  /**
   *

   * Name of the graph that the op is a part of (if available).
   *

   *
   * string graph_name = 3;
   */
  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_;
  /**
   *

   * Unique ID of the graph (generated by debugger).
   * This is the ID of the immediately-enclosing graph.
   *

   *
   * string graph_id = 4;
   */
  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;
    }
  }
  /**
   *

   * Unique ID of the graph (generated by debugger).
   * This is the ID of the immediately-enclosing graph.
   *

   *
   * string graph_id = 4;
   */
  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_;
  /**
   *

   * Name of the device that the op is assigned to (if available).
   *

   *
   * string device_name = 5;
   */
  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;
    }
  }
  /**
   *

   * Name of the device that the op is assigned to (if available).
   *

   *
   * string device_name = 5;
   */
  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_;
  /**
   *

   * Names of the input tensors to the op.
   *

   *
   * repeated string input_names = 6;
   */
  public com.google.protobuf.ProtocolStringList
      getInputNamesList() {
    return inputNames_;
  }
  /**
   *

   * Names of the input tensors to the op.
   *

   *
   * repeated string input_names = 6;
   */
  public int getInputNamesCount() {
    return inputNames_.size();
  }
  /**
   *

   * Names of the input tensors to the op.
   *

   *
   * repeated string input_names = 6;
   */
  public java.lang.String getInputNames(int index) {
    return inputNames_.get(index);
  }
  /**
   *

   * Names of the input tensors to the op.
   *

   *
   * repeated string input_names = 6;
   */
  public com.google.protobuf.ByteString
      getInputNamesBytes(int index) {
    return inputNames_.getByteString(index);
  }

  public static final int NUM_OUTPUTS_FIELD_NUMBER = 7;
  private int numOutputs_;
  /**
   *

   * Number of output tensors emitted by the op.
   *

   *
   * int32 num_outputs = 7;
   */
  public int getNumOutputs() {
    return numOutputs_;
  }

  public static final int CODE_LOCATION_FIELD_NUMBER = 8;
  private org.tensorflow.proto.util.CodeLocation codeLocation_;
  /**
   *

   * The unique ID for code location (stack trace) of the op's creation.
   *

   *
   * .tensorflow.CodeLocation code_location = 8;
   */
  public boolean hasCodeLocation() {
    return codeLocation_ != null;
  }
  /**
   *

   * The unique ID for code location (stack trace) of the op's creation.
   *

   *
   * .tensorflow.CodeLocation code_location = 8;
   */
  public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
    return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
  }
  /**
   *

   * The unique ID for code location (stack trace) of the op's creation.
   *

   *
   * .tensorflow.CodeLocation code_location = 8;
   */
  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_;
  /**
   *

   * Unique IDs for the output tensors of this op.
   *

   *
   * repeated int32 output_tensor_ids = 9;
   */
  public java.util.List<java.lang.Integer>
      getOutputTensorIdsList() {
    return outputTensorIds_;
  }
  /**
   *

   * Unique IDs for the output tensors of this op.
   *

   *
   * repeated int32 output_tensor_ids = 9;
   */
  public int getOutputTensorIdsCount() {
    return outputTensorIds_.size();
  }
  /**
   *

   * Unique IDs for the output tensors of this op.
   *

   *
   * repeated int32 output_tensor_ids = 9;
   */
  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;
  }
  /**
   *

   * The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
   *

   *
   * 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_ = "";
    /**
     *

     * Type of the op (e.g., "MatMul").
     *

     *
     * string op_type = 1;
     */
    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;
      }
    }
    /**
     *

     * Type of the op (e.g., "MatMul").
     *

     *
     * string op_type = 1;
     */
    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;
      }
    }
    /**
     *

     * Type of the op (e.g., "MatMul").
     *

     *
     * string op_type = 1;
     */
    public Builder setOpType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      opType_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Type of the op (e.g., "MatMul").
     *

     *
     * string op_type = 1;
     */
    public Builder clearOpType() {

      opType_ = getDefaultInstance().getOpType();
      onChanged();
      return this;
    }
    /**
     *

     * Type of the op (e.g., "MatMul").
     *

     *
     * string op_type = 1;
     */
    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_ = "";
    /**
     *

     * Name of the op (e.g., "Dense/MatMul_1").
     *

     *
     * string op_name = 2;
     */
    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;
      }
    }
    /**
     *

     * Name of the op (e.g., "Dense/MatMul_1").
     *

     *
     * string op_name = 2;
     */
    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;
      }
    }
    /**
     *

     * Name of the op (e.g., "Dense/MatMul_1").
     *

     *
     * string op_name = 2;
     */
    public Builder setOpName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      opName_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Name of the op (e.g., "Dense/MatMul_1").
     *

     *
     * string op_name = 2;
     */
    public Builder clearOpName() {

      opName_ = getDefaultInstance().getOpName();
      onChanged();
      return this;
    }
    /**
     *

     * Name of the op (e.g., "Dense/MatMul_1").
     *

     *
     * string op_name = 2;
     */
    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_ = "";
    /**
     *

     * Name of the graph that the op is a part of (if available).
     *

     *
     * string graph_name = 3;
     */
    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;
      }
    }
    /**
     *

     * Name of the graph that the op is a part of (if available).
     *

     *
     * string graph_name = 3;
     */
    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;
      }
    }
    /**
     *

     * Name of the graph that the op is a part of (if available).
     *

     *
     * string graph_name = 3;
     */
    public Builder setGraphName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      graphName_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Name of the graph that the op is a part of (if available).
     *

     *
     * string graph_name = 3;
     */
    public Builder clearGraphName() {

      graphName_ = getDefaultInstance().getGraphName();
      onChanged();
      return this;
    }
    /**
     *

     * Name of the graph that the op is a part of (if available).
     *

     *
     * string graph_name = 3;
     */
    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_ = "";
    /**
     *

     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     *

     *
     * string graph_id = 4;
     */
    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;
      }
    }
    /**
     *

     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     *

     *
     * string graph_id = 4;
     */
    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;
      }
    }
    /**
     *

     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     *

     *
     * string graph_id = 4;
     */
    public Builder setGraphId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      graphId_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     *

     *
     * string graph_id = 4;
     */
    public Builder clearGraphId() {

      graphId_ = getDefaultInstance().getGraphId();
      onChanged();
      return this;
    }
    /**
     *

     * Unique ID of the graph (generated by debugger).
     * This is the ID of the immediately-enclosing graph.
     *

     *
     * string graph_id = 4;
     */
    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_ = "";
    /**
     *

     * Name of the device that the op is assigned to (if available).
     *

     *
     * string device_name = 5;
     */
    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;
      }
    }
    /**
     *

     * Name of the device that the op is assigned to (if available).
     *

     *
     * string device_name = 5;
     */
    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;
      }
    }
    /**
     *

     * Name of the device that the op is assigned to (if available).
     *

     *
     * string device_name = 5;
     */
    public Builder setDeviceName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      deviceName_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Name of the device that the op is assigned to (if available).
     *

     *
     * string device_name = 5;
     */
    public Builder clearDeviceName() {

      deviceName_ = getDefaultInstance().getDeviceName();
      onChanged();
      return this;
    }
    /**
     *

     * Name of the device that the op is assigned to (if available).
     *

     *
     * string device_name = 5;
     */
    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;
       }
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public com.google.protobuf.ProtocolStringList
        getInputNamesList() {
      return inputNames_.getUnmodifiableView();
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public int getInputNamesCount() {
      return inputNames_.size();
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public java.lang.String getInputNames(int index) {
      return inputNames_.get(index);
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public com.google.protobuf.ByteString
        getInputNamesBytes(int index) {
      return inputNames_.getByteString(index);
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public Builder setInputNames(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputNamesIsMutable();
      inputNames_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public Builder addInputNames(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputNamesIsMutable();
      inputNames_.add(value);
      onChanged();
      return this;
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public Builder addAllInputNames(
        java.lang.Iterable<java.lang.String> values) {
      ensureInputNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, inputNames_);
      onChanged();
      return this;
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    public Builder clearInputNames() {
      inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *

     * Names of the input tensors to the op.
     *

     *
     * repeated string input_names = 6;
     */
    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_ ;
    /**
     *

     * Number of output tensors emitted by the op.
     *

     *
     * int32 num_outputs = 7;
     */
    public int getNumOutputs() {
      return numOutputs_;
    }
    /**
     *

     * Number of output tensors emitted by the op.
     *

     *
     * int32 num_outputs = 7;
     */
    public Builder setNumOutputs(int value) {

      numOutputs_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Number of output tensors emitted by the op.
     *

     *
     * int32 num_outputs = 7;
     */
    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_;
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public boolean hasCodeLocation() {
      return codeLocationBuilder_ != null || codeLocation_ != null;
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
      if (codeLocationBuilder_ == null) {
        return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
      } else {
        return codeLocationBuilder_.getMessage();
      }
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    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;
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public Builder setCodeLocation(
        org.tensorflow.proto.util.CodeLocation.Builder builderForValue) {
      if (codeLocationBuilder_ == null) {
        codeLocation_ = builderForValue.build();
        onChanged();
      } else {
        codeLocationBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    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;
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public Builder clearCodeLocation() {
      if (codeLocationBuilder_ == null) {
        codeLocation_ = null;
        onChanged();
      } else {
        codeLocation_ = null;
        codeLocationBuilder_ = null;
      }

      return this;
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() {

      onChanged();
      return getCodeLocationFieldBuilder().getBuilder();
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() {
      if (codeLocationBuilder_ != null) {
        return codeLocationBuilder_.getMessageOrBuilder();
      } else {
        return codeLocation_ == null ?
            org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_;
      }
    }
    /**
     *

     * The unique ID for code location (stack trace) of the op's creation.
     *

     *
     * .tensorflow.CodeLocation code_location = 8;
     */
    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;
       }
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public java.util.List<java.lang.Integer>
        getOutputTensorIdsList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(outputTensorIds_) : outputTensorIds_;
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public int getOutputTensorIdsCount() {
      return outputTensorIds_.size();
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public int getOutputTensorIds(int index) {
      return outputTensorIds_.getInt(index);
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public Builder setOutputTensorIds(
        int index, int value) {
      ensureOutputTensorIdsIsMutable();
      outputTensorIds_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public Builder addOutputTensorIds(int value) {
      ensureOutputTensorIdsIsMutable();
      outputTensorIds_.addInt(value);
      onChanged();
      return this;
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    public Builder addAllOutputTensorIds(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureOutputTensorIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, outputTensorIds_);
      onChanged();
      return this;
    }
    /**
     *

     * Unique IDs for the output tensors of this op.
     *

     *
     * repeated int32 output_tensor_ids = 9;
     */
    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;
  }

}


text:
package org.springframework.ldap.itest20;

import org.springframework.ldap.core.DirContextOperations;
import org.springframework.ldap.core.LdapTemplate;
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;

/**
 * Tests the lookup methods of LdapTemplate together with Spring 2.0.
 *
 * @author Mattias Hellborg Arthursson
 */
public class LdapTemplateLookup20ITest extends AbstractDependencyInjectionSpringContextTests {

	private LdapTemplate tested;

    public void setTested(LdapTemplate tested) {
        this.tested = tested;
    }

    @Override
    protected String[] getConfigLocations() {
        return new String[]{"/conf/ldapTemplateTestContext.xml"};
    }

    /**
	 * This method depends on a DirObjectFactory (
	 * {@link org.springframework.ldap.core.support.DefaultDirObjectFactory})
	 * being set in the ContextSource.
	 */
	public void testThatPlainLookupWorksWithSpring20() {
		DirContextOperations result = tested.lookupContext("cn=Some Person2, ou=company1,c=Sweden");

		assertEquals("Some Person2", result.getStringAttribute("cn"));
		assertEquals("Person2", result.getStringAttribute("sn"));
		assertEquals("Sweden, Company1, Some Person2", result.getStringAttribute("description"));
	}
}

redpajama_set_name: RedPajamaGithub


text:
'use strict';
// Flags: --expose-internals

require('../common');
const assert = require('assert');
const { builtinLibs } = require('internal/modules/cjs/helpers');

const expectedLibs = process.features.inspector ? 34 : 33;
assert.strictEqual(builtinLibs.length, expectedLibs);


text:
A simple maven project with custom collections managing its size (by insert time or by size limit).

# TODO more explanation


text:
// Copyright (c) 2013 Richard Long & HexBeerium
//
// Released under the MIT license ( http://opensource.org/licenses/MIT )
//

package jsonbroker.library.common.broker;

/**
 *
 * @deprecated use jsonbroker.library.broker.BrokerMessageBuilder
 *
 */
public class BrokerMessageBuilder {

	public static BrokerMessage buildRequest( String serviceName, String methodName ) {

		BrokerMessage answer = new BrokerMessage();

		answer.setMessageType( BrokerMessageType.REQUEST );
		answer.setServiceName( serviceName );
		answer.setMethodName( methodName );

		return answer;
	}

}


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cdn.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.cdn.fluent.models.DeepCreatedCustomDomainProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Custom domains created on the CDN endpoint. */
@Fluent
public final class DeepCreatedCustomDomain {
    /*
     * Custom domain name.
     */
    @JsonProperty(value = "name", required = true)
    private String name;

    /*
     * Properties of the custom domain created on the CDN endpoint.
     */
    @JsonProperty(value = "properties")
    private DeepCreatedCustomDomainProperties innerProperties;

    /**
     * Get the name property: Custom domain name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Custom domain name.
     *
     * @param name the name value to set.
     * @return the DeepCreatedCustomDomain object itself.
     */
    public DeepCreatedCustomDomain withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the innerProperties property: Properties of the custom domain created on the CDN endpoint.
     *
     * @return the innerProperties value.
     */
    private DeepCreatedCustomDomainProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the hostname property: The host name of the custom domain. Must be a domain name.
     *
     * @return the hostname value.
     */
    public String hostname() {
        return this.innerProperties() == null ? null : this.innerProperties().hostname();
    }

    /**
     * Set the hostname property: The host name of the custom domain. Must be a domain name.
     *
     * @param hostname the hostname value to set.
     * @return the DeepCreatedCustomDomain object itself.
     */
    public DeepCreatedCustomDomain withHostname(String hostname) {
        if (this.innerProperties() == null) {
            this.innerProperties = new DeepCreatedCustomDomainProperties();
        }
        this.innerProperties().withHostname(hostname);
        return this;
    }

    /**
     * Get the validationData property: Special validation or data may be required when delivering CDN to some regions
     * due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in
     * China.
     *
     * @return the validationData value.
     */
    public String validationData() {
        return this.innerProperties() == null ? null : this.innerProperties().validationData();
    }

    /**
     * Set the validationData property: Special validation or data may be required when delivering CDN to some regions
     * due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in
     * China.
     *
     * @param validationData the validationData value to set.
     * @return the DeepCreatedCustomDomain object itself.
     */
    public DeepCreatedCustomDomain withValidationData(String validationData) {
        if (this.innerProperties() == null) {
            this.innerProperties = new DeepCreatedCustomDomainProperties();
        }
        this.innerProperties().withValidationData(validationData);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (name() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException("Missing required property name in model DeepCreatedCustomDomain"));
        }
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(DeepCreatedCustomDomain.class);
}


text:
r"""
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
"""

from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page import Page

class NotificationList(ListResource):
    """ PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. """

    def __init__(self, version, service_sid):
        """
        Initialize the NotificationList

        :param Version version: Version that contains the resource
        :param service_sid: The SID of the Service that the resource is associated with

        :returns: twilio.rest.notify.v1.service.notification.NotificationList
        :rtype: twilio.rest.notify.v1.service.notification.NotificationList
        """
        super(NotificationList, self).__init__(version)

        # Path Solution
        self._solution = {'service_sid': service_sid, }
        self._uri = '/Services/{service_sid}/Notifications'.format(**self._solution)

    def create(self, body=values.unset, priority=values.unset, ttl=values.unset,
               title=values.unset, sound=values.unset, action=values.unset,
               data=values.unset, apn=values.unset, gcm=values.unset,
               sms=values.unset, facebook_messenger=values.unset, fcm=values.unset,
               segment=values.unset, alexa=values.unset, to_binding=values.unset,
               identity=values.unset, tag=values.unset):
        """
        Create a new NotificationInstance

        :param unicode body: The notification body text
        :param NotificationInstance.Priority priority: The priority of the notification
        :param unicode ttl: How long, in seconds, the notification is valid
        :param unicode title: The notification title
        :param unicode sound: The name of the sound to be played for the notification
        :param unicode action: The actions to display for the notification
        :param dict data: The custom key-value pairs of the notification's payload
        :param dict apn: The APNS-specific payload that overrides corresponding attributes in a generic payload for APNS Bindings
        :param dict gcm: The GCM-specific payload that overrides corresponding attributes in generic payload for GCM Bindings
        :param dict sms: The SMS-specific payload that overrides corresponding attributes in generic payload for SMS Bindings
        :param dict facebook_messenger: Deprecated
        :param dict fcm: The FCM-specific payload that overrides corresponding attributes in generic payload for FCM Bindings
        :param unicode segment: A Segment to notify
        :param dict alexa: Deprecated
        :param unicode to_binding: The destination address specified as a JSON string
        :param unicode identity: The `identity` value that identifies the new resource's User
        :param unicode tag: A tag that selects the Bindings to notify

        :returns: Newly created NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        """
        data = values.of({
            'Identity': serialize.map(identity, lambda e: e),
            'Tag': serialize.map(tag, lambda e: e),
            'Body': body,
            'Priority': priority,
            'Ttl': ttl,
            'Title': title,
            'Sound': sound,
            'Action': action,
            'Data': serialize.object(data),
            'Apn': serialize.object(apn),
            'Gcm': serialize.object(gcm),
            'Sms': serialize.object(sms),
            'FacebookMessenger': serialize.object(facebook_messenger),
            'Fcm': serialize.object(fcm),
            'Segment': serialize.map(segment, lambda e: e),
            'Alexa': serialize.object(alexa),
            'ToBinding': serialize.map(to_binding, lambda e: e),
        })

        payload = self._version.create(
            'POST',
            self._uri,
            data=data,
        )

        return NotificationInstance(self._version, payload, service_sid=self._solution['service_sid'], )

    def __repr__(self):
        """
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        """
        return '<Twilio.Notify.V1.NotificationList>'

class NotificationPage(Page):
    """ PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. """

    def __init__(self, version, response, solution):
        """
        Initialize the NotificationPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param service_sid: The SID of the Service that the resource is associated with

        :returns: twilio.rest.notify.v1.service.notification.NotificationPage
        :rtype: twilio.rest.notify.v1.service.notification.NotificationPage
        """
        super(NotificationPage, self).__init__(version, response)

        # Path Solution
        self._solution = solution

    def get_instance(self, payload):
        """
        Build an instance of NotificationInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.notify.v1.service.notification.NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        """
        return NotificationInstance(self._version, payload, service_sid=self._solution['service_sid'], )

    def __repr__(self):
        """
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        """
        return '<Twilio.Notify.V1.NotificationPage>'

class NotificationInstance(InstanceResource):
    """ PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. """

    class Priority(object):
        HIGH = "high"
        LOW = "low"

    def __init__(self, version, payload, service_sid):
        """
        Initialize the NotificationInstance

        :returns: twilio.rest.notify.v1.service.notification.NotificationInstance
        :rtype: twilio.rest.notify.v1.service.notification.NotificationInstance
        """
        super(NotificationInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload.get('sid'),
            'account_sid': payload.get('account_sid'),
            'service_sid': payload.get('service_sid'),
            'date_created': deserialize.iso8601_datetime(payload.get('date_created')),
            'identities': payload.get('identities'),
            'tags': payload.get('tags'),
            'segments': payload.get('segments'),
            'priority': payload.get('priority'),
            'ttl': deserialize.integer(payload.get('ttl')),
            'title': payload.get('title'),
            'body': payload.get('body'),
            'sound': payload.get('sound'),
            'action': payload.get('action'),
            'data': payload.get('data'),
            'apn': payload.get('apn'),
            'gcm': payload.get('gcm'),
            'fcm': payload.get('fcm'),
            'sms': payload.get('sms'),
            'facebook_messenger': payload.get('facebook_messenger'),
            'alexa': payload.get('alexa'),
        }

        # Context
        self._context = None
        self._solution = {'service_sid': service_sid, }

    @property
    def sid(self):
        """
        :returns: The unique string that identifies the resource
        :rtype: unicode
        """
        return self._properties['sid']

    @property
    def account_sid(self):
        """
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        """
        return self._properties['account_sid']

    @property
    def service_sid(self):
        """
        :returns: The SID of the Service that the resource is associated with
        :rtype: unicode
        """
        return self._properties['service_sid']

    @property
    def date_created(self):
        """
        :returns: The RFC 2822 date and time in GMT when the resource was created
        :rtype: datetime
        """
        return self._properties['date_created']

    @property
    def identities(self):
        """
        :returns: The list of identity values of the Users to notify
        :rtype: unicode
        """
        return self._properties['identities']

    @property
    def tags(self):
        """
        :returns: The tags that select the Bindings to notify
        :rtype: unicode
        """
        return self._properties['tags']

    @property
    def segments(self):
        """
        :returns: The list of Segments to notify
        :rtype: unicode
        """
        return self._properties['segments']

    @property
    def priority(self):
        """
        :returns: The priority of the notification
        :rtype: NotificationInstance.Priority
        """
        return self._properties['priority']

    @property
    def ttl(self):
        """
        :returns: How long, in seconds, the notification is valid
        :rtype: unicode
        """
        return self._properties['ttl']

    @property
    def title(self):
        """
        :returns: The notification title
        :rtype: unicode
        """
        return self._properties['title']

    @property
    def body(self):
        """
        :returns: The notification body text
        :rtype: unicode
        """
        return self._properties['body']

    @property
    def sound(self):
        """
        :returns: The name of the sound to be played for the notification
        :rtype: unicode
        """
        return self._properties['sound']

    @property
    def action(self):
        """
        :returns: The actions to display for the notification
        :rtype: unicode
        """
        return self._properties['action']

    @property
    def data(self):
        """
        :returns: The custom key-value pairs of the notification's payload
        :rtype: dict
        """
        return self._properties['data']

    @property
    def apn(self):
        """
        :returns: The APNS-specific payload that overrides corresponding attributes in a generic payload for APNS Bindings
        :rtype: dict
        """
        return self._properties['apn']

    @property
    def gcm(self):
        """
        :returns: The GCM-specific payload that overrides corresponding attributes in generic payload for GCM Bindings
        :rtype: dict
        """
        return self._properties['gcm']

    @property
    def fcm(self):
        """
        :returns: The FCM-specific payload that overrides corresponding attributes in generic payload for FCM Bindings
        :rtype: dict
        """
        return self._properties['fcm']

    @property
    def sms(self):
        """
        :returns: The SMS-specific payload that overrides corresponding attributes in generic payload for SMS Bindings
        :rtype: dict
        """
        return self._properties['sms']

    @property
    def facebook_messenger(self):
        """
        :returns: Deprecated
        :rtype: dict
        """
        return self._properties['facebook_messenger']

    @property
    def alexa(self):
        """
        :returns: Deprecated
        :rtype: dict
        """
        return self._properties['alexa']

    def __repr__(self):
        """
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        """
        return '<Twilio.Notify.V1.NotificationInstance>'


text:
/*

Dashboard Template
http://www.templatemo.com/preview/templatemo_415_dashboard

    1. CSS Imports
    2. General Styles
    3. Sidebar
    4. Charts
    5. Preferences form
    6. Sign in form
    7. tables.html
    8. Bootstrap overrides
    9. Maps
    10. Media Queries

--------------------------------------- */

/* 1. CSS Imports
--------------------------------------- */
@import url('http://fonts.googleapis.com/css?family=Open Sans:300,400,700');
@import url(font-awesome.min.css);
@import url(bootstrap.min.css);

/* 2. General Styles
--------------------------------------- */
* { font-family: 'Open Sans', sans-serif; }
body { background-color: rgb(235,235,235); }
h1 { font-size: 24px; }
.btn a {
    color: white;
    text-decoration: none;
}
.logo { display: inline-block; }
.logo h1 {
    font-size: 24px;
    margin: 10px 15px;
}
.templatemo-content-wrapper {
    float: left;
    width: 100%;
}
.templatemo-content {
    margin-left: 235px;
    margin-top: 0px;
    min-height: 600px;
    padding: 25px 20px 0 20px;
    background-color: white;
    overflow-x: hidden;
}
.templatemo-footer {
    clear: both;
    font-size: 13px;
    padding: 8px 0 5px 0;
    text-align: center;
    color: #ccc;
    background-color: #333;
}
.margin-bottom-15 { margin-bottom: 15px; }
.margin-bottom-30 { margin-bottom: 30px; }

/* 3. Sidebar
------------------------------------------------------*/
#templatemo_search_box {
    width: 150px;
    display: inline-block;
}
.navbar {
    margin-bottom: 0;
    border-radius: 0;
}
.navbar-header { color: rgb(127,127,127); }
.templatemo-sidebar {
    padding: 0;
    margin-top: 20px;
}
.templatemo-sidebar .templatemo-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.templatemo-sidebar .templatemo-sidebar-menu > li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0px;
}
.templatemo-sidebar .templatemo-sidebar-menu > li > a {
    display: block;
    position: relative;
    margin: 0;
    border: 0px;
    padding: 20px 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}
.templatemo-sidebar-menu a { color: black; }
.templatemo-sidebar-menu a:hover { text-decoration: none; }
.templatemo-sidebar-menu li.sub .templatemo-submenu { display: none; }
.templatemo-sidebar-menu li.sub.open .templatemo-submenu { display: block; }
.templatemo-submenu { padding-left: 0; }
.templatemo-submenu li {
    list-style: none;
    background-color: #DFDFDF;
}
.templatemo-submenu li a {
    display: block;
    padding: 20px 15px;
    margin: 0;
}
.templatemo-sidebar-menu > li.sub.open > a {
    background-color: rgba(145,145,145,0.3);
}
.templatemo-sidebar .templatemo-sidebar-menu >li.active, .templatemo-sidebar .templatemo-sidebar-menu>li>a:hover {
    background-color: rgb(191, 232, 167);
}
.templatemo-submenu li > a:hover {
    background-color: rgb(228,228,228);
}
.templatemo-sidebar .templatemo-sidebar-menu > li > a > i {
    font-size: 16px;
    top: 2px;
    margin-top: 1px;
    margin-left: 1px;
    margin-right: 4px;
    display: inline-block;
    width: 1.25em;
    text-align: center;
}

/* 4. Charts
--------------------------------------------*/
.templatemo-chart-box {
    display: inline-block;
    text-align: center;
    padding: 20px 30px 30px 0;
}

/* 5. Preferences Form
------------------------------------------*/
#templatemo-preferences-form {
    max-width: 960px;
    margin-bottom: 30px;
}

/* 6. Sign in Form
--------------------------------------------*/
.templatemo-signin-form {
    padding-top: 50px;
    max-width: 600px;
    margin: 0 auto;
}
.form-horizontal .form-group {
    margin-right: 0;
    margin-left: 0;
}

/* 7. tables.html
------------------------------------------*/
#templatemo_sort_btn { margin-bottom: 20px; }

/* 8. Bootstrap overrides
----------------------------------------------*/
.nav-pills>li>a, .nav-tabs>li>a, .alert, .progress, .panel, .btn, .panel-group .panel, .form-control, .modal-content, .breadcrumb {
    border-radius: 0;
}
.list-group-item:first-child, .panel-heading {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.list-group-item:last-child {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-control-feedback { right: 15px; }

/* 9. Maps
------------------------------------------------------*/
.jqvmap-zoomin, .jqvmap-zoomout {
    width: 15px;
    height: 15px;
}
.vmap { height: 400px; }

/* 10. Media Queries
------------------------------------------------------*/
@media screen and (min-width: 992px) {
    .templatemo-sidebar {
        width: 235px;
        float: left;
        position: relative;
        margin-right: -100%;
    }
}
@media screen and (max-width: 991px) {
    .navbar-form {
        padding: 0;
        margin-left: 0;
    }
    .navbar-header { float: none; }
    .navbar-toggle { display: block; }
    .templatemo-sidebar {
        border-top: 0 !important;
        margin: 20px;
    }
    .templatemo-sidebar.navbar-collapse.collapse {
        display: none !important;
    }
    .templatemo-sidebar.navbar-collapse.in {
        border-top: 0 !important;
        margin: 20px;
        position: relative;
        overflow: hidden !important;
        overflow-y: auto !important;
        display: block !important;
    }
    .templatemo-content-wrapper { float: none; }
    .templatemo-content { margin: 0; }
}
@media screen and (max-width: 767px) {
    .templatemo-chart-box {
        padding-right: 0;
    }
}


text:
package org.apache.sysds.test.component.compress;

import static org.junit.Assert.fail;

import java.util.Collection;

import org.apache.commons.lang.NotImplementedException;
import org.apache.sysds.runtime.compress.CompressedMatrixBlock;
import org.apache.sysds.runtime.compress.CompressionSettingsBuilder;
import org.apache.sysds.runtime.compress.colgroup.AColGroup.CompressionType;
import org.apache.sysds.runtime.instructions.InstructionUtils;
import org.apache.sysds.runtime.matrix.data.MatrixBlock;
import org.apache.sysds.runtime.matrix.operators.AggregateUnaryOperator;
import org.apache.sysds.test.TestUtils;
import org.apache.sysds.test.component.compress.TestConstants.MatrixTypology;
import org.apache.sysds.test.component.compress.TestConstants.OverLapping;
import org.apache.sysds.test.component.compress.TestConstants.SparsityType;
import org.apache.sysds.test.component.compress.TestConstants.ValueRange;
import org.apache.sysds.test.component.compress.TestConstants.ValueType;
import org.junit.Test;

public abstract class AbstractCompressedUnaryTests extends CompressedTestBase {

	public AbstractCompressedUnaryTests(SparsityType sparType, ValueType valType, ValueRange valRange,
		CompressionSettingsBuilder compSettings, MatrixTypology matrixTypology, OverLapping ov, int parallelism,
		Collection<CompressionType> ct) {
		super(sparType, valType, valRange, compSettings, matrixTypology, ov, parallelism, ct);
	}

	enum AggType {
		ROWSUMS, COLSUMS, SUM, ROWSUMSSQ, COLSUMSSQ, SUMSQ, ROWMAXS, COLMAXS, MAX, ROWMINS, COLMINS, MIN, MEAN, COLMEAN,
		ROWMEAN
	}

	@Test
	public void testUnaryOperator_ROWSUMS_CP() {
		testUnaryOperators(AggType.ROWSUMS, true);
	}

	@Test
	public void testUnaryOperator_COLSUMS_CP() {
		testUnaryOperators(AggType.COLSUMS, true);
	}

	@Test
	public void testUnaryOperator_SUM_CP() {
		testUnaryOperators(AggType.SUM, true);
	}

	@Test
	public void testUnaryOperator_ROWSUMSSQ_CP() {
		testUnaryOperators(AggType.ROWSUMSSQ, true);
	}

	@Test
	public void testUnaryOperator_COLSUMSSQ_CP() {
		testUnaryOperators(AggType.COLSUMSSQ, true);
	}

	@Test
	public void testUnaryOperator_SUMSQ_CP() {
		testUnaryOperators(AggType.SUMSQ, true);
	}

	@Test
	public void testUnaryOperator_ROWMAXS_CP() {
		testUnaryOperators(AggType.ROWMAXS, true);
	}

	@Test
	public void testUnaryOperator_COLMAXS_CP() {
		testUnaryOperators(AggType.COLMAXS, true);
	}

	@Test
	public void testUnaryOperator_MAX_CP() {
		testUnaryOperators(AggType.MAX, true);
	}

	@Test
	public void testUnaryOperator_ROWMINS_CP() {
		testUnaryOperators(AggType.ROWMINS, true);
	}

	@Test
	public void testUnaryOperator_COLMINS_CP() {
		testUnaryOperators(AggType.COLMINS, true);
	}

	@Test
	public void testUnaryOperator_MIN_CP() {
		testUnaryOperators(AggType.MIN, true);
	}

	@Test
	public void testUnaryOperator_MEAN_CP() {
		testUnaryOperators(AggType.MEAN, true);
	}

	@Test
	public void testUnaryOperator_COLMEAN_CP() {
		testUnaryOperators(AggType.COLMEAN, true);
	}

	@Test
	public void testUnaryOperator_ROWMEAN_CP() {
		testUnaryOperators(AggType.ROWMEAN, true);
	}

	@Test
	public void testUnaryOperator_ROWSUMS_SP() {
		testUnaryOperators(AggType.ROWSUMS, false);
	}

	@Test
	public void testUnaryOperator_COLSUMS_SP() {
		testUnaryOperators(AggType.COLSUMS, false);
	}

	@Test
	public void testUnaryOperator_SUM_SP() {
		testUnaryOperators(AggType.SUM, false);
	}

	@Test
	public void testUnaryOperator_ROWSUMSSQ_SP() {
		testUnaryOperators(AggType.ROWSUMSSQ, false);
	}

	@Test
	public void testUnaryOperator_COLSUMSSQ_SP() {
		testUnaryOperators(AggType.COLSUMSSQ, false);
	}

	@Test
	public void testUnaryOperator_SUMSQ_SP() {
		testUnaryOperators(AggType.SUMSQ, false);
	}

	@Test
	public void testUnaryOperator_ROWMAXS_SP() {
		testUnaryOperators(AggType.ROWMAXS, false);
	}

	@Test
	public void testUnaryOperator_COLMAXS_SP() {
		testUnaryOperators(AggType.COLMAXS, false);
	}

	@Test
	public void testUnaryOperator_MAX_SP() {
		testUnaryOperators(AggType.MAX, false);
	}

	@Test
	public void testUnaryOperator_ROWMINS_SP() {
		testUnaryOperators(AggType.ROWMINS, false);
	}

	@Test
	public void testUnaryOperator_COLMINS_SP() {
		testUnaryOperators(AggType.COLMINS, false);
	}

	@Test
	public void testUnaryOperator_MIN_SP() {
		testUnaryOperators(AggType.MIN, false);
	}

	@Test
	public void testUnaryOperator_MEAN_SP() {
		testUnaryOperators(AggType.MEAN, false);
	}

	@Test
	public void testUnaryOperator_COLMEAN_SP() {
		testUnaryOperators(AggType.COLMEAN, false);
	}

	@Test
	public void testUnaryOperator_ROWMEAN_SP() {
		testUnaryOperators(AggType.ROWMEAN, false);
	}

	protected AggregateUnaryOperator getUnaryOperator(AggType aggType, int threads) {
		switch(aggType) {
			case SUM:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uak+", threads);
			case ROWSUMS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uark+", threads);
			case COLSUMS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uack+", threads);
			case SUMSQ:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uasqk+", threads);
			case ROWSUMSSQ:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uarsqk+", threads);
			case COLSUMSSQ:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uacsqk+", threads);
			case MAX:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uamax", threads);
			case ROWMAXS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uarmax", threads);
			case COLMAXS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uacmax", threads);
			case MIN:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uamin", threads);
			case ROWMINS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uarmin", threads);
			case COLMINS:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uacmin", threads);
			case MEAN:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uamean", threads);
			case ROWMEAN:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uarmean", threads);
			case COLMEAN:
				return InstructionUtils.parseBasicAggregateUnaryOperator("uacmean", threads);
			default:
				throw new NotImplementedException("Not Supported Aggregate Unary operator in test");
		}
	}

	public abstract void testUnaryOperators(AggType aggType, boolean inCP);

	public void testUnaryOperators(AggType aggType, AggregateUnaryOperator auop, boolean inCP) {
		try {
			if(!(cmb instanceof CompressedMatrixBlock))
				return; // Input was not compressed then just pass test

			// matrix-vector uncompressed
			MatrixBlock ret1 = mb.aggregateUnaryOperations(auop, new MatrixBlock(), Math.max(rows, cols), null, inCP);
			// matrix-vector compressed
			MatrixBlock ret2 = cmb.aggregateUnaryOperations(auop, new MatrixBlock(), Math.max(rows, cols), null, inCP);

			final int ruc = ret1.getNumRows();
			final int cuc = ret1.getNumColumns();
			final int rc = ret2.getNumRows();
			final int cc = ret2.getNumColumns();

			if(ruc != rc)
				fail("dim 1 is not equal in compressed res  should be : " + ruc + "  but is: " + rc);
			if(cuc != cc)
				fail("dim 2 is not equal in compressed res  should be : " + rc + "  but is: " + cc);

			if(!inCP) {
				ret1.dropLastRowsOrColumns(auop.aggOp.correction);
				ret2.dropLastRowsOrColumns(auop.aggOp.correction);
			}

			String css = this.toString();
			if(_cs != null && _cs.lossy) {
				if(aggType == AggType.COLSUMS)
					TestUtils.compareMatrices(ret1, ret2, lossyTolerance * 10 * rows, css);
				else if(aggType == AggType.ROWSUMS)
					TestUtils.compareMatrices(ret1, ret2, lossyTolerance * 16 * cols, css);
				else if(aggType == AggType.ROWSUMSSQ)
					TestUtils.compareMatricesPercentageDistance(ret1, ret2, 0.5, 0.9, css, true);
				else if(aggType == AggType.SUM)
					TestUtils.compareMatrices(ret1, ret2, lossyTolerance * 10 * cols * rows, css);
				else if(aggType == AggType.MEAN)
					TestUtils.compareMatrices(ret1, ret2, lossyTolerance * cols * rows, css);
				else if(aggType == AggType.ROWMEAN)
					TestUtils.compareMatrices(ret1, ret2, lossyTolerance, css);
				else
					TestUtils.compareMatricesPercentageDistance(ret1, ret2, 0.8, 0.9, css, true);
			}
			else {
				if(overlappingType == OverLapping.SQUASH)
					TestUtils.compareMatricesPercentageDistance(ret1, ret2, 0.0, 0.90, css);
				else if(aggType == AggType.ROWMEAN)
					TestUtils.compareMatrices(ret1, ret2, 0.0001, css);
				else if(OverLapping.effectOnOutput(overlappingType))
					TestUtils.compareMatricesPercentageDistance(ret1, ret2, 0.95, 0.98, css);
				else
					TestUtils.compareMatricesBitAvgDistance(ret1, ret2, 2048, 128, css);
			}

		}
		catch(Exception e) {
			e.printStackTrace();
			throw new RuntimeException(this.toString() + "\n" + e.getMessage(), e);
		}
	}
}