All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xla.HloProfilePrinterDataOuterClass Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/compiler/xla/service/hlo_profile_printer_data.proto

package xla;

public final class HloProfilePrinterDataOuterClass {
  private HloProfilePrinterDataOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface HloProfilePrinterDataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:xla.HloProfilePrinterData)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ java.util.List getComputationInfosList(); /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getComputationInfos(int index); /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ int getComputationInfosCount(); /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ java.util.List getComputationInfosOrBuilderList(); /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder getComputationInfosOrBuilder( int index); /** *
     * The size of the profile counters array we will pretty-print.
     * 
* * int64 profile_counters_size = 2; */ long getProfileCountersSize(); } /** *
   * Describes how to pretty-print a profile counter array gathered for a specific
   * HloModule.
   * 
* * Protobuf type {@code xla.HloProfilePrinterData} */ public static final class HloProfilePrinterData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xla.HloProfilePrinterData) HloProfilePrinterDataOrBuilder { private static final long serialVersionUID = 0L; // Use HloProfilePrinterData.newBuilder() to construct. private HloProfilePrinterData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HloProfilePrinterData() { computationInfos_ = java.util.Collections.emptyList(); profileCountersSize_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HloProfilePrinterData( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { computationInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } computationInfos_.add( input.readMessage(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.parser(), extensionRegistry)); break; } case 16: { profileCountersSize_ = input.readInt64(); break; } default: { if (!parseUnknownFieldProto3( 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) == 0x00000001)) { computationInfos_ = java.util.Collections.unmodifiableList(computationInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.Builder.class); } public interface HloInstructionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:xla.HloProfilePrinterData.HloInstructionInfo) com.google.protobuf.MessageOrBuilder { /** * string long_name = 1; */ java.lang.String getLongName(); /** * string long_name = 1; */ com.google.protobuf.ByteString getLongNameBytes(); /** * string short_name = 2; */ java.lang.String getShortName(); /** * string short_name = 2; */ com.google.protobuf.ByteString getShortNameBytes(); /** * string category = 3; */ java.lang.String getCategory(); /** * string category = 3; */ com.google.protobuf.ByteString getCategoryBytes(); /** *
       * Metrics computed by HloCostAnalysis.
       * 
* * float flop_count = 4; */ float getFlopCount(); /** * float transcendental_count = 5; */ float getTranscendentalCount(); /** * float bytes_accessed = 6; */ float getBytesAccessed(); /** * float optimal_seconds = 7; */ float getOptimalSeconds(); /** *
       * The index into the profile counters array for the HloInstruction
       * corresponding to this HloInstructionInfo.
       * 
* * int64 profile_index = 8; */ long getProfileIndex(); } /** *
     * Pretty-printer information about an HloInstruction.
     * 
* * Protobuf type {@code xla.HloProfilePrinterData.HloInstructionInfo} */ public static final class HloInstructionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xla.HloProfilePrinterData.HloInstructionInfo) HloInstructionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use HloInstructionInfo.newBuilder() to construct. private HloInstructionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HloInstructionInfo() { longName_ = ""; shortName_ = ""; category_ = ""; flopCount_ = 0F; transcendentalCount_ = 0F; bytesAccessed_ = 0F; optimalSeconds_ = 0F; profileIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HloInstructionInfo( 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(); longName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); shortName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); category_ = s; break; } case 37: { flopCount_ = input.readFloat(); break; } case 45: { transcendentalCount_ = input.readFloat(); break; } case 53: { bytesAccessed_ = input.readFloat(); break; } case 61: { optimalSeconds_ = input.readFloat(); break; } case 64: { profileIndex_ = input.readInt64(); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloInstructionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder.class); } public static final int LONG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object longName_; /** * string long_name = 1; */ public java.lang.String getLongName() { java.lang.Object ref = longName_; 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(); longName_ = s; return s; } } /** * string long_name = 1; */ public com.google.protobuf.ByteString getLongNameBytes() { java.lang.Object ref = longName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); longName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHORT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object shortName_; /** * string short_name = 2; */ public java.lang.String getShortName() { java.lang.Object ref = shortName_; 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(); shortName_ = s; return s; } } /** * string short_name = 2; */ public com.google.protobuf.ByteString getShortNameBytes() { java.lang.Object ref = shortName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATEGORY_FIELD_NUMBER = 3; private volatile java.lang.Object category_; /** * string category = 3; */ public java.lang.String getCategory() { java.lang.Object ref = category_; 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(); category_ = s; return s; } } /** * string category = 3; */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FLOP_COUNT_FIELD_NUMBER = 4; private float flopCount_; /** *
       * Metrics computed by HloCostAnalysis.
       * 
* * float flop_count = 4; */ public float getFlopCount() { return flopCount_; } public static final int TRANSCENDENTAL_COUNT_FIELD_NUMBER = 5; private float transcendentalCount_; /** * float transcendental_count = 5; */ public float getTranscendentalCount() { return transcendentalCount_; } public static final int BYTES_ACCESSED_FIELD_NUMBER = 6; private float bytesAccessed_; /** * float bytes_accessed = 6; */ public float getBytesAccessed() { return bytesAccessed_; } public static final int OPTIMAL_SECONDS_FIELD_NUMBER = 7; private float optimalSeconds_; /** * float optimal_seconds = 7; */ public float getOptimalSeconds() { return optimalSeconds_; } public static final int PROFILE_INDEX_FIELD_NUMBER = 8; private long profileIndex_; /** *
       * The index into the profile counters array for the HloInstruction
       * corresponding to this HloInstructionInfo.
       * 
* * int64 profile_index = 8; */ public long getProfileIndex() { return profileIndex_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getLongNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, longName_); } if (!getShortNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortName_); } if (!getCategoryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, category_); } if (flopCount_ != 0F) { output.writeFloat(4, flopCount_); } if (transcendentalCount_ != 0F) { output.writeFloat(5, transcendentalCount_); } if (bytesAccessed_ != 0F) { output.writeFloat(6, bytesAccessed_); } if (optimalSeconds_ != 0F) { output.writeFloat(7, optimalSeconds_); } if (profileIndex_ != 0L) { output.writeInt64(8, profileIndex_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLongNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, longName_); } if (!getShortNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortName_); } if (!getCategoryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, category_); } if (flopCount_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, flopCount_); } if (transcendentalCount_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, transcendentalCount_); } if (bytesAccessed_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(6, bytesAccessed_); } if (optimalSeconds_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, optimalSeconds_); } if (profileIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, profileIndex_); } 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo)) { return super.equals(obj); } xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo other = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo) obj; boolean result = true; result = result && getLongName() .equals(other.getLongName()); result = result && getShortName() .equals(other.getShortName()); result = result && getCategory() .equals(other.getCategory()); result = result && ( java.lang.Float.floatToIntBits(getFlopCount()) == java.lang.Float.floatToIntBits( other.getFlopCount())); result = result && ( java.lang.Float.floatToIntBits(getTranscendentalCount()) == java.lang.Float.floatToIntBits( other.getTranscendentalCount())); result = result && ( java.lang.Float.floatToIntBits(getBytesAccessed()) == java.lang.Float.floatToIntBits( other.getBytesAccessed())); result = result && ( java.lang.Float.floatToIntBits(getOptimalSeconds()) == java.lang.Float.floatToIntBits( other.getOptimalSeconds())); result = result && (getProfileIndex() == other.getProfileIndex()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LONG_NAME_FIELD_NUMBER; hash = (53 * hash) + getLongName().hashCode(); hash = (37 * hash) + SHORT_NAME_FIELD_NUMBER; hash = (53 * hash) + getShortName().hashCode(); hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); hash = (37 * hash) + FLOP_COUNT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFlopCount()); hash = (37 * hash) + TRANSCENDENTAL_COUNT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTranscendentalCount()); hash = (37 * hash) + BYTES_ACCESSED_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getBytesAccessed()); hash = (37 * hash) + OPTIMAL_SECONDS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getOptimalSeconds()); hash = (37 * hash) + PROFILE_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProfileIndex()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo 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(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo 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; } /** *
       * Pretty-printer information about an HloInstruction.
       * 
* * Protobuf type {@code xla.HloProfilePrinterData.HloInstructionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xla.HloProfilePrinterData.HloInstructionInfo) xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloInstructionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder.class); } // Construct using xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.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(); longName_ = ""; shortName_ = ""; category_ = ""; flopCount_ = 0F; transcendentalCount_ = 0F; bytesAccessed_ = 0F; optimalSeconds_ = 0F; profileIndex_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getDefaultInstanceForType() { return xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.getDefaultInstance(); } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo build() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo buildPartial() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo result = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo(this); result.longName_ = longName_; result.shortName_ = shortName_; result.category_ = category_; result.flopCount_ = flopCount_; result.transcendentalCount_ = transcendentalCount_; result.bytesAccessed_ = bytesAccessed_; result.optimalSeconds_ = optimalSeconds_; result.profileIndex_ = profileIndex_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo) { return mergeFrom((xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo other) { if (other == xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.getDefaultInstance()) return this; if (!other.getLongName().isEmpty()) { longName_ = other.longName_; onChanged(); } if (!other.getShortName().isEmpty()) { shortName_ = other.shortName_; onChanged(); } if (!other.getCategory().isEmpty()) { category_ = other.category_; onChanged(); } if (other.getFlopCount() != 0F) { setFlopCount(other.getFlopCount()); } if (other.getTranscendentalCount() != 0F) { setTranscendentalCount(other.getTranscendentalCount()); } if (other.getBytesAccessed() != 0F) { setBytesAccessed(other.getBytesAccessed()); } if (other.getOptimalSeconds() != 0F) { setOptimalSeconds(other.getOptimalSeconds()); } if (other.getProfileIndex() != 0L) { setProfileIndex(other.getProfileIndex()); } 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 { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object longName_ = ""; /** * string long_name = 1; */ public java.lang.String getLongName() { java.lang.Object ref = longName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); longName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string long_name = 1; */ public com.google.protobuf.ByteString getLongNameBytes() { java.lang.Object ref = longName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); longName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string long_name = 1; */ public Builder setLongName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } longName_ = value; onChanged(); return this; } /** * string long_name = 1; */ public Builder clearLongName() { longName_ = getDefaultInstance().getLongName(); onChanged(); return this; } /** * string long_name = 1; */ public Builder setLongNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); longName_ = value; onChanged(); return this; } private java.lang.Object shortName_ = ""; /** * string short_name = 2; */ public java.lang.String getShortName() { java.lang.Object ref = shortName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shortName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string short_name = 2; */ public com.google.protobuf.ByteString getShortNameBytes() { java.lang.Object ref = shortName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string short_name = 2; */ public Builder setShortName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shortName_ = value; onChanged(); return this; } /** * string short_name = 2; */ public Builder clearShortName() { shortName_ = getDefaultInstance().getShortName(); onChanged(); return this; } /** * string short_name = 2; */ public Builder setShortNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shortName_ = value; onChanged(); return this; } private java.lang.Object category_ = ""; /** * string category = 3; */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } else { return (java.lang.String) ref; } } /** * string category = 3; */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string category = 3; */ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } category_ = value; onChanged(); return this; } /** * string category = 3; */ public Builder clearCategory() { category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** * string category = 3; */ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); category_ = value; onChanged(); return this; } private float flopCount_ ; /** *
         * Metrics computed by HloCostAnalysis.
         * 
* * float flop_count = 4; */ public float getFlopCount() { return flopCount_; } /** *
         * Metrics computed by HloCostAnalysis.
         * 
* * float flop_count = 4; */ public Builder setFlopCount(float value) { flopCount_ = value; onChanged(); return this; } /** *
         * Metrics computed by HloCostAnalysis.
         * 
* * float flop_count = 4; */ public Builder clearFlopCount() { flopCount_ = 0F; onChanged(); return this; } private float transcendentalCount_ ; /** * float transcendental_count = 5; */ public float getTranscendentalCount() { return transcendentalCount_; } /** * float transcendental_count = 5; */ public Builder setTranscendentalCount(float value) { transcendentalCount_ = value; onChanged(); return this; } /** * float transcendental_count = 5; */ public Builder clearTranscendentalCount() { transcendentalCount_ = 0F; onChanged(); return this; } private float bytesAccessed_ ; /** * float bytes_accessed = 6; */ public float getBytesAccessed() { return bytesAccessed_; } /** * float bytes_accessed = 6; */ public Builder setBytesAccessed(float value) { bytesAccessed_ = value; onChanged(); return this; } /** * float bytes_accessed = 6; */ public Builder clearBytesAccessed() { bytesAccessed_ = 0F; onChanged(); return this; } private float optimalSeconds_ ; /** * float optimal_seconds = 7; */ public float getOptimalSeconds() { return optimalSeconds_; } /** * float optimal_seconds = 7; */ public Builder setOptimalSeconds(float value) { optimalSeconds_ = value; onChanged(); return this; } /** * float optimal_seconds = 7; */ public Builder clearOptimalSeconds() { optimalSeconds_ = 0F; onChanged(); return this; } private long profileIndex_ ; /** *
         * The index into the profile counters array for the HloInstruction
         * corresponding to this HloInstructionInfo.
         * 
* * int64 profile_index = 8; */ public long getProfileIndex() { return profileIndex_; } /** *
         * The index into the profile counters array for the HloInstruction
         * corresponding to this HloInstructionInfo.
         * 
* * int64 profile_index = 8; */ public Builder setProfileIndex(long value) { profileIndex_ = value; onChanged(); return this; } /** *
         * The index into the profile counters array for the HloInstruction
         * corresponding to this HloInstructionInfo.
         * 
* * int64 profile_index = 8; */ public Builder clearProfileIndex() { profileIndex_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xla.HloProfilePrinterData.HloInstructionInfo) } // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData.HloInstructionInfo) private static final xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo(); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HloInstructionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HloInstructionInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HloComputationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:xla.HloProfilePrinterData.HloComputationInfo) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
       * The index into the profile counters array for the HloComputation
       * corresponding to this HloComputationInfo.
       * 
* * int64 profile_index = 2; */ long getProfileIndex(); /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ java.util.List getInstructionInfosList(); /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getInstructionInfos(int index); /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ int getInstructionInfosCount(); /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ java.util.List getInstructionInfosOrBuilderList(); /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder getInstructionInfosOrBuilder( int index); } /** *
     * Pretty-printer information about an HloComputation.
     * 
* * Protobuf type {@code xla.HloProfilePrinterData.HloComputationInfo} */ public static final class HloComputationInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xla.HloProfilePrinterData.HloComputationInfo) HloComputationInfoOrBuilder { private static final long serialVersionUID = 0L; // Use HloComputationInfo.newBuilder() to construct. private HloComputationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HloComputationInfo() { name_ = ""; profileIndex_ = 0L; instructionInfos_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HloComputationInfo( 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(); name_ = s; break; } case 16: { profileIndex_ = input.readInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { instructionInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } instructionInfos_.add( input.readMessage(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( 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_ & 0x00000004) == 0x00000004)) { instructionInfos_ = java.util.Collections.unmodifiableList(instructionInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloComputationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROFILE_INDEX_FIELD_NUMBER = 2; private long profileIndex_; /** *
       * The index into the profile counters array for the HloComputation
       * corresponding to this HloComputationInfo.
       * 
* * int64 profile_index = 2; */ public long getProfileIndex() { return profileIndex_; } public static final int INSTRUCTION_INFOS_FIELD_NUMBER = 3; private java.util.List instructionInfos_; /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public java.util.List getInstructionInfosList() { return instructionInfos_; } /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public java.util.List getInstructionInfosOrBuilderList() { return instructionInfos_; } /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public int getInstructionInfosCount() { return instructionInfos_.size(); } /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getInstructionInfos(int index) { return instructionInfos_.get(index); } /** *
       * HloInstructionInfos for every HloInstruction in the HloComputation for
       * corresponding to this HloComputattionInfo.
       * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder getInstructionInfosOrBuilder( int index) { return instructionInfos_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (profileIndex_ != 0L) { output.writeInt64(2, profileIndex_); } for (int i = 0; i < instructionInfos_.size(); i++) { output.writeMessage(3, instructionInfos_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (profileIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, profileIndex_); } for (int i = 0; i < instructionInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, instructionInfos_.get(i)); } 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo)) { return super.equals(obj); } xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo other = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getProfileIndex() == other.getProfileIndex()); result = result && getInstructionInfosList() .equals(other.getInstructionInfosList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PROFILE_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProfileIndex()); if (getInstructionInfosCount() > 0) { hash = (37 * hash) + INSTRUCTION_INFOS_FIELD_NUMBER; hash = (53 * hash) + getInstructionInfosList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo 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(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo 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; } /** *
       * Pretty-printer information about an HloComputation.
       * 
* * Protobuf type {@code xla.HloProfilePrinterData.HloComputationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xla.HloProfilePrinterData.HloComputationInfo) xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloComputationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder.class); } // Construct using xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInstructionInfosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; profileIndex_ = 0L; if (instructionInfosBuilder_ == null) { instructionInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { instructionInfosBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getDefaultInstanceForType() { return xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.getDefaultInstance(); } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo build() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo buildPartial() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo result = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.profileIndex_ = profileIndex_; if (instructionInfosBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { instructionInfos_ = java.util.Collections.unmodifiableList(instructionInfos_); bitField0_ = (bitField0_ & ~0x00000004); } result.instructionInfos_ = instructionInfos_; } else { result.instructionInfos_ = instructionInfosBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo) { return mergeFrom((xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo other) { if (other == xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getProfileIndex() != 0L) { setProfileIndex(other.getProfileIndex()); } if (instructionInfosBuilder_ == null) { if (!other.instructionInfos_.isEmpty()) { if (instructionInfos_.isEmpty()) { instructionInfos_ = other.instructionInfos_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInstructionInfosIsMutable(); instructionInfos_.addAll(other.instructionInfos_); } onChanged(); } } else { if (!other.instructionInfos_.isEmpty()) { if (instructionInfosBuilder_.isEmpty()) { instructionInfosBuilder_.dispose(); instructionInfosBuilder_ = null; instructionInfos_ = other.instructionInfos_; bitField0_ = (bitField0_ & ~0x00000004); instructionInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstructionInfosFieldBuilder() : null; } else { instructionInfosBuilder_.addAllMessages(other.instructionInfos_); } } } 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 { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private long profileIndex_ ; /** *
         * The index into the profile counters array for the HloComputation
         * corresponding to this HloComputationInfo.
         * 
* * int64 profile_index = 2; */ public long getProfileIndex() { return profileIndex_; } /** *
         * The index into the profile counters array for the HloComputation
         * corresponding to this HloComputationInfo.
         * 
* * int64 profile_index = 2; */ public Builder setProfileIndex(long value) { profileIndex_ = value; onChanged(); return this; } /** *
         * The index into the profile counters array for the HloComputation
         * corresponding to this HloComputationInfo.
         * 
* * int64 profile_index = 2; */ public Builder clearProfileIndex() { profileIndex_ = 0L; onChanged(); return this; } private java.util.List instructionInfos_ = java.util.Collections.emptyList(); private void ensureInstructionInfosIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { instructionInfos_ = new java.util.ArrayList(instructionInfos_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder> instructionInfosBuilder_; /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public java.util.List getInstructionInfosList() { if (instructionInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(instructionInfos_); } else { return instructionInfosBuilder_.getMessageList(); } } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public int getInstructionInfosCount() { if (instructionInfosBuilder_ == null) { return instructionInfos_.size(); } else { return instructionInfosBuilder_.getCount(); } } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo getInstructionInfos(int index) { if (instructionInfosBuilder_ == null) { return instructionInfos_.get(index); } else { return instructionInfosBuilder_.getMessage(index); } } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder setInstructionInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo value) { if (instructionInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstructionInfosIsMutable(); instructionInfos_.set(index, value); onChanged(); } else { instructionInfosBuilder_.setMessage(index, value); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder setInstructionInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder builderForValue) { if (instructionInfosBuilder_ == null) { ensureInstructionInfosIsMutable(); instructionInfos_.set(index, builderForValue.build()); onChanged(); } else { instructionInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder addInstructionInfos(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo value) { if (instructionInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstructionInfosIsMutable(); instructionInfos_.add(value); onChanged(); } else { instructionInfosBuilder_.addMessage(value); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder addInstructionInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo value) { if (instructionInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstructionInfosIsMutable(); instructionInfos_.add(index, value); onChanged(); } else { instructionInfosBuilder_.addMessage(index, value); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder addInstructionInfos( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder builderForValue) { if (instructionInfosBuilder_ == null) { ensureInstructionInfosIsMutable(); instructionInfos_.add(builderForValue.build()); onChanged(); } else { instructionInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder addInstructionInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder builderForValue) { if (instructionInfosBuilder_ == null) { ensureInstructionInfosIsMutable(); instructionInfos_.add(index, builderForValue.build()); onChanged(); } else { instructionInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder addAllInstructionInfos( java.lang.Iterable values) { if (instructionInfosBuilder_ == null) { ensureInstructionInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, instructionInfos_); onChanged(); } else { instructionInfosBuilder_.addAllMessages(values); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder clearInstructionInfos() { if (instructionInfosBuilder_ == null) { instructionInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { instructionInfosBuilder_.clear(); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public Builder removeInstructionInfos(int index) { if (instructionInfosBuilder_ == null) { ensureInstructionInfosIsMutable(); instructionInfos_.remove(index); onChanged(); } else { instructionInfosBuilder_.remove(index); } return this; } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder getInstructionInfosBuilder( int index) { return getInstructionInfosFieldBuilder().getBuilder(index); } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder getInstructionInfosOrBuilder( int index) { if (instructionInfosBuilder_ == null) { return instructionInfos_.get(index); } else { return instructionInfosBuilder_.getMessageOrBuilder(index); } } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public java.util.List getInstructionInfosOrBuilderList() { if (instructionInfosBuilder_ != null) { return instructionInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(instructionInfos_); } } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder addInstructionInfosBuilder() { return getInstructionInfosFieldBuilder().addBuilder( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.getDefaultInstance()); } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder addInstructionInfosBuilder( int index) { return getInstructionInfosFieldBuilder().addBuilder( index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.getDefaultInstance()); } /** *
         * HloInstructionInfos for every HloInstruction in the HloComputation for
         * corresponding to this HloComputattionInfo.
         * 
* * repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; */ public java.util.List getInstructionInfosBuilderList() { return getInstructionInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder> getInstructionInfosFieldBuilder() { if (instructionInfosBuilder_ == null) { instructionInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloInstructionInfoOrBuilder>( instructionInfos_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); instructionInfos_ = null; } return instructionInfosBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xla.HloProfilePrinterData.HloComputationInfo) } // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData.HloComputationInfo) private static final xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo(); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HloComputationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HloComputationInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int COMPUTATION_INFOS_FIELD_NUMBER = 1; private java.util.List computationInfos_; /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public java.util.List getComputationInfosList() { return computationInfos_; } /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public java.util.List getComputationInfosOrBuilderList() { return computationInfos_; } /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public int getComputationInfosCount() { return computationInfos_.size(); } /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getComputationInfos(int index) { return computationInfos_.get(index); } /** *
     * HloComputationInfos for every HloComputation in the HloModule.
     * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder getComputationInfosOrBuilder( int index) { return computationInfos_.get(index); } public static final int PROFILE_COUNTERS_SIZE_FIELD_NUMBER = 2; private long profileCountersSize_; /** *
     * The size of the profile counters array we will pretty-print.
     * 
* * int64 profile_counters_size = 2; */ public long getProfileCountersSize() { return profileCountersSize_; } 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 { for (int i = 0; i < computationInfos_.size(); i++) { output.writeMessage(1, computationInfos_.get(i)); } if (profileCountersSize_ != 0L) { output.writeInt64(2, profileCountersSize_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < computationInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, computationInfos_.get(i)); } if (profileCountersSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, profileCountersSize_); } 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData)) { return super.equals(obj); } xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData other = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData) obj; boolean result = true; result = result && getComputationInfosList() .equals(other.getComputationInfosList()); result = result && (getProfileCountersSize() == other.getProfileCountersSize()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getComputationInfosCount() > 0) { hash = (37 * hash) + COMPUTATION_INFOS_FIELD_NUMBER; hash = (53 * hash) + getComputationInfosList().hashCode(); } hash = (37 * hash) + PROFILE_COUNTERS_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProfileCountersSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData 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 xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData 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(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData 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; } /** *
     * Describes how to pretty-print a profile counter array gathered for a specific
     * HloModule.
     * 
* * Protobuf type {@code xla.HloProfilePrinterData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xla.HloProfilePrinterData) xla.HloProfilePrinterDataOuterClass.HloProfilePrinterDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_fieldAccessorTable .ensureFieldAccessorsInitialized( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.class, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.Builder.class); } // Construct using xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getComputationInfosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (computationInfosBuilder_ == null) { computationInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { computationInfosBuilder_.clear(); } profileCountersSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xla.HloProfilePrinterDataOuterClass.internal_static_xla_HloProfilePrinterData_descriptor; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData getDefaultInstanceForType() { return xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.getDefaultInstance(); } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData build() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData buildPartial() { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData result = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (computationInfosBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { computationInfos_ = java.util.Collections.unmodifiableList(computationInfos_); bitField0_ = (bitField0_ & ~0x00000001); } result.computationInfos_ = computationInfos_; } else { result.computationInfos_ = computationInfosBuilder_.build(); } result.profileCountersSize_ = profileCountersSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData) { return mergeFrom((xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData other) { if (other == xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.getDefaultInstance()) return this; if (computationInfosBuilder_ == null) { if (!other.computationInfos_.isEmpty()) { if (computationInfos_.isEmpty()) { computationInfos_ = other.computationInfos_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureComputationInfosIsMutable(); computationInfos_.addAll(other.computationInfos_); } onChanged(); } } else { if (!other.computationInfos_.isEmpty()) { if (computationInfosBuilder_.isEmpty()) { computationInfosBuilder_.dispose(); computationInfosBuilder_ = null; computationInfos_ = other.computationInfos_; bitField0_ = (bitField0_ & ~0x00000001); computationInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getComputationInfosFieldBuilder() : null; } else { computationInfosBuilder_.addAllMessages(other.computationInfos_); } } } if (other.getProfileCountersSize() != 0L) { setProfileCountersSize(other.getProfileCountersSize()); } 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 { xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List computationInfos_ = java.util.Collections.emptyList(); private void ensureComputationInfosIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { computationInfos_ = new java.util.ArrayList(computationInfos_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder> computationInfosBuilder_; /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public java.util.List getComputationInfosList() { if (computationInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(computationInfos_); } else { return computationInfosBuilder_.getMessageList(); } } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public int getComputationInfosCount() { if (computationInfosBuilder_ == null) { return computationInfos_.size(); } else { return computationInfosBuilder_.getCount(); } } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo getComputationInfos(int index) { if (computationInfosBuilder_ == null) { return computationInfos_.get(index); } else { return computationInfosBuilder_.getMessage(index); } } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder setComputationInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo value) { if (computationInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComputationInfosIsMutable(); computationInfos_.set(index, value); onChanged(); } else { computationInfosBuilder_.setMessage(index, value); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder setComputationInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder builderForValue) { if (computationInfosBuilder_ == null) { ensureComputationInfosIsMutable(); computationInfos_.set(index, builderForValue.build()); onChanged(); } else { computationInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder addComputationInfos(xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo value) { if (computationInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComputationInfosIsMutable(); computationInfos_.add(value); onChanged(); } else { computationInfosBuilder_.addMessage(value); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder addComputationInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo value) { if (computationInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureComputationInfosIsMutable(); computationInfos_.add(index, value); onChanged(); } else { computationInfosBuilder_.addMessage(index, value); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder addComputationInfos( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder builderForValue) { if (computationInfosBuilder_ == null) { ensureComputationInfosIsMutable(); computationInfos_.add(builderForValue.build()); onChanged(); } else { computationInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder addComputationInfos( int index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder builderForValue) { if (computationInfosBuilder_ == null) { ensureComputationInfosIsMutable(); computationInfos_.add(index, builderForValue.build()); onChanged(); } else { computationInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder addAllComputationInfos( java.lang.Iterable values) { if (computationInfosBuilder_ == null) { ensureComputationInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, computationInfos_); onChanged(); } else { computationInfosBuilder_.addAllMessages(values); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder clearComputationInfos() { if (computationInfosBuilder_ == null) { computationInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { computationInfosBuilder_.clear(); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public Builder removeComputationInfos(int index) { if (computationInfosBuilder_ == null) { ensureComputationInfosIsMutable(); computationInfos_.remove(index); onChanged(); } else { computationInfosBuilder_.remove(index); } return this; } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder getComputationInfosBuilder( int index) { return getComputationInfosFieldBuilder().getBuilder(index); } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder getComputationInfosOrBuilder( int index) { if (computationInfosBuilder_ == null) { return computationInfos_.get(index); } else { return computationInfosBuilder_.getMessageOrBuilder(index); } } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public java.util.List getComputationInfosOrBuilderList() { if (computationInfosBuilder_ != null) { return computationInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(computationInfos_); } } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder addComputationInfosBuilder() { return getComputationInfosFieldBuilder().addBuilder( xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.getDefaultInstance()); } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder addComputationInfosBuilder( int index) { return getComputationInfosFieldBuilder().addBuilder( index, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.getDefaultInstance()); } /** *
       * HloComputationInfos for every HloComputation in the HloModule.
       * 
* * repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; */ public java.util.List getComputationInfosBuilderList() { return getComputationInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder> getComputationInfosFieldBuilder() { if (computationInfosBuilder_ == null) { computationInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfo.Builder, xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData.HloComputationInfoOrBuilder>( computationInfos_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); computationInfos_ = null; } return computationInfosBuilder_; } private long profileCountersSize_ ; /** *
       * The size of the profile counters array we will pretty-print.
       * 
* * int64 profile_counters_size = 2; */ public long getProfileCountersSize() { return profileCountersSize_; } /** *
       * The size of the profile counters array we will pretty-print.
       * 
* * int64 profile_counters_size = 2; */ public Builder setProfileCountersSize(long value) { profileCountersSize_ = value; onChanged(); return this; } /** *
       * The size of the profile counters array we will pretty-print.
       * 
* * int64 profile_counters_size = 2; */ public Builder clearProfileCountersSize() { profileCountersSize_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xla.HloProfilePrinterData) } // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData) private static final xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData(); } public static xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HloProfilePrinterData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HloProfilePrinterData(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xla.HloProfilePrinterDataOuterClass.HloProfilePrinterData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_xla_HloProfilePrinterData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xla_HloProfilePrinterData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xla_HloProfilePrinterData_HloInstructionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xla_HloProfilePrinterData_HloComputationInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n>tensorflow/compiler/xla/service/hlo_pr" + "ofile_printer_data.proto\022\003xla\"\320\003\n\025HloPro" + "filePrinterData\022H\n\021computation_infos\030\001 \003" + "(\0132-.xla.HloProfilePrinterData.HloComput" + "ationInfo\022\035\n\025profile_counters_size\030\002 \001(\003" + "\032\307\001\n\022HloInstructionInfo\022\021\n\tlong_name\030\001 \001" + "(\t\022\022\n\nshort_name\030\002 \001(\t\022\020\n\010category\030\003 \001(\t" + "\022\022\n\nflop_count\030\004 \001(\002\022\034\n\024transcendental_c" + "ount\030\005 \001(\002\022\026\n\016bytes_accessed\030\006 \001(\002\022\027\n\017op" + "timal_seconds\030\007 \001(\002\022\025\n\rprofile_index\030\010 \001" + "(\003\032\203\001\n\022HloComputationInfo\022\014\n\004name\030\001 \001(\t\022" + "\025\n\rprofile_index\030\002 \001(\003\022H\n\021instruction_in" + "fos\030\003 \003(\0132-.xla.HloProfilePrinterData.Hl" + "oInstructionInfoB\003\370\001\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_xla_HloProfilePrinterData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_xla_HloProfilePrinterData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xla_HloProfilePrinterData_descriptor, new java.lang.String[] { "ComputationInfos", "ProfileCountersSize", }); internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor = internal_static_xla_HloProfilePrinterData_descriptor.getNestedTypes().get(0); internal_static_xla_HloProfilePrinterData_HloInstructionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xla_HloProfilePrinterData_HloInstructionInfo_descriptor, new java.lang.String[] { "LongName", "ShortName", "Category", "FlopCount", "TranscendentalCount", "BytesAccessed", "OptimalSeconds", "ProfileIndex", }); internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor = internal_static_xla_HloProfilePrinterData_descriptor.getNestedTypes().get(1); internal_static_xla_HloProfilePrinterData_HloComputationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xla_HloProfilePrinterData_HloComputationInfo_descriptor, new java.lang.String[] { "Name", "ProfileIndex", "InstructionInfos", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy