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

tensorflow.OpPerformanceData Maven / Gradle / Ivy

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

package tensorflow;

public final class OpPerformanceData {
  private OpPerformanceData() {}
  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 SessionInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.SessionInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int64 intra_op_parallelism = 1;
     */
    long getIntraOpParallelism();
  }
  /**
   * 
   * Description of the session when an op is run.
   * 
* * Protobuf type {@code tensorflow.SessionInfo} */ public static final class SessionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.SessionInfo) SessionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SessionInfo.newBuilder() to construct. private SessionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionInfo() { intraOpParallelism_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { intraOpParallelism_ = 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 tensorflow.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_SessionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.SessionInfo.class, tensorflow.OpPerformanceData.SessionInfo.Builder.class); } public static final int INTRA_OP_PARALLELISM_FIELD_NUMBER = 1; private long intraOpParallelism_; /** * int64 intra_op_parallelism = 1; */ public long getIntraOpParallelism() { return intraOpParallelism_; } 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 (intraOpParallelism_ != 0L) { output.writeInt64(1, intraOpParallelism_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (intraOpParallelism_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, intraOpParallelism_); } 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 tensorflow.OpPerformanceData.SessionInfo)) { return super.equals(obj); } tensorflow.OpPerformanceData.SessionInfo other = (tensorflow.OpPerformanceData.SessionInfo) obj; boolean result = true; result = result && (getIntraOpParallelism() == other.getIntraOpParallelism()); 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) + INTRA_OP_PARALLELISM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIntraOpParallelism()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.SessionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.SessionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.SessionInfo 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 tensorflow.OpPerformanceData.SessionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.SessionInfo 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 tensorflow.OpPerformanceData.SessionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.SessionInfo 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(tensorflow.OpPerformanceData.SessionInfo 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; } /** *
     * Description of the session when an op is run.
     * 
* * Protobuf type {@code tensorflow.SessionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.SessionInfo) tensorflow.OpPerformanceData.SessionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_SessionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.SessionInfo.class, tensorflow.OpPerformanceData.SessionInfo.Builder.class); } // Construct using tensorflow.OpPerformanceData.SessionInfo.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(); intraOpParallelism_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.SessionInfo getDefaultInstanceForType() { return tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.SessionInfo build() { tensorflow.OpPerformanceData.SessionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.SessionInfo buildPartial() { tensorflow.OpPerformanceData.SessionInfo result = new tensorflow.OpPerformanceData.SessionInfo(this); result.intraOpParallelism_ = intraOpParallelism_; 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 tensorflow.OpPerformanceData.SessionInfo) { return mergeFrom((tensorflow.OpPerformanceData.SessionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.SessionInfo other) { if (other == tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance()) return this; if (other.getIntraOpParallelism() != 0L) { setIntraOpParallelism(other.getIntraOpParallelism()); } 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 { tensorflow.OpPerformanceData.SessionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.SessionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long intraOpParallelism_ ; /** * int64 intra_op_parallelism = 1; */ public long getIntraOpParallelism() { return intraOpParallelism_; } /** * int64 intra_op_parallelism = 1; */ public Builder setIntraOpParallelism(long value) { intraOpParallelism_ = value; onChanged(); return this; } /** * int64 intra_op_parallelism = 1; */ public Builder clearIntraOpParallelism() { intraOpParallelism_ = 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:tensorflow.SessionInfo) } // @@protoc_insertion_point(class_scope:tensorflow.SessionInfo) private static final tensorflow.OpPerformanceData.SessionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.SessionInfo(); } public static tensorflow.OpPerformanceData.SessionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionInfo(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 tensorflow.OpPerformanceData.SessionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The operation name.  There may be custom parameters in attrs.
     * 
* * string op = 1; */ java.lang.String getOp(); /** *
     * The operation name.  There may be custom parameters in attrs.
     * 
* * string op = 1; */ com.google.protobuf.ByteString getOpBytes(); /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ int getAttrCount(); /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ boolean containsAttr( java.lang.String key); /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated java.util.Map getAttr(); /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ java.util.Map getAttrMap(); /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ org.tensorflow.framework.AttrValue getAttrOrDefault( java.lang.String key, org.tensorflow.framework.AttrValue defaultValue); /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ org.tensorflow.framework.AttrValue getAttrOrThrow( java.lang.String key); /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ java.util.List getInputsList(); /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ tensorflow.OpPerformanceData.OpInfo.TensorProperties getInputs(int index); /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ int getInputsCount(); /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ java.util.List getInputsOrBuilderList(); /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( int index); /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ java.util.List getOutputsList(); /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ tensorflow.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index); /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ int getOutputsCount(); /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ java.util.List getOutputsOrBuilderList(); /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( int index); /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ boolean hasDevice(); /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ tensorflow.DevicePropertiesProtos.DeviceProperties getDevice(); /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ boolean hasSessionInfo(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ tensorflow.OpPerformanceData.SessionInfo getSessionInfo(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder(); } /** *
   * Description of an operation as well as the parameters expected to impact its
   * performance.
   * 
* * Protobuf type {@code tensorflow.OpInfo} */ public static final class OpInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.OpInfo) OpInfoOrBuilder { private static final long serialVersionUID = 0L; // Use OpInfo.newBuilder() to construct. private OpInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpInfo() { op_ = ""; inputs_ = java.util.Collections.emptyList(); outputs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); op_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry attr__ = input.readMessage( AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attr_.getMutableMap().put( attr__.getKey(), attr__.getValue()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } inputs_.add( input.readMessage(tensorflow.OpPerformanceData.OpInfo.TensorProperties.parser(), extensionRegistry)); break; } case 34: { tensorflow.DevicePropertiesProtos.DeviceProperties.Builder subBuilder = null; if (device_ != null) { subBuilder = device_.toBuilder(); } device_ = input.readMessage(tensorflow.DevicePropertiesProtos.DeviceProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(device_); device_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { outputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } outputs_.add( input.readMessage(tensorflow.OpPerformanceData.OpInfo.TensorProperties.parser(), extensionRegistry)); break; } case 50: { tensorflow.OpPerformanceData.SessionInfo.Builder subBuilder = null; if (sessionInfo_ != null) { subBuilder = sessionInfo_.toBuilder(); } sessionInfo_ = input.readMessage(tensorflow.OpPerformanceData.SessionInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionInfo_); sessionInfo_ = subBuilder.buildPartial(); } 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)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { outputs_ = java.util.Collections.unmodifiableList(outputs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpInfo.class, tensorflow.OpPerformanceData.OpInfo.Builder.class); } public interface TensorPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo.TensorProperties) com.google.protobuf.MessageOrBuilder { /** * .tensorflow.DataType dtype = 1; */ int getDtypeValue(); /** * .tensorflow.DataType dtype = 1; */ org.tensorflow.framework.DataType getDtype(); /** * .tensorflow.TensorShapeProto shape = 2; */ boolean hasShape(); /** * .tensorflow.TensorShapeProto shape = 2; */ org.tensorflow.framework.TensorShapeProto getShape(); /** * .tensorflow.TensorShapeProto shape = 2; */ org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); /** * .tensorflow.TensorProto value = 3; */ boolean hasValue(); /** * .tensorflow.TensorProto value = 3; */ org.tensorflow.framework.TensorProto getValue(); /** * .tensorflow.TensorProto value = 3; */ org.tensorflow.framework.TensorProtoOrBuilder getValueOrBuilder(); } /** *
     * Input data types, shapes and values if known.
     * 
* * Protobuf type {@code tensorflow.OpInfo.TensorProperties} */ public static final class TensorProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.OpInfo.TensorProperties) TensorPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use TensorProperties.newBuilder() to construct. private TensorProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TensorProperties() { dtype_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); dtype_ = rawValue; break; } case 18: { org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null; if (shape_ != null) { subBuilder = shape_.toBuilder(); } shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shape_); shape_ = subBuilder.buildPartial(); } break; } case 26: { org.tensorflow.framework.TensorProto.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } 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 tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpInfo.TensorProperties.class, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder.class); } public static final int DTYPE_FIELD_NUMBER = 1; private int dtype_; /** * .tensorflow.DataType dtype = 1; */ public int getDtypeValue() { return dtype_; } /** * .tensorflow.DataType dtype = 1; */ public org.tensorflow.framework.DataType getDtype() { @SuppressWarnings("deprecation") org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_); return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 2; private org.tensorflow.framework.TensorShapeProto shape_; /** * .tensorflow.TensorShapeProto shape = 2; */ public boolean hasShape() { return shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 2; */ public org.tensorflow.framework.TensorShapeProto getShape() { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } /** * .tensorflow.TensorShapeProto shape = 2; */ public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { return getShape(); } public static final int VALUE_FIELD_NUMBER = 3; private org.tensorflow.framework.TensorProto value_; /** * .tensorflow.TensorProto value = 3; */ public boolean hasValue() { return value_ != null; } /** * .tensorflow.TensorProto value = 3; */ public org.tensorflow.framework.TensorProto getValue() { return value_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : value_; } /** * .tensorflow.TensorProto value = 3; */ public org.tensorflow.framework.TensorProtoOrBuilder getValueOrBuilder() { return getValue(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) { output.writeEnum(1, dtype_); } if (shape_ != null) { output.writeMessage(2, getShape()); } if (value_ != null) { output.writeMessage(3, getValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, dtype_); } if (shape_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getShape()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.OpPerformanceData.OpInfo.TensorProperties)) { return super.equals(obj); } tensorflow.OpPerformanceData.OpInfo.TensorProperties other = (tensorflow.OpPerformanceData.OpInfo.TensorProperties) obj; boolean result = true; result = result && dtype_ == other.dtype_; result = result && (hasShape() == other.hasShape()); if (hasShape()) { result = result && getShape() .equals(other.getShape()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } 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) + DTYPE_FIELD_NUMBER; hash = (53 * hash) + dtype_; if (hasShape()) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShape().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.OpPerformanceData.OpInfo.TensorProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Input data types, shapes and values if known.
       * 
* * Protobuf type {@code tensorflow.OpInfo.TensorProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo.TensorProperties) tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpInfo.TensorProperties.class, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder.class); } // Construct using tensorflow.OpPerformanceData.OpInfo.TensorProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); dtype_ = 0; if (shapeBuilder_ == null) { shape_ = null; } else { shape_ = null; shapeBuilder_ = null; } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo.TensorProperties getDefaultInstanceForType() { return tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo.TensorProperties build() { tensorflow.OpPerformanceData.OpInfo.TensorProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo.TensorProperties buildPartial() { tensorflow.OpPerformanceData.OpInfo.TensorProperties result = new tensorflow.OpPerformanceData.OpInfo.TensorProperties(this); result.dtype_ = dtype_; if (shapeBuilder_ == null) { result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (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 tensorflow.OpPerformanceData.OpInfo.TensorProperties) { return mergeFrom((tensorflow.OpPerformanceData.OpInfo.TensorProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.OpInfo.TensorProperties other) { if (other == tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()) return this; if (other.dtype_ != 0) { setDtypeValue(other.getDtypeValue()); } if (other.hasShape()) { mergeShape(other.getShape()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.OpPerformanceData.OpInfo.TensorProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.OpInfo.TensorProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int dtype_ = 0; /** * .tensorflow.DataType dtype = 1; */ public int getDtypeValue() { return dtype_; } /** * .tensorflow.DataType dtype = 1; */ public Builder setDtypeValue(int value) { dtype_ = value; onChanged(); return this; } /** * .tensorflow.DataType dtype = 1; */ public org.tensorflow.framework.DataType getDtype() { @SuppressWarnings("deprecation") org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_); return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result; } /** * .tensorflow.DataType dtype = 1; */ public Builder setDtype(org.tensorflow.framework.DataType value) { if (value == null) { throw new NullPointerException(); } dtype_ = value.getNumber(); onChanged(); return this; } /** * .tensorflow.DataType dtype = 1; */ public Builder clearDtype() { dtype_ = 0; onChanged(); return this; } private org.tensorflow.framework.TensorShapeProto shape_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .tensorflow.TensorShapeProto shape = 2; */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 2; */ public org.tensorflow.framework.TensorShapeProto getShape() { if (shapeBuilder_ == null) { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } else { return shapeBuilder_.getMessage(); } } /** * .tensorflow.TensorShapeProto shape = 2; */ public Builder setShape(org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shape_ = value; onChanged(); } else { shapeBuilder_.setMessage(value); } return this; } /** * .tensorflow.TensorShapeProto shape = 2; */ public Builder setShape( org.tensorflow.framework.TensorShapeProto.Builder builderForValue) { if (shapeBuilder_ == null) { shape_ = builderForValue.build(); onChanged(); } else { shapeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.TensorShapeProto shape = 2; */ public Builder mergeShape(org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (shape_ != null) { shape_ = org.tensorflow.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); } else { shape_ = value; } onChanged(); } else { shapeBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.TensorShapeProto shape = 2; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = null; onChanged(); } else { shape_ = null; shapeBuilder_ = null; } return this; } /** * .tensorflow.TensorShapeProto shape = 2; */ public org.tensorflow.framework.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * .tensorflow.TensorShapeProto shape = 2; */ public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } } /** * .tensorflow.TensorShapeProto shape = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>( getShape(), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } private org.tensorflow.framework.TensorProto value_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> valueBuilder_; /** * .tensorflow.TensorProto value = 3; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .tensorflow.TensorProto value = 3; */ public org.tensorflow.framework.TensorProto getValue() { if (valueBuilder_ == null) { return value_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .tensorflow.TensorProto value = 3; */ public Builder setValue(org.tensorflow.framework.TensorProto value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .tensorflow.TensorProto value = 3; */ public Builder setValue( org.tensorflow.framework.TensorProto.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.TensorProto value = 3; */ public Builder mergeValue(org.tensorflow.framework.TensorProto value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = org.tensorflow.framework.TensorProto.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.TensorProto value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .tensorflow.TensorProto value = 3; */ public org.tensorflow.framework.TensorProto.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .tensorflow.TensorProto value = 3; */ public org.tensorflow.framework.TensorProtoOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : value_; } } /** * .tensorflow.TensorProto value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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:tensorflow.OpInfo.TensorProperties) } // @@protoc_insertion_point(class_scope:tensorflow.OpInfo.TensorProperties) private static final tensorflow.OpPerformanceData.OpInfo.TensorProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.OpInfo.TensorProperties(); } public static tensorflow.OpPerformanceData.OpInfo.TensorProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TensorProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TensorProperties(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo.TensorProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int OP_FIELD_NUMBER = 1; private volatile java.lang.Object op_; /** *
     * The operation name.  There may be custom parameters in attrs.
     * 
* * string op = 1; */ public java.lang.String getOp() { java.lang.Object ref = op_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); op_ = s; return s; } } /** *
     * The operation name.  There may be custom parameters in attrs.
     * 
* * string op = 1; */ public com.google.protobuf.ByteString getOpBytes() { java.lang.Object ref = op_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); op_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTR_FIELD_NUMBER = 2; private static final class AttrDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.AttrValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_AttrEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.AttrValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public org.tensorflow.framework.AttrValue getAttrOrDefault( java.lang.String key, org.tensorflow.framework.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom parameters impacting the behavior of the op.
     * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public org.tensorflow.framework.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int INPUTS_FIELD_NUMBER = 3; private java.util.List inputs_; /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public java.util.List getInputsList() { return inputs_; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public java.util.List getInputsOrBuilderList() { return inputs_; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public int getInputsCount() { return inputs_.size(); } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties getInputs(int index) { return inputs_.get(index); } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int OUTPUTS_FIELD_NUMBER = 5; private java.util.List outputs_; /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public java.util.List getOutputsList() { return outputs_; } /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public java.util.List getOutputsOrBuilderList() { return outputs_; } /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public int getOutputsCount() { return outputs_.size(); } /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index) { return outputs_.get(index); } /** *
     * Optional description of the op outputs
     * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( int index) { return outputs_.get(index); } public static final int DEVICE_FIELD_NUMBER = 4; private tensorflow.DevicePropertiesProtos.DeviceProperties device_; /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ public boolean hasDevice() { return device_ != null; } /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ public tensorflow.DevicePropertiesProtos.DeviceProperties getDevice() { return device_ == null ? tensorflow.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; } /** *
     * Device on which the operation is run.
     * 
* * .tensorflow.DeviceProperties device = 4; */ public tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder() { return getDevice(); } public static final int SESSION_INFO_FIELD_NUMBER = 6; private tensorflow.OpPerformanceData.SessionInfo sessionInfo_; /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ public boolean hasSessionInfo() { return sessionInfo_ != null; } /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ public tensorflow.OpPerformanceData.SessionInfo getSessionInfo() { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 6; */ public tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { return getSessionInfo(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getOpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, op_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttr(), AttrDefaultEntryHolder.defaultEntry, 2); for (int i = 0; i < inputs_.size(); i++) { output.writeMessage(3, inputs_.get(i)); } if (device_ != null) { output.writeMessage(4, getDevice()); } for (int i = 0; i < outputs_.size(); i++) { output.writeMessage(5, outputs_.get(i)); } if (sessionInfo_ != null) { output.writeMessage(6, getSessionInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, op_); } for (java.util.Map.Entry entry : internalGetAttr().getMap().entrySet()) { com.google.protobuf.MapEntry attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attr__); } for (int i = 0; i < inputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, inputs_.get(i)); } if (device_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDevice()); } for (int i = 0; i < outputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, outputs_.get(i)); } if (sessionInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSessionInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.OpPerformanceData.OpInfo)) { return super.equals(obj); } tensorflow.OpPerformanceData.OpInfo other = (tensorflow.OpPerformanceData.OpInfo) obj; boolean result = true; result = result && getOp() .equals(other.getOp()); result = result && internalGetAttr().equals( other.internalGetAttr()); result = result && getInputsList() .equals(other.getInputsList()); result = result && getOutputsList() .equals(other.getOutputsList()); result = result && (hasDevice() == other.hasDevice()); if (hasDevice()) { result = result && getDevice() .equals(other.getDevice()); } result = result && (hasSessionInfo() == other.hasSessionInfo()); if (hasSessionInfo()) { result = result && getSessionInfo() .equals(other.getSessionInfo()); } 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) + OP_FIELD_NUMBER; hash = (53 * hash) + getOp().hashCode(); if (!internalGetAttr().getMap().isEmpty()) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + internalGetAttr().hashCode(); } if (getInputsCount() > 0) { hash = (37 * hash) + INPUTS_FIELD_NUMBER; hash = (53 * hash) + getInputsList().hashCode(); } if (getOutputsCount() > 0) { hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; hash = (53 * hash) + getOutputsList().hashCode(); } if (hasDevice()) { hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); } if (hasSessionInfo()) { hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSessionInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.OpInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.OpPerformanceData.OpInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Description of an operation as well as the parameters expected to impact its
     * performance.
     * 
* * Protobuf type {@code tensorflow.OpInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo) tensorflow.OpPerformanceData.OpInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpInfo.class, tensorflow.OpPerformanceData.OpInfo.Builder.class); } // Construct using tensorflow.OpPerformanceData.OpInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInputsFieldBuilder(); getOutputsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); op_ = ""; internalGetMutableAttr().clear(); if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { inputsBuilder_.clear(); } if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { outputsBuilder_.clear(); } if (deviceBuilder_ == null) { device_ = null; } else { device_ = null; deviceBuilder_ = null; } if (sessionInfoBuilder_ == null) { sessionInfo_ = null; } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo getDefaultInstanceForType() { return tensorflow.OpPerformanceData.OpInfo.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo build() { tensorflow.OpPerformanceData.OpInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo buildPartial() { tensorflow.OpPerformanceData.OpInfo result = new tensorflow.OpPerformanceData.OpInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.op_ = op_; result.attr_ = internalGetAttr(); result.attr_.makeImmutable(); if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000004); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } if (outputsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { outputs_ = java.util.Collections.unmodifiableList(outputs_); bitField0_ = (bitField0_ & ~0x00000008); } result.outputs_ = outputs_; } else { result.outputs_ = outputsBuilder_.build(); } if (deviceBuilder_ == null) { result.device_ = device_; } else { result.device_ = deviceBuilder_.build(); } if (sessionInfoBuilder_ == null) { result.sessionInfo_ = sessionInfo_; } else { result.sessionInfo_ = sessionInfoBuilder_.build(); } 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 tensorflow.OpPerformanceData.OpInfo) { return mergeFrom((tensorflow.OpPerformanceData.OpInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.OpInfo other) { if (other == tensorflow.OpPerformanceData.OpInfo.getDefaultInstance()) return this; if (!other.getOp().isEmpty()) { op_ = other.op_; onChanged(); } internalGetMutableAttr().mergeFrom( other.internalGetAttr()); if (inputsBuilder_ == null) { if (!other.inputs_.isEmpty()) { if (inputs_.isEmpty()) { inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000004); inputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputsFieldBuilder() : null; } else { inputsBuilder_.addAllMessages(other.inputs_); } } } if (outputsBuilder_ == null) { if (!other.outputs_.isEmpty()) { if (outputs_.isEmpty()) { outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureOutputsIsMutable(); outputs_.addAll(other.outputs_); } onChanged(); } } else { if (!other.outputs_.isEmpty()) { if (outputsBuilder_.isEmpty()) { outputsBuilder_.dispose(); outputsBuilder_ = null; outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000008); outputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputsFieldBuilder() : null; } else { outputsBuilder_.addAllMessages(other.outputs_); } } } if (other.hasDevice()) { mergeDevice(other.getDevice()); } if (other.hasSessionInfo()) { mergeSessionInfo(other.getSessionInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.OpPerformanceData.OpInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.OpInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object op_ = ""; /** *
       * The operation name.  There may be custom parameters in attrs.
       * 
* * string op = 1; */ public java.lang.String getOp() { java.lang.Object ref = op_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); op_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The operation name.  There may be custom parameters in attrs.
       * 
* * string op = 1; */ public com.google.protobuf.ByteString getOpBytes() { java.lang.Object ref = op_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); op_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The operation name.  There may be custom parameters in attrs.
       * 
* * string op = 1; */ public Builder setOp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } op_ = value; onChanged(); return this; } /** *
       * The operation name.  There may be custom parameters in attrs.
       * 
* * string op = 1; */ public Builder clearOp() { op_ = getDefaultInstance().getOp(); onChanged(); return this; } /** *
       * The operation name.  There may be custom parameters in attrs.
       * 
* * string op = 1; */ public Builder setOpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); op_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } private com.google.protobuf.MapField internalGetMutableAttr() { onChanged();; if (attr_ == null) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); } if (!attr_.isMutable()) { attr_ = attr_.copy(); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public org.tensorflow.framework.AttrValue getAttrOrDefault( java.lang.String key, org.tensorflow.framework.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public org.tensorflow.framework.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttr() { internalGetMutableAttr().getMutableMap() .clear(); return this; } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public Builder removeAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttr() { return internalGetMutableAttr().getMutableMap(); } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public Builder putAttr( java.lang.String key, org.tensorflow.framework.AttrValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .put(key, value); return this; } /** *
       * Custom parameters impacting the behavior of the op.
       * 
* * map<string, .tensorflow.AttrValue> attr = 2; */ public Builder putAllAttr( java.util.Map values) { internalGetMutableAttr().getMutableMap() .putAll(values); return this; } private java.util.List inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> inputsBuilder_; /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public java.util.List getInputsList() { if (inputsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputs_); } else { return inputsBuilder_.getMessageList(); } } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public int getInputsCount() { if (inputsBuilder_ == null) { return inputs_.size(); } else { return inputsBuilder_.getCount(); } } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties getInputs(int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessage(index); } } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder setInputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.set(index, value); onChanged(); } else { inputsBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder setInputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.set(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder addInputs(tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(value); onChanged(); } else { inputsBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder addInputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(index, value); onChanged(); } else { inputsBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder addInputs( tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder addInputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder addAllInputs( java.lang.Iterable values) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputs_); onChanged(); } else { inputsBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public Builder removeInputs(int index) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.remove(index); onChanged(); } else { inputsBuilder_.remove(index); } return this; } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public java.util.List getInputsOrBuilderList() { if (inputsBuilder_ != null) { return inputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputs_); } } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); } /** * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; */ public java.util.List getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder>( inputs_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private java.util.List outputs_ = java.util.Collections.emptyList(); private void ensureOutputsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { outputs_ = new java.util.ArrayList(outputs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> outputsBuilder_; /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public java.util.List getOutputsList() { if (outputsBuilder_ == null) { return java.util.Collections.unmodifiableList(outputs_); } else { return outputsBuilder_.getMessageList(); } } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public int getOutputsCount() { if (outputsBuilder_ == null) { return outputs_.size(); } else { return outputsBuilder_.getCount(); } } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessage(index); } } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder setOutputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.set(index, value); onChanged(); } else { outputsBuilder_.setMessage(index, value); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder setOutputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.set(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder addOutputs(tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(value); onChanged(); } else { outputsBuilder_.addMessage(value); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder addOutputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(index, value); onChanged(); } else { outputsBuilder_.addMessage(index, value); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder addOutputs( tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder addOutputs( int index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder addAllOutputs( java.lang.Iterable values) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputs_); onChanged(); } else { outputsBuilder_.addAllMessages(values); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder clearOutputs() { if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { outputsBuilder_.clear(); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public Builder removeOutputs(int index) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.remove(index); onChanged(); } else { outputsBuilder_.remove(index); } return this; } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder getOutputsBuilder( int index) { return getOutputsFieldBuilder().getBuilder(index); } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessageOrBuilder(index); } } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public java.util.List getOutputsOrBuilderList() { if (outputsBuilder_ != null) { return outputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputs_); } } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder addOutputsBuilder() { return getOutputsFieldBuilder().addBuilder( tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder addOutputsBuilder( int index) { return getOutputsFieldBuilder().addBuilder( index, tensorflow.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); } /** *
       * Optional description of the op outputs
       * 
* * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; */ public java.util.List getOutputsBuilderList() { return getOutputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> getOutputsFieldBuilder() { if (outputsBuilder_ == null) { outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo.TensorProperties, tensorflow.OpPerformanceData.OpInfo.TensorProperties.Builder, tensorflow.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder>( outputs_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); outputs_ = null; } return outputsBuilder_; } private tensorflow.DevicePropertiesProtos.DeviceProperties device_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.DevicePropertiesProtos.DeviceProperties, tensorflow.DevicePropertiesProtos.DeviceProperties.Builder, tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder> deviceBuilder_; /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public tensorflow.DevicePropertiesProtos.DeviceProperties getDevice() { if (deviceBuilder_ == null) { return device_ == null ? tensorflow.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; } else { return deviceBuilder_.getMessage(); } } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public Builder setDevice(tensorflow.DevicePropertiesProtos.DeviceProperties value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); } else { deviceBuilder_.setMessage(value); } return this; } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public Builder setDevice( tensorflow.DevicePropertiesProtos.DeviceProperties.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); } else { deviceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public Builder mergeDevice(tensorflow.DevicePropertiesProtos.DeviceProperties value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = tensorflow.DevicePropertiesProtos.DeviceProperties.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } onChanged(); } else { deviceBuilder_.mergeFrom(value); } return this; } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public Builder clearDevice() { if (deviceBuilder_ == null) { device_ = null; onChanged(); } else { device_ = null; deviceBuilder_ = null; } return this; } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public tensorflow.DevicePropertiesProtos.DeviceProperties.Builder getDeviceBuilder() { onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ public tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { return device_ == null ? tensorflow.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; } } /** *
       * Device on which the operation is run.
       * 
* * .tensorflow.DeviceProperties device = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.DevicePropertiesProtos.DeviceProperties, tensorflow.DevicePropertiesProtos.DeviceProperties.Builder, tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.DevicePropertiesProtos.DeviceProperties, tensorflow.DevicePropertiesProtos.DeviceProperties.Builder, tensorflow.DevicePropertiesProtos.DevicePropertiesOrBuilder>( getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; } private tensorflow.OpPerformanceData.SessionInfo sessionInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder> sessionInfoBuilder_; /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public boolean hasSessionInfo() { return sessionInfoBuilder_ != null || sessionInfo_ != null; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public tensorflow.OpPerformanceData.SessionInfo getSessionInfo() { if (sessionInfoBuilder_ == null) { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } else { return sessionInfoBuilder_.getMessage(); } } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public Builder setSessionInfo(tensorflow.OpPerformanceData.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionInfo_ = value; onChanged(); } else { sessionInfoBuilder_.setMessage(value); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public Builder setSessionInfo( tensorflow.OpPerformanceData.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public Builder mergeSessionInfo(tensorflow.OpPerformanceData.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (sessionInfo_ != null) { sessionInfo_ = tensorflow.OpPerformanceData.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); } else { sessionInfo_ = value; } onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public Builder clearSessionInfo() { if (sessionInfoBuilder_ == null) { sessionInfo_ = null; onChanged(); } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public tensorflow.OpPerformanceData.SessionInfo.Builder getSessionInfoBuilder() { onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ public tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { if (sessionInfoBuilder_ != null) { return sessionInfoBuilder_.getMessageOrBuilder(); } else { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder> getSessionInfoFieldBuilder() { if (sessionInfoBuilder_ == null) { sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder>( getSessionInfo(), getParentForChildren(), isClean()); sessionInfo_ = null; } return sessionInfoBuilder_; } @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:tensorflow.OpInfo) } // @@protoc_insertion_point(class_scope:tensorflow.OpInfo) private static final tensorflow.OpPerformanceData.OpInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.OpInfo(); } public static tensorflow.OpPerformanceData.OpInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.OpPerformanceData.OpInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NormalDistributionOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.NormalDistribution) com.google.protobuf.MessageOrBuilder { /** * double mu = 1; */ double getMu(); /** * double sigma = 2; */ double getSigma(); } /** * Protobuf type {@code tensorflow.NormalDistribution} */ public static final class NormalDistribution extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.NormalDistribution) NormalDistributionOrBuilder { private static final long serialVersionUID = 0L; // Use NormalDistribution.newBuilder() to construct. private NormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NormalDistribution() { mu_ = 0D; sigma_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NormalDistribution( 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 9: { mu_ = input.readDouble(); break; } case 17: { sigma_ = input.readDouble(); 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 tensorflow.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_NormalDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.NormalDistribution.class, tensorflow.OpPerformanceData.NormalDistribution.Builder.class); } public static final int MU_FIELD_NUMBER = 1; private double mu_; /** * double mu = 1; */ public double getMu() { return mu_; } public static final int SIGMA_FIELD_NUMBER = 2; private double sigma_; /** * double sigma = 2; */ public double getSigma() { return sigma_; } 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 (mu_ != 0D) { output.writeDouble(1, mu_); } if (sigma_ != 0D) { output.writeDouble(2, sigma_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mu_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, mu_); } if (sigma_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, sigma_); } 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 tensorflow.OpPerformanceData.NormalDistribution)) { return super.equals(obj); } tensorflow.OpPerformanceData.NormalDistribution other = (tensorflow.OpPerformanceData.NormalDistribution) obj; boolean result = true; result = result && ( java.lang.Double.doubleToLongBits(getMu()) == java.lang.Double.doubleToLongBits( other.getMu())); result = result && ( java.lang.Double.doubleToLongBits(getSigma()) == java.lang.Double.doubleToLongBits( other.getSigma())); 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) + MU_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMu())); hash = (37 * hash) + SIGMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSigma())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.NormalDistribution parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.NormalDistribution 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 tensorflow.OpPerformanceData.NormalDistribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.NormalDistribution 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 tensorflow.OpPerformanceData.NormalDistribution parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.NormalDistribution 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(tensorflow.OpPerformanceData.NormalDistribution 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; } /** * Protobuf type {@code tensorflow.NormalDistribution} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.NormalDistribution) tensorflow.OpPerformanceData.NormalDistributionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_NormalDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.NormalDistribution.class, tensorflow.OpPerformanceData.NormalDistribution.Builder.class); } // Construct using tensorflow.OpPerformanceData.NormalDistribution.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(); mu_ = 0D; sigma_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.NormalDistribution getDefaultInstanceForType() { return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.NormalDistribution build() { tensorflow.OpPerformanceData.NormalDistribution result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.NormalDistribution buildPartial() { tensorflow.OpPerformanceData.NormalDistribution result = new tensorflow.OpPerformanceData.NormalDistribution(this); result.mu_ = mu_; result.sigma_ = sigma_; 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 tensorflow.OpPerformanceData.NormalDistribution) { return mergeFrom((tensorflow.OpPerformanceData.NormalDistribution)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.NormalDistribution other) { if (other == tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance()) return this; if (other.getMu() != 0D) { setMu(other.getMu()); } if (other.getSigma() != 0D) { setSigma(other.getSigma()); } 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 { tensorflow.OpPerformanceData.NormalDistribution parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.NormalDistribution) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double mu_ ; /** * double mu = 1; */ public double getMu() { return mu_; } /** * double mu = 1; */ public Builder setMu(double value) { mu_ = value; onChanged(); return this; } /** * double mu = 1; */ public Builder clearMu() { mu_ = 0D; onChanged(); return this; } private double sigma_ ; /** * double sigma = 2; */ public double getSigma() { return sigma_; } /** * double sigma = 2; */ public Builder setSigma(double value) { sigma_ = value; onChanged(); return this; } /** * double sigma = 2; */ public Builder clearSigma() { sigma_ = 0D; 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:tensorflow.NormalDistribution) } // @@protoc_insertion_point(class_scope:tensorflow.NormalDistribution) private static final tensorflow.OpPerformanceData.NormalDistribution DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.NormalDistribution(); } public static tensorflow.OpPerformanceData.NormalDistribution getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NormalDistribution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NormalDistribution(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 tensorflow.OpPerformanceData.NormalDistribution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogNormalDistributionOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.LogNormalDistribution) com.google.protobuf.MessageOrBuilder { /** * double mu = 1; */ double getMu(); /** * double sigma = 2; */ double getSigma(); } /** * Protobuf type {@code tensorflow.LogNormalDistribution} */ public static final class LogNormalDistribution extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.LogNormalDistribution) LogNormalDistributionOrBuilder { private static final long serialVersionUID = 0L; // Use LogNormalDistribution.newBuilder() to construct. private LogNormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogNormalDistribution() { mu_ = 0D; sigma_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LogNormalDistribution( 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 9: { mu_ = input.readDouble(); break; } case 17: { sigma_ = input.readDouble(); 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 tensorflow.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.LogNormalDistribution.class, tensorflow.OpPerformanceData.LogNormalDistribution.Builder.class); } public static final int MU_FIELD_NUMBER = 1; private double mu_; /** * double mu = 1; */ public double getMu() { return mu_; } public static final int SIGMA_FIELD_NUMBER = 2; private double sigma_; /** * double sigma = 2; */ public double getSigma() { return sigma_; } 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 (mu_ != 0D) { output.writeDouble(1, mu_); } if (sigma_ != 0D) { output.writeDouble(2, sigma_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mu_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, mu_); } if (sigma_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, sigma_); } 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 tensorflow.OpPerformanceData.LogNormalDistribution)) { return super.equals(obj); } tensorflow.OpPerformanceData.LogNormalDistribution other = (tensorflow.OpPerformanceData.LogNormalDistribution) obj; boolean result = true; result = result && ( java.lang.Double.doubleToLongBits(getMu()) == java.lang.Double.doubleToLongBits( other.getMu())); result = result && ( java.lang.Double.doubleToLongBits(getSigma()) == java.lang.Double.doubleToLongBits( other.getSigma())); 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) + MU_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMu())); hash = (37 * hash) + SIGMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSigma())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.LogNormalDistribution parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.LogNormalDistribution 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 tensorflow.OpPerformanceData.LogNormalDistribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.LogNormalDistribution 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 tensorflow.OpPerformanceData.LogNormalDistribution parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.LogNormalDistribution 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(tensorflow.OpPerformanceData.LogNormalDistribution 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; } /** * Protobuf type {@code tensorflow.LogNormalDistribution} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.LogNormalDistribution) tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.LogNormalDistribution.class, tensorflow.OpPerformanceData.LogNormalDistribution.Builder.class); } // Construct using tensorflow.OpPerformanceData.LogNormalDistribution.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(); mu_ = 0D; sigma_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.LogNormalDistribution getDefaultInstanceForType() { return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.LogNormalDistribution build() { tensorflow.OpPerformanceData.LogNormalDistribution result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.LogNormalDistribution buildPartial() { tensorflow.OpPerformanceData.LogNormalDistribution result = new tensorflow.OpPerformanceData.LogNormalDistribution(this); result.mu_ = mu_; result.sigma_ = sigma_; 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 tensorflow.OpPerformanceData.LogNormalDistribution) { return mergeFrom((tensorflow.OpPerformanceData.LogNormalDistribution)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.LogNormalDistribution other) { if (other == tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance()) return this; if (other.getMu() != 0D) { setMu(other.getMu()); } if (other.getSigma() != 0D) { setSigma(other.getSigma()); } 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 { tensorflow.OpPerformanceData.LogNormalDistribution parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.LogNormalDistribution) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double mu_ ; /** * double mu = 1; */ public double getMu() { return mu_; } /** * double mu = 1; */ public Builder setMu(double value) { mu_ = value; onChanged(); return this; } /** * double mu = 1; */ public Builder clearMu() { mu_ = 0D; onChanged(); return this; } private double sigma_ ; /** * double sigma = 2; */ public double getSigma() { return sigma_; } /** * double sigma = 2; */ public Builder setSigma(double value) { sigma_ = value; onChanged(); return this; } /** * double sigma = 2; */ public Builder clearSigma() { sigma_ = 0D; 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:tensorflow.LogNormalDistribution) } // @@protoc_insertion_point(class_scope:tensorflow.LogNormalDistribution) private static final tensorflow.OpPerformanceData.LogNormalDistribution DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.LogNormalDistribution(); } public static tensorflow.OpPerformanceData.LogNormalDistribution getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogNormalDistribution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LogNormalDistribution(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 tensorflow.OpPerformanceData.LogNormalDistribution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpPerformanceOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance) com.google.protobuf.MessageOrBuilder { /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ boolean hasOp(); /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ tensorflow.OpPerformanceData.OpInfo getOp(); /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ tensorflow.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated boolean hasSessionInfo(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated tensorflow.OpPerformanceData.SessionInfo getSessionInfo(); /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder(); /** *
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * 
* * string node = 5; */ java.lang.String getNode(); /** *
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * 
* * string node = 5; */ com.google.protobuf.ByteString getNodeBytes(); /** *
     * Temporary memory used by this node (in bytes).
     * 
* * int64 temporary_memory_size = 2; */ long getTemporaryMemorySize(); /** *
     * Time it takes to run the op (in nanoseconds).
     * 
* * int64 compute_cost = 3; */ long getComputeCost(); /** *
     * Analytical compute cost (in nanoseconds).
     * 
* * int64 compute_time = 6; */ long getComputeTime(); /** *
     * Analytical memory access cost (in nanoseconds).
     * 
* * int64 memory_time = 7; */ long getMemoryTime(); /** *
     * Percentage of theoretical compute performance.
     * 
* * double compute_efficiency = 4; */ double getComputeEfficiency(); /** *
     * Percentage of theoretical memory performance.
     * 
* * double memory_efficiency = 8; */ double getMemoryEfficiency(); /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ boolean hasExecutionTimeNormal(); /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ tensorflow.OpPerformanceData.NormalDistribution getExecutionTimeNormal(); /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ tensorflow.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder(); /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ boolean hasExecutionTimeLogNormal(); /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ tensorflow.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal(); /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder(); /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ boolean hasOpMemory(); /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ tensorflow.OpPerformanceData.OpPerformance.OpMemory getOpMemory(); /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder(); public tensorflow.OpPerformanceData.OpPerformance.ExecutionTimeCase getExecutionTimeCase(); } /** *
   * Performance data for tensorflow operations
   * 
* * Protobuf type {@code tensorflow.OpPerformance} */ public static final class OpPerformance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance) OpPerformanceOrBuilder { private static final long serialVersionUID = 0L; // Use OpPerformance.newBuilder() to construct. private OpPerformance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpPerformance() { node_ = ""; temporaryMemorySize_ = 0L; computeCost_ = 0L; computeTime_ = 0L; memoryTime_ = 0L; computeEfficiency_ = 0D; memoryEfficiency_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpPerformance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { tensorflow.OpPerformanceData.OpInfo.Builder subBuilder = null; if (op_ != null) { subBuilder = op_.toBuilder(); } op_ = input.readMessage(tensorflow.OpPerformanceData.OpInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(op_); op_ = subBuilder.buildPartial(); } break; } case 16: { temporaryMemorySize_ = input.readInt64(); break; } case 24: { computeCost_ = input.readInt64(); break; } case 33: { computeEfficiency_ = input.readDouble(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); node_ = s; break; } case 48: { computeTime_ = input.readInt64(); break; } case 56: { memoryTime_ = input.readInt64(); break; } case 65: { memoryEfficiency_ = input.readDouble(); break; } case 74: { tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder subBuilder = null; if (opMemory_ != null) { subBuilder = opMemory_.toBuilder(); } opMemory_ = input.readMessage(tensorflow.OpPerformanceData.OpPerformance.OpMemory.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(opMemory_); opMemory_ = subBuilder.buildPartial(); } break; } case 82: { tensorflow.OpPerformanceData.NormalDistribution.Builder subBuilder = null; if (executionTimeCase_ == 10) { subBuilder = ((tensorflow.OpPerformanceData.NormalDistribution) executionTime_).toBuilder(); } executionTime_ = input.readMessage(tensorflow.OpPerformanceData.NormalDistribution.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((tensorflow.OpPerformanceData.NormalDistribution) executionTime_); executionTime_ = subBuilder.buildPartial(); } executionTimeCase_ = 10; break; } case 90: { tensorflow.OpPerformanceData.LogNormalDistribution.Builder subBuilder = null; if (executionTimeCase_ == 11) { subBuilder = ((tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_).toBuilder(); } executionTime_ = input.readMessage(tensorflow.OpPerformanceData.LogNormalDistribution.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_); executionTime_ = subBuilder.buildPartial(); } executionTimeCase_ = 11; break; } case 98: { tensorflow.OpPerformanceData.SessionInfo.Builder subBuilder = null; if (sessionInfo_ != null) { subBuilder = sessionInfo_.toBuilder(); } sessionInfo_ = input.readMessage(tensorflow.OpPerformanceData.SessionInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionInfo_); sessionInfo_ = subBuilder.buildPartial(); } 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 tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformance.class, tensorflow.OpPerformanceData.OpPerformance.Builder.class); } public interface OpMemoryOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance.OpMemory) com.google.protobuf.MessageOrBuilder { /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ java.util.List getOutputMemoryList(); /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ int getOutputMemoryCount(); /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ long getOutputMemory(int index); /** *
       * Temp and persistent memory allocated by this node.
       * 
* * int64 temp_memory = 2; */ long getTempMemory(); /** * int64 persistent_memory = 4; */ long getPersistentMemory(); /** * int64 device_temp_memory = 3 [deprecated = true]; */ @java.lang.Deprecated long getDeviceTempMemory(); /** * int64 device_persistent_memory = 5 [deprecated = true]; */ @java.lang.Deprecated long getDevicePersistentMemory(); } /** *
     * Memory usage data for a tensorflow operation.
     * 
* * Protobuf type {@code tensorflow.OpPerformance.OpMemory} */ public static final class OpMemory extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance.OpMemory) OpMemoryOrBuilder { private static final long serialVersionUID = 0L; // Use OpMemory.newBuilder() to construct. private OpMemory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpMemory() { outputMemory_ = java.util.Collections.emptyList(); tempMemory_ = 0L; persistentMemory_ = 0L; deviceTempMemory_ = 0L; devicePersistentMemory_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpMemory( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { outputMemory_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } outputMemory_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { outputMemory_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { outputMemory_.add(input.readInt64()); } input.popLimit(limit); break; } case 16: { tempMemory_ = input.readInt64(); break; } case 24: { deviceTempMemory_ = input.readInt64(); break; } case 32: { persistentMemory_ = input.readInt64(); break; } case 40: { devicePersistentMemory_ = input.readInt64(); break; } default: { if (!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)) { outputMemory_ = java.util.Collections.unmodifiableList(outputMemory_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformance.OpMemory.class, tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder.class); } private int bitField0_; public static final int OUTPUT_MEMORY_FIELD_NUMBER = 1; private java.util.List outputMemory_; /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ public java.util.List getOutputMemoryList() { return outputMemory_; } /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ public int getOutputMemoryCount() { return outputMemory_.size(); } /** *
       * The output information may have memory usage and output shapes.
       * 
* * repeated int64 output_memory = 1; */ public long getOutputMemory(int index) { return outputMemory_.get(index); } private int outputMemoryMemoizedSerializedSize = -1; public static final int TEMP_MEMORY_FIELD_NUMBER = 2; private long tempMemory_; /** *
       * Temp and persistent memory allocated by this node.
       * 
* * int64 temp_memory = 2; */ public long getTempMemory() { return tempMemory_; } public static final int PERSISTENT_MEMORY_FIELD_NUMBER = 4; private long persistentMemory_; /** * int64 persistent_memory = 4; */ public long getPersistentMemory() { return persistentMemory_; } public static final int DEVICE_TEMP_MEMORY_FIELD_NUMBER = 3; private long deviceTempMemory_; /** * int64 device_temp_memory = 3 [deprecated = true]; */ @java.lang.Deprecated public long getDeviceTempMemory() { return deviceTempMemory_; } public static final int DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER = 5; private long devicePersistentMemory_; /** * int64 device_persistent_memory = 5 [deprecated = true]; */ @java.lang.Deprecated public long getDevicePersistentMemory() { return devicePersistentMemory_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getOutputMemoryList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(outputMemoryMemoizedSerializedSize); } for (int i = 0; i < outputMemory_.size(); i++) { output.writeInt64NoTag(outputMemory_.get(i)); } if (tempMemory_ != 0L) { output.writeInt64(2, tempMemory_); } if (deviceTempMemory_ != 0L) { output.writeInt64(3, deviceTempMemory_); } if (persistentMemory_ != 0L) { output.writeInt64(4, persistentMemory_); } if (devicePersistentMemory_ != 0L) { output.writeInt64(5, devicePersistentMemory_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < outputMemory_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(outputMemory_.get(i)); } size += dataSize; if (!getOutputMemoryList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } outputMemoryMemoizedSerializedSize = dataSize; } if (tempMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, tempMemory_); } if (deviceTempMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, deviceTempMemory_); } if (persistentMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, persistentMemory_); } if (devicePersistentMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, devicePersistentMemory_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.OpPerformanceData.OpPerformance.OpMemory)) { return super.equals(obj); } tensorflow.OpPerformanceData.OpPerformance.OpMemory other = (tensorflow.OpPerformanceData.OpPerformance.OpMemory) obj; boolean result = true; result = result && getOutputMemoryList() .equals(other.getOutputMemoryList()); result = result && (getTempMemory() == other.getTempMemory()); result = result && (getPersistentMemory() == other.getPersistentMemory()); result = result && (getDeviceTempMemory() == other.getDeviceTempMemory()); result = result && (getDevicePersistentMemory() == other.getDevicePersistentMemory()); 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 (getOutputMemoryCount() > 0) { hash = (37 * hash) + OUTPUT_MEMORY_FIELD_NUMBER; hash = (53 * hash) + getOutputMemoryList().hashCode(); } hash = (37 * hash) + TEMP_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTempMemory()); hash = (37 * hash) + PERSISTENT_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPersistentMemory()); hash = (37 * hash) + DEVICE_TEMP_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeviceTempMemory()); hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDevicePersistentMemory()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.OpPerformanceData.OpPerformance.OpMemory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Memory usage data for a tensorflow operation.
       * 
* * Protobuf type {@code tensorflow.OpPerformance.OpMemory} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance.OpMemory) tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformance.OpMemory.class, tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder.class); } // Construct using tensorflow.OpPerformanceData.OpPerformance.OpMemory.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); outputMemory_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); tempMemory_ = 0L; persistentMemory_ = 0L; deviceTempMemory_ = 0L; devicePersistentMemory_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance.OpMemory getDefaultInstanceForType() { return tensorflow.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance.OpMemory build() { tensorflow.OpPerformanceData.OpPerformance.OpMemory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance.OpMemory buildPartial() { tensorflow.OpPerformanceData.OpPerformance.OpMemory result = new tensorflow.OpPerformanceData.OpPerformance.OpMemory(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { outputMemory_ = java.util.Collections.unmodifiableList(outputMemory_); bitField0_ = (bitField0_ & ~0x00000001); } result.outputMemory_ = outputMemory_; result.tempMemory_ = tempMemory_; result.persistentMemory_ = persistentMemory_; result.deviceTempMemory_ = deviceTempMemory_; result.devicePersistentMemory_ = devicePersistentMemory_; 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 tensorflow.OpPerformanceData.OpPerformance.OpMemory) { return mergeFrom((tensorflow.OpPerformanceData.OpPerformance.OpMemory)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.OpPerformance.OpMemory other) { if (other == tensorflow.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance()) return this; if (!other.outputMemory_.isEmpty()) { if (outputMemory_.isEmpty()) { outputMemory_ = other.outputMemory_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOutputMemoryIsMutable(); outputMemory_.addAll(other.outputMemory_); } onChanged(); } if (other.getTempMemory() != 0L) { setTempMemory(other.getTempMemory()); } if (other.getPersistentMemory() != 0L) { setPersistentMemory(other.getPersistentMemory()); } if (other.getDeviceTempMemory() != 0L) { setDeviceTempMemory(other.getDeviceTempMemory()); } if (other.getDevicePersistentMemory() != 0L) { setDevicePersistentMemory(other.getDevicePersistentMemory()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.OpPerformanceData.OpPerformance.OpMemory parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.OpPerformance.OpMemory) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List outputMemory_ = java.util.Collections.emptyList(); private void ensureOutputMemoryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { outputMemory_ = new java.util.ArrayList(outputMemory_); bitField0_ |= 0x00000001; } } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public java.util.List getOutputMemoryList() { return java.util.Collections.unmodifiableList(outputMemory_); } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public int getOutputMemoryCount() { return outputMemory_.size(); } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public long getOutputMemory(int index) { return outputMemory_.get(index); } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public Builder setOutputMemory( int index, long value) { ensureOutputMemoryIsMutable(); outputMemory_.set(index, value); onChanged(); return this; } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public Builder addOutputMemory(long value) { ensureOutputMemoryIsMutable(); outputMemory_.add(value); onChanged(); return this; } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public Builder addAllOutputMemory( java.lang.Iterable values) { ensureOutputMemoryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputMemory_); onChanged(); return this; } /** *
         * The output information may have memory usage and output shapes.
         * 
* * repeated int64 output_memory = 1; */ public Builder clearOutputMemory() { outputMemory_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private long tempMemory_ ; /** *
         * Temp and persistent memory allocated by this node.
         * 
* * int64 temp_memory = 2; */ public long getTempMemory() { return tempMemory_; } /** *
         * Temp and persistent memory allocated by this node.
         * 
* * int64 temp_memory = 2; */ public Builder setTempMemory(long value) { tempMemory_ = value; onChanged(); return this; } /** *
         * Temp and persistent memory allocated by this node.
         * 
* * int64 temp_memory = 2; */ public Builder clearTempMemory() { tempMemory_ = 0L; onChanged(); return this; } private long persistentMemory_ ; /** * int64 persistent_memory = 4; */ public long getPersistentMemory() { return persistentMemory_; } /** * int64 persistent_memory = 4; */ public Builder setPersistentMemory(long value) { persistentMemory_ = value; onChanged(); return this; } /** * int64 persistent_memory = 4; */ public Builder clearPersistentMemory() { persistentMemory_ = 0L; onChanged(); return this; } private long deviceTempMemory_ ; /** * int64 device_temp_memory = 3 [deprecated = true]; */ @java.lang.Deprecated public long getDeviceTempMemory() { return deviceTempMemory_; } /** * int64 device_temp_memory = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeviceTempMemory(long value) { deviceTempMemory_ = value; onChanged(); return this; } /** * int64 device_temp_memory = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDeviceTempMemory() { deviceTempMemory_ = 0L; onChanged(); return this; } private long devicePersistentMemory_ ; /** * int64 device_persistent_memory = 5 [deprecated = true]; */ @java.lang.Deprecated public long getDevicePersistentMemory() { return devicePersistentMemory_; } /** * int64 device_persistent_memory = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setDevicePersistentMemory(long value) { devicePersistentMemory_ = value; onChanged(); return this; } /** * int64 device_persistent_memory = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDevicePersistentMemory() { devicePersistentMemory_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.OpPerformance.OpMemory) } // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance.OpMemory) private static final tensorflow.OpPerformanceData.OpPerformance.OpMemory DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.OpPerformance.OpMemory(); } public static tensorflow.OpPerformanceData.OpPerformance.OpMemory getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpMemory parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpMemory(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance.OpMemory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int executionTimeCase_ = 0; private java.lang.Object executionTime_; public enum ExecutionTimeCase implements com.google.protobuf.Internal.EnumLite { EXECUTION_TIME_NORMAL(10), EXECUTION_TIME_LOG_NORMAL(11), EXECUTIONTIME_NOT_SET(0); private final int value; private ExecutionTimeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExecutionTimeCase valueOf(int value) { return forNumber(value); } public static ExecutionTimeCase forNumber(int value) { switch (value) { case 10: return EXECUTION_TIME_NORMAL; case 11: return EXECUTION_TIME_LOG_NORMAL; case 0: return EXECUTIONTIME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ExecutionTimeCase getExecutionTimeCase() { return ExecutionTimeCase.forNumber( executionTimeCase_); } public static final int OP_FIELD_NUMBER = 1; private tensorflow.OpPerformanceData.OpInfo op_; /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ public boolean hasOp() { return op_ != null; } /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ public tensorflow.OpPerformanceData.OpInfo getOp() { return op_ == null ? tensorflow.OpPerformanceData.OpInfo.getDefaultInstance() : op_; } /** *
     * The op
     * 
* * .tensorflow.OpInfo op = 1; */ public tensorflow.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder() { return getOp(); } public static final int SESSION_INFO_FIELD_NUMBER = 12; private tensorflow.OpPerformanceData.SessionInfo sessionInfo_; /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSessionInfo() { return sessionInfo_ != null; } /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public tensorflow.OpPerformanceData.SessionInfo getSessionInfo() { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } /** *
     * Information about the session configs.
     * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { return getSessionInfo(); } public static final int NODE_FIELD_NUMBER = 5; private volatile java.lang.Object node_; /** *
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * 
* * string node = 5; */ public java.lang.String getNode() { java.lang.Object ref = node_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); node_ = s; return s; } } /** *
     * The node name (optional). Makes it easier to associate the performance data
     * with a specific graph node.
     * 
* * string node = 5; */ public com.google.protobuf.ByteString getNodeBytes() { java.lang.Object ref = node_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); node_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 2; private long temporaryMemorySize_; /** *
     * Temporary memory used by this node (in bytes).
     * 
* * int64 temporary_memory_size = 2; */ public long getTemporaryMemorySize() { return temporaryMemorySize_; } public static final int COMPUTE_COST_FIELD_NUMBER = 3; private long computeCost_; /** *
     * Time it takes to run the op (in nanoseconds).
     * 
* * int64 compute_cost = 3; */ public long getComputeCost() { return computeCost_; } public static final int COMPUTE_TIME_FIELD_NUMBER = 6; private long computeTime_; /** *
     * Analytical compute cost (in nanoseconds).
     * 
* * int64 compute_time = 6; */ public long getComputeTime() { return computeTime_; } public static final int MEMORY_TIME_FIELD_NUMBER = 7; private long memoryTime_; /** *
     * Analytical memory access cost (in nanoseconds).
     * 
* * int64 memory_time = 7; */ public long getMemoryTime() { return memoryTime_; } public static final int COMPUTE_EFFICIENCY_FIELD_NUMBER = 4; private double computeEfficiency_; /** *
     * Percentage of theoretical compute performance.
     * 
* * double compute_efficiency = 4; */ public double getComputeEfficiency() { return computeEfficiency_; } public static final int MEMORY_EFFICIENCY_FIELD_NUMBER = 8; private double memoryEfficiency_; /** *
     * Percentage of theoretical memory performance.
     * 
* * double memory_efficiency = 8; */ public double getMemoryEfficiency() { return memoryEfficiency_; } public static final int EXECUTION_TIME_NORMAL_FIELD_NUMBER = 10; /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public boolean hasExecutionTimeNormal() { return executionTimeCase_ == 10; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public tensorflow.OpPerformanceData.NormalDistribution getExecutionTimeNormal() { if (executionTimeCase_ == 10) { return (tensorflow.OpPerformanceData.NormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public tensorflow.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { if (executionTimeCase_ == 10) { return (tensorflow.OpPerformanceData.NormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } public static final int EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER = 11; /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public boolean hasExecutionTimeLogNormal() { return executionTimeCase_ == 11; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public tensorflow.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal() { if (executionTimeCase_ == 11) { return (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { if (executionTimeCase_ == 11) { return (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } public static final int OP_MEMORY_FIELD_NUMBER = 9; private tensorflow.OpPerformanceData.OpPerformance.OpMemory opMemory_; /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public boolean hasOpMemory() { return opMemory_ != null; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public tensorflow.OpPerformanceData.OpPerformance.OpMemory getOpMemory() { return opMemory_ == null ? tensorflow.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { return getOpMemory(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (op_ != null) { output.writeMessage(1, getOp()); } if (temporaryMemorySize_ != 0L) { output.writeInt64(2, temporaryMemorySize_); } if (computeCost_ != 0L) { output.writeInt64(3, computeCost_); } if (computeEfficiency_ != 0D) { output.writeDouble(4, computeEfficiency_); } if (!getNodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, node_); } if (computeTime_ != 0L) { output.writeInt64(6, computeTime_); } if (memoryTime_ != 0L) { output.writeInt64(7, memoryTime_); } if (memoryEfficiency_ != 0D) { output.writeDouble(8, memoryEfficiency_); } if (opMemory_ != null) { output.writeMessage(9, getOpMemory()); } if (executionTimeCase_ == 10) { output.writeMessage(10, (tensorflow.OpPerformanceData.NormalDistribution) executionTime_); } if (executionTimeCase_ == 11) { output.writeMessage(11, (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_); } if (sessionInfo_ != null) { output.writeMessage(12, getSessionInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (op_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOp()); } if (temporaryMemorySize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, temporaryMemorySize_); } if (computeCost_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, computeCost_); } if (computeEfficiency_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, computeEfficiency_); } if (!getNodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, node_); } if (computeTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, computeTime_); } if (memoryTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, memoryTime_); } if (memoryEfficiency_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, memoryEfficiency_); } if (opMemory_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getOpMemory()); } if (executionTimeCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (tensorflow.OpPerformanceData.NormalDistribution) executionTime_); } if (executionTimeCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_); } if (sessionInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSessionInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.OpPerformanceData.OpPerformance)) { return super.equals(obj); } tensorflow.OpPerformanceData.OpPerformance other = (tensorflow.OpPerformanceData.OpPerformance) obj; boolean result = true; result = result && (hasOp() == other.hasOp()); if (hasOp()) { result = result && getOp() .equals(other.getOp()); } result = result && (hasSessionInfo() == other.hasSessionInfo()); if (hasSessionInfo()) { result = result && getSessionInfo() .equals(other.getSessionInfo()); } result = result && getNode() .equals(other.getNode()); result = result && (getTemporaryMemorySize() == other.getTemporaryMemorySize()); result = result && (getComputeCost() == other.getComputeCost()); result = result && (getComputeTime() == other.getComputeTime()); result = result && (getMemoryTime() == other.getMemoryTime()); result = result && ( java.lang.Double.doubleToLongBits(getComputeEfficiency()) == java.lang.Double.doubleToLongBits( other.getComputeEfficiency())); result = result && ( java.lang.Double.doubleToLongBits(getMemoryEfficiency()) == java.lang.Double.doubleToLongBits( other.getMemoryEfficiency())); result = result && (hasOpMemory() == other.hasOpMemory()); if (hasOpMemory()) { result = result && getOpMemory() .equals(other.getOpMemory()); } result = result && getExecutionTimeCase().equals( other.getExecutionTimeCase()); if (!result) return false; switch (executionTimeCase_) { case 10: result = result && getExecutionTimeNormal() .equals(other.getExecutionTimeNormal()); break; case 11: result = result && getExecutionTimeLogNormal() .equals(other.getExecutionTimeLogNormal()); break; case 0: default: } 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 (hasOp()) { hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + getOp().hashCode(); } if (hasSessionInfo()) { hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSessionInfo().hashCode(); } hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode().hashCode(); hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTemporaryMemorySize()); hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getComputeCost()); hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getComputeTime()); hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemoryTime()); hash = (37 * hash) + COMPUTE_EFFICIENCY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getComputeEfficiency())); hash = (37 * hash) + MEMORY_EFFICIENCY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMemoryEfficiency())); if (hasOpMemory()) { hash = (37 * hash) + OP_MEMORY_FIELD_NUMBER; hash = (53 * hash) + getOpMemory().hashCode(); } switch (executionTimeCase_) { case 10: hash = (37 * hash) + EXECUTION_TIME_NORMAL_FIELD_NUMBER; hash = (53 * hash) + getExecutionTimeNormal().hashCode(); break; case 11: hash = (37 * hash) + EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER; hash = (53 * hash) + getExecutionTimeLogNormal().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.OpPerformanceData.OpPerformance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Performance data for tensorflow operations
     * 
* * Protobuf type {@code tensorflow.OpPerformance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance) tensorflow.OpPerformanceData.OpPerformanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformance.class, tensorflow.OpPerformanceData.OpPerformance.Builder.class); } // Construct using tensorflow.OpPerformanceData.OpPerformance.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (opBuilder_ == null) { op_ = null; } else { op_ = null; opBuilder_ = null; } if (sessionInfoBuilder_ == null) { sessionInfo_ = null; } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } node_ = ""; temporaryMemorySize_ = 0L; computeCost_ = 0L; computeTime_ = 0L; memoryTime_ = 0L; computeEfficiency_ = 0D; memoryEfficiency_ = 0D; if (opMemoryBuilder_ == null) { opMemory_ = null; } else { opMemory_ = null; opMemoryBuilder_ = null; } executionTimeCase_ = 0; executionTime_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance getDefaultInstanceForType() { return tensorflow.OpPerformanceData.OpPerformance.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance build() { tensorflow.OpPerformanceData.OpPerformance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance buildPartial() { tensorflow.OpPerformanceData.OpPerformance result = new tensorflow.OpPerformanceData.OpPerformance(this); if (opBuilder_ == null) { result.op_ = op_; } else { result.op_ = opBuilder_.build(); } if (sessionInfoBuilder_ == null) { result.sessionInfo_ = sessionInfo_; } else { result.sessionInfo_ = sessionInfoBuilder_.build(); } result.node_ = node_; result.temporaryMemorySize_ = temporaryMemorySize_; result.computeCost_ = computeCost_; result.computeTime_ = computeTime_; result.memoryTime_ = memoryTime_; result.computeEfficiency_ = computeEfficiency_; result.memoryEfficiency_ = memoryEfficiency_; if (executionTimeCase_ == 10) { if (executionTimeNormalBuilder_ == null) { result.executionTime_ = executionTime_; } else { result.executionTime_ = executionTimeNormalBuilder_.build(); } } if (executionTimeCase_ == 11) { if (executionTimeLogNormalBuilder_ == null) { result.executionTime_ = executionTime_; } else { result.executionTime_ = executionTimeLogNormalBuilder_.build(); } } if (opMemoryBuilder_ == null) { result.opMemory_ = opMemory_; } else { result.opMemory_ = opMemoryBuilder_.build(); } result.executionTimeCase_ = executionTimeCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (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 tensorflow.OpPerformanceData.OpPerformance) { return mergeFrom((tensorflow.OpPerformanceData.OpPerformance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.OpPerformance other) { if (other == tensorflow.OpPerformanceData.OpPerformance.getDefaultInstance()) return this; if (other.hasOp()) { mergeOp(other.getOp()); } if (other.hasSessionInfo()) { mergeSessionInfo(other.getSessionInfo()); } if (!other.getNode().isEmpty()) { node_ = other.node_; onChanged(); } if (other.getTemporaryMemorySize() != 0L) { setTemporaryMemorySize(other.getTemporaryMemorySize()); } if (other.getComputeCost() != 0L) { setComputeCost(other.getComputeCost()); } if (other.getComputeTime() != 0L) { setComputeTime(other.getComputeTime()); } if (other.getMemoryTime() != 0L) { setMemoryTime(other.getMemoryTime()); } if (other.getComputeEfficiency() != 0D) { setComputeEfficiency(other.getComputeEfficiency()); } if (other.getMemoryEfficiency() != 0D) { setMemoryEfficiency(other.getMemoryEfficiency()); } if (other.hasOpMemory()) { mergeOpMemory(other.getOpMemory()); } switch (other.getExecutionTimeCase()) { case EXECUTION_TIME_NORMAL: { mergeExecutionTimeNormal(other.getExecutionTimeNormal()); break; } case EXECUTION_TIME_LOG_NORMAL: { mergeExecutionTimeLogNormal(other.getExecutionTimeLogNormal()); break; } case EXECUTIONTIME_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.OpPerformanceData.OpPerformance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.OpPerformance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int executionTimeCase_ = 0; private java.lang.Object executionTime_; public ExecutionTimeCase getExecutionTimeCase() { return ExecutionTimeCase.forNumber( executionTimeCase_); } public Builder clearExecutionTime() { executionTimeCase_ = 0; executionTime_ = null; onChanged(); return this; } private tensorflow.OpPerformanceData.OpInfo op_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo, tensorflow.OpPerformanceData.OpInfo.Builder, tensorflow.OpPerformanceData.OpInfoOrBuilder> opBuilder_; /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public boolean hasOp() { return opBuilder_ != null || op_ != null; } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public tensorflow.OpPerformanceData.OpInfo getOp() { if (opBuilder_ == null) { return op_ == null ? tensorflow.OpPerformanceData.OpInfo.getDefaultInstance() : op_; } else { return opBuilder_.getMessage(); } } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public Builder setOp(tensorflow.OpPerformanceData.OpInfo value) { if (opBuilder_ == null) { if (value == null) { throw new NullPointerException(); } op_ = value; onChanged(); } else { opBuilder_.setMessage(value); } return this; } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public Builder setOp( tensorflow.OpPerformanceData.OpInfo.Builder builderForValue) { if (opBuilder_ == null) { op_ = builderForValue.build(); onChanged(); } else { opBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public Builder mergeOp(tensorflow.OpPerformanceData.OpInfo value) { if (opBuilder_ == null) { if (op_ != null) { op_ = tensorflow.OpPerformanceData.OpInfo.newBuilder(op_).mergeFrom(value).buildPartial(); } else { op_ = value; } onChanged(); } else { opBuilder_.mergeFrom(value); } return this; } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public Builder clearOp() { if (opBuilder_ == null) { op_ = null; onChanged(); } else { op_ = null; opBuilder_ = null; } return this; } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public tensorflow.OpPerformanceData.OpInfo.Builder getOpBuilder() { onChanged(); return getOpFieldBuilder().getBuilder(); } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ public tensorflow.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder() { if (opBuilder_ != null) { return opBuilder_.getMessageOrBuilder(); } else { return op_ == null ? tensorflow.OpPerformanceData.OpInfo.getDefaultInstance() : op_; } } /** *
       * The op
       * 
* * .tensorflow.OpInfo op = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo, tensorflow.OpPerformanceData.OpInfo.Builder, tensorflow.OpPerformanceData.OpInfoOrBuilder> getOpFieldBuilder() { if (opBuilder_ == null) { opBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpInfo, tensorflow.OpPerformanceData.OpInfo.Builder, tensorflow.OpPerformanceData.OpInfoOrBuilder>( getOp(), getParentForChildren(), isClean()); op_ = null; } return opBuilder_; } private tensorflow.OpPerformanceData.SessionInfo sessionInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder> sessionInfoBuilder_; /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSessionInfo() { return sessionInfoBuilder_ != null || sessionInfo_ != null; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public tensorflow.OpPerformanceData.SessionInfo getSessionInfo() { if (sessionInfoBuilder_ == null) { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } else { return sessionInfoBuilder_.getMessage(); } } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder setSessionInfo(tensorflow.OpPerformanceData.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionInfo_ = value; onChanged(); } else { sessionInfoBuilder_.setMessage(value); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder setSessionInfo( tensorflow.OpPerformanceData.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeSessionInfo(tensorflow.OpPerformanceData.SessionInfo value) { if (sessionInfoBuilder_ == null) { if (sessionInfo_ != null) { sessionInfo_ = tensorflow.OpPerformanceData.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); } else { sessionInfo_ = value; } onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSessionInfo() { if (sessionInfoBuilder_ == null) { sessionInfo_ = null; onChanged(); } else { sessionInfo_ = null; sessionInfoBuilder_ = null; } return this; } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public tensorflow.OpPerformanceData.SessionInfo.Builder getSessionInfoBuilder() { onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ @java.lang.Deprecated public tensorflow.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { if (sessionInfoBuilder_ != null) { return sessionInfoBuilder_.getMessageOrBuilder(); } else { return sessionInfo_ == null ? tensorflow.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; } } /** *
       * Information about the session configs.
       * 
* * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder> getSessionInfoFieldBuilder() { if (sessionInfoBuilder_ == null) { sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.SessionInfo, tensorflow.OpPerformanceData.SessionInfo.Builder, tensorflow.OpPerformanceData.SessionInfoOrBuilder>( getSessionInfo(), getParentForChildren(), isClean()); sessionInfo_ = null; } return sessionInfoBuilder_; } private java.lang.Object node_ = ""; /** *
       * The node name (optional). Makes it easier to associate the performance data
       * with a specific graph node.
       * 
* * string node = 5; */ public java.lang.String getNode() { java.lang.Object ref = node_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); node_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The node name (optional). Makes it easier to associate the performance data
       * with a specific graph node.
       * 
* * string node = 5; */ public com.google.protobuf.ByteString getNodeBytes() { java.lang.Object ref = node_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); node_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The node name (optional). Makes it easier to associate the performance data
       * with a specific graph node.
       * 
* * string node = 5; */ public Builder setNode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); return this; } /** *
       * The node name (optional). Makes it easier to associate the performance data
       * with a specific graph node.
       * 
* * string node = 5; */ public Builder clearNode() { node_ = getDefaultInstance().getNode(); onChanged(); return this; } /** *
       * The node name (optional). Makes it easier to associate the performance data
       * with a specific graph node.
       * 
* * string node = 5; */ public Builder setNodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); node_ = value; onChanged(); return this; } private long temporaryMemorySize_ ; /** *
       * Temporary memory used by this node (in bytes).
       * 
* * int64 temporary_memory_size = 2; */ public long getTemporaryMemorySize() { return temporaryMemorySize_; } /** *
       * Temporary memory used by this node (in bytes).
       * 
* * int64 temporary_memory_size = 2; */ public Builder setTemporaryMemorySize(long value) { temporaryMemorySize_ = value; onChanged(); return this; } /** *
       * Temporary memory used by this node (in bytes).
       * 
* * int64 temporary_memory_size = 2; */ public Builder clearTemporaryMemorySize() { temporaryMemorySize_ = 0L; onChanged(); return this; } private long computeCost_ ; /** *
       * Time it takes to run the op (in nanoseconds).
       * 
* * int64 compute_cost = 3; */ public long getComputeCost() { return computeCost_; } /** *
       * Time it takes to run the op (in nanoseconds).
       * 
* * int64 compute_cost = 3; */ public Builder setComputeCost(long value) { computeCost_ = value; onChanged(); return this; } /** *
       * Time it takes to run the op (in nanoseconds).
       * 
* * int64 compute_cost = 3; */ public Builder clearComputeCost() { computeCost_ = 0L; onChanged(); return this; } private long computeTime_ ; /** *
       * Analytical compute cost (in nanoseconds).
       * 
* * int64 compute_time = 6; */ public long getComputeTime() { return computeTime_; } /** *
       * Analytical compute cost (in nanoseconds).
       * 
* * int64 compute_time = 6; */ public Builder setComputeTime(long value) { computeTime_ = value; onChanged(); return this; } /** *
       * Analytical compute cost (in nanoseconds).
       * 
* * int64 compute_time = 6; */ public Builder clearComputeTime() { computeTime_ = 0L; onChanged(); return this; } private long memoryTime_ ; /** *
       * Analytical memory access cost (in nanoseconds).
       * 
* * int64 memory_time = 7; */ public long getMemoryTime() { return memoryTime_; } /** *
       * Analytical memory access cost (in nanoseconds).
       * 
* * int64 memory_time = 7; */ public Builder setMemoryTime(long value) { memoryTime_ = value; onChanged(); return this; } /** *
       * Analytical memory access cost (in nanoseconds).
       * 
* * int64 memory_time = 7; */ public Builder clearMemoryTime() { memoryTime_ = 0L; onChanged(); return this; } private double computeEfficiency_ ; /** *
       * Percentage of theoretical compute performance.
       * 
* * double compute_efficiency = 4; */ public double getComputeEfficiency() { return computeEfficiency_; } /** *
       * Percentage of theoretical compute performance.
       * 
* * double compute_efficiency = 4; */ public Builder setComputeEfficiency(double value) { computeEfficiency_ = value; onChanged(); return this; } /** *
       * Percentage of theoretical compute performance.
       * 
* * double compute_efficiency = 4; */ public Builder clearComputeEfficiency() { computeEfficiency_ = 0D; onChanged(); return this; } private double memoryEfficiency_ ; /** *
       * Percentage of theoretical memory performance.
       * 
* * double memory_efficiency = 8; */ public double getMemoryEfficiency() { return memoryEfficiency_; } /** *
       * Percentage of theoretical memory performance.
       * 
* * double memory_efficiency = 8; */ public Builder setMemoryEfficiency(double value) { memoryEfficiency_ = value; onChanged(); return this; } /** *
       * Percentage of theoretical memory performance.
       * 
* * double memory_efficiency = 8; */ public Builder clearMemoryEfficiency() { memoryEfficiency_ = 0D; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.NormalDistribution, tensorflow.OpPerformanceData.NormalDistribution.Builder, tensorflow.OpPerformanceData.NormalDistributionOrBuilder> executionTimeNormalBuilder_; /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public boolean hasExecutionTimeNormal() { return executionTimeCase_ == 10; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public tensorflow.OpPerformanceData.NormalDistribution getExecutionTimeNormal() { if (executionTimeNormalBuilder_ == null) { if (executionTimeCase_ == 10) { return (tensorflow.OpPerformanceData.NormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } else { if (executionTimeCase_ == 10) { return executionTimeNormalBuilder_.getMessage(); } return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public Builder setExecutionTimeNormal(tensorflow.OpPerformanceData.NormalDistribution value) { if (executionTimeNormalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionTime_ = value; onChanged(); } else { executionTimeNormalBuilder_.setMessage(value); } executionTimeCase_ = 10; return this; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public Builder setExecutionTimeNormal( tensorflow.OpPerformanceData.NormalDistribution.Builder builderForValue) { if (executionTimeNormalBuilder_ == null) { executionTime_ = builderForValue.build(); onChanged(); } else { executionTimeNormalBuilder_.setMessage(builderForValue.build()); } executionTimeCase_ = 10; return this; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public Builder mergeExecutionTimeNormal(tensorflow.OpPerformanceData.NormalDistribution value) { if (executionTimeNormalBuilder_ == null) { if (executionTimeCase_ == 10 && executionTime_ != tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance()) { executionTime_ = tensorflow.OpPerformanceData.NormalDistribution.newBuilder((tensorflow.OpPerformanceData.NormalDistribution) executionTime_) .mergeFrom(value).buildPartial(); } else { executionTime_ = value; } onChanged(); } else { if (executionTimeCase_ == 10) { executionTimeNormalBuilder_.mergeFrom(value); } executionTimeNormalBuilder_.setMessage(value); } executionTimeCase_ = 10; return this; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public Builder clearExecutionTimeNormal() { if (executionTimeNormalBuilder_ == null) { if (executionTimeCase_ == 10) { executionTimeCase_ = 0; executionTime_ = null; onChanged(); } } else { if (executionTimeCase_ == 10) { executionTimeCase_ = 0; executionTime_ = null; } executionTimeNormalBuilder_.clear(); } return this; } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public tensorflow.OpPerformanceData.NormalDistribution.Builder getExecutionTimeNormalBuilder() { return getExecutionTimeNormalFieldBuilder().getBuilder(); } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ public tensorflow.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { if ((executionTimeCase_ == 10) && (executionTimeNormalBuilder_ != null)) { return executionTimeNormalBuilder_.getMessageOrBuilder(); } else { if (executionTimeCase_ == 10) { return (tensorflow.OpPerformanceData.NormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } } /** * .tensorflow.NormalDistribution execution_time_normal = 10; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.NormalDistribution, tensorflow.OpPerformanceData.NormalDistribution.Builder, tensorflow.OpPerformanceData.NormalDistributionOrBuilder> getExecutionTimeNormalFieldBuilder() { if (executionTimeNormalBuilder_ == null) { if (!(executionTimeCase_ == 10)) { executionTime_ = tensorflow.OpPerformanceData.NormalDistribution.getDefaultInstance(); } executionTimeNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.NormalDistribution, tensorflow.OpPerformanceData.NormalDistribution.Builder, tensorflow.OpPerformanceData.NormalDistributionOrBuilder>( (tensorflow.OpPerformanceData.NormalDistribution) executionTime_, getParentForChildren(), isClean()); executionTime_ = null; } executionTimeCase_ = 10; onChanged();; return executionTimeNormalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.LogNormalDistribution, tensorflow.OpPerformanceData.LogNormalDistribution.Builder, tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder> executionTimeLogNormalBuilder_; /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public boolean hasExecutionTimeLogNormal() { return executionTimeCase_ == 11; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public tensorflow.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal() { if (executionTimeLogNormalBuilder_ == null) { if (executionTimeCase_ == 11) { return (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } else { if (executionTimeCase_ == 11) { return executionTimeLogNormalBuilder_.getMessage(); } return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public Builder setExecutionTimeLogNormal(tensorflow.OpPerformanceData.LogNormalDistribution value) { if (executionTimeLogNormalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionTime_ = value; onChanged(); } else { executionTimeLogNormalBuilder_.setMessage(value); } executionTimeCase_ = 11; return this; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public Builder setExecutionTimeLogNormal( tensorflow.OpPerformanceData.LogNormalDistribution.Builder builderForValue) { if (executionTimeLogNormalBuilder_ == null) { executionTime_ = builderForValue.build(); onChanged(); } else { executionTimeLogNormalBuilder_.setMessage(builderForValue.build()); } executionTimeCase_ = 11; return this; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public Builder mergeExecutionTimeLogNormal(tensorflow.OpPerformanceData.LogNormalDistribution value) { if (executionTimeLogNormalBuilder_ == null) { if (executionTimeCase_ == 11 && executionTime_ != tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance()) { executionTime_ = tensorflow.OpPerformanceData.LogNormalDistribution.newBuilder((tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_) .mergeFrom(value).buildPartial(); } else { executionTime_ = value; } onChanged(); } else { if (executionTimeCase_ == 11) { executionTimeLogNormalBuilder_.mergeFrom(value); } executionTimeLogNormalBuilder_.setMessage(value); } executionTimeCase_ = 11; return this; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public Builder clearExecutionTimeLogNormal() { if (executionTimeLogNormalBuilder_ == null) { if (executionTimeCase_ == 11) { executionTimeCase_ = 0; executionTime_ = null; onChanged(); } } else { if (executionTimeCase_ == 11) { executionTimeCase_ = 0; executionTime_ = null; } executionTimeLogNormalBuilder_.clear(); } return this; } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public tensorflow.OpPerformanceData.LogNormalDistribution.Builder getExecutionTimeLogNormalBuilder() { return getExecutionTimeLogNormalFieldBuilder().getBuilder(); } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ public tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { if ((executionTimeCase_ == 11) && (executionTimeLogNormalBuilder_ != null)) { return executionTimeLogNormalBuilder_.getMessageOrBuilder(); } else { if (executionTimeCase_ == 11) { return (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_; } return tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } } /** * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.LogNormalDistribution, tensorflow.OpPerformanceData.LogNormalDistribution.Builder, tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder> getExecutionTimeLogNormalFieldBuilder() { if (executionTimeLogNormalBuilder_ == null) { if (!(executionTimeCase_ == 11)) { executionTime_ = tensorflow.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); } executionTimeLogNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.LogNormalDistribution, tensorflow.OpPerformanceData.LogNormalDistribution.Builder, tensorflow.OpPerformanceData.LogNormalDistributionOrBuilder>( (tensorflow.OpPerformanceData.LogNormalDistribution) executionTime_, getParentForChildren(), isClean()); executionTime_ = null; } executionTimeCase_ = 11; onChanged();; return executionTimeLogNormalBuilder_; } private tensorflow.OpPerformanceData.OpPerformance.OpMemory opMemory_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance.OpMemory, tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder, tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder> opMemoryBuilder_; /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public boolean hasOpMemory() { return opMemoryBuilder_ != null || opMemory_ != null; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public tensorflow.OpPerformanceData.OpPerformance.OpMemory getOpMemory() { if (opMemoryBuilder_ == null) { return opMemory_ == null ? tensorflow.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; } else { return opMemoryBuilder_.getMessage(); } } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public Builder setOpMemory(tensorflow.OpPerformanceData.OpPerformance.OpMemory value) { if (opMemoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } opMemory_ = value; onChanged(); } else { opMemoryBuilder_.setMessage(value); } return this; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public Builder setOpMemory( tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder builderForValue) { if (opMemoryBuilder_ == null) { opMemory_ = builderForValue.build(); onChanged(); } else { opMemoryBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public Builder mergeOpMemory(tensorflow.OpPerformanceData.OpPerformance.OpMemory value) { if (opMemoryBuilder_ == null) { if (opMemory_ != null) { opMemory_ = tensorflow.OpPerformanceData.OpPerformance.OpMemory.newBuilder(opMemory_).mergeFrom(value).buildPartial(); } else { opMemory_ = value; } onChanged(); } else { opMemoryBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public Builder clearOpMemory() { if (opMemoryBuilder_ == null) { opMemory_ = null; onChanged(); } else { opMemory_ = null; opMemoryBuilder_ = null; } return this; } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder getOpMemoryBuilder() { onChanged(); return getOpMemoryFieldBuilder().getBuilder(); } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ public tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { if (opMemoryBuilder_ != null) { return opMemoryBuilder_.getMessageOrBuilder(); } else { return opMemory_ == null ? tensorflow.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; } } /** * .tensorflow.OpPerformance.OpMemory op_memory = 9; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance.OpMemory, tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder, tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder> getOpMemoryFieldBuilder() { if (opMemoryBuilder_ == null) { opMemoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance.OpMemory, tensorflow.OpPerformanceData.OpPerformance.OpMemory.Builder, tensorflow.OpPerformanceData.OpPerformance.OpMemoryOrBuilder>( getOpMemory(), getParentForChildren(), isClean()); opMemory_ = null; } return opMemoryBuilder_; } @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:tensorflow.OpPerformance) } // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance) private static final tensorflow.OpPerformanceData.OpPerformance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.OpPerformance(); } public static tensorflow.OpPerformanceData.OpPerformance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpPerformance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpPerformance(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpPerformanceListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformanceList) com.google.protobuf.MessageOrBuilder { /** * repeated .tensorflow.OpPerformance op_performance = 1; */ java.util.List getOpPerformanceList(); /** * repeated .tensorflow.OpPerformance op_performance = 1; */ tensorflow.OpPerformanceData.OpPerformance getOpPerformance(int index); /** * repeated .tensorflow.OpPerformance op_performance = 1; */ int getOpPerformanceCount(); /** * repeated .tensorflow.OpPerformance op_performance = 1; */ java.util.List getOpPerformanceOrBuilderList(); /** * repeated .tensorflow.OpPerformance op_performance = 1; */ tensorflow.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( int index); } /** *
   * A collection of OpPerformance data points.
   * 
* * Protobuf type {@code tensorflow.OpPerformanceList} */ public static final class OpPerformanceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.OpPerformanceList) OpPerformanceListOrBuilder { private static final long serialVersionUID = 0L; // Use OpPerformanceList.newBuilder() to construct. private OpPerformanceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpPerformanceList() { opPerformance_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpPerformanceList( 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)) { opPerformance_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } opPerformance_.add( input.readMessage(tensorflow.OpPerformanceData.OpPerformance.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_ & 0x00000001) == 0x00000001)) { opPerformance_ = java.util.Collections.unmodifiableList(opPerformance_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformanceList.class, tensorflow.OpPerformanceData.OpPerformanceList.Builder.class); } public static final int OP_PERFORMANCE_FIELD_NUMBER = 1; private java.util.List opPerformance_; /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public java.util.List getOpPerformanceList() { return opPerformance_; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public java.util.List getOpPerformanceOrBuilderList() { return opPerformance_; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public int getOpPerformanceCount() { return opPerformance_.size(); } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformance getOpPerformance(int index) { return opPerformance_.get(index); } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( int index) { return opPerformance_.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 { for (int i = 0; i < opPerformance_.size(); i++) { output.writeMessage(1, opPerformance_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < opPerformance_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, opPerformance_.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 tensorflow.OpPerformanceData.OpPerformanceList)) { return super.equals(obj); } tensorflow.OpPerformanceData.OpPerformanceList other = (tensorflow.OpPerformanceData.OpPerformanceList) obj; boolean result = true; result = result && getOpPerformanceList() .equals(other.getOpPerformanceList()); 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 (getOpPerformanceCount() > 0) { hash = (37 * hash) + OP_PERFORMANCE_FIELD_NUMBER; hash = (53 * hash) + getOpPerformanceList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.OpPerformanceData.OpPerformanceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformanceList 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 tensorflow.OpPerformanceData.OpPerformanceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformanceList 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 tensorflow.OpPerformanceData.OpPerformanceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.OpPerformanceData.OpPerformanceList 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(tensorflow.OpPerformanceData.OpPerformanceList 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; } /** *
     * A collection of OpPerformance data points.
     * 
* * Protobuf type {@code tensorflow.OpPerformanceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformanceList) tensorflow.OpPerformanceData.OpPerformanceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.OpPerformanceData.OpPerformanceList.class, tensorflow.OpPerformanceData.OpPerformanceList.Builder.class); } // Construct using tensorflow.OpPerformanceData.OpPerformanceList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOpPerformanceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (opPerformanceBuilder_ == null) { opPerformance_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { opPerformanceBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformanceList getDefaultInstanceForType() { return tensorflow.OpPerformanceData.OpPerformanceList.getDefaultInstance(); } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformanceList build() { tensorflow.OpPerformanceData.OpPerformanceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.OpPerformanceData.OpPerformanceList buildPartial() { tensorflow.OpPerformanceData.OpPerformanceList result = new tensorflow.OpPerformanceData.OpPerformanceList(this); int from_bitField0_ = bitField0_; if (opPerformanceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { opPerformance_ = java.util.Collections.unmodifiableList(opPerformance_); bitField0_ = (bitField0_ & ~0x00000001); } result.opPerformance_ = opPerformance_; } else { result.opPerformance_ = opPerformanceBuilder_.build(); } 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 tensorflow.OpPerformanceData.OpPerformanceList) { return mergeFrom((tensorflow.OpPerformanceData.OpPerformanceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.OpPerformanceData.OpPerformanceList other) { if (other == tensorflow.OpPerformanceData.OpPerformanceList.getDefaultInstance()) return this; if (opPerformanceBuilder_ == null) { if (!other.opPerformance_.isEmpty()) { if (opPerformance_.isEmpty()) { opPerformance_ = other.opPerformance_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOpPerformanceIsMutable(); opPerformance_.addAll(other.opPerformance_); } onChanged(); } } else { if (!other.opPerformance_.isEmpty()) { if (opPerformanceBuilder_.isEmpty()) { opPerformanceBuilder_.dispose(); opPerformanceBuilder_ = null; opPerformance_ = other.opPerformance_; bitField0_ = (bitField0_ & ~0x00000001); opPerformanceBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpPerformanceFieldBuilder() : null; } else { opPerformanceBuilder_.addAllMessages(other.opPerformance_); } } } 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 { tensorflow.OpPerformanceData.OpPerformanceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.OpPerformanceData.OpPerformanceList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List opPerformance_ = java.util.Collections.emptyList(); private void ensureOpPerformanceIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { opPerformance_ = new java.util.ArrayList(opPerformance_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance, tensorflow.OpPerformanceData.OpPerformance.Builder, tensorflow.OpPerformanceData.OpPerformanceOrBuilder> opPerformanceBuilder_; /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public java.util.List getOpPerformanceList() { if (opPerformanceBuilder_ == null) { return java.util.Collections.unmodifiableList(opPerformance_); } else { return opPerformanceBuilder_.getMessageList(); } } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public int getOpPerformanceCount() { if (opPerformanceBuilder_ == null) { return opPerformance_.size(); } else { return opPerformanceBuilder_.getCount(); } } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformance getOpPerformance(int index) { if (opPerformanceBuilder_ == null) { return opPerformance_.get(index); } else { return opPerformanceBuilder_.getMessage(index); } } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder setOpPerformance( int index, tensorflow.OpPerformanceData.OpPerformance value) { if (opPerformanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpPerformanceIsMutable(); opPerformance_.set(index, value); onChanged(); } else { opPerformanceBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder setOpPerformance( int index, tensorflow.OpPerformanceData.OpPerformance.Builder builderForValue) { if (opPerformanceBuilder_ == null) { ensureOpPerformanceIsMutable(); opPerformance_.set(index, builderForValue.build()); onChanged(); } else { opPerformanceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder addOpPerformance(tensorflow.OpPerformanceData.OpPerformance value) { if (opPerformanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpPerformanceIsMutable(); opPerformance_.add(value); onChanged(); } else { opPerformanceBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder addOpPerformance( int index, tensorflow.OpPerformanceData.OpPerformance value) { if (opPerformanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpPerformanceIsMutable(); opPerformance_.add(index, value); onChanged(); } else { opPerformanceBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder addOpPerformance( tensorflow.OpPerformanceData.OpPerformance.Builder builderForValue) { if (opPerformanceBuilder_ == null) { ensureOpPerformanceIsMutable(); opPerformance_.add(builderForValue.build()); onChanged(); } else { opPerformanceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder addOpPerformance( int index, tensorflow.OpPerformanceData.OpPerformance.Builder builderForValue) { if (opPerformanceBuilder_ == null) { ensureOpPerformanceIsMutable(); opPerformance_.add(index, builderForValue.build()); onChanged(); } else { opPerformanceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder addAllOpPerformance( java.lang.Iterable values) { if (opPerformanceBuilder_ == null) { ensureOpPerformanceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, opPerformance_); onChanged(); } else { opPerformanceBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder clearOpPerformance() { if (opPerformanceBuilder_ == null) { opPerformance_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { opPerformanceBuilder_.clear(); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public Builder removeOpPerformance(int index) { if (opPerformanceBuilder_ == null) { ensureOpPerformanceIsMutable(); opPerformance_.remove(index); onChanged(); } else { opPerformanceBuilder_.remove(index); } return this; } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformance.Builder getOpPerformanceBuilder( int index) { return getOpPerformanceFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( int index) { if (opPerformanceBuilder_ == null) { return opPerformance_.get(index); } else { return opPerformanceBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public java.util.List getOpPerformanceOrBuilderList() { if (opPerformanceBuilder_ != null) { return opPerformanceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(opPerformance_); } } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformance.Builder addOpPerformanceBuilder() { return getOpPerformanceFieldBuilder().addBuilder( tensorflow.OpPerformanceData.OpPerformance.getDefaultInstance()); } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public tensorflow.OpPerformanceData.OpPerformance.Builder addOpPerformanceBuilder( int index) { return getOpPerformanceFieldBuilder().addBuilder( index, tensorflow.OpPerformanceData.OpPerformance.getDefaultInstance()); } /** * repeated .tensorflow.OpPerformance op_performance = 1; */ public java.util.List getOpPerformanceBuilderList() { return getOpPerformanceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance, tensorflow.OpPerformanceData.OpPerformance.Builder, tensorflow.OpPerformanceData.OpPerformanceOrBuilder> getOpPerformanceFieldBuilder() { if (opPerformanceBuilder_ == null) { opPerformanceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.OpPerformanceData.OpPerformance, tensorflow.OpPerformanceData.OpPerformance.Builder, tensorflow.OpPerformanceData.OpPerformanceOrBuilder>( opPerformance_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); opPerformance_ = null; } return opPerformanceBuilder_; } @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:tensorflow.OpPerformanceList) } // @@protoc_insertion_point(class_scope:tensorflow.OpPerformanceList) private static final tensorflow.OpPerformanceData.OpPerformanceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.OpPerformanceData.OpPerformanceList(); } public static tensorflow.OpPerformanceData.OpPerformanceList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpPerformanceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpPerformanceList(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 tensorflow.OpPerformanceData.OpPerformanceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_SessionInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_SessionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpInfo_AttrEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpInfo_TensorProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_NormalDistribution_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_NormalDistribution_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_LogNormalDistribution_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpPerformance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpPerformance_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpPerformance_OpMemory_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_OpPerformanceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_OpPerformanceList_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n8tensorflow/core/grappler/costs/op_perf" + "ormance_data.proto\022\ntensorflow\032&tensorfl" + "ow/core/framework/tensor.proto\032,tensorfl" + "ow/core/framework/tensor_shape.proto\032%te" + "nsorflow/core/framework/types.proto\032*ten" + "sorflow/core/framework/attr_value.proto\032" + "0tensorflow/core/protobuf/device_propert" + "ies.proto\"+\n\013SessionInfo\022\034\n\024intra_op_par" + "allelism\030\001 \001(\003\"\333\003\n\006OpInfo\022\n\n\002op\030\001 \001(\t\022*\n" + "\004attr\030\002 \003(\0132\034.tensorflow.OpInfo.AttrEntr" + "y\0223\n\006inputs\030\003 \003(\0132#.tensorflow.OpInfo.Te" + "nsorProperties\0224\n\007outputs\030\005 \003(\0132#.tensor" + "flow.OpInfo.TensorProperties\022,\n\006device\030\004" + " \001(\0132\034.tensorflow.DeviceProperties\022-\n\014se" + "ssion_info\030\006 \001(\0132\027.tensorflow.SessionInf" + "o\032B\n\tAttrEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001" + "(\0132\025.tensorflow.AttrValue:\0028\001\032\214\001\n\020Tensor" + "Properties\022#\n\005dtype\030\001 \001(\0162\024.tensorflow.D" + "ataType\022+\n\005shape\030\002 \001(\0132\034.tensorflow.Tens" + "orShapeProto\022&\n\005value\030\003 \001(\0132\027.tensorflow" + ".TensorProto\"/\n\022NormalDistribution\022\n\n\002mu" + "\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"2\n\025LogNormalDistri" + "bution\022\n\n\002mu\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"\363\004\n\rOp" + "Performance\022\036\n\002op\030\001 \001(\0132\022.tensorflow.OpI" + "nfo\0221\n\014session_info\030\014 \001(\0132\027.tensorflow.S" + "essionInfoB\002\030\001\022\014\n\004node\030\005 \001(\t\022\035\n\025temporar" + "y_memory_size\030\002 \001(\003\022\024\n\014compute_cost\030\003 \001(" + "\003\022\024\n\014compute_time\030\006 \001(\003\022\023\n\013memory_time\030\007" + " \001(\003\022\032\n\022compute_efficiency\030\004 \001(\001\022\031\n\021memo" + "ry_efficiency\030\010 \001(\001\022?\n\025execution_time_no" + "rmal\030\n \001(\0132\036.tensorflow.NormalDistributi" + "onH\000\022F\n\031execution_time_log_normal\030\013 \001(\0132" + "!.tensorflow.LogNormalDistributionH\000\0225\n\t" + "op_memory\030\t \001(\0132\".tensorflow.OpPerforman" + "ce.OpMemory\032\227\001\n\010OpMemory\022\025\n\routput_memor" + "y\030\001 \003(\003\022\023\n\013temp_memory\030\002 \001(\003\022\031\n\021persiste" + "nt_memory\030\004 \001(\003\022\036\n\022device_temp_memory\030\003 " + "\001(\003B\002\030\001\022$\n\030device_persistent_memory\030\005 \001(" + "\003B\002\030\001B\020\n\016execution_time\"F\n\021OpPerformance" + "List\0221\n\016op_performance\030\001 \003(\0132\031.tensorflo" + "w.OpPerformanceB\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[] { org.tensorflow.framework.TensorProtos.getDescriptor(), org.tensorflow.framework.TensorShapeProtos.getDescriptor(), org.tensorflow.framework.TypesProtos.getDescriptor(), org.tensorflow.framework.AttrValueProtos.getDescriptor(), tensorflow.DevicePropertiesProtos.getDescriptor(), }, assigner); internal_static_tensorflow_SessionInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tensorflow_SessionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_SessionInfo_descriptor, new java.lang.String[] { "IntraOpParallelism", }); internal_static_tensorflow_OpInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_OpInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpInfo_descriptor, new java.lang.String[] { "Op", "Attr", "Inputs", "Outputs", "Device", "SessionInfo", }); internal_static_tensorflow_OpInfo_AttrEntry_descriptor = internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(0); internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpInfo_AttrEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_tensorflow_OpInfo_TensorProperties_descriptor = internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(1); internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpInfo_TensorProperties_descriptor, new java.lang.String[] { "Dtype", "Shape", "Value", }); internal_static_tensorflow_NormalDistribution_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tensorflow_NormalDistribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_NormalDistribution_descriptor, new java.lang.String[] { "Mu", "Sigma", }); internal_static_tensorflow_LogNormalDistribution_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_LogNormalDistribution_descriptor, new java.lang.String[] { "Mu", "Sigma", }); internal_static_tensorflow_OpPerformance_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tensorflow_OpPerformance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpPerformance_descriptor, new java.lang.String[] { "Op", "SessionInfo", "Node", "TemporaryMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "ComputeEfficiency", "MemoryEfficiency", "ExecutionTimeNormal", "ExecutionTimeLogNormal", "OpMemory", "ExecutionTime", }); internal_static_tensorflow_OpPerformance_OpMemory_descriptor = internal_static_tensorflow_OpPerformance_descriptor.getNestedTypes().get(0); internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpPerformance_OpMemory_descriptor, new java.lang.String[] { "OutputMemory", "TempMemory", "PersistentMemory", "DeviceTempMemory", "DevicePersistentMemory", }); internal_static_tensorflow_OpPerformanceList_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_tensorflow_OpPerformanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_OpPerformanceList_descriptor, new java.lang.String[] { "OpPerformance", }); org.tensorflow.framework.TensorProtos.getDescriptor(); org.tensorflow.framework.TensorShapeProtos.getDescriptor(); org.tensorflow.framework.TypesProtos.getDescriptor(); org.tensorflow.framework.AttrValueProtos.getDescriptor(); tensorflow.DevicePropertiesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy