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

onnx.OnnxMl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: onnx-ml.proto

package onnx;

public final class OnnxMl {
  private OnnxMl() {}
  public static void registerAllExtensions(
      org.nd4j.shade.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      org.nd4j.shade.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (org.nd4j.shade.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * To be compatible with both proto2 and proto3, we will use a version number
   * that is not defined by the default value but an explicit enum number.
   * 
* * Protobuf enum {@code onnx.Version} */ public enum Version implements org.nd4j.shade.protobuf.ProtocolMessageEnum { /** *
     * proto3 requires the first enum value to be zero.
     * We add this just to appease the compiler.
     * 
* * _START_VERSION = 0; */ _START_VERSION(0), /** *
     * The version field is always serialized and we will use it to store the
     * version that the  graph is generated from. This helps us set up version
     * control. We should use version as
     *     xx(major) - xx(minor) - xxxx(bugfix)
     * and we are starting with 0x00000001 (0.0.1), which was the
     *  version we published on Oct 10, 2017.
     * 
* * IR_VERSION_2017_10_10 = 1; */ IR_VERSION_2017_10_10(1), /** *
     * IR_VERSION 0.0.2 published on Oct 30, 2017
     * - Added type discriminator to AttributeProto to support proto3 users
     * 
* * IR_VERSION_2017_10_30 = 2; */ IR_VERSION_2017_10_30(2), /** *
     * IR VERSION 0.0.3 published on Nov 3, 2017
     * - For operator versioning:
     *    - Added new message OperatorSetIdProto
     *    - Added opset_import in ModelProto
     * - For vendor extensions, added domain in NodeProto
     * 
* * IR_VERSION = 3; */ IR_VERSION(3), UNRECOGNIZED(-1), ; /** *
     * proto3 requires the first enum value to be zero.
     * We add this just to appease the compiler.
     * 
* * _START_VERSION = 0; */ public static final int _START_VERSION_VALUE = 0; /** *
     * The version field is always serialized and we will use it to store the
     * version that the  graph is generated from. This helps us set up version
     * control. We should use version as
     *     xx(major) - xx(minor) - xxxx(bugfix)
     * and we are starting with 0x00000001 (0.0.1), which was the
     *  version we published on Oct 10, 2017.
     * 
* * IR_VERSION_2017_10_10 = 1; */ public static final int IR_VERSION_2017_10_10_VALUE = 1; /** *
     * IR_VERSION 0.0.2 published on Oct 30, 2017
     * - Added type discriminator to AttributeProto to support proto3 users
     * 
* * IR_VERSION_2017_10_30 = 2; */ public static final int IR_VERSION_2017_10_30_VALUE = 2; /** *
     * IR VERSION 0.0.3 published on Nov 3, 2017
     * - For operator versioning:
     *    - Added new message OperatorSetIdProto
     *    - Added opset_import in ModelProto
     * - For vendor extensions, added domain in NodeProto
     * 
* * IR_VERSION = 3; */ public static final int IR_VERSION_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Version valueOf(int value) { return forNumber(value); } public static Version forNumber(int value) { switch (value) { case 0: return _START_VERSION; case 1: return IR_VERSION_2017_10_10; case 2: return IR_VERSION_2017_10_30; case 3: return IR_VERSION; default: return null; } } public static org.nd4j.shade.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.nd4j.shade.protobuf.Internal.EnumLiteMap< Version> internalValueMap = new org.nd4j.shade.protobuf.Internal.EnumLiteMap() { public Version findValueByNumber(int number) { return Version.forNumber(number); } }; public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMl.getDescriptor().getEnumTypes().get(0); } private static final Version[] VALUES = values(); public static Version valueOf( org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Version(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:onnx.Version) } public interface AttributeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.AttributeProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The name field MUST be present for this version of the IR.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * The name field MUST be present for this version of the IR.
     * 
* * string name = 1; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * A human-readable documentation for this attribute. Markdown is allowed.
     * 
* * string doc_string = 13; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this attribute. Markdown is allowed.
     * 
* * string doc_string = 13; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); /** *
     * The type field MUST be present for this version of the IR.
     * For 0.0.1 versions of the IR, this field was not defined, and
     * implementations needed to use has_field hueristics to determine
     * which value field was in use.  For IR_VERSION 0.0.2 or later, this
     * field MUST be set and match the f|i|s|t|... field in use.  This
     * change was made to accomodate proto3 implementations.
     * 
* * .onnx.AttributeProto.AttributeType type = 20; */ int getTypeValue(); /** *
     * The type field MUST be present for this version of the IR.
     * For 0.0.1 versions of the IR, this field was not defined, and
     * implementations needed to use has_field hueristics to determine
     * which value field was in use.  For IR_VERSION 0.0.2 or later, this
     * field MUST be set and match the f|i|s|t|... field in use.  This
     * change was made to accomodate proto3 implementations.
     * 
* * .onnx.AttributeProto.AttributeType type = 20; */ onnx.OnnxMl.AttributeProto.AttributeType getType(); /** *
     * Exactly ONE of the following fields must be present for this version of the IR
     * 
* * float f = 2; */ float getF(); /** *
     * int
     * 
* * int64 i = 3; */ long getI(); /** *
     * UTF-8 string
     * 
* * bytes s = 4; */ org.nd4j.shade.protobuf.ByteString getS(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ boolean hasT(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ onnx.OnnxMl.TensorProto getT(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ onnx.OnnxMl.TensorProtoOrBuilder getTOrBuilder(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ boolean hasG(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ onnx.OnnxMl.GraphProto getG(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ onnx.OnnxMl.GraphProtoOrBuilder getGOrBuilder(); /** *
     * list of floats
     * 
* * repeated float floats = 7; */ java.util.List getFloatsList(); /** *
     * list of floats
     * 
* * repeated float floats = 7; */ int getFloatsCount(); /** *
     * list of floats
     * 
* * repeated float floats = 7; */ float getFloats(int index); /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ java.util.List getIntsList(); /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ int getIntsCount(); /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ long getInts(int index); /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ java.util.List getStringsList(); /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ int getStringsCount(); /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ org.nd4j.shade.protobuf.ByteString getStrings(int index); /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ java.util.List getTensorsList(); /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ onnx.OnnxMl.TensorProto getTensors(int index); /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ int getTensorsCount(); /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ java.util.List getTensorsOrBuilderList(); /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ onnx.OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder( int index); /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ java.util.List getGraphsList(); /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ onnx.OnnxMl.GraphProto getGraphs(int index); /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ int getGraphsCount(); /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ java.util.List getGraphsOrBuilderList(); /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ onnx.OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder( int index); } /** *
   * A named attribute containing either singular float, integer, string
   * and tensor values, or repeated float, integer, string and tensor values.
   * An AttributeProto MUST contain the name field, and *only one* of the
   * following content fields, effectively enforcing a C/C++ union equivalent.
   * 
* * Protobuf type {@code onnx.AttributeProto} */ public static final class AttributeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.AttributeProto) AttributeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use AttributeProto.newBuilder() to construct. private AttributeProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttributeProto() { name_ = ""; docString_ = ""; type_ = 0; f_ = 0F; i_ = 0L; s_ = org.nd4j.shade.protobuf.ByteString.EMPTY; floats_ = java.util.Collections.emptyList(); ints_ = java.util.Collections.emptyList(); strings_ = java.util.Collections.emptyList(); tensors_ = java.util.Collections.emptyList(); graphs_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttributeProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 21: { f_ = input.readFloat(); break; } case 24: { i_ = input.readInt64(); break; } case 34: { s_ = input.readBytes(); break; } case 42: { onnx.OnnxMl.TensorProto.Builder subBuilder = null; if (t_ != null) { subBuilder = t_.toBuilder(); } t_ = input.readMessage(onnx.OnnxMl.TensorProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(t_); t_ = subBuilder.buildPartial(); } break; } case 50: { onnx.OnnxMl.GraphProto.Builder subBuilder = null; if (g_ != null) { subBuilder = g_.toBuilder(); } g_ = input.readMessage(onnx.OnnxMl.GraphProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(g_); g_ = subBuilder.buildPartial(); } break; } case 61: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { floats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } floats_.add(input.readFloat()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { floats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { floats_.add(input.readFloat()); } input.popLimit(limit); break; } case 64: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { ints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } ints_.add(input.readInt64()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { ints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } while (input.getBytesUntilLimit() > 0) { ints_.add(input.readInt64()); } input.popLimit(limit); break; } case 74: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { strings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } strings_.add(input.readBytes()); break; } case 82: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { tensors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } tensors_.add( input.readMessage(onnx.OnnxMl.TensorProto.parser(), extensionRegistry)); break; } case 90: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { graphs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } graphs_.add( input.readMessage(onnx.OnnxMl.GraphProto.parser(), extensionRegistry)); break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } case 160: { int rawValue = input.readEnum(); type_ = rawValue; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { floats_ = java.util.Collections.unmodifiableList(floats_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { ints_ = java.util.Collections.unmodifiableList(ints_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { strings_ = java.util.Collections.unmodifiableList(strings_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { tensors_ = java.util.Collections.unmodifiableList(tensors_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { graphs_ = java.util.Collections.unmodifiableList(graphs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_AttributeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_AttributeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.AttributeProto.class, onnx.OnnxMl.AttributeProto.Builder.class); } /** *
     * Note: this enum is structurally identical to the OpSchema::AttrType
     * enum defined in schema.h.  If you rev one, you likely need to rev the other.
     * 
* * Protobuf enum {@code onnx.AttributeProto.AttributeType} */ public enum AttributeType implements org.nd4j.shade.protobuf.ProtocolMessageEnum { /** * UNDEFINED = 0; */ UNDEFINED(0), /** * FLOAT = 1; */ FLOAT(1), /** * INT = 2; */ INT(2), /** * STRING = 3; */ STRING(3), /** * TENSOR = 4; */ TENSOR(4), /** * GRAPH = 5; */ GRAPH(5), /** * FLOATS = 6; */ FLOATS(6), /** * INTS = 7; */ INTS(7), /** * STRINGS = 8; */ STRINGS(8), /** * TENSORS = 9; */ TENSORS(9), /** * GRAPHS = 10; */ GRAPHS(10), UNRECOGNIZED(-1), ; /** * UNDEFINED = 0; */ public static final int UNDEFINED_VALUE = 0; /** * FLOAT = 1; */ public static final int FLOAT_VALUE = 1; /** * INT = 2; */ public static final int INT_VALUE = 2; /** * STRING = 3; */ public static final int STRING_VALUE = 3; /** * TENSOR = 4; */ public static final int TENSOR_VALUE = 4; /** * GRAPH = 5; */ public static final int GRAPH_VALUE = 5; /** * FLOATS = 6; */ public static final int FLOATS_VALUE = 6; /** * INTS = 7; */ public static final int INTS_VALUE = 7; /** * STRINGS = 8; */ public static final int STRINGS_VALUE = 8; /** * TENSORS = 9; */ public static final int TENSORS_VALUE = 9; /** * GRAPHS = 10; */ public static final int GRAPHS_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AttributeType valueOf(int value) { return forNumber(value); } public static AttributeType forNumber(int value) { switch (value) { case 0: return UNDEFINED; case 1: return FLOAT; case 2: return INT; case 3: return STRING; case 4: return TENSOR; case 5: return GRAPH; case 6: return FLOATS; case 7: return INTS; case 8: return STRINGS; case 9: return TENSORS; case 10: return GRAPHS; default: return null; } } public static org.nd4j.shade.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.nd4j.shade.protobuf.Internal.EnumLiteMap< AttributeType> internalValueMap = new org.nd4j.shade.protobuf.Internal.EnumLiteMap() { public AttributeType findValueByNumber(int number) { return AttributeType.forNumber(number); } }; public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMl.AttributeProto.getDescriptor().getEnumTypes().get(0); } private static final AttributeType[] VALUES = values(); public static AttributeType valueOf( org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AttributeType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:onnx.AttributeProto.AttributeType) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * The name field MUST be present for this version of the IR.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The name field MUST be present for this version of the IR.
     * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 13; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this attribute. Markdown is allowed.
     * 
* * string doc_string = 13; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this attribute. Markdown is allowed.
     * 
* * string doc_string = 13; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 20; private int type_; /** *
     * The type field MUST be present for this version of the IR.
     * For 0.0.1 versions of the IR, this field was not defined, and
     * implementations needed to use has_field hueristics to determine
     * which value field was in use.  For IR_VERSION 0.0.2 or later, this
     * field MUST be set and match the f|i|s|t|... field in use.  This
     * change was made to accomodate proto3 implementations.
     * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public int getTypeValue() { return type_; } /** *
     * The type field MUST be present for this version of the IR.
     * For 0.0.1 versions of the IR, this field was not defined, and
     * implementations needed to use has_field hueristics to determine
     * which value field was in use.  For IR_VERSION 0.0.2 or later, this
     * field MUST be set and match the f|i|s|t|... field in use.  This
     * change was made to accomodate proto3 implementations.
     * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public onnx.OnnxMl.AttributeProto.AttributeType getType() { onnx.OnnxMl.AttributeProto.AttributeType result = onnx.OnnxMl.AttributeProto.AttributeType.valueOf(type_); return result == null ? onnx.OnnxMl.AttributeProto.AttributeType.UNRECOGNIZED : result; } public static final int F_FIELD_NUMBER = 2; private float f_; /** *
     * Exactly ONE of the following fields must be present for this version of the IR
     * 
* * float f = 2; */ public float getF() { return f_; } public static final int I_FIELD_NUMBER = 3; private long i_; /** *
     * int
     * 
* * int64 i = 3; */ public long getI() { return i_; } public static final int S_FIELD_NUMBER = 4; private org.nd4j.shade.protobuf.ByteString s_; /** *
     * UTF-8 string
     * 
* * bytes s = 4; */ public org.nd4j.shade.protobuf.ByteString getS() { return s_; } public static final int T_FIELD_NUMBER = 5; private onnx.OnnxMl.TensorProto t_; /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public boolean hasT() { return t_ != null; } /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMl.TensorProto getT() { return t_ == null ? onnx.OnnxMl.TensorProto.getDefaultInstance() : t_; } /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMl.TensorProtoOrBuilder getTOrBuilder() { return getT(); } public static final int G_FIELD_NUMBER = 6; private onnx.OnnxMl.GraphProto g_; /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public boolean hasG() { return g_ != null; } /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMl.GraphProto getG() { return g_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : g_; } /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMl.GraphProtoOrBuilder getGOrBuilder() { return getG(); } public static final int FLOATS_FIELD_NUMBER = 7; private java.util.List floats_; /** *
     * list of floats
     * 
* * repeated float floats = 7; */ public java.util.List getFloatsList() { return floats_; } /** *
     * list of floats
     * 
* * repeated float floats = 7; */ public int getFloatsCount() { return floats_.size(); } /** *
     * list of floats
     * 
* * repeated float floats = 7; */ public float getFloats(int index) { return floats_.get(index); } private int floatsMemoizedSerializedSize = -1; public static final int INTS_FIELD_NUMBER = 8; private java.util.List ints_; /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ public java.util.List getIntsList() { return ints_; } /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ public int getIntsCount() { return ints_.size(); } /** *
     * list of ints
     * 
* * repeated int64 ints = 8; */ public long getInts(int index) { return ints_.get(index); } private int intsMemoizedSerializedSize = -1; public static final int STRINGS_FIELD_NUMBER = 9; private java.util.List strings_; /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ public java.util.List getStringsList() { return strings_; } /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ public int getStringsCount() { return strings_.size(); } /** *
     * list of UTF-8 strings
     * 
* * repeated bytes strings = 9; */ public org.nd4j.shade.protobuf.ByteString getStrings(int index) { return strings_.get(index); } public static final int TENSORS_FIELD_NUMBER = 10; private java.util.List tensors_; /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsList() { return tensors_; } /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsOrBuilderList() { return tensors_; } /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public int getTensorsCount() { return tensors_.size(); } /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProto getTensors(int index) { return tensors_.get(index); } /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder( int index) { return tensors_.get(index); } public static final int GRAPHS_FIELD_NUMBER = 11; private java.util.List graphs_; /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsList() { return graphs_; } /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsOrBuilderList() { return graphs_; } /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public int getGraphsCount() { return graphs_.size(); } /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProto getGraphs(int index) { return graphs_.get(index); } /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder( int index) { return graphs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (f_ != 0F) { output.writeFloat(2, f_); } if (i_ != 0L) { output.writeInt64(3, i_); } if (!s_.isEmpty()) { output.writeBytes(4, s_); } if (t_ != null) { output.writeMessage(5, getT()); } if (g_ != null) { output.writeMessage(6, getG()); } if (getFloatsList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(floatsMemoizedSerializedSize); } for (int i = 0; i < floats_.size(); i++) { output.writeFloatNoTag(floats_.get(i)); } if (getIntsList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(intsMemoizedSerializedSize); } for (int i = 0; i < ints_.size(); i++) { output.writeInt64NoTag(ints_.get(i)); } for (int i = 0; i < strings_.size(); i++) { output.writeBytes(9, strings_.get(i)); } for (int i = 0; i < tensors_.size(); i++) { output.writeMessage(10, tensors_.get(i)); } for (int i = 0; i < graphs_.size(); i++) { output.writeMessage(11, graphs_.get(i)); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 13, docString_); } if (type_ != onnx.OnnxMl.AttributeProto.AttributeType.UNDEFINED.getNumber()) { output.writeEnum(20, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (f_ != 0F) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeFloatSize(2, f_); } if (i_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(3, i_); } if (!s_.isEmpty()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBytesSize(4, s_); } if (t_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, getT()); } if (g_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(6, getG()); } { int dataSize = 0; dataSize = 4 * getFloatsList().size(); size += dataSize; if (!getFloatsList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < ints_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(ints_.get(i)); } size += dataSize; if (!getIntsList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } intsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < strings_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeBytesSizeNoTag(strings_.get(i)); } size += dataSize; size += 1 * getStringsList().size(); } for (int i = 0; i < tensors_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(10, tensors_.get(i)); } for (int i = 0; i < graphs_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(11, graphs_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(13, docString_); } if (type_ != onnx.OnnxMl.AttributeProto.AttributeType.UNDEFINED.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(20, type_); } 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 onnx.OnnxMl.AttributeProto)) { return super.equals(obj); } onnx.OnnxMl.AttributeProto other = (onnx.OnnxMl.AttributeProto) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getDocString() .equals(other.getDocString()); result = result && type_ == other.type_; result = result && ( java.lang.Float.floatToIntBits(getF()) == java.lang.Float.floatToIntBits( other.getF())); result = result && (getI() == other.getI()); result = result && getS() .equals(other.getS()); result = result && (hasT() == other.hasT()); if (hasT()) { result = result && getT() .equals(other.getT()); } result = result && (hasG() == other.hasG()); if (hasG()) { result = result && getG() .equals(other.getG()); } result = result && getFloatsList() .equals(other.getFloatsList()); result = result && getIntsList() .equals(other.getIntsList()); result = result && getStringsList() .equals(other.getStringsList()); result = result && getTensorsList() .equals(other.getTensorsList()); result = result && getGraphsList() .equals(other.getGraphsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + F_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getF()); hash = (37 * hash) + I_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getI()); hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); if (hasT()) { hash = (37 * hash) + T_FIELD_NUMBER; hash = (53 * hash) + getT().hashCode(); } if (hasG()) { hash = (37 * hash) + G_FIELD_NUMBER; hash = (53 * hash) + getG().hashCode(); } if (getFloatsCount() > 0) { hash = (37 * hash) + FLOATS_FIELD_NUMBER; hash = (53 * hash) + getFloatsList().hashCode(); } if (getIntsCount() > 0) { hash = (37 * hash) + INTS_FIELD_NUMBER; hash = (53 * hash) + getIntsList().hashCode(); } if (getStringsCount() > 0) { hash = (37 * hash) + STRINGS_FIELD_NUMBER; hash = (53 * hash) + getStringsList().hashCode(); } if (getTensorsCount() > 0) { hash = (37 * hash) + TENSORS_FIELD_NUMBER; hash = (53 * hash) + getTensorsList().hashCode(); } if (getGraphsCount() > 0) { hash = (37 * hash) + GRAPHS_FIELD_NUMBER; hash = (53 * hash) + getGraphsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.AttributeProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.AttributeProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.AttributeProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.AttributeProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.AttributeProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.AttributeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.AttributeProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.AttributeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.AttributeProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.AttributeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.AttributeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.AttributeProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A named attribute containing either singular float, integer, string
     * and tensor values, or repeated float, integer, string and tensor values.
     * An AttributeProto MUST contain the name field, and *only one* of the
     * following content fields, effectively enforcing a C/C++ union equivalent.
     * 
* * Protobuf type {@code onnx.AttributeProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.AttributeProto) onnx.OnnxMl.AttributeProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_AttributeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_AttributeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.AttributeProto.class, onnx.OnnxMl.AttributeProto.Builder.class); } // Construct using onnx.OnnxMl.AttributeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTensorsFieldBuilder(); getGraphsFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; docString_ = ""; type_ = 0; f_ = 0F; i_ = 0L; s_ = org.nd4j.shade.protobuf.ByteString.EMPTY; if (tBuilder_ == null) { t_ = null; } else { t_ = null; tBuilder_ = null; } if (gBuilder_ == null) { g_ = null; } else { g_ = null; gBuilder_ = null; } floats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); ints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); strings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); if (tensorsBuilder_ == null) { tensors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { tensorsBuilder_.clear(); } if (graphsBuilder_ == null) { graphs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); } else { graphsBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_AttributeProto_descriptor; } public onnx.OnnxMl.AttributeProto getDefaultInstanceForType() { return onnx.OnnxMl.AttributeProto.getDefaultInstance(); } public onnx.OnnxMl.AttributeProto build() { onnx.OnnxMl.AttributeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.AttributeProto buildPartial() { onnx.OnnxMl.AttributeProto result = new onnx.OnnxMl.AttributeProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.docString_ = docString_; result.type_ = type_; result.f_ = f_; result.i_ = i_; result.s_ = s_; if (tBuilder_ == null) { result.t_ = t_; } else { result.t_ = tBuilder_.build(); } if (gBuilder_ == null) { result.g_ = g_; } else { result.g_ = gBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { floats_ = java.util.Collections.unmodifiableList(floats_); bitField0_ = (bitField0_ & ~0x00000100); } result.floats_ = floats_; if (((bitField0_ & 0x00000200) == 0x00000200)) { ints_ = java.util.Collections.unmodifiableList(ints_); bitField0_ = (bitField0_ & ~0x00000200); } result.ints_ = ints_; if (((bitField0_ & 0x00000400) == 0x00000400)) { strings_ = java.util.Collections.unmodifiableList(strings_); bitField0_ = (bitField0_ & ~0x00000400); } result.strings_ = strings_; if (tensorsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { tensors_ = java.util.Collections.unmodifiableList(tensors_); bitField0_ = (bitField0_ & ~0x00000800); } result.tensors_ = tensors_; } else { result.tensors_ = tensorsBuilder_.build(); } if (graphsBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000)) { graphs_ = java.util.Collections.unmodifiableList(graphs_); bitField0_ = (bitField0_ & ~0x00001000); } result.graphs_ = graphs_; } else { result.graphs_ = graphsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.AttributeProto) { return mergeFrom((onnx.OnnxMl.AttributeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.AttributeProto other) { if (other == onnx.OnnxMl.AttributeProto.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getF() != 0F) { setF(other.getF()); } if (other.getI() != 0L) { setI(other.getI()); } if (other.getS() != org.nd4j.shade.protobuf.ByteString.EMPTY) { setS(other.getS()); } if (other.hasT()) { mergeT(other.getT()); } if (other.hasG()) { mergeG(other.getG()); } if (!other.floats_.isEmpty()) { if (floats_.isEmpty()) { floats_ = other.floats_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureFloatsIsMutable(); floats_.addAll(other.floats_); } onChanged(); } if (!other.ints_.isEmpty()) { if (ints_.isEmpty()) { ints_ = other.ints_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureIntsIsMutable(); ints_.addAll(other.ints_); } onChanged(); } if (!other.strings_.isEmpty()) { if (strings_.isEmpty()) { strings_ = other.strings_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureStringsIsMutable(); strings_.addAll(other.strings_); } onChanged(); } if (tensorsBuilder_ == null) { if (!other.tensors_.isEmpty()) { if (tensors_.isEmpty()) { tensors_ = other.tensors_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureTensorsIsMutable(); tensors_.addAll(other.tensors_); } onChanged(); } } else { if (!other.tensors_.isEmpty()) { if (tensorsBuilder_.isEmpty()) { tensorsBuilder_.dispose(); tensorsBuilder_ = null; tensors_ = other.tensors_; bitField0_ = (bitField0_ & ~0x00000800); tensorsBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTensorsFieldBuilder() : null; } else { tensorsBuilder_.addAllMessages(other.tensors_); } } } if (graphsBuilder_ == null) { if (!other.graphs_.isEmpty()) { if (graphs_.isEmpty()) { graphs_ = other.graphs_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureGraphsIsMutable(); graphs_.addAll(other.graphs_); } onChanged(); } } else { if (!other.graphs_.isEmpty()) { if (graphsBuilder_.isEmpty()) { graphsBuilder_.dispose(); graphsBuilder_ = null; graphs_ = other.graphs_; bitField0_ = (bitField0_ & ~0x00001000); graphsBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGraphsFieldBuilder() : null; } else { graphsBuilder_.addAllMessages(other.graphs_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.AttributeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.AttributeProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name field MUST be present for this version of the IR.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name field MUST be present for this version of the IR.
       * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The name field MUST be present for this version of the IR.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * The name field MUST be present for this version of the IR.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name field MUST be present for this version of the IR.
       * 
* * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this attribute. Markdown is allowed.
       * 
* * string doc_string = 13; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this attribute. Markdown is allowed.
       * 
* * string doc_string = 13; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this attribute. Markdown is allowed.
       * 
* * string doc_string = 13; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this attribute. Markdown is allowed.
       * 
* * string doc_string = 13; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this attribute. Markdown is allowed.
       * 
* * string doc_string = 13; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private int type_ = 0; /** *
       * The type field MUST be present for this version of the IR.
       * For 0.0.1 versions of the IR, this field was not defined, and
       * implementations needed to use has_field hueristics to determine
       * which value field was in use.  For IR_VERSION 0.0.2 or later, this
       * field MUST be set and match the f|i|s|t|... field in use.  This
       * change was made to accomodate proto3 implementations.
       * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public int getTypeValue() { return type_; } /** *
       * The type field MUST be present for this version of the IR.
       * For 0.0.1 versions of the IR, this field was not defined, and
       * implementations needed to use has_field hueristics to determine
       * which value field was in use.  For IR_VERSION 0.0.2 or later, this
       * field MUST be set and match the f|i|s|t|... field in use.  This
       * change was made to accomodate proto3 implementations.
       * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * The type field MUST be present for this version of the IR.
       * For 0.0.1 versions of the IR, this field was not defined, and
       * implementations needed to use has_field hueristics to determine
       * which value field was in use.  For IR_VERSION 0.0.2 or later, this
       * field MUST be set and match the f|i|s|t|... field in use.  This
       * change was made to accomodate proto3 implementations.
       * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public onnx.OnnxMl.AttributeProto.AttributeType getType() { onnx.OnnxMl.AttributeProto.AttributeType result = onnx.OnnxMl.AttributeProto.AttributeType.valueOf(type_); return result == null ? onnx.OnnxMl.AttributeProto.AttributeType.UNRECOGNIZED : result; } /** *
       * The type field MUST be present for this version of the IR.
       * For 0.0.1 versions of the IR, this field was not defined, and
       * implementations needed to use has_field hueristics to determine
       * which value field was in use.  For IR_VERSION 0.0.2 or later, this
       * field MUST be set and match the f|i|s|t|... field in use.  This
       * change was made to accomodate proto3 implementations.
       * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public Builder setType(onnx.OnnxMl.AttributeProto.AttributeType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type field MUST be present for this version of the IR.
       * For 0.0.1 versions of the IR, this field was not defined, and
       * implementations needed to use has_field hueristics to determine
       * which value field was in use.  For IR_VERSION 0.0.2 or later, this
       * field MUST be set and match the f|i|s|t|... field in use.  This
       * change was made to accomodate proto3 implementations.
       * 
* * .onnx.AttributeProto.AttributeType type = 20; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private float f_ ; /** *
       * Exactly ONE of the following fields must be present for this version of the IR
       * 
* * float f = 2; */ public float getF() { return f_; } /** *
       * Exactly ONE of the following fields must be present for this version of the IR
       * 
* * float f = 2; */ public Builder setF(float value) { f_ = value; onChanged(); return this; } /** *
       * Exactly ONE of the following fields must be present for this version of the IR
       * 
* * float f = 2; */ public Builder clearF() { f_ = 0F; onChanged(); return this; } private long i_ ; /** *
       * int
       * 
* * int64 i = 3; */ public long getI() { return i_; } /** *
       * int
       * 
* * int64 i = 3; */ public Builder setI(long value) { i_ = value; onChanged(); return this; } /** *
       * int
       * 
* * int64 i = 3; */ public Builder clearI() { i_ = 0L; onChanged(); return this; } private org.nd4j.shade.protobuf.ByteString s_ = org.nd4j.shade.protobuf.ByteString.EMPTY; /** *
       * UTF-8 string
       * 
* * bytes s = 4; */ public org.nd4j.shade.protobuf.ByteString getS() { return s_; } /** *
       * UTF-8 string
       * 
* * bytes s = 4; */ public Builder setS(org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } s_ = value; onChanged(); return this; } /** *
       * UTF-8 string
       * 
* * bytes s = 4; */ public Builder clearS() { s_ = getDefaultInstance().getS(); onChanged(); return this; } private onnx.OnnxMl.TensorProto t_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> tBuilder_; /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public boolean hasT() { return tBuilder_ != null || t_ != null; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMl.TensorProto getT() { if (tBuilder_ == null) { return t_ == null ? onnx.OnnxMl.TensorProto.getDefaultInstance() : t_; } else { return tBuilder_.getMessage(); } } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public Builder setT(onnx.OnnxMl.TensorProto value) { if (tBuilder_ == null) { if (value == null) { throw new NullPointerException(); } t_ = value; onChanged(); } else { tBuilder_.setMessage(value); } return this; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public Builder setT( onnx.OnnxMl.TensorProto.Builder builderForValue) { if (tBuilder_ == null) { t_ = builderForValue.build(); onChanged(); } else { tBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public Builder mergeT(onnx.OnnxMl.TensorProto value) { if (tBuilder_ == null) { if (t_ != null) { t_ = onnx.OnnxMl.TensorProto.newBuilder(t_).mergeFrom(value).buildPartial(); } else { t_ = value; } onChanged(); } else { tBuilder_.mergeFrom(value); } return this; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public Builder clearT() { if (tBuilder_ == null) { t_ = null; onChanged(); } else { t_ = null; tBuilder_ = null; } return this; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMl.TensorProto.Builder getTBuilder() { onChanged(); return getTFieldBuilder().getBuilder(); } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMl.TensorProtoOrBuilder getTOrBuilder() { if (tBuilder_ != null) { return tBuilder_.getMessageOrBuilder(); } else { return t_ == null ? onnx.OnnxMl.TensorProto.getDefaultInstance() : t_; } } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> getTFieldBuilder() { if (tBuilder_ == null) { tBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder>( getT(), getParentForChildren(), isClean()); t_ = null; } return tBuilder_; } private onnx.OnnxMl.GraphProto g_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> gBuilder_; /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public boolean hasG() { return gBuilder_ != null || g_ != null; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMl.GraphProto getG() { if (gBuilder_ == null) { return g_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : g_; } else { return gBuilder_.getMessage(); } } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public Builder setG(onnx.OnnxMl.GraphProto value) { if (gBuilder_ == null) { if (value == null) { throw new NullPointerException(); } g_ = value; onChanged(); } else { gBuilder_.setMessage(value); } return this; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public Builder setG( onnx.OnnxMl.GraphProto.Builder builderForValue) { if (gBuilder_ == null) { g_ = builderForValue.build(); onChanged(); } else { gBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public Builder mergeG(onnx.OnnxMl.GraphProto value) { if (gBuilder_ == null) { if (g_ != null) { g_ = onnx.OnnxMl.GraphProto.newBuilder(g_).mergeFrom(value).buildPartial(); } else { g_ = value; } onChanged(); } else { gBuilder_.mergeFrom(value); } return this; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public Builder clearG() { if (gBuilder_ == null) { g_ = null; onChanged(); } else { g_ = null; gBuilder_ = null; } return this; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMl.GraphProto.Builder getGBuilder() { onChanged(); return getGFieldBuilder().getBuilder(); } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMl.GraphProtoOrBuilder getGOrBuilder() { if (gBuilder_ != null) { return gBuilder_.getMessageOrBuilder(); } else { return g_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : g_; } } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> getGFieldBuilder() { if (gBuilder_ == null) { gBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder>( getG(), getParentForChildren(), isClean()); g_ = null; } return gBuilder_; } private java.util.List floats_ = java.util.Collections.emptyList(); private void ensureFloatsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { floats_ = new java.util.ArrayList(floats_); bitField0_ |= 0x00000100; } } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public java.util.List getFloatsList() { return java.util.Collections.unmodifiableList(floats_); } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public int getFloatsCount() { return floats_.size(); } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public float getFloats(int index) { return floats_.get(index); } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public Builder setFloats( int index, float value) { ensureFloatsIsMutable(); floats_.set(index, value); onChanged(); return this; } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public Builder addFloats(float value) { ensureFloatsIsMutable(); floats_.add(value); onChanged(); return this; } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public Builder addAllFloats( java.lang.Iterable values) { ensureFloatsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, floats_); onChanged(); return this; } /** *
       * list of floats
       * 
* * repeated float floats = 7; */ public Builder clearFloats() { floats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List ints_ = java.util.Collections.emptyList(); private void ensureIntsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { ints_ = new java.util.ArrayList(ints_); bitField0_ |= 0x00000200; } } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public java.util.List getIntsList() { return java.util.Collections.unmodifiableList(ints_); } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public int getIntsCount() { return ints_.size(); } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public long getInts(int index) { return ints_.get(index); } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public Builder setInts( int index, long value) { ensureIntsIsMutable(); ints_.set(index, value); onChanged(); return this; } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public Builder addInts(long value) { ensureIntsIsMutable(); ints_.add(value); onChanged(); return this; } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public Builder addAllInts( java.lang.Iterable values) { ensureIntsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, ints_); onChanged(); return this; } /** *
       * list of ints
       * 
* * repeated int64 ints = 8; */ public Builder clearInts() { ints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private java.util.List strings_ = java.util.Collections.emptyList(); private void ensureStringsIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { strings_ = new java.util.ArrayList(strings_); bitField0_ |= 0x00000400; } } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public java.util.List getStringsList() { return java.util.Collections.unmodifiableList(strings_); } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public int getStringsCount() { return strings_.size(); } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public org.nd4j.shade.protobuf.ByteString getStrings(int index) { return strings_.get(index); } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public Builder setStrings( int index, org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringsIsMutable(); strings_.set(index, value); onChanged(); return this; } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public Builder addStrings(org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringsIsMutable(); strings_.add(value); onChanged(); return this; } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public Builder addAllStrings( java.lang.Iterable values) { ensureStringsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, strings_); onChanged(); return this; } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public Builder clearStrings() { strings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private java.util.List tensors_ = java.util.Collections.emptyList(); private void ensureTensorsIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { tensors_ = new java.util.ArrayList(tensors_); bitField0_ |= 0x00000800; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> tensorsBuilder_; /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsList() { if (tensorsBuilder_ == null) { return java.util.Collections.unmodifiableList(tensors_); } else { return tensorsBuilder_.getMessageList(); } } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public int getTensorsCount() { if (tensorsBuilder_ == null) { return tensors_.size(); } else { return tensorsBuilder_.getCount(); } } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProto getTensors(int index) { if (tensorsBuilder_ == null) { return tensors_.get(index); } else { return tensorsBuilder_.getMessage(index); } } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder setTensors( int index, onnx.OnnxMl.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.set(index, value); onChanged(); } else { tensorsBuilder_.setMessage(index, value); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder setTensors( int index, onnx.OnnxMl.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.set(index, builderForValue.build()); onChanged(); } else { tensorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder addTensors(onnx.OnnxMl.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.add(value); onChanged(); } else { tensorsBuilder_.addMessage(value); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder addTensors( int index, onnx.OnnxMl.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.add(index, value); onChanged(); } else { tensorsBuilder_.addMessage(index, value); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder addTensors( onnx.OnnxMl.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.add(builderForValue.build()); onChanged(); } else { tensorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder addTensors( int index, onnx.OnnxMl.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.add(index, builderForValue.build()); onChanged(); } else { tensorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder addAllTensors( java.lang.Iterable values) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, tensors_); onChanged(); } else { tensorsBuilder_.addAllMessages(values); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder clearTensors() { if (tensorsBuilder_ == null) { tensors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { tensorsBuilder_.clear(); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public Builder removeTensors(int index) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.remove(index); onChanged(); } else { tensorsBuilder_.remove(index); } return this; } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProto.Builder getTensorsBuilder( int index) { return getTensorsFieldBuilder().getBuilder(index); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder( int index) { if (tensorsBuilder_ == null) { return tensors_.get(index); } else { return tensorsBuilder_.getMessageOrBuilder(index); } } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsOrBuilderList() { if (tensorsBuilder_ != null) { return tensorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tensors_); } } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProto.Builder addTensorsBuilder() { return getTensorsFieldBuilder().addBuilder( onnx.OnnxMl.TensorProto.getDefaultInstance()); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMl.TensorProto.Builder addTensorsBuilder( int index) { return getTensorsFieldBuilder().addBuilder( index, onnx.OnnxMl.TensorProto.getDefaultInstance()); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsBuilderList() { return getTensorsFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> getTensorsFieldBuilder() { if (tensorsBuilder_ == null) { tensorsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder>( tensors_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); tensors_ = null; } return tensorsBuilder_; } private java.util.List graphs_ = java.util.Collections.emptyList(); private void ensureGraphsIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { graphs_ = new java.util.ArrayList(graphs_); bitField0_ |= 0x00001000; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> graphsBuilder_; /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsList() { if (graphsBuilder_ == null) { return java.util.Collections.unmodifiableList(graphs_); } else { return graphsBuilder_.getMessageList(); } } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public int getGraphsCount() { if (graphsBuilder_ == null) { return graphs_.size(); } else { return graphsBuilder_.getCount(); } } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProto getGraphs(int index) { if (graphsBuilder_ == null) { return graphs_.get(index); } else { return graphsBuilder_.getMessage(index); } } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder setGraphs( int index, onnx.OnnxMl.GraphProto value) { if (graphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGraphsIsMutable(); graphs_.set(index, value); onChanged(); } else { graphsBuilder_.setMessage(index, value); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder setGraphs( int index, onnx.OnnxMl.GraphProto.Builder builderForValue) { if (graphsBuilder_ == null) { ensureGraphsIsMutable(); graphs_.set(index, builderForValue.build()); onChanged(); } else { graphsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder addGraphs(onnx.OnnxMl.GraphProto value) { if (graphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGraphsIsMutable(); graphs_.add(value); onChanged(); } else { graphsBuilder_.addMessage(value); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder addGraphs( int index, onnx.OnnxMl.GraphProto value) { if (graphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGraphsIsMutable(); graphs_.add(index, value); onChanged(); } else { graphsBuilder_.addMessage(index, value); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder addGraphs( onnx.OnnxMl.GraphProto.Builder builderForValue) { if (graphsBuilder_ == null) { ensureGraphsIsMutable(); graphs_.add(builderForValue.build()); onChanged(); } else { graphsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder addGraphs( int index, onnx.OnnxMl.GraphProto.Builder builderForValue) { if (graphsBuilder_ == null) { ensureGraphsIsMutable(); graphs_.add(index, builderForValue.build()); onChanged(); } else { graphsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder addAllGraphs( java.lang.Iterable values) { if (graphsBuilder_ == null) { ensureGraphsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, graphs_); onChanged(); } else { graphsBuilder_.addAllMessages(values); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder clearGraphs() { if (graphsBuilder_ == null) { graphs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { graphsBuilder_.clear(); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public Builder removeGraphs(int index) { if (graphsBuilder_ == null) { ensureGraphsIsMutable(); graphs_.remove(index); onChanged(); } else { graphsBuilder_.remove(index); } return this; } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProto.Builder getGraphsBuilder( int index) { return getGraphsFieldBuilder().getBuilder(index); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder( int index) { if (graphsBuilder_ == null) { return graphs_.get(index); } else { return graphsBuilder_.getMessageOrBuilder(index); } } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsOrBuilderList() { if (graphsBuilder_ != null) { return graphsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(graphs_); } } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProto.Builder addGraphsBuilder() { return getGraphsFieldBuilder().addBuilder( onnx.OnnxMl.GraphProto.getDefaultInstance()); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMl.GraphProto.Builder addGraphsBuilder( int index) { return getGraphsFieldBuilder().addBuilder( index, onnx.OnnxMl.GraphProto.getDefaultInstance()); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsBuilderList() { return getGraphsFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> getGraphsFieldBuilder() { if (graphsBuilder_ == null) { graphsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder>( graphs_, ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); graphs_ = null; } return graphsBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.AttributeProto) } // @@protoc_insertion_point(class_scope:onnx.AttributeProto) private static final onnx.OnnxMl.AttributeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.AttributeProto(); } public static onnx.OnnxMl.AttributeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public AttributeProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new AttributeProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.AttributeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueInfoProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.ValueInfoProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * This field MUST be present in this version of the IR.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * This field MUST be present in this version of the IR.
     * 
* * string name = 1; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ boolean hasType(); /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ onnx.OnnxMl.TypeProto getType(); /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ onnx.OnnxMl.TypeProtoOrBuilder getTypeOrBuilder(); /** *
     * A human-readable documentation for this value. Markdown is allowed.
     * 
* * string doc_string = 3; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this value. Markdown is allowed.
     * 
* * string doc_string = 3; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); } /** *
   * Defines information on value, including the name, the type, and
   * the shape of the value.
   * 
* * Protobuf type {@code onnx.ValueInfoProto} */ public static final class ValueInfoProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.ValueInfoProto) ValueInfoProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ValueInfoProto.newBuilder() to construct. private ValueInfoProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValueInfoProto() { name_ = ""; docString_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValueInfoProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { onnx.OnnxMl.TypeProto.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(onnx.OnnxMl.TypeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_ValueInfoProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_ValueInfoProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.ValueInfoProto.class, onnx.OnnxMl.ValueInfoProto.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * This field MUST be present in this version of the IR.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * This field MUST be present in this version of the IR.
     * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private onnx.OnnxMl.TypeProto type_; /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ public boolean hasType() { return type_ != null; } /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMl.TypeProto getType() { return type_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : type_; } /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMl.TypeProtoOrBuilder getTypeOrBuilder() { return getType(); } public static final int DOC_STRING_FIELD_NUMBER = 3; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this value. Markdown is allowed.
     * 
* * string doc_string = 3; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this value. Markdown is allowed.
     * 
* * string doc_string = 3; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != null) { output.writeMessage(2, getType()); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, docString_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, docString_); } 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 onnx.OnnxMl.ValueInfoProto)) { return super.equals(obj); } onnx.OnnxMl.ValueInfoProto other = (onnx.OnnxMl.ValueInfoProto) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && getDocString() .equals(other.getDocString()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.ValueInfoProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ValueInfoProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ValueInfoProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ValueInfoProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ValueInfoProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ValueInfoProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ValueInfoProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.ValueInfoProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.ValueInfoProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.ValueInfoProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.ValueInfoProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.ValueInfoProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.ValueInfoProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Defines information on value, including the name, the type, and
     * the shape of the value.
     * 
* * Protobuf type {@code onnx.ValueInfoProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.ValueInfoProto) onnx.OnnxMl.ValueInfoProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_ValueInfoProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_ValueInfoProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.ValueInfoProto.class, onnx.OnnxMl.ValueInfoProto.Builder.class); } // Construct using onnx.OnnxMl.ValueInfoProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } docString_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_ValueInfoProto_descriptor; } public onnx.OnnxMl.ValueInfoProto getDefaultInstanceForType() { return onnx.OnnxMl.ValueInfoProto.getDefaultInstance(); } public onnx.OnnxMl.ValueInfoProto build() { onnx.OnnxMl.ValueInfoProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.ValueInfoProto buildPartial() { onnx.OnnxMl.ValueInfoProto result = new onnx.OnnxMl.ValueInfoProto(this); result.name_ = name_; if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } result.docString_ = docString_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.ValueInfoProto) { return mergeFrom((onnx.OnnxMl.ValueInfoProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.ValueInfoProto other) { if (other == onnx.OnnxMl.ValueInfoProto.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasType()) { mergeType(other.getType()); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.ValueInfoProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.ValueInfoProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * This field MUST be present in this version of the IR.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * This field MUST be present in this version of the IR.
       * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * This field MUST be present in this version of the IR.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private onnx.OnnxMl.TypeProto type_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> typeBuilder_; /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMl.TypeProto getType() { if (typeBuilder_ == null) { return type_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public Builder setType(onnx.OnnxMl.TypeProto value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public Builder setType( onnx.OnnxMl.TypeProto.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public Builder mergeType(onnx.OnnxMl.TypeProto value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = onnx.OnnxMl.TypeProto.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMl.TypeProto.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMl.TypeProtoOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : type_; } } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this value. Markdown is allowed.
       * 
* * string doc_string = 3; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this value. Markdown is allowed.
       * 
* * string doc_string = 3; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this value. Markdown is allowed.
       * 
* * string doc_string = 3; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this value. Markdown is allowed.
       * 
* * string doc_string = 3; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this value. Markdown is allowed.
       * 
* * string doc_string = 3; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.ValueInfoProto) } // @@protoc_insertion_point(class_scope:onnx.ValueInfoProto) private static final onnx.OnnxMl.ValueInfoProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.ValueInfoProto(); } public static onnx.OnnxMl.ValueInfoProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public ValueInfoProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new ValueInfoProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.ValueInfoProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.NodeProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * namespace Value
     * 
* * repeated string input = 1; */ java.util.List getInputList(); /** *
     * namespace Value
     * 
* * repeated string input = 1; */ int getInputCount(); /** *
     * namespace Value
     * 
* * repeated string input = 1; */ java.lang.String getInput(int index); /** *
     * namespace Value
     * 
* * repeated string input = 1; */ org.nd4j.shade.protobuf.ByteString getInputBytes(int index); /** *
     * namespace Value
     * 
* * repeated string output = 2; */ java.util.List getOutputList(); /** *
     * namespace Value
     * 
* * repeated string output = 2; */ int getOutputCount(); /** *
     * namespace Value
     * 
* * repeated string output = 2; */ java.lang.String getOutput(int index); /** *
     * namespace Value
     * 
* * repeated string output = 2; */ org.nd4j.shade.protobuf.ByteString getOutputBytes(int index); /** *
     * An optional identifier for this node in a graph.
     * This field MAY be absent in ths version of the IR.
     * 
* * string name = 3; */ java.lang.String getName(); /** *
     * An optional identifier for this node in a graph.
     * This field MAY be absent in ths version of the IR.
     * 
* * string name = 3; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * The symbolic identifier of the Operator to execute.
     * 
* * string op_type = 4; */ java.lang.String getOpType(); /** *
     * The symbolic identifier of the Operator to execute.
     * 
* * string op_type = 4; */ org.nd4j.shade.protobuf.ByteString getOpTypeBytes(); /** *
     * The domain of the OperatorSet that specifies the operator named by op_type.
     * 
* * string domain = 7; */ java.lang.String getDomain(); /** *
     * The domain of the OperatorSet that specifies the operator named by op_type.
     * 
* * string domain = 7; */ org.nd4j.shade.protobuf.ByteString getDomainBytes(); /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ java.util.List getAttributeList(); /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ onnx.OnnxMl.AttributeProto getAttribute(int index); /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ int getAttributeCount(); /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ java.util.List getAttributeOrBuilderList(); /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ onnx.OnnxMl.AttributeProtoOrBuilder getAttributeOrBuilder( int index); /** *
     * A human-readable documentation for this node. Markdown is allowed.
     * 
* * string doc_string = 6; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this node. Markdown is allowed.
     * 
* * string doc_string = 6; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); } /** *
   * NodeProto stores a node that is similar to the notion of "layer"
   * or "operator" in many deep learning frameworks. For example, it can be a
   * node of type "Conv" that takes in an image, a filter tensor and a bias
   * tensor, and produces the convolved output.
   * 
* * Protobuf type {@code onnx.NodeProto} */ public static final class NodeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.NodeProto) NodeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use NodeProto.newBuilder() to construct. private NodeProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeProto() { input_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; output_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; name_ = ""; opType_ = ""; domain_ = ""; attribute_ = java.util.Collections.emptyList(); docString_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { input_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } input_.add(s); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { output_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } output_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); opType_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { attribute_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } attribute_.add( input.readMessage(onnx.OnnxMl.AttributeProto.parser(), extensionRegistry)); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); domain_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { input_ = input_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { output_ = output_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_NodeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_NodeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.NodeProto.class, onnx.OnnxMl.NodeProto.Builder.class); } private int bitField0_; public static final int INPUT_FIELD_NUMBER = 1; private org.nd4j.shade.protobuf.LazyStringList input_; /** *
     * namespace Value
     * 
* * repeated string input = 1; */ public org.nd4j.shade.protobuf.ProtocolStringList getInputList() { return input_; } /** *
     * namespace Value
     * 
* * repeated string input = 1; */ public int getInputCount() { return input_.size(); } /** *
     * namespace Value
     * 
* * repeated string input = 1; */ public java.lang.String getInput(int index) { return input_.get(index); } /** *
     * namespace Value
     * 
* * repeated string input = 1; */ public org.nd4j.shade.protobuf.ByteString getInputBytes(int index) { return input_.getByteString(index); } public static final int OUTPUT_FIELD_NUMBER = 2; private org.nd4j.shade.protobuf.LazyStringList output_; /** *
     * namespace Value
     * 
* * repeated string output = 2; */ public org.nd4j.shade.protobuf.ProtocolStringList getOutputList() { return output_; } /** *
     * namespace Value
     * 
* * repeated string output = 2; */ public int getOutputCount() { return output_.size(); } /** *
     * namespace Value
     * 
* * repeated string output = 2; */ public java.lang.String getOutput(int index) { return output_.get(index); } /** *
     * namespace Value
     * 
* * repeated string output = 2; */ public org.nd4j.shade.protobuf.ByteString getOutputBytes(int index) { return output_.getByteString(index); } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * An optional identifier for this node in a graph.
     * This field MAY be absent in ths version of the IR.
     * 
* * string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * An optional identifier for this node in a graph.
     * This field MAY be absent in ths version of the IR.
     * 
* * string name = 3; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int OP_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object opType_; /** *
     * The symbolic identifier of the Operator to execute.
     * 
* * string op_type = 4; */ public java.lang.String getOpType() { java.lang.Object ref = opType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); opType_ = s; return s; } } /** *
     * The symbolic identifier of the Operator to execute.
     * 
* * string op_type = 4; */ public org.nd4j.shade.protobuf.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); opType_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DOMAIN_FIELD_NUMBER = 7; private volatile java.lang.Object domain_; /** *
     * The domain of the OperatorSet that specifies the operator named by op_type.
     * 
* * string domain = 7; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** *
     * The domain of the OperatorSet that specifies the operator named by op_type.
     * 
* * string domain = 7; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 5; private java.util.List attribute_; /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ public java.util.List getAttributeList() { return attribute_; } /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ public int getAttributeCount() { return attribute_.size(); } /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProto getAttribute(int index) { return attribute_.get(index); } /** *
     * Additional named attributes.
     * NOTE: Simply using ValueProto.NameValuePairProto is the most general
     *       solution.  I kept AttributeProto to minimize churn on CI results.
     * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProtoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int DOC_STRING_FIELD_NUMBER = 6; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this node. Markdown is allowed.
     * 
* * string doc_string = 6; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this node. Markdown is allowed.
     * 
* * string doc_string = 6; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < input_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, input_.getRaw(i)); } for (int i = 0; i < output_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, output_.getRaw(i)); } if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!getOpTypeBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, opType_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(5, attribute_.get(i)); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, docString_); } if (!getDomainBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 7, domain_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < input_.size(); i++) { dataSize += computeStringSizeNoTag(input_.getRaw(i)); } size += dataSize; size += 1 * getInputList().size(); } { int dataSize = 0; for (int i = 0; i < output_.size(); i++) { dataSize += computeStringSizeNoTag(output_.getRaw(i)); } size += dataSize; size += 1 * getOutputList().size(); } if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!getOpTypeBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, opType_); } for (int i = 0; i < attribute_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, attribute_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, docString_); } if (!getDomainBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(7, domain_); } 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 onnx.OnnxMl.NodeProto)) { return super.equals(obj); } onnx.OnnxMl.NodeProto other = (onnx.OnnxMl.NodeProto) obj; boolean result = true; result = result && getInputList() .equals(other.getInputList()); result = result && getOutputList() .equals(other.getOutputList()); result = result && getName() .equals(other.getName()); result = result && getOpType() .equals(other.getOpType()); result = result && getDomain() .equals(other.getDomain()); result = result && getAttributeList() .equals(other.getAttributeList()); result = result && getDocString() .equals(other.getDocString()); 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 (getInputCount() > 0) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInputList().hashCode(); } if (getOutputCount() > 0) { hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getOutputList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OP_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOpType().hashCode(); hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.NodeProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.NodeProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.NodeProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.NodeProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.NodeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.NodeProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.NodeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.NodeProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.NodeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.NodeProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.NodeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.NodeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.NodeProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * NodeProto stores a node that is similar to the notion of "layer"
     * or "operator" in many deep learning frameworks. For example, it can be a
     * node of type "Conv" that takes in an image, a filter tensor and a bias
     * tensor, and produces the convolved output.
     * 
* * Protobuf type {@code onnx.NodeProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.NodeProto) onnx.OnnxMl.NodeProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_NodeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_NodeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.NodeProto.class, onnx.OnnxMl.NodeProto.Builder.class); } // Construct using onnx.OnnxMl.NodeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); } } public Builder clear() { super.clear(); input_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); output_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; opType_ = ""; domain_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { attributeBuilder_.clear(); } docString_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_NodeProto_descriptor; } public onnx.OnnxMl.NodeProto getDefaultInstanceForType() { return onnx.OnnxMl.NodeProto.getDefaultInstance(); } public onnx.OnnxMl.NodeProto build() { onnx.OnnxMl.NodeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.NodeProto buildPartial() { onnx.OnnxMl.NodeProto result = new onnx.OnnxMl.NodeProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { input_ = input_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.input_ = input_; if (((bitField0_ & 0x00000002) == 0x00000002)) { output_ = output_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.output_ = output_; result.name_ = name_; result.opType_ = opType_; result.domain_ = domain_; if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000020); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } result.docString_ = docString_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.NodeProto) { return mergeFrom((onnx.OnnxMl.NodeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.NodeProto other) { if (other == onnx.OnnxMl.NodeProto.getDefaultInstance()) return this; if (!other.input_.isEmpty()) { if (input_.isEmpty()) { input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputIsMutable(); input_.addAll(other.input_); } onChanged(); } if (!other.output_.isEmpty()) { if (output_.isEmpty()) { output_ = other.output_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOutputIsMutable(); output_.addAll(other.output_); } onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getOpType().isEmpty()) { opType_ = other.opType_; onChanged(); } if (!other.getDomain().isEmpty()) { domain_ = other.domain_; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000020); attributeBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.NodeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.NodeProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.nd4j.shade.protobuf.LazyStringList input_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureInputIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { input_ = new org.nd4j.shade.protobuf.LazyStringArrayList(input_); bitField0_ |= 0x00000001; } } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public org.nd4j.shade.protobuf.ProtocolStringList getInputList() { return input_.getUnmodifiableView(); } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public int getInputCount() { return input_.size(); } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public java.lang.String getInput(int index) { return input_.get(index); } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public org.nd4j.shade.protobuf.ByteString getInputBytes(int index) { return input_.getByteString(index); } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder setInput( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.set(index, value); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder addInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.add(value); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder addAllInput( java.lang.Iterable values) { ensureInputIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, input_); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder clearInput() { input_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder addInputBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputIsMutable(); input_.add(value); onChanged(); return this; } private org.nd4j.shade.protobuf.LazyStringList output_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureOutputIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { output_ = new org.nd4j.shade.protobuf.LazyStringArrayList(output_); bitField0_ |= 0x00000002; } } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public org.nd4j.shade.protobuf.ProtocolStringList getOutputList() { return output_.getUnmodifiableView(); } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public int getOutputCount() { return output_.size(); } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public java.lang.String getOutput(int index) { return output_.get(index); } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public org.nd4j.shade.protobuf.ByteString getOutputBytes(int index) { return output_.getByteString(index); } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder setOutput( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOutputIsMutable(); output_.set(index, value); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder addOutput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOutputIsMutable(); output_.add(value); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder addAllOutput( java.lang.Iterable values) { ensureOutputIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, output_); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder clearOutput() { output_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder addOutputBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOutputIsMutable(); output_.add(value); onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * An optional identifier for this node in a graph.
       * This field MAY be absent in ths version of the IR.
       * 
* * string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An optional identifier for this node in a graph.
       * This field MAY be absent in ths version of the IR.
       * 
* * string name = 3; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * An optional identifier for this node in a graph.
       * This field MAY be absent in ths version of the IR.
       * 
* * string name = 3; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * An optional identifier for this node in a graph.
       * This field MAY be absent in ths version of the IR.
       * 
* * string name = 3; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * An optional identifier for this node in a graph.
       * This field MAY be absent in ths version of the IR.
       * 
* * string name = 3; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object opType_ = ""; /** *
       * The symbolic identifier of the Operator to execute.
       * 
* * string op_type = 4; */ public java.lang.String getOpType() { java.lang.Object ref = opType_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); opType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The symbolic identifier of the Operator to execute.
       * 
* * string op_type = 4; */ public org.nd4j.shade.protobuf.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); opType_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The symbolic identifier of the Operator to execute.
       * 
* * string op_type = 4; */ public Builder setOpType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } opType_ = value; onChanged(); return this; } /** *
       * The symbolic identifier of the Operator to execute.
       * 
* * string op_type = 4; */ public Builder clearOpType() { opType_ = getDefaultInstance().getOpType(); onChanged(); return this; } /** *
       * The symbolic identifier of the Operator to execute.
       * 
* * string op_type = 4; */ public Builder setOpTypeBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); opType_ = value; onChanged(); return this; } private java.lang.Object domain_ = ""; /** *
       * The domain of the OperatorSet that specifies the operator named by op_type.
       * 
* * string domain = 7; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The domain of the OperatorSet that specifies the operator named by op_type.
       * 
* * string domain = 7; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The domain of the OperatorSet that specifies the operator named by op_type.
       * 
* * string domain = 7; */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); return this; } /** *
       * The domain of the OperatorSet that specifies the operator named by op_type.
       * 
* * string domain = 7; */ public Builder clearDomain() { domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** *
       * The domain of the OperatorSet that specifies the operator named by op_type.
       * 
* * string domain = 7; */ public Builder setDomainBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000020; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.AttributeProto, onnx.OnnxMl.AttributeProto.Builder, onnx.OnnxMl.AttributeProtoOrBuilder> attributeBuilder_; /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProto getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder setAttribute( int index, onnx.OnnxMl.AttributeProto value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder setAttribute( int index, onnx.OnnxMl.AttributeProto.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder addAttribute(onnx.OnnxMl.AttributeProto value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder addAttribute( int index, onnx.OnnxMl.AttributeProto value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder addAttribute( onnx.OnnxMl.AttributeProto.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder addAttribute( int index, onnx.OnnxMl.AttributeProto.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProto.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProtoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProto.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( onnx.OnnxMl.AttributeProto.getDefaultInstance()); } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public onnx.OnnxMl.AttributeProto.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, onnx.OnnxMl.AttributeProto.getDefaultInstance()); } /** *
       * Additional named attributes.
       * NOTE: Simply using ValueProto.NameValuePairProto is the most general
       *       solution.  I kept AttributeProto to minimize churn on CI results.
       * 
* * repeated .onnx.AttributeProto attribute = 5; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.AttributeProto, onnx.OnnxMl.AttributeProto.Builder, onnx.OnnxMl.AttributeProtoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.AttributeProto, onnx.OnnxMl.AttributeProto.Builder, onnx.OnnxMl.AttributeProtoOrBuilder>( attribute_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this node. Markdown is allowed.
       * 
* * string doc_string = 6; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this node. Markdown is allowed.
       * 
* * string doc_string = 6; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this node. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this node. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this node. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.NodeProto) } // @@protoc_insertion_point(class_scope:onnx.NodeProto) private static final onnx.OnnxMl.NodeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.NodeProto(); } public static onnx.OnnxMl.NodeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public NodeProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new NodeProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.NodeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModelProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.ModelProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The version of the IR this model targets. See Version enum above.
     * This field MUST be present.
     * 
* * int64 ir_version = 1; */ long getIrVersion(); /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ java.util.List getOpsetImportList(); /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ onnx.OnnxMl.OperatorSetIdProto getOpsetImport(int index); /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ int getOpsetImportCount(); /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ java.util.List getOpsetImportOrBuilderList(); /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ onnx.OnnxMl.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder( int index); /** *
     * The name of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_name = 2; */ java.lang.String getProducerName(); /** *
     * The name of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_name = 2; */ org.nd4j.shade.protobuf.ByteString getProducerNameBytes(); /** *
     * The version of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_version = 3; */ java.lang.String getProducerVersion(); /** *
     * The version of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_version = 3; */ org.nd4j.shade.protobuf.ByteString getProducerVersionBytes(); /** *
     * Domain name of the model.
     * We use reverse domain names as name space indicators. For example:
     * `com.facebook.fair` or `com.microsoft.cognitiveservices`
     * Together with `model_version` and GraphProto.name, this forms the unique identity of
     * the graph.
     * 
* * string domain = 4; */ java.lang.String getDomain(); /** *
     * Domain name of the model.
     * We use reverse domain names as name space indicators. For example:
     * `com.facebook.fair` or `com.microsoft.cognitiveservices`
     * Together with `model_version` and GraphProto.name, this forms the unique identity of
     * the graph.
     * 
* * string domain = 4; */ org.nd4j.shade.protobuf.ByteString getDomainBytes(); /** *
     * The version of the graph encoded. See Version enum below.
     * 
* * int64 model_version = 5; */ long getModelVersion(); /** *
     * A human-readable documentation for this model. Markdown is allowed.
     * 
* * string doc_string = 6; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this model. Markdown is allowed.
     * 
* * string doc_string = 6; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ boolean hasGraph(); /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ onnx.OnnxMl.GraphProto getGraph(); /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ onnx.OnnxMl.GraphProtoOrBuilder getGraphOrBuilder(); /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ java.util.List getMetadataPropsList(); /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ onnx.OnnxMl.StringStringEntryProto getMetadataProps(int index); /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ int getMetadataPropsCount(); /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ java.util.List getMetadataPropsOrBuilderList(); /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ onnx.OnnxMl.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder( int index); } /** *
   * ModelProto is a top-level file/container format for bundling a ML model.
   * The semantics of the model are described by the GraphProto that represents
   * a parameterized computation graph against a set of named operators that are
   * defined independently from the graph.
   * 
* * Protobuf type {@code onnx.ModelProto} */ public static final class ModelProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.ModelProto) ModelProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ModelProto.newBuilder() to construct. private ModelProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ModelProto() { irVersion_ = 0L; opsetImport_ = java.util.Collections.emptyList(); producerName_ = ""; producerVersion_ = ""; domain_ = ""; modelVersion_ = 0L; docString_ = ""; metadataProps_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModelProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { irVersion_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); producerName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); producerVersion_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); domain_ = s; break; } case 40: { modelVersion_ = input.readInt64(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } case 58: { onnx.OnnxMl.GraphProto.Builder subBuilder = null; if (graph_ != null) { subBuilder = graph_.toBuilder(); } graph_ = input.readMessage(onnx.OnnxMl.GraphProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(graph_); graph_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { opsetImport_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } opsetImport_.add( input.readMessage(onnx.OnnxMl.OperatorSetIdProto.parser(), extensionRegistry)); break; } case 114: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { metadataProps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } metadataProps_.add( input.readMessage(onnx.OnnxMl.StringStringEntryProto.parser(), extensionRegistry)); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { opsetImport_ = java.util.Collections.unmodifiableList(opsetImport_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { metadataProps_ = java.util.Collections.unmodifiableList(metadataProps_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_ModelProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_ModelProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.ModelProto.class, onnx.OnnxMl.ModelProto.Builder.class); } private int bitField0_; public static final int IR_VERSION_FIELD_NUMBER = 1; private long irVersion_; /** *
     * The version of the IR this model targets. See Version enum above.
     * This field MUST be present.
     * 
* * int64 ir_version = 1; */ public long getIrVersion() { return irVersion_; } public static final int OPSET_IMPORT_FIELD_NUMBER = 8; private java.util.List opsetImport_; /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public java.util.List getOpsetImportList() { return opsetImport_; } /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public java.util.List getOpsetImportOrBuilderList() { return opsetImport_; } /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public int getOpsetImportCount() { return opsetImport_.size(); } /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProto getOpsetImport(int index) { return opsetImport_.get(index); } /** *
     * The OperatorSets this model relies on.
     * All ModelProtos MUST have at least one entry that
     * specifies which version of the ONNX OperatorSet is
     * being imported.
     * All nodes in the ModelProto's graph will bind against the operator
     * with the same-domain/same-op_type operator with the HIGHEST version
     * in the referenced operator sets.
     * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder( int index) { return opsetImport_.get(index); } public static final int PRODUCER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object producerName_; /** *
     * The name of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_name = 2; */ public java.lang.String getProducerName() { java.lang.Object ref = producerName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerName_ = s; return s; } } /** *
     * The name of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_name = 2; */ public org.nd4j.shade.protobuf.ByteString getProducerNameBytes() { java.lang.Object ref = producerName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int PRODUCER_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object producerVersion_; /** *
     * The version of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_version = 3; */ public java.lang.String getProducerVersion() { java.lang.Object ref = producerVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerVersion_ = s; return s; } } /** *
     * The version of the framework or tool used to generate this model.
     * This field SHOULD be present to indicate which implementation/tool/framework
     * emitted the model.
     * 
* * string producer_version = 3; */ public org.nd4j.shade.protobuf.ByteString getProducerVersionBytes() { java.lang.Object ref = producerVersion_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerVersion_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DOMAIN_FIELD_NUMBER = 4; private volatile java.lang.Object domain_; /** *
     * Domain name of the model.
     * We use reverse domain names as name space indicators. For example:
     * `com.facebook.fair` or `com.microsoft.cognitiveservices`
     * Together with `model_version` and GraphProto.name, this forms the unique identity of
     * the graph.
     * 
* * string domain = 4; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** *
     * Domain name of the model.
     * We use reverse domain names as name space indicators. For example:
     * `com.facebook.fair` or `com.microsoft.cognitiveservices`
     * Together with `model_version` and GraphProto.name, this forms the unique identity of
     * the graph.
     * 
* * string domain = 4; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int MODEL_VERSION_FIELD_NUMBER = 5; private long modelVersion_; /** *
     * The version of the graph encoded. See Version enum below.
     * 
* * int64 model_version = 5; */ public long getModelVersion() { return modelVersion_; } public static final int DOC_STRING_FIELD_NUMBER = 6; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this model. Markdown is allowed.
     * 
* * string doc_string = 6; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this model. Markdown is allowed.
     * 
* * string doc_string = 6; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int GRAPH_FIELD_NUMBER = 7; private onnx.OnnxMl.GraphProto graph_; /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ public boolean hasGraph() { return graph_ != null; } /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMl.GraphProto getGraph() { return graph_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : graph_; } /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMl.GraphProtoOrBuilder getGraphOrBuilder() { return getGraph(); } public static final int METADATA_PROPS_FIELD_NUMBER = 14; private java.util.List metadataProps_; /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsList() { return metadataProps_; } /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsOrBuilderList() { return metadataProps_; } /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public int getMetadataPropsCount() { return metadataProps_.size(); } /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProto getMetadataProps(int index) { return metadataProps_.get(index); } /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder( int index) { return metadataProps_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (irVersion_ != 0L) { output.writeInt64(1, irVersion_); } if (!getProducerNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, producerName_); } if (!getProducerVersionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, producerVersion_); } if (!getDomainBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, domain_); } if (modelVersion_ != 0L) { output.writeInt64(5, modelVersion_); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, docString_); } if (graph_ != null) { output.writeMessage(7, getGraph()); } for (int i = 0; i < opsetImport_.size(); i++) { output.writeMessage(8, opsetImport_.get(i)); } for (int i = 0; i < metadataProps_.size(); i++) { output.writeMessage(14, metadataProps_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (irVersion_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(1, irVersion_); } if (!getProducerNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, producerName_); } if (!getProducerVersionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, producerVersion_); } if (!getDomainBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, domain_); } if (modelVersion_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(5, modelVersion_); } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, docString_); } if (graph_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(7, getGraph()); } for (int i = 0; i < opsetImport_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(8, opsetImport_.get(i)); } for (int i = 0; i < metadataProps_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(14, metadataProps_.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 onnx.OnnxMl.ModelProto)) { return super.equals(obj); } onnx.OnnxMl.ModelProto other = (onnx.OnnxMl.ModelProto) obj; boolean result = true; result = result && (getIrVersion() == other.getIrVersion()); result = result && getOpsetImportList() .equals(other.getOpsetImportList()); result = result && getProducerName() .equals(other.getProducerName()); result = result && getProducerVersion() .equals(other.getProducerVersion()); result = result && getDomain() .equals(other.getDomain()); result = result && (getModelVersion() == other.getModelVersion()); result = result && getDocString() .equals(other.getDocString()); result = result && (hasGraph() == other.hasGraph()); if (hasGraph()) { result = result && getGraph() .equals(other.getGraph()); } result = result && getMetadataPropsList() .equals(other.getMetadataPropsList()); 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) + IR_VERSION_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getIrVersion()); if (getOpsetImportCount() > 0) { hash = (37 * hash) + OPSET_IMPORT_FIELD_NUMBER; hash = (53 * hash) + getOpsetImportList().hashCode(); } hash = (37 * hash) + PRODUCER_NAME_FIELD_NUMBER; hash = (53 * hash) + getProducerName().hashCode(); hash = (37 * hash) + PRODUCER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getProducerVersion().hashCode(); hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getModelVersion()); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (hasGraph()) { hash = (37 * hash) + GRAPH_FIELD_NUMBER; hash = (53 * hash) + getGraph().hashCode(); } if (getMetadataPropsCount() > 0) { hash = (37 * hash) + METADATA_PROPS_FIELD_NUMBER; hash = (53 * hash) + getMetadataPropsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.ModelProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ModelProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ModelProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ModelProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ModelProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.ModelProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.ModelProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.ModelProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.ModelProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.ModelProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.ModelProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.ModelProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.ModelProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ModelProto is a top-level file/container format for bundling a ML model.
     * The semantics of the model are described by the GraphProto that represents
     * a parameterized computation graph against a set of named operators that are
     * defined independently from the graph.
     * 
* * Protobuf type {@code onnx.ModelProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.ModelProto) onnx.OnnxMl.ModelProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_ModelProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_ModelProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.ModelProto.class, onnx.OnnxMl.ModelProto.Builder.class); } // Construct using onnx.OnnxMl.ModelProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOpsetImportFieldBuilder(); getMetadataPropsFieldBuilder(); } } public Builder clear() { super.clear(); irVersion_ = 0L; if (opsetImportBuilder_ == null) { opsetImport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { opsetImportBuilder_.clear(); } producerName_ = ""; producerVersion_ = ""; domain_ = ""; modelVersion_ = 0L; docString_ = ""; if (graphBuilder_ == null) { graph_ = null; } else { graph_ = null; graphBuilder_ = null; } if (metadataPropsBuilder_ == null) { metadataProps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { metadataPropsBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_ModelProto_descriptor; } public onnx.OnnxMl.ModelProto getDefaultInstanceForType() { return onnx.OnnxMl.ModelProto.getDefaultInstance(); } public onnx.OnnxMl.ModelProto build() { onnx.OnnxMl.ModelProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.ModelProto buildPartial() { onnx.OnnxMl.ModelProto result = new onnx.OnnxMl.ModelProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.irVersion_ = irVersion_; if (opsetImportBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { opsetImport_ = java.util.Collections.unmodifiableList(opsetImport_); bitField0_ = (bitField0_ & ~0x00000002); } result.opsetImport_ = opsetImport_; } else { result.opsetImport_ = opsetImportBuilder_.build(); } result.producerName_ = producerName_; result.producerVersion_ = producerVersion_; result.domain_ = domain_; result.modelVersion_ = modelVersion_; result.docString_ = docString_; if (graphBuilder_ == null) { result.graph_ = graph_; } else { result.graph_ = graphBuilder_.build(); } if (metadataPropsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { metadataProps_ = java.util.Collections.unmodifiableList(metadataProps_); bitField0_ = (bitField0_ & ~0x00000100); } result.metadataProps_ = metadataProps_; } else { result.metadataProps_ = metadataPropsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.ModelProto) { return mergeFrom((onnx.OnnxMl.ModelProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.ModelProto other) { if (other == onnx.OnnxMl.ModelProto.getDefaultInstance()) return this; if (other.getIrVersion() != 0L) { setIrVersion(other.getIrVersion()); } if (opsetImportBuilder_ == null) { if (!other.opsetImport_.isEmpty()) { if (opsetImport_.isEmpty()) { opsetImport_ = other.opsetImport_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOpsetImportIsMutable(); opsetImport_.addAll(other.opsetImport_); } onChanged(); } } else { if (!other.opsetImport_.isEmpty()) { if (opsetImportBuilder_.isEmpty()) { opsetImportBuilder_.dispose(); opsetImportBuilder_ = null; opsetImport_ = other.opsetImport_; bitField0_ = (bitField0_ & ~0x00000002); opsetImportBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpsetImportFieldBuilder() : null; } else { opsetImportBuilder_.addAllMessages(other.opsetImport_); } } } if (!other.getProducerName().isEmpty()) { producerName_ = other.producerName_; onChanged(); } if (!other.getProducerVersion().isEmpty()) { producerVersion_ = other.producerVersion_; onChanged(); } if (!other.getDomain().isEmpty()) { domain_ = other.domain_; onChanged(); } if (other.getModelVersion() != 0L) { setModelVersion(other.getModelVersion()); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } if (other.hasGraph()) { mergeGraph(other.getGraph()); } if (metadataPropsBuilder_ == null) { if (!other.metadataProps_.isEmpty()) { if (metadataProps_.isEmpty()) { metadataProps_ = other.metadataProps_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureMetadataPropsIsMutable(); metadataProps_.addAll(other.metadataProps_); } onChanged(); } } else { if (!other.metadataProps_.isEmpty()) { if (metadataPropsBuilder_.isEmpty()) { metadataPropsBuilder_.dispose(); metadataPropsBuilder_ = null; metadataProps_ = other.metadataProps_; bitField0_ = (bitField0_ & ~0x00000100); metadataPropsBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetadataPropsFieldBuilder() : null; } else { metadataPropsBuilder_.addAllMessages(other.metadataProps_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.ModelProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.ModelProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long irVersion_ ; /** *
       * The version of the IR this model targets. See Version enum above.
       * This field MUST be present.
       * 
* * int64 ir_version = 1; */ public long getIrVersion() { return irVersion_; } /** *
       * The version of the IR this model targets. See Version enum above.
       * This field MUST be present.
       * 
* * int64 ir_version = 1; */ public Builder setIrVersion(long value) { irVersion_ = value; onChanged(); return this; } /** *
       * The version of the IR this model targets. See Version enum above.
       * This field MUST be present.
       * 
* * int64 ir_version = 1; */ public Builder clearIrVersion() { irVersion_ = 0L; onChanged(); return this; } private java.util.List opsetImport_ = java.util.Collections.emptyList(); private void ensureOpsetImportIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { opsetImport_ = new java.util.ArrayList(opsetImport_); bitField0_ |= 0x00000002; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.OperatorSetIdProto, onnx.OnnxMl.OperatorSetIdProto.Builder, onnx.OnnxMl.OperatorSetIdProtoOrBuilder> opsetImportBuilder_; /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public java.util.List getOpsetImportList() { if (opsetImportBuilder_ == null) { return java.util.Collections.unmodifiableList(opsetImport_); } else { return opsetImportBuilder_.getMessageList(); } } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public int getOpsetImportCount() { if (opsetImportBuilder_ == null) { return opsetImport_.size(); } else { return opsetImportBuilder_.getCount(); } } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProto getOpsetImport(int index) { if (opsetImportBuilder_ == null) { return opsetImport_.get(index); } else { return opsetImportBuilder_.getMessage(index); } } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder setOpsetImport( int index, onnx.OnnxMl.OperatorSetIdProto value) { if (opsetImportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsetImportIsMutable(); opsetImport_.set(index, value); onChanged(); } else { opsetImportBuilder_.setMessage(index, value); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder setOpsetImport( int index, onnx.OnnxMl.OperatorSetIdProto.Builder builderForValue) { if (opsetImportBuilder_ == null) { ensureOpsetImportIsMutable(); opsetImport_.set(index, builderForValue.build()); onChanged(); } else { opsetImportBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder addOpsetImport(onnx.OnnxMl.OperatorSetIdProto value) { if (opsetImportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsetImportIsMutable(); opsetImport_.add(value); onChanged(); } else { opsetImportBuilder_.addMessage(value); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder addOpsetImport( int index, onnx.OnnxMl.OperatorSetIdProto value) { if (opsetImportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsetImportIsMutable(); opsetImport_.add(index, value); onChanged(); } else { opsetImportBuilder_.addMessage(index, value); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder addOpsetImport( onnx.OnnxMl.OperatorSetIdProto.Builder builderForValue) { if (opsetImportBuilder_ == null) { ensureOpsetImportIsMutable(); opsetImport_.add(builderForValue.build()); onChanged(); } else { opsetImportBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder addOpsetImport( int index, onnx.OnnxMl.OperatorSetIdProto.Builder builderForValue) { if (opsetImportBuilder_ == null) { ensureOpsetImportIsMutable(); opsetImport_.add(index, builderForValue.build()); onChanged(); } else { opsetImportBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder addAllOpsetImport( java.lang.Iterable values) { if (opsetImportBuilder_ == null) { ensureOpsetImportIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, opsetImport_); onChanged(); } else { opsetImportBuilder_.addAllMessages(values); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder clearOpsetImport() { if (opsetImportBuilder_ == null) { opsetImport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { opsetImportBuilder_.clear(); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public Builder removeOpsetImport(int index) { if (opsetImportBuilder_ == null) { ensureOpsetImportIsMutable(); opsetImport_.remove(index); onChanged(); } else { opsetImportBuilder_.remove(index); } return this; } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProto.Builder getOpsetImportBuilder( int index) { return getOpsetImportFieldBuilder().getBuilder(index); } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder( int index) { if (opsetImportBuilder_ == null) { return opsetImport_.get(index); } else { return opsetImportBuilder_.getMessageOrBuilder(index); } } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public java.util.List getOpsetImportOrBuilderList() { if (opsetImportBuilder_ != null) { return opsetImportBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(opsetImport_); } } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProto.Builder addOpsetImportBuilder() { return getOpsetImportFieldBuilder().addBuilder( onnx.OnnxMl.OperatorSetIdProto.getDefaultInstance()); } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public onnx.OnnxMl.OperatorSetIdProto.Builder addOpsetImportBuilder( int index) { return getOpsetImportFieldBuilder().addBuilder( index, onnx.OnnxMl.OperatorSetIdProto.getDefaultInstance()); } /** *
       * The OperatorSets this model relies on.
       * All ModelProtos MUST have at least one entry that
       * specifies which version of the ONNX OperatorSet is
       * being imported.
       * All nodes in the ModelProto's graph will bind against the operator
       * with the same-domain/same-op_type operator with the HIGHEST version
       * in the referenced operator sets.
       * 
* * repeated .onnx.OperatorSetIdProto opset_import = 8; */ public java.util.List getOpsetImportBuilderList() { return getOpsetImportFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.OperatorSetIdProto, onnx.OnnxMl.OperatorSetIdProto.Builder, onnx.OnnxMl.OperatorSetIdProtoOrBuilder> getOpsetImportFieldBuilder() { if (opsetImportBuilder_ == null) { opsetImportBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.OperatorSetIdProto, onnx.OnnxMl.OperatorSetIdProto.Builder, onnx.OnnxMl.OperatorSetIdProtoOrBuilder>( opsetImport_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); opsetImport_ = null; } return opsetImportBuilder_; } private java.lang.Object producerName_ = ""; /** *
       * The name of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_name = 2; */ public java.lang.String getProducerName() { java.lang.Object ref = producerName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_name = 2; */ public org.nd4j.shade.protobuf.ByteString getProducerNameBytes() { java.lang.Object ref = producerName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The name of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_name = 2; */ public Builder setProducerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } producerName_ = value; onChanged(); return this; } /** *
       * The name of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_name = 2; */ public Builder clearProducerName() { producerName_ = getDefaultInstance().getProducerName(); onChanged(); return this; } /** *
       * The name of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_name = 2; */ public Builder setProducerNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producerName_ = value; onChanged(); return this; } private java.lang.Object producerVersion_ = ""; /** *
       * The version of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_version = 3; */ public java.lang.String getProducerVersion() { java.lang.Object ref = producerVersion_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The version of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_version = 3; */ public org.nd4j.shade.protobuf.ByteString getProducerVersionBytes() { java.lang.Object ref = producerVersion_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerVersion_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The version of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_version = 3; */ public Builder setProducerVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } producerVersion_ = value; onChanged(); return this; } /** *
       * The version of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_version = 3; */ public Builder clearProducerVersion() { producerVersion_ = getDefaultInstance().getProducerVersion(); onChanged(); return this; } /** *
       * The version of the framework or tool used to generate this model.
       * This field SHOULD be present to indicate which implementation/tool/framework
       * emitted the model.
       * 
* * string producer_version = 3; */ public Builder setProducerVersionBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producerVersion_ = value; onChanged(); return this; } private java.lang.Object domain_ = ""; /** *
       * Domain name of the model.
       * We use reverse domain names as name space indicators. For example:
       * `com.facebook.fair` or `com.microsoft.cognitiveservices`
       * Together with `model_version` and GraphProto.name, this forms the unique identity of
       * the graph.
       * 
* * string domain = 4; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Domain name of the model.
       * We use reverse domain names as name space indicators. For example:
       * `com.facebook.fair` or `com.microsoft.cognitiveservices`
       * Together with `model_version` and GraphProto.name, this forms the unique identity of
       * the graph.
       * 
* * string domain = 4; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Domain name of the model.
       * We use reverse domain names as name space indicators. For example:
       * `com.facebook.fair` or `com.microsoft.cognitiveservices`
       * Together with `model_version` and GraphProto.name, this forms the unique identity of
       * the graph.
       * 
* * string domain = 4; */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); return this; } /** *
       * Domain name of the model.
       * We use reverse domain names as name space indicators. For example:
       * `com.facebook.fair` or `com.microsoft.cognitiveservices`
       * Together with `model_version` and GraphProto.name, this forms the unique identity of
       * the graph.
       * 
* * string domain = 4; */ public Builder clearDomain() { domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** *
       * Domain name of the model.
       * We use reverse domain names as name space indicators. For example:
       * `com.facebook.fair` or `com.microsoft.cognitiveservices`
       * Together with `model_version` and GraphProto.name, this forms the unique identity of
       * the graph.
       * 
* * string domain = 4; */ public Builder setDomainBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; onChanged(); return this; } private long modelVersion_ ; /** *
       * The version of the graph encoded. See Version enum below.
       * 
* * int64 model_version = 5; */ public long getModelVersion() { return modelVersion_; } /** *
       * The version of the graph encoded. See Version enum below.
       * 
* * int64 model_version = 5; */ public Builder setModelVersion(long value) { modelVersion_ = value; onChanged(); return this; } /** *
       * The version of the graph encoded. See Version enum below.
       * 
* * int64 model_version = 5; */ public Builder clearModelVersion() { modelVersion_ = 0L; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this model. Markdown is allowed.
       * 
* * string doc_string = 6; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this model. Markdown is allowed.
       * 
* * string doc_string = 6; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this model. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this model. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this model. Markdown is allowed.
       * 
* * string doc_string = 6; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private onnx.OnnxMl.GraphProto graph_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> graphBuilder_; /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public boolean hasGraph() { return graphBuilder_ != null || graph_ != null; } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMl.GraphProto getGraph() { if (graphBuilder_ == null) { return graph_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : graph_; } else { return graphBuilder_.getMessage(); } } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public Builder setGraph(onnx.OnnxMl.GraphProto value) { if (graphBuilder_ == null) { if (value == null) { throw new NullPointerException(); } graph_ = value; onChanged(); } else { graphBuilder_.setMessage(value); } return this; } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public Builder setGraph( onnx.OnnxMl.GraphProto.Builder builderForValue) { if (graphBuilder_ == null) { graph_ = builderForValue.build(); onChanged(); } else { graphBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public Builder mergeGraph(onnx.OnnxMl.GraphProto value) { if (graphBuilder_ == null) { if (graph_ != null) { graph_ = onnx.OnnxMl.GraphProto.newBuilder(graph_).mergeFrom(value).buildPartial(); } else { graph_ = value; } onChanged(); } else { graphBuilder_.mergeFrom(value); } return this; } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public Builder clearGraph() { if (graphBuilder_ == null) { graph_ = null; onChanged(); } else { graph_ = null; graphBuilder_ = null; } return this; } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMl.GraphProto.Builder getGraphBuilder() { onChanged(); return getGraphFieldBuilder().getBuilder(); } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMl.GraphProtoOrBuilder getGraphOrBuilder() { if (graphBuilder_ != null) { return graphBuilder_.getMessageOrBuilder(); } else { return graph_ == null ? onnx.OnnxMl.GraphProto.getDefaultInstance() : graph_; } } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder> getGraphFieldBuilder() { if (graphBuilder_ == null) { graphBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.GraphProto, onnx.OnnxMl.GraphProto.Builder, onnx.OnnxMl.GraphProtoOrBuilder>( getGraph(), getParentForChildren(), isClean()); graph_ = null; } return graphBuilder_; } private java.util.List metadataProps_ = java.util.Collections.emptyList(); private void ensureMetadataPropsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { metadataProps_ = new java.util.ArrayList(metadataProps_); bitField0_ |= 0x00000100; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.StringStringEntryProto, onnx.OnnxMl.StringStringEntryProto.Builder, onnx.OnnxMl.StringStringEntryProtoOrBuilder> metadataPropsBuilder_; /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsList() { if (metadataPropsBuilder_ == null) { return java.util.Collections.unmodifiableList(metadataProps_); } else { return metadataPropsBuilder_.getMessageList(); } } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public int getMetadataPropsCount() { if (metadataPropsBuilder_ == null) { return metadataProps_.size(); } else { return metadataPropsBuilder_.getCount(); } } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProto getMetadataProps(int index) { if (metadataPropsBuilder_ == null) { return metadataProps_.get(index); } else { return metadataPropsBuilder_.getMessage(index); } } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder setMetadataProps( int index, onnx.OnnxMl.StringStringEntryProto value) { if (metadataPropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataPropsIsMutable(); metadataProps_.set(index, value); onChanged(); } else { metadataPropsBuilder_.setMessage(index, value); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder setMetadataProps( int index, onnx.OnnxMl.StringStringEntryProto.Builder builderForValue) { if (metadataPropsBuilder_ == null) { ensureMetadataPropsIsMutable(); metadataProps_.set(index, builderForValue.build()); onChanged(); } else { metadataPropsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder addMetadataProps(onnx.OnnxMl.StringStringEntryProto value) { if (metadataPropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataPropsIsMutable(); metadataProps_.add(value); onChanged(); } else { metadataPropsBuilder_.addMessage(value); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder addMetadataProps( int index, onnx.OnnxMl.StringStringEntryProto value) { if (metadataPropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataPropsIsMutable(); metadataProps_.add(index, value); onChanged(); } else { metadataPropsBuilder_.addMessage(index, value); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder addMetadataProps( onnx.OnnxMl.StringStringEntryProto.Builder builderForValue) { if (metadataPropsBuilder_ == null) { ensureMetadataPropsIsMutable(); metadataProps_.add(builderForValue.build()); onChanged(); } else { metadataPropsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder addMetadataProps( int index, onnx.OnnxMl.StringStringEntryProto.Builder builderForValue) { if (metadataPropsBuilder_ == null) { ensureMetadataPropsIsMutable(); metadataProps_.add(index, builderForValue.build()); onChanged(); } else { metadataPropsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder addAllMetadataProps( java.lang.Iterable values) { if (metadataPropsBuilder_ == null) { ensureMetadataPropsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, metadataProps_); onChanged(); } else { metadataPropsBuilder_.addAllMessages(values); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder clearMetadataProps() { if (metadataPropsBuilder_ == null) { metadataProps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { metadataPropsBuilder_.clear(); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public Builder removeMetadataProps(int index) { if (metadataPropsBuilder_ == null) { ensureMetadataPropsIsMutable(); metadataProps_.remove(index); onChanged(); } else { metadataPropsBuilder_.remove(index); } return this; } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProto.Builder getMetadataPropsBuilder( int index) { return getMetadataPropsFieldBuilder().getBuilder(index); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder( int index) { if (metadataPropsBuilder_ == null) { return metadataProps_.get(index); } else { return metadataPropsBuilder_.getMessageOrBuilder(index); } } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsOrBuilderList() { if (metadataPropsBuilder_ != null) { return metadataPropsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metadataProps_); } } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProto.Builder addMetadataPropsBuilder() { return getMetadataPropsFieldBuilder().addBuilder( onnx.OnnxMl.StringStringEntryProto.getDefaultInstance()); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMl.StringStringEntryProto.Builder addMetadataPropsBuilder( int index) { return getMetadataPropsFieldBuilder().addBuilder( index, onnx.OnnxMl.StringStringEntryProto.getDefaultInstance()); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsBuilderList() { return getMetadataPropsFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.StringStringEntryProto, onnx.OnnxMl.StringStringEntryProto.Builder, onnx.OnnxMl.StringStringEntryProtoOrBuilder> getMetadataPropsFieldBuilder() { if (metadataPropsBuilder_ == null) { metadataPropsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.StringStringEntryProto, onnx.OnnxMl.StringStringEntryProto.Builder, onnx.OnnxMl.StringStringEntryProtoOrBuilder>( metadataProps_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); metadataProps_ = null; } return metadataPropsBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.ModelProto) } // @@protoc_insertion_point(class_scope:onnx.ModelProto) private static final onnx.OnnxMl.ModelProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.ModelProto(); } public static onnx.OnnxMl.ModelProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public ModelProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new ModelProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.ModelProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StringStringEntryProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.StringStringEntryProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** * string key = 1; */ java.lang.String getKey(); /** * string key = 1; */ org.nd4j.shade.protobuf.ByteString getKeyBytes(); /** * string value = 2; */ java.lang.String getValue(); /** * string value = 2; */ org.nd4j.shade.protobuf.ByteString getValueBytes(); } /** *
   * StringStringEntryProto follows the pattern for cross-proto-version maps.
   * See https://developers.google.com/protocol-buffers/docs/proto3#maps
   * 
* * Protobuf type {@code onnx.StringStringEntryProto} */ public static final class StringStringEntryProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.StringStringEntryProto) StringStringEntryProtoOrBuilder { private static final long serialVersionUID = 0L; // Use StringStringEntryProto.newBuilder() to construct. private StringStringEntryProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StringStringEntryProto() { key_ = ""; value_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringStringEntryProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); value_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_StringStringEntryProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_StringStringEntryProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.StringStringEntryProto.class, onnx.OnnxMl.StringStringEntryProto.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * string key = 1; */ public org.nd4j.shade.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** * string value = 2; */ public org.nd4j.shade.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!getValueBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!getValueBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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 onnx.OnnxMl.StringStringEntryProto)) { return super.equals(obj); } onnx.OnnxMl.StringStringEntryProto other = (onnx.OnnxMl.StringStringEntryProto) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.StringStringEntryProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.StringStringEntryProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.StringStringEntryProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.StringStringEntryProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.StringStringEntryProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.StringStringEntryProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.StringStringEntryProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StringStringEntryProto follows the pattern for cross-proto-version maps.
     * See https://developers.google.com/protocol-buffers/docs/proto3#maps
     * 
* * Protobuf type {@code onnx.StringStringEntryProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.StringStringEntryProto) onnx.OnnxMl.StringStringEntryProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_StringStringEntryProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_StringStringEntryProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.StringStringEntryProto.class, onnx.OnnxMl.StringStringEntryProto.Builder.class); } // Construct using onnx.OnnxMl.StringStringEntryProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; value_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_StringStringEntryProto_descriptor; } public onnx.OnnxMl.StringStringEntryProto getDefaultInstanceForType() { return onnx.OnnxMl.StringStringEntryProto.getDefaultInstance(); } public onnx.OnnxMl.StringStringEntryProto build() { onnx.OnnxMl.StringStringEntryProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.StringStringEntryProto buildPartial() { onnx.OnnxMl.StringStringEntryProto result = new onnx.OnnxMl.StringStringEntryProto(this); result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.StringStringEntryProto) { return mergeFrom((onnx.OnnxMl.StringStringEntryProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.StringStringEntryProto other) { if (other == onnx.OnnxMl.StringStringEntryProto.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.StringStringEntryProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.StringStringEntryProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; */ public org.nd4j.shade.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; */ public Builder setKeyBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; */ public org.nd4j.shade.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * string value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * string value = 2; */ public Builder setValueBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.StringStringEntryProto) } // @@protoc_insertion_point(class_scope:onnx.StringStringEntryProto) private static final onnx.OnnxMl.StringStringEntryProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.StringStringEntryProto(); } public static onnx.OnnxMl.StringStringEntryProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public StringStringEntryProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new StringStringEntryProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.StringStringEntryProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GraphProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.GraphProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ java.util.List getNodeList(); /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ onnx.OnnxMl.NodeProto getNode(int index); /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ int getNodeCount(); /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ java.util.List getNodeOrBuilderList(); /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ onnx.OnnxMl.NodeProtoOrBuilder getNodeOrBuilder( int index); /** *
     * The name of the graph.
     * 
* * string name = 2; */ java.lang.String getName(); /** *
     * The name of the graph.
     * 
* * string name = 2; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ java.util.List getInitializerList(); /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ onnx.OnnxMl.TensorProto getInitializer(int index); /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ int getInitializerCount(); /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ java.util.List getInitializerOrBuilderList(); /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ onnx.OnnxMl.TensorProtoOrBuilder getInitializerOrBuilder( int index); /** *
     * A human-readable documentation for this graph. Markdown is allowed.
     * 
* * string doc_string = 10; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this graph. Markdown is allowed.
     * 
* * string doc_string = 10; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ java.util.List getInputList(); /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ onnx.OnnxMl.ValueInfoProto getInput(int index); /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ int getInputCount(); /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ java.util.List getInputOrBuilderList(); /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ onnx.OnnxMl.ValueInfoProtoOrBuilder getInputOrBuilder( int index); /** * repeated .onnx.ValueInfoProto output = 12; */ java.util.List getOutputList(); /** * repeated .onnx.ValueInfoProto output = 12; */ onnx.OnnxMl.ValueInfoProto getOutput(int index); /** * repeated .onnx.ValueInfoProto output = 12; */ int getOutputCount(); /** * repeated .onnx.ValueInfoProto output = 12; */ java.util.List getOutputOrBuilderList(); /** * repeated .onnx.ValueInfoProto output = 12; */ onnx.OnnxMl.ValueInfoProtoOrBuilder getOutputOrBuilder( int index); /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ java.util.List getValueInfoList(); /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ onnx.OnnxMl.ValueInfoProto getValueInfo(int index); /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ int getValueInfoCount(); /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ java.util.List getValueInfoOrBuilderList(); /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ onnx.OnnxMl.ValueInfoProtoOrBuilder getValueInfoOrBuilder( int index); } /** *
   * GraphProto defines a parameterized series of nodes to form a directed acyclic graph.
   * This is the equivalent of the "network" and "graph" in many deep learning
   * frameworks.
   * 
* * Protobuf type {@code onnx.GraphProto} */ public static final class GraphProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.GraphProto) GraphProtoOrBuilder { private static final long serialVersionUID = 0L; // Use GraphProto.newBuilder() to construct. private GraphProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GraphProto() { node_ = java.util.Collections.emptyList(); name_ = ""; initializer_ = java.util.Collections.emptyList(); docString_ = ""; input_ = java.util.Collections.emptyList(); output_ = java.util.Collections.emptyList(); valueInfo_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GraphProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { node_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } node_.add( input.readMessage(onnx.OnnxMl.NodeProto.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { initializer_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } initializer_.add( input.readMessage(onnx.OnnxMl.TensorProto.parser(), extensionRegistry)); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } case 90: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { input_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } input_.add( input.readMessage(onnx.OnnxMl.ValueInfoProto.parser(), extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { output_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } output_.add( input.readMessage(onnx.OnnxMl.ValueInfoProto.parser(), extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { valueInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } valueInfo_.add( input.readMessage(onnx.OnnxMl.ValueInfoProto.parser(), extensionRegistry)); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { node_ = java.util.Collections.unmodifiableList(node_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { initializer_ = java.util.Collections.unmodifiableList(initializer_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { input_ = java.util.Collections.unmodifiableList(input_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { output_ = java.util.Collections.unmodifiableList(output_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { valueInfo_ = java.util.Collections.unmodifiableList(valueInfo_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_GraphProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_GraphProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.GraphProto.class, onnx.OnnxMl.GraphProto.Builder.class); } private int bitField0_; public static final int NODE_FIELD_NUMBER = 1; private java.util.List node_; /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeList() { return node_; } /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeOrBuilderList() { return node_; } /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public int getNodeCount() { return node_.size(); } /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProto getNode(int index) { return node_.get(index); } /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProtoOrBuilder getNodeOrBuilder( int index) { return node_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * The name of the graph.
     * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The name of the graph.
     * 
* * string name = 2; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int INITIALIZER_FIELD_NUMBER = 5; private java.util.List initializer_; /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ public java.util.List getInitializerList() { return initializer_; } /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ public java.util.List getInitializerOrBuilderList() { return initializer_; } /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ public int getInitializerCount() { return initializer_.size(); } /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProto getInitializer(int index) { return initializer_.get(index); } /** *
     * A list of named tensor values (constants), used to specify default
     * values for some of the inputs of the graph.
     * Each TensorProto entry must have a distinct name (within the list) that
     * also appears in the input list.
     * In an evaluation, the default value specified here is used if and only if
     * user specifies no value for the corresponding input parameter.
     * May be used to pass serialized parameters for networks.
     * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProtoOrBuilder getInitializerOrBuilder( int index) { return initializer_.get(index); } public static final int DOC_STRING_FIELD_NUMBER = 10; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this graph. Markdown is allowed.
     * 
* * string doc_string = 10; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this graph. Markdown is allowed.
     * 
* * string doc_string = 10; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int INPUT_FIELD_NUMBER = 11; private java.util.List input_; /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputList() { return input_; } /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputOrBuilderList() { return input_; } /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public int getInputCount() { return input_.size(); } /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProto getInput(int index) { return input_.get(index); } /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getInputOrBuilder( int index) { return input_.get(index); } public static final int OUTPUT_FIELD_NUMBER = 12; private java.util.List output_; /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputList() { return output_; } /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputOrBuilderList() { return output_; } /** * repeated .onnx.ValueInfoProto output = 12; */ public int getOutputCount() { return output_.size(); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProto getOutput(int index) { return output_.get(index); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getOutputOrBuilder( int index) { return output_.get(index); } public static final int VALUE_INFO_FIELD_NUMBER = 13; private java.util.List valueInfo_; /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public java.util.List getValueInfoList() { return valueInfo_; } /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public java.util.List getValueInfoOrBuilderList() { return valueInfo_; } /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public int getValueInfoCount() { return valueInfo_.size(); } /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProto getValueInfo(int index) { return valueInfo_.get(index); } /** *
     * Information for the values in the graph. The ValueInfoProto.name's
     * must be distinct. It is optional for a value to appear in value_info list.
     * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getValueInfoOrBuilder( int index) { return valueInfo_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < initializer_.size(); i++) { output.writeMessage(5, initializer_.get(i)); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 10, docString_); } for (int i = 0; i < input_.size(); i++) { output.writeMessage(11, input_.get(i)); } for (int i = 0; i < output_.size(); i++) { output.writeMessage(12, output_.get(i)); } for (int i = 0; i < valueInfo_.size(); i++) { output.writeMessage(13, valueInfo_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < node_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, node_.get(i)); } if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } for (int i = 0; i < initializer_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, initializer_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(10, docString_); } for (int i = 0; i < input_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(11, input_.get(i)); } for (int i = 0; i < output_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(12, output_.get(i)); } for (int i = 0; i < valueInfo_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(13, valueInfo_.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 onnx.OnnxMl.GraphProto)) { return super.equals(obj); } onnx.OnnxMl.GraphProto other = (onnx.OnnxMl.GraphProto) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && getName() .equals(other.getName()); result = result && getInitializerList() .equals(other.getInitializerList()); result = result && getDocString() .equals(other.getDocString()); result = result && getInputList() .equals(other.getInputList()); result = result && getOutputList() .equals(other.getOutputList()); result = result && getValueInfoList() .equals(other.getValueInfoList()); 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 (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getInitializerCount() > 0) { hash = (37 * hash) + INITIALIZER_FIELD_NUMBER; hash = (53 * hash) + getInitializerList().hashCode(); } hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getInputCount() > 0) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInputList().hashCode(); } if (getOutputCount() > 0) { hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getOutputList().hashCode(); } if (getValueInfoCount() > 0) { hash = (37 * hash) + VALUE_INFO_FIELD_NUMBER; hash = (53 * hash) + getValueInfoList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.GraphProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.GraphProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.GraphProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.GraphProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.GraphProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.GraphProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.GraphProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.GraphProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.GraphProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.GraphProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.GraphProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.GraphProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.GraphProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * GraphProto defines a parameterized series of nodes to form a directed acyclic graph.
     * This is the equivalent of the "network" and "graph" in many deep learning
     * frameworks.
     * 
* * Protobuf type {@code onnx.GraphProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.GraphProto) onnx.OnnxMl.GraphProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_GraphProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_GraphProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.GraphProto.class, onnx.OnnxMl.GraphProto.Builder.class); } // Construct using onnx.OnnxMl.GraphProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNodeFieldBuilder(); getInitializerFieldBuilder(); getInputFieldBuilder(); getOutputFieldBuilder(); getValueInfoFieldBuilder(); } } public Builder clear() { super.clear(); if (nodeBuilder_ == null) { node_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nodeBuilder_.clear(); } name_ = ""; if (initializerBuilder_ == null) { initializer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { initializerBuilder_.clear(); } docString_ = ""; if (inputBuilder_ == null) { input_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { inputBuilder_.clear(); } if (outputBuilder_ == null) { output_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { outputBuilder_.clear(); } if (valueInfoBuilder_ == null) { valueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { valueInfoBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_GraphProto_descriptor; } public onnx.OnnxMl.GraphProto getDefaultInstanceForType() { return onnx.OnnxMl.GraphProto.getDefaultInstance(); } public onnx.OnnxMl.GraphProto build() { onnx.OnnxMl.GraphProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.GraphProto buildPartial() { onnx.OnnxMl.GraphProto result = new onnx.OnnxMl.GraphProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (nodeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { node_ = java.util.Collections.unmodifiableList(node_); bitField0_ = (bitField0_ & ~0x00000001); } result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } result.name_ = name_; if (initializerBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { initializer_ = java.util.Collections.unmodifiableList(initializer_); bitField0_ = (bitField0_ & ~0x00000004); } result.initializer_ = initializer_; } else { result.initializer_ = initializerBuilder_.build(); } result.docString_ = docString_; if (inputBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { input_ = java.util.Collections.unmodifiableList(input_); bitField0_ = (bitField0_ & ~0x00000010); } result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (outputBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { output_ = java.util.Collections.unmodifiableList(output_); bitField0_ = (bitField0_ & ~0x00000020); } result.output_ = output_; } else { result.output_ = outputBuilder_.build(); } if (valueInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { valueInfo_ = java.util.Collections.unmodifiableList(valueInfo_); bitField0_ = (bitField0_ & ~0x00000040); } result.valueInfo_ = valueInfo_; } else { result.valueInfo_ = valueInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.GraphProto) { return mergeFrom((onnx.OnnxMl.GraphProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.GraphProto other) { if (other == onnx.OnnxMl.GraphProto.getDefaultInstance()) return this; if (nodeBuilder_ == null) { if (!other.node_.isEmpty()) { if (node_.isEmpty()) { node_ = other.node_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodeIsMutable(); node_.addAll(other.node_); } onChanged(); } } else { if (!other.node_.isEmpty()) { if (nodeBuilder_.isEmpty()) { nodeBuilder_.dispose(); nodeBuilder_ = null; node_ = other.node_; bitField0_ = (bitField0_ & ~0x00000001); nodeBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodeFieldBuilder() : null; } else { nodeBuilder_.addAllMessages(other.node_); } } } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (initializerBuilder_ == null) { if (!other.initializer_.isEmpty()) { if (initializer_.isEmpty()) { initializer_ = other.initializer_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInitializerIsMutable(); initializer_.addAll(other.initializer_); } onChanged(); } } else { if (!other.initializer_.isEmpty()) { if (initializerBuilder_.isEmpty()) { initializerBuilder_.dispose(); initializerBuilder_ = null; initializer_ = other.initializer_; bitField0_ = (bitField0_ & ~0x00000004); initializerBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitializerFieldBuilder() : null; } else { initializerBuilder_.addAllMessages(other.initializer_); } } } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } if (inputBuilder_ == null) { if (!other.input_.isEmpty()) { if (input_.isEmpty()) { input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureInputIsMutable(); input_.addAll(other.input_); } onChanged(); } } else { if (!other.input_.isEmpty()) { if (inputBuilder_.isEmpty()) { inputBuilder_.dispose(); inputBuilder_ = null; input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000010); inputBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputFieldBuilder() : null; } else { inputBuilder_.addAllMessages(other.input_); } } } if (outputBuilder_ == null) { if (!other.output_.isEmpty()) { if (output_.isEmpty()) { output_ = other.output_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureOutputIsMutable(); output_.addAll(other.output_); } onChanged(); } } else { if (!other.output_.isEmpty()) { if (outputBuilder_.isEmpty()) { outputBuilder_.dispose(); outputBuilder_ = null; output_ = other.output_; bitField0_ = (bitField0_ & ~0x00000020); outputBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputFieldBuilder() : null; } else { outputBuilder_.addAllMessages(other.output_); } } } if (valueInfoBuilder_ == null) { if (!other.valueInfo_.isEmpty()) { if (valueInfo_.isEmpty()) { valueInfo_ = other.valueInfo_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureValueInfoIsMutable(); valueInfo_.addAll(other.valueInfo_); } onChanged(); } } else { if (!other.valueInfo_.isEmpty()) { if (valueInfoBuilder_.isEmpty()) { valueInfoBuilder_.dispose(); valueInfoBuilder_ = null; valueInfo_ = other.valueInfo_; bitField0_ = (bitField0_ & ~0x00000040); valueInfoBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueInfoFieldBuilder() : null; } else { valueInfoBuilder_.addAllMessages(other.valueInfo_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.GraphProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.GraphProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List node_ = java.util.Collections.emptyList(); private void ensureNodeIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { node_ = new java.util.ArrayList(node_); bitField0_ |= 0x00000001; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.NodeProto, onnx.OnnxMl.NodeProto.Builder, onnx.OnnxMl.NodeProtoOrBuilder> nodeBuilder_; /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeList() { if (nodeBuilder_ == null) { return java.util.Collections.unmodifiableList(node_); } else { return nodeBuilder_.getMessageList(); } } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public int getNodeCount() { if (nodeBuilder_ == null) { return node_.size(); } else { return nodeBuilder_.getCount(); } } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProto getNode(int index) { if (nodeBuilder_ == null) { return node_.get(index); } else { return nodeBuilder_.getMessage(index); } } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder setNode( int index, onnx.OnnxMl.NodeProto value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.set(index, value); onChanged(); } else { nodeBuilder_.setMessage(index, value); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder setNode( int index, onnx.OnnxMl.NodeProto.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.set(index, builderForValue.build()); onChanged(); } else { nodeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder addNode(onnx.OnnxMl.NodeProto value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.add(value); onChanged(); } else { nodeBuilder_.addMessage(value); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder addNode( int index, onnx.OnnxMl.NodeProto value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.add(index, value); onChanged(); } else { nodeBuilder_.addMessage(index, value); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder addNode( onnx.OnnxMl.NodeProto.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.add(builderForValue.build()); onChanged(); } else { nodeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder addNode( int index, onnx.OnnxMl.NodeProto.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.add(index, builderForValue.build()); onChanged(); } else { nodeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder addAllNode( java.lang.Iterable values) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, node_); onChanged(); } else { nodeBuilder_.addAllMessages(values); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodeBuilder_.clear(); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public Builder removeNode(int index) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.remove(index); onChanged(); } else { nodeBuilder_.remove(index); } return this; } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProto.Builder getNodeBuilder( int index) { return getNodeFieldBuilder().getBuilder(index); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProtoOrBuilder getNodeOrBuilder( int index) { if (nodeBuilder_ == null) { return node_.get(index); } else { return nodeBuilder_.getMessageOrBuilder(index); } } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeOrBuilderList() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(node_); } } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProto.Builder addNodeBuilder() { return getNodeFieldBuilder().addBuilder( onnx.OnnxMl.NodeProto.getDefaultInstance()); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMl.NodeProto.Builder addNodeBuilder( int index) { return getNodeFieldBuilder().addBuilder( index, onnx.OnnxMl.NodeProto.getDefaultInstance()); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeBuilderList() { return getNodeFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.NodeProto, onnx.OnnxMl.NodeProto.Builder, onnx.OnnxMl.NodeProtoOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.NodeProto, onnx.OnnxMl.NodeProto.Builder, onnx.OnnxMl.NodeProtoOrBuilder>( node_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } private java.lang.Object name_ = ""; /** *
       * The name of the graph.
       * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the graph.
       * 
* * string name = 2; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The name of the graph.
       * 
* * string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * The name of the graph.
       * 
* * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the graph.
       * 
* * string name = 2; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List initializer_ = java.util.Collections.emptyList(); private void ensureInitializerIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { initializer_ = new java.util.ArrayList(initializer_); bitField0_ |= 0x00000004; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> initializerBuilder_; /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public java.util.List getInitializerList() { if (initializerBuilder_ == null) { return java.util.Collections.unmodifiableList(initializer_); } else { return initializerBuilder_.getMessageList(); } } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public int getInitializerCount() { if (initializerBuilder_ == null) { return initializer_.size(); } else { return initializerBuilder_.getCount(); } } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProto getInitializer(int index) { if (initializerBuilder_ == null) { return initializer_.get(index); } else { return initializerBuilder_.getMessage(index); } } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder setInitializer( int index, onnx.OnnxMl.TensorProto value) { if (initializerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitializerIsMutable(); initializer_.set(index, value); onChanged(); } else { initializerBuilder_.setMessage(index, value); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder setInitializer( int index, onnx.OnnxMl.TensorProto.Builder builderForValue) { if (initializerBuilder_ == null) { ensureInitializerIsMutable(); initializer_.set(index, builderForValue.build()); onChanged(); } else { initializerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder addInitializer(onnx.OnnxMl.TensorProto value) { if (initializerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitializerIsMutable(); initializer_.add(value); onChanged(); } else { initializerBuilder_.addMessage(value); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder addInitializer( int index, onnx.OnnxMl.TensorProto value) { if (initializerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitializerIsMutable(); initializer_.add(index, value); onChanged(); } else { initializerBuilder_.addMessage(index, value); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder addInitializer( onnx.OnnxMl.TensorProto.Builder builderForValue) { if (initializerBuilder_ == null) { ensureInitializerIsMutable(); initializer_.add(builderForValue.build()); onChanged(); } else { initializerBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder addInitializer( int index, onnx.OnnxMl.TensorProto.Builder builderForValue) { if (initializerBuilder_ == null) { ensureInitializerIsMutable(); initializer_.add(index, builderForValue.build()); onChanged(); } else { initializerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder addAllInitializer( java.lang.Iterable values) { if (initializerBuilder_ == null) { ensureInitializerIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, initializer_); onChanged(); } else { initializerBuilder_.addAllMessages(values); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder clearInitializer() { if (initializerBuilder_ == null) { initializer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { initializerBuilder_.clear(); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public Builder removeInitializer(int index) { if (initializerBuilder_ == null) { ensureInitializerIsMutable(); initializer_.remove(index); onChanged(); } else { initializerBuilder_.remove(index); } return this; } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProto.Builder getInitializerBuilder( int index) { return getInitializerFieldBuilder().getBuilder(index); } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProtoOrBuilder getInitializerOrBuilder( int index) { if (initializerBuilder_ == null) { return initializer_.get(index); } else { return initializerBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public java.util.List getInitializerOrBuilderList() { if (initializerBuilder_ != null) { return initializerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(initializer_); } } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProto.Builder addInitializerBuilder() { return getInitializerFieldBuilder().addBuilder( onnx.OnnxMl.TensorProto.getDefaultInstance()); } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public onnx.OnnxMl.TensorProto.Builder addInitializerBuilder( int index) { return getInitializerFieldBuilder().addBuilder( index, onnx.OnnxMl.TensorProto.getDefaultInstance()); } /** *
       * A list of named tensor values (constants), used to specify default
       * values for some of the inputs of the graph.
       * Each TensorProto entry must have a distinct name (within the list) that
       * also appears in the input list.
       * In an evaluation, the default value specified here is used if and only if
       * user specifies no value for the corresponding input parameter.
       * May be used to pass serialized parameters for networks.
       * 
* * repeated .onnx.TensorProto initializer = 5; */ public java.util.List getInitializerBuilderList() { return getInitializerFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder> getInitializerFieldBuilder() { if (initializerBuilder_ == null) { initializerBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorProto, onnx.OnnxMl.TensorProto.Builder, onnx.OnnxMl.TensorProtoOrBuilder>( initializer_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); initializer_ = null; } return initializerBuilder_; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this graph. Markdown is allowed.
       * 
* * string doc_string = 10; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this graph. Markdown is allowed.
       * 
* * string doc_string = 10; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this graph. Markdown is allowed.
       * 
* * string doc_string = 10; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this graph. Markdown is allowed.
       * 
* * string doc_string = 10; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this graph. Markdown is allowed.
       * 
* * string doc_string = 10; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private java.util.List input_ = java.util.Collections.emptyList(); private void ensureInputIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { input_ = new java.util.ArrayList(input_); bitField0_ |= 0x00000010; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> inputBuilder_; /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputList() { if (inputBuilder_ == null) { return java.util.Collections.unmodifiableList(input_); } else { return inputBuilder_.getMessageList(); } } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public int getInputCount() { if (inputBuilder_ == null) { return input_.size(); } else { return inputBuilder_.getCount(); } } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProto getInput(int index) { if (inputBuilder_ == null) { return input_.get(index); } else { return inputBuilder_.getMessage(index); } } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder setInput( int index, onnx.OnnxMl.ValueInfoProto value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.set(index, value); onChanged(); } else { inputBuilder_.setMessage(index, value); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder setInput( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (inputBuilder_ == null) { ensureInputIsMutable(); input_.set(index, builderForValue.build()); onChanged(); } else { inputBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder addInput(onnx.OnnxMl.ValueInfoProto value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.add(value); onChanged(); } else { inputBuilder_.addMessage(value); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder addInput( int index, onnx.OnnxMl.ValueInfoProto value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.add(index, value); onChanged(); } else { inputBuilder_.addMessage(index, value); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder addInput( onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (inputBuilder_ == null) { ensureInputIsMutable(); input_.add(builderForValue.build()); onChanged(); } else { inputBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder addInput( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (inputBuilder_ == null) { ensureInputIsMutable(); input_.add(index, builderForValue.build()); onChanged(); } else { inputBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder addAllInput( java.lang.Iterable values) { if (inputBuilder_ == null) { ensureInputIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, input_); onChanged(); } else { inputBuilder_.addAllMessages(values); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { inputBuilder_.clear(); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public Builder removeInput(int index) { if (inputBuilder_ == null) { ensureInputIsMutable(); input_.remove(index); onChanged(); } else { inputBuilder_.remove(index); } return this; } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProto.Builder getInputBuilder( int index) { return getInputFieldBuilder().getBuilder(index); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getInputOrBuilder( int index) { if (inputBuilder_ == null) { return input_.get(index); } else { return inputBuilder_.getMessageOrBuilder(index); } } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputOrBuilderList() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(input_); } } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProto.Builder addInputBuilder() { return getInputFieldBuilder().addBuilder( onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMl.ValueInfoProto.Builder addInputBuilder( int index) { return getInputFieldBuilder().addBuilder( index, onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputBuilderList() { return getInputFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder>( input_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private java.util.List output_ = java.util.Collections.emptyList(); private void ensureOutputIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { output_ = new java.util.ArrayList(output_); bitField0_ |= 0x00000020; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> outputBuilder_; /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputList() { if (outputBuilder_ == null) { return java.util.Collections.unmodifiableList(output_); } else { return outputBuilder_.getMessageList(); } } /** * repeated .onnx.ValueInfoProto output = 12; */ public int getOutputCount() { if (outputBuilder_ == null) { return output_.size(); } else { return outputBuilder_.getCount(); } } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProto getOutput(int index) { if (outputBuilder_ == null) { return output_.get(index); } else { return outputBuilder_.getMessage(index); } } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder setOutput( int index, onnx.OnnxMl.ValueInfoProto value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputIsMutable(); output_.set(index, value); onChanged(); } else { outputBuilder_.setMessage(index, value); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder setOutput( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.set(index, builderForValue.build()); onChanged(); } else { outputBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder addOutput(onnx.OnnxMl.ValueInfoProto value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputIsMutable(); output_.add(value); onChanged(); } else { outputBuilder_.addMessage(value); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder addOutput( int index, onnx.OnnxMl.ValueInfoProto value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputIsMutable(); output_.add(index, value); onChanged(); } else { outputBuilder_.addMessage(index, value); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder addOutput( onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.add(builderForValue.build()); onChanged(); } else { outputBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder addOutput( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.add(index, builderForValue.build()); onChanged(); } else { outputBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder addAllOutput( java.lang.Iterable values) { if (outputBuilder_ == null) { ensureOutputIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, output_); onChanged(); } else { outputBuilder_.addAllMessages(values); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder clearOutput() { if (outputBuilder_ == null) { output_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { outputBuilder_.clear(); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public Builder removeOutput(int index) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.remove(index); onChanged(); } else { outputBuilder_.remove(index); } return this; } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProto.Builder getOutputBuilder( int index) { return getOutputFieldBuilder().getBuilder(index); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getOutputOrBuilder( int index) { if (outputBuilder_ == null) { return output_.get(index); } else { return outputBuilder_.getMessageOrBuilder(index); } } /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputOrBuilderList() { if (outputBuilder_ != null) { return outputBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(output_); } } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProto.Builder addOutputBuilder() { return getOutputFieldBuilder().addBuilder( onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMl.ValueInfoProto.Builder addOutputBuilder( int index) { return getOutputFieldBuilder().addBuilder( index, onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputBuilderList() { return getOutputFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> getOutputFieldBuilder() { if (outputBuilder_ == null) { outputBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder>( output_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); output_ = null; } return outputBuilder_; } private java.util.List valueInfo_ = java.util.Collections.emptyList(); private void ensureValueInfoIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { valueInfo_ = new java.util.ArrayList(valueInfo_); bitField0_ |= 0x00000040; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> valueInfoBuilder_; /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public java.util.List getValueInfoList() { if (valueInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(valueInfo_); } else { return valueInfoBuilder_.getMessageList(); } } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public int getValueInfoCount() { if (valueInfoBuilder_ == null) { return valueInfo_.size(); } else { return valueInfoBuilder_.getCount(); } } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProto getValueInfo(int index) { if (valueInfoBuilder_ == null) { return valueInfo_.get(index); } else { return valueInfoBuilder_.getMessage(index); } } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder setValueInfo( int index, onnx.OnnxMl.ValueInfoProto value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.set(index, value); onChanged(); } else { valueInfoBuilder_.setMessage(index, value); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder setValueInfo( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.set(index, builderForValue.build()); onChanged(); } else { valueInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder addValueInfo(onnx.OnnxMl.ValueInfoProto value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.add(value); onChanged(); } else { valueInfoBuilder_.addMessage(value); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder addValueInfo( int index, onnx.OnnxMl.ValueInfoProto value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.add(index, value); onChanged(); } else { valueInfoBuilder_.addMessage(index, value); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder addValueInfo( onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.add(builderForValue.build()); onChanged(); } else { valueInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder addValueInfo( int index, onnx.OnnxMl.ValueInfoProto.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.add(index, builderForValue.build()); onChanged(); } else { valueInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder addAllValueInfo( java.lang.Iterable values) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, valueInfo_); onChanged(); } else { valueInfoBuilder_.addAllMessages(values); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder clearValueInfo() { if (valueInfoBuilder_ == null) { valueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { valueInfoBuilder_.clear(); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public Builder removeValueInfo(int index) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.remove(index); onChanged(); } else { valueInfoBuilder_.remove(index); } return this; } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProto.Builder getValueInfoBuilder( int index) { return getValueInfoFieldBuilder().getBuilder(index); } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProtoOrBuilder getValueInfoOrBuilder( int index) { if (valueInfoBuilder_ == null) { return valueInfo_.get(index); } else { return valueInfoBuilder_.getMessageOrBuilder(index); } } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public java.util.List getValueInfoOrBuilderList() { if (valueInfoBuilder_ != null) { return valueInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(valueInfo_); } } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProto.Builder addValueInfoBuilder() { return getValueInfoFieldBuilder().addBuilder( onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public onnx.OnnxMl.ValueInfoProto.Builder addValueInfoBuilder( int index) { return getValueInfoFieldBuilder().addBuilder( index, onnx.OnnxMl.ValueInfoProto.getDefaultInstance()); } /** *
       * Information for the values in the graph. The ValueInfoProto.name's
       * must be distinct. It is optional for a value to appear in value_info list.
       * 
* * repeated .onnx.ValueInfoProto value_info = 13; */ public java.util.List getValueInfoBuilderList() { return getValueInfoFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder> getValueInfoFieldBuilder() { if (valueInfoBuilder_ == null) { valueInfoBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.ValueInfoProto, onnx.OnnxMl.ValueInfoProto.Builder, onnx.OnnxMl.ValueInfoProtoOrBuilder>( valueInfo_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); valueInfo_ = null; } return valueInfoBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.GraphProto) } // @@protoc_insertion_point(class_scope:onnx.GraphProto) private static final onnx.OnnxMl.GraphProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.GraphProto(); } public static onnx.OnnxMl.GraphProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public GraphProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new GraphProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.GraphProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TensorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ java.util.List getDimsList(); /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ int getDimsCount(); /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ long getDims(int index); /** *
     * The data type of the tensor.
     * 
* * .onnx.TensorProto.DataType data_type = 2; */ int getDataTypeValue(); /** *
     * The data type of the tensor.
     * 
* * .onnx.TensorProto.DataType data_type = 2; */ onnx.OnnxMl.TensorProto.DataType getDataType(); /** * .onnx.TensorProto.Segment segment = 3; */ boolean hasSegment(); /** * .onnx.TensorProto.Segment segment = 3; */ onnx.OnnxMl.TensorProto.Segment getSegment(); /** * .onnx.TensorProto.Segment segment = 3; */ onnx.OnnxMl.TensorProto.SegmentOrBuilder getSegmentOrBuilder(); /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ java.util.List getFloatDataList(); /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ int getFloatDataCount(); /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ float getFloatData(int index); /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ java.util.List getInt32DataList(); /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ int getInt32DataCount(); /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ int getInt32Data(int index); /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ java.util.List getStringDataList(); /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ int getStringDataCount(); /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ org.nd4j.shade.protobuf.ByteString getStringData(int index); /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ java.util.List getInt64DataList(); /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ int getInt64DataCount(); /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ long getInt64Data(int index); /** *
     * Optionally, a name for the tensor.
     * 
* * string name = 8; */ java.lang.String getName(); /** *
     * Optionally, a name for the tensor.
     * 
* * string name = 8; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * A human-readable documentation for this tensor. Markdown is allowed.
     * 
* * string doc_string = 12; */ java.lang.String getDocString(); /** *
     * A human-readable documentation for this tensor. Markdown is allowed.
     * 
* * string doc_string = 12; */ org.nd4j.shade.protobuf.ByteString getDocStringBytes(); /** *
     * Serializations can either use one of the fields above, or use this
     * raw bytes field. The only exception is the string case, where one is
     * required to store the content in the repeated bytes string_data field.
     * When this raw_data field is used to store tensor value, elements MUST
     * be stored in as fixed-width, little-endian order.
     * Floating-point data types MUST be stored in IEEE 754 format.
     * Complex64 elements must be written as two consecutive FLOAT values, real component first.
     * Complex128 elements must be written as two consecutive DOUBLE values, real component first.
     * Boolean type MUST be written one byte per tensor element (00000001 for true, 00000000 for false).
     * Note: the advantage of specific field rather than the raw_data field is
     * that in some cases (e.g. int data), protobuf does a better packing via
     * variable length storage, and may lead to smaller binary footprint.
     * When this field is present, the data_type field MUST NOT be STRING or UNDEFINED
     * 
* * bytes raw_data = 9; */ org.nd4j.shade.protobuf.ByteString getRawData(); /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ java.util.List getDoubleDataList(); /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ int getDoubleDataCount(); /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ double getDoubleData(int index); /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ java.util.List getUint64DataList(); /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ int getUint64DataCount(); /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ long getUint64Data(int index); } /** *
   * A message defined to store a tensor in its serialized format.
   * 
* * Protobuf type {@code onnx.TensorProto} */ public static final class TensorProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorProto) TensorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TensorProto.newBuilder() to construct. private TensorProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TensorProto() { dims_ = java.util.Collections.emptyList(); dataType_ = 0; floatData_ = java.util.Collections.emptyList(); int32Data_ = java.util.Collections.emptyList(); stringData_ = java.util.Collections.emptyList(); int64Data_ = java.util.Collections.emptyList(); name_ = ""; docString_ = ""; rawData_ = org.nd4j.shade.protobuf.ByteString.EMPTY; doubleData_ = java.util.Collections.emptyList(); uint64Data_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dims_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dims_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { dims_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { dims_.add(input.readInt64()); } input.popLimit(limit); break; } case 16: { int rawValue = input.readEnum(); dataType_ = rawValue; break; } case 26: { onnx.OnnxMl.TensorProto.Segment.Builder subBuilder = null; if (segment_ != null) { subBuilder = segment_.toBuilder(); } segment_ = input.readMessage(onnx.OnnxMl.TensorProto.Segment.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(segment_); segment_ = subBuilder.buildPartial(); } break; } case 37: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { floatData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } floatData_.add(input.readFloat()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { floatData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { floatData_.add(input.readFloat()); } input.popLimit(limit); break; } case 40: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { int32Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } int32Data_.add(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { int32Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { int32Data_.add(input.readInt32()); } input.popLimit(limit); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { stringData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } stringData_.add(input.readBytes()); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { int64Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } int64Data_.add(input.readInt64()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { int64Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { int64Data_.add(input.readInt64()); } input.popLimit(limit); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 74: { rawData_ = input.readBytes(); break; } case 81: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { doubleData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } doubleData_.add(input.readDouble()); break; } case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { doubleData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } while (input.getBytesUntilLimit() > 0) { doubleData_.add(input.readDouble()); } input.popLimit(limit); break; } case 88: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { uint64Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } uint64Data_.add(input.readUInt64()); break; } case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { uint64Data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { uint64Data_.add(input.readUInt64()); } input.popLimit(limit); break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); docString_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dims_ = java.util.Collections.unmodifiableList(dims_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { floatData_ = java.util.Collections.unmodifiableList(floatData_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { int32Data_ = java.util.Collections.unmodifiableList(int32Data_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { stringData_ = java.util.Collections.unmodifiableList(stringData_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { int64Data_ = java.util.Collections.unmodifiableList(int64Data_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { doubleData_ = java.util.Collections.unmodifiableList(doubleData_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { uint64Data_ = java.util.Collections.unmodifiableList(uint64Data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorProto.class, onnx.OnnxMl.TensorProto.Builder.class); } /** * Protobuf enum {@code onnx.TensorProto.DataType} */ public enum DataType implements org.nd4j.shade.protobuf.ProtocolMessageEnum { /** * UNDEFINED = 0; */ UNDEFINED(0), /** *
       * Basic types.
       * 
* * FLOAT = 1; */ FLOAT(1), /** *
       * uint8_t
       * 
* * UINT8 = 2; */ UINT8(2), /** *
       * int8_t
       * 
* * INT8 = 3; */ INT8(3), /** *
       * uint16_t
       * 
* * UINT16 = 4; */ UINT16(4), /** *
       * int16_t
       * 
* * INT16 = 5; */ INT16(5), /** *
       * int32_t
       * 
* * INT32 = 6; */ INT32(6), /** *
       * int64_t
       * 
* * INT64 = 7; */ INT64(7), /** *
       * string
       * 
* * STRING = 8; */ STRING(8), /** *
       * bool
       * 
* * BOOL = 9; */ BOOL(9), /** *
       * Advanced types
       * 
* * FLOAT16 = 10; */ FLOAT16(10), /** * DOUBLE = 11; */ DOUBLE(11), /** * UINT32 = 12; */ UINT32(12), /** * UINT64 = 13; */ UINT64(13), /** *
       * complex with float32 real and imaginary components
       * 
* * COMPLEX64 = 14; */ COMPLEX64(14), /** *
       * complex with float64 real and imaginary components
       * 
* * COMPLEX128 = 15; */ COMPLEX128(15), UNRECOGNIZED(-1), ; /** * UNDEFINED = 0; */ public static final int UNDEFINED_VALUE = 0; /** *
       * Basic types.
       * 
* * FLOAT = 1; */ public static final int FLOAT_VALUE = 1; /** *
       * uint8_t
       * 
* * UINT8 = 2; */ public static final int UINT8_VALUE = 2; /** *
       * int8_t
       * 
* * INT8 = 3; */ public static final int INT8_VALUE = 3; /** *
       * uint16_t
       * 
* * UINT16 = 4; */ public static final int UINT16_VALUE = 4; /** *
       * int16_t
       * 
* * INT16 = 5; */ public static final int INT16_VALUE = 5; /** *
       * int32_t
       * 
* * INT32 = 6; */ public static final int INT32_VALUE = 6; /** *
       * int64_t
       * 
* * INT64 = 7; */ public static final int INT64_VALUE = 7; /** *
       * string
       * 
* * STRING = 8; */ public static final int STRING_VALUE = 8; /** *
       * bool
       * 
* * BOOL = 9; */ public static final int BOOL_VALUE = 9; /** *
       * Advanced types
       * 
* * FLOAT16 = 10; */ public static final int FLOAT16_VALUE = 10; /** * DOUBLE = 11; */ public static final int DOUBLE_VALUE = 11; /** * UINT32 = 12; */ public static final int UINT32_VALUE = 12; /** * UINT64 = 13; */ public static final int UINT64_VALUE = 13; /** *
       * complex with float32 real and imaginary components
       * 
* * COMPLEX64 = 14; */ public static final int COMPLEX64_VALUE = 14; /** *
       * complex with float64 real and imaginary components
       * 
* * COMPLEX128 = 15; */ public static final int COMPLEX128_VALUE = 15; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataType valueOf(int value) { return forNumber(value); } public static DataType forNumber(int value) { switch (value) { case 0: return UNDEFINED; case 1: return FLOAT; case 2: return UINT8; case 3: return INT8; case 4: return UINT16; case 5: return INT16; case 6: return INT32; case 7: return INT64; case 8: return STRING; case 9: return BOOL; case 10: return FLOAT16; case 11: return DOUBLE; case 12: return UINT32; case 13: return UINT64; case 14: return COMPLEX64; case 15: return COMPLEX128; default: return null; } } public static org.nd4j.shade.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.nd4j.shade.protobuf.Internal.EnumLiteMap< DataType> internalValueMap = new org.nd4j.shade.protobuf.Internal.EnumLiteMap() { public DataType findValueByNumber(int number) { return DataType.forNumber(number); } }; public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMl.TensorProto.getDescriptor().getEnumTypes().get(0); } private static final DataType[] VALUES = values(); public static DataType valueOf( org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DataType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:onnx.TensorProto.DataType) } public interface SegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorProto.Segment) org.nd4j.shade.protobuf.MessageOrBuilder { /** * int64 begin = 1; */ long getBegin(); /** * int64 end = 2; */ long getEnd(); } /** *
     * For very large tensors, we may want to store them in chunks, in which
     * case the following fields will specify the segment that is stored in
     * the current TensorProto.
     * 
* * Protobuf type {@code onnx.TensorProto.Segment} */ public static final class Segment extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorProto.Segment) SegmentOrBuilder { private static final long serialVersionUID = 0L; // Use Segment.newBuilder() to construct. private Segment(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Segment() { begin_ = 0L; end_ = 0L; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Segment( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { begin_ = input.readInt64(); break; } case 16: { end_ = input.readInt64(); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorProto_Segment_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorProto_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorProto.Segment.class, onnx.OnnxMl.TensorProto.Segment.Builder.class); } public static final int BEGIN_FIELD_NUMBER = 1; private long begin_; /** * int64 begin = 1; */ public long getBegin() { return begin_; } public static final int END_FIELD_NUMBER = 2; private long end_; /** * int64 end = 2; */ public long getEnd() { return end_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (begin_ != 0L) { output.writeInt64(1, begin_); } if (end_ != 0L) { output.writeInt64(2, end_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (begin_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(1, begin_); } if (end_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(2, end_); } 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 onnx.OnnxMl.TensorProto.Segment)) { return super.equals(obj); } onnx.OnnxMl.TensorProto.Segment other = (onnx.OnnxMl.TensorProto.Segment) obj; boolean result = true; result = result && (getBegin() == other.getBegin()); result = result && (getEnd() == other.getEnd()); 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) + BEGIN_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getBegin()); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getEnd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TensorProto.Segment parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto.Segment parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto.Segment parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorProto.Segment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto.Segment parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto.Segment parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TensorProto.Segment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * For very large tensors, we may want to store them in chunks, in which
       * case the following fields will specify the segment that is stored in
       * the current TensorProto.
       * 
* * Protobuf type {@code onnx.TensorProto.Segment} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorProto.Segment) onnx.OnnxMl.TensorProto.SegmentOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorProto_Segment_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorProto_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorProto.Segment.class, onnx.OnnxMl.TensorProto.Segment.Builder.class); } // Construct using onnx.OnnxMl.TensorProto.Segment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); begin_ = 0L; end_ = 0L; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TensorProto_Segment_descriptor; } public onnx.OnnxMl.TensorProto.Segment getDefaultInstanceForType() { return onnx.OnnxMl.TensorProto.Segment.getDefaultInstance(); } public onnx.OnnxMl.TensorProto.Segment build() { onnx.OnnxMl.TensorProto.Segment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TensorProto.Segment buildPartial() { onnx.OnnxMl.TensorProto.Segment result = new onnx.OnnxMl.TensorProto.Segment(this); result.begin_ = begin_; result.end_ = end_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TensorProto.Segment) { return mergeFrom((onnx.OnnxMl.TensorProto.Segment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TensorProto.Segment other) { if (other == onnx.OnnxMl.TensorProto.Segment.getDefaultInstance()) return this; if (other.getBegin() != 0L) { setBegin(other.getBegin()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TensorProto.Segment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TensorProto.Segment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long begin_ ; /** * int64 begin = 1; */ public long getBegin() { return begin_; } /** * int64 begin = 1; */ public Builder setBegin(long value) { begin_ = value; onChanged(); return this; } /** * int64 begin = 1; */ public Builder clearBegin() { begin_ = 0L; onChanged(); return this; } private long end_ ; /** * int64 end = 2; */ public long getEnd() { return end_; } /** * int64 end = 2; */ public Builder setEnd(long value) { end_ = value; onChanged(); return this; } /** * int64 end = 2; */ public Builder clearEnd() { end_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorProto.Segment) } // @@protoc_insertion_point(class_scope:onnx.TensorProto.Segment) private static final onnx.OnnxMl.TensorProto.Segment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TensorProto.Segment(); } public static onnx.OnnxMl.TensorProto.Segment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Segment parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Segment(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TensorProto.Segment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int DIMS_FIELD_NUMBER = 1; private java.util.List dims_; /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ public java.util.List getDimsList() { return dims_; } /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ public int getDimsCount() { return dims_.size(); } /** *
     * The shape of the tensor.
     * 
* * repeated int64 dims = 1; */ public long getDims(int index) { return dims_.get(index); } private int dimsMemoizedSerializedSize = -1; public static final int DATA_TYPE_FIELD_NUMBER = 2; private int dataType_; /** *
     * The data type of the tensor.
     * 
* * .onnx.TensorProto.DataType data_type = 2; */ public int getDataTypeValue() { return dataType_; } /** *
     * The data type of the tensor.
     * 
* * .onnx.TensorProto.DataType data_type = 2; */ public onnx.OnnxMl.TensorProto.DataType getDataType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(dataType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } public static final int SEGMENT_FIELD_NUMBER = 3; private onnx.OnnxMl.TensorProto.Segment segment_; /** * .onnx.TensorProto.Segment segment = 3; */ public boolean hasSegment() { return segment_ != null; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMl.TensorProto.Segment getSegment() { return segment_ == null ? onnx.OnnxMl.TensorProto.Segment.getDefaultInstance() : segment_; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMl.TensorProto.SegmentOrBuilder getSegmentOrBuilder() { return getSegment(); } public static final int FLOAT_DATA_FIELD_NUMBER = 4; private java.util.List floatData_; /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ public java.util.List getFloatDataList() { return floatData_; } /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ public int getFloatDataCount() { return floatData_.size(); } /** *
     * For float and complex64 values
     * Complex64 tensors are encoded as a single array of floats,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
     * 
* * repeated float float_data = 4 [packed = true]; */ public float getFloatData(int index) { return floatData_.get(index); } private int floatDataMemoizedSerializedSize = -1; public static final int INT32_DATA_FIELD_NUMBER = 5; private java.util.List int32Data_; /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ public java.util.List getInt32DataList() { return int32Data_; } /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ public int getInt32DataCount() { return int32Data_.size(); } /** *
     * For int32, uint8, int8, uint16, int16, bool, and float16 values
     * float16 values must be bit-wise converted to an uint16_t prior
     * to writing to the buffer.
     * When this field is present, the data_type field MUST be
     * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
     * 
* * repeated int32 int32_data = 5 [packed = true]; */ public int getInt32Data(int index) { return int32Data_.get(index); } private int int32DataMemoizedSerializedSize = -1; public static final int STRING_DATA_FIELD_NUMBER = 6; private java.util.List stringData_; /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ public java.util.List getStringDataList() { return stringData_; } /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ public int getStringDataCount() { return stringData_.size(); } /** *
     * For strings.
     * Each element of string_data is a UTF-8 encoded Unicode
     * string. No trailing null, no leading BOM. The protobuf "string"
     * scalar type is not used to match ML community conventions.
     * When this field is present, the data_type field MUST be STRING
     * 
* * repeated bytes string_data = 6; */ public org.nd4j.shade.protobuf.ByteString getStringData(int index) { return stringData_.get(index); } public static final int INT64_DATA_FIELD_NUMBER = 7; private java.util.List int64Data_; /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ public java.util.List getInt64DataList() { return int64Data_; } /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ public int getInt64DataCount() { return int64Data_.size(); } /** *
     * For int64.
     * When this field is present, the data_type field MUST be INT64
     * 
* * repeated int64 int64_data = 7 [packed = true]; */ public long getInt64Data(int index) { return int64Data_.get(index); } private int int64DataMemoizedSerializedSize = -1; public static final int NAME_FIELD_NUMBER = 8; private volatile java.lang.Object name_; /** *
     * Optionally, a name for the tensor.
     * 
* * string name = 8; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Optionally, a name for the tensor.
     * 
* * string name = 8; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 12; private volatile java.lang.Object docString_; /** *
     * A human-readable documentation for this tensor. Markdown is allowed.
     * 
* * string doc_string = 12; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } } /** *
     * A human-readable documentation for this tensor. Markdown is allowed.
     * 
* * string doc_string = 12; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int RAW_DATA_FIELD_NUMBER = 9; private org.nd4j.shade.protobuf.ByteString rawData_; /** *
     * Serializations can either use one of the fields above, or use this
     * raw bytes field. The only exception is the string case, where one is
     * required to store the content in the repeated bytes string_data field.
     * When this raw_data field is used to store tensor value, elements MUST
     * be stored in as fixed-width, little-endian order.
     * Floating-point data types MUST be stored in IEEE 754 format.
     * Complex64 elements must be written as two consecutive FLOAT values, real component first.
     * Complex128 elements must be written as two consecutive DOUBLE values, real component first.
     * Boolean type MUST be written one byte per tensor element (00000001 for true, 00000000 for false).
     * Note: the advantage of specific field rather than the raw_data field is
     * that in some cases (e.g. int data), protobuf does a better packing via
     * variable length storage, and may lead to smaller binary footprint.
     * When this field is present, the data_type field MUST NOT be STRING or UNDEFINED
     * 
* * bytes raw_data = 9; */ public org.nd4j.shade.protobuf.ByteString getRawData() { return rawData_; } public static final int DOUBLE_DATA_FIELD_NUMBER = 10; private java.util.List doubleData_; /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ public java.util.List getDoubleDataList() { return doubleData_; } /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ public int getDoubleDataCount() { return doubleData_.size(); } /** *
     * For double
     * Complex64 tensors are encoded as a single array of doubles,
     * with the real components appearing in odd numbered positions,
     * and the corresponding imaginary component apparing in the
     * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
     * is encoded as [1.0, 2.0 ,3.0 ,4.0]
     * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
     * 
* * repeated double double_data = 10 [packed = true]; */ public double getDoubleData(int index) { return doubleData_.get(index); } private int doubleDataMemoizedSerializedSize = -1; public static final int UINT64_DATA_FIELD_NUMBER = 11; private java.util.List uint64Data_; /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public java.util.List getUint64DataList() { return uint64Data_; } /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public int getUint64DataCount() { return uint64Data_.size(); } /** *
     * For uint64 and uint32 values
     * When this field is present, the data_type field MUST be
     * UINT32 or UINT64
     * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public long getUint64Data(int index) { return uint64Data_.get(index); } private int uint64DataMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getDimsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(dimsMemoizedSerializedSize); } for (int i = 0; i < dims_.size(); i++) { output.writeInt64NoTag(dims_.get(i)); } if (dataType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { output.writeEnum(2, dataType_); } if (segment_ != null) { output.writeMessage(3, getSegment()); } if (getFloatDataList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(floatDataMemoizedSerializedSize); } for (int i = 0; i < floatData_.size(); i++) { output.writeFloatNoTag(floatData_.get(i)); } if (getInt32DataList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(int32DataMemoizedSerializedSize); } for (int i = 0; i < int32Data_.size(); i++) { output.writeInt32NoTag(int32Data_.get(i)); } for (int i = 0; i < stringData_.size(); i++) { output.writeBytes(6, stringData_.get(i)); } if (getInt64DataList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(int64DataMemoizedSerializedSize); } for (int i = 0; i < int64Data_.size(); i++) { output.writeInt64NoTag(int64Data_.get(i)); } if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 8, name_); } if (!rawData_.isEmpty()) { output.writeBytes(9, rawData_); } if (getDoubleDataList().size() > 0) { output.writeUInt32NoTag(82); output.writeUInt32NoTag(doubleDataMemoizedSerializedSize); } for (int i = 0; i < doubleData_.size(); i++) { output.writeDoubleNoTag(doubleData_.get(i)); } if (getUint64DataList().size() > 0) { output.writeUInt32NoTag(90); output.writeUInt32NoTag(uint64DataMemoizedSerializedSize); } for (int i = 0; i < uint64Data_.size(); i++) { output.writeUInt64NoTag(uint64Data_.get(i)); } if (!getDocStringBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 12, docString_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < dims_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(dims_.get(i)); } size += dataSize; if (!getDimsList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dimsMemoizedSerializedSize = dataSize; } if (dataType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } if (segment_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(3, getSegment()); } { int dataSize = 0; dataSize = 4 * getFloatDataList().size(); size += dataSize; if (!getFloatDataList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < int32Data_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(int32Data_.get(i)); } size += dataSize; if (!getInt32DataList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } int32DataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < stringData_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeBytesSizeNoTag(stringData_.get(i)); } size += dataSize; size += 1 * getStringDataList().size(); } { int dataSize = 0; for (int i = 0; i < int64Data_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(int64Data_.get(i)); } size += dataSize; if (!getInt64DataList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } int64DataMemoizedSerializedSize = dataSize; } if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(8, name_); } if (!rawData_.isEmpty()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBytesSize(9, rawData_); } { int dataSize = 0; dataSize = 8 * getDoubleDataList().size(); size += dataSize; if (!getDoubleDataList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } doubleDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < uint64Data_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeUInt64SizeNoTag(uint64Data_.get(i)); } size += dataSize; if (!getUint64DataList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } uint64DataMemoizedSerializedSize = dataSize; } if (!getDocStringBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(12, docString_); } 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 onnx.OnnxMl.TensorProto)) { return super.equals(obj); } onnx.OnnxMl.TensorProto other = (onnx.OnnxMl.TensorProto) obj; boolean result = true; result = result && getDimsList() .equals(other.getDimsList()); result = result && dataType_ == other.dataType_; result = result && (hasSegment() == other.hasSegment()); if (hasSegment()) { result = result && getSegment() .equals(other.getSegment()); } result = result && getFloatDataList() .equals(other.getFloatDataList()); result = result && getInt32DataList() .equals(other.getInt32DataList()); result = result && getStringDataList() .equals(other.getStringDataList()); result = result && getInt64DataList() .equals(other.getInt64DataList()); result = result && getName() .equals(other.getName()); result = result && getDocString() .equals(other.getDocString()); result = result && getRawData() .equals(other.getRawData()); result = result && getDoubleDataList() .equals(other.getDoubleDataList()); result = result && getUint64DataList() .equals(other.getUint64DataList()); 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 (getDimsCount() > 0) { hash = (37 * hash) + DIMS_FIELD_NUMBER; hash = (53 * hash) + getDimsList().hashCode(); } hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasSegment()) { hash = (37 * hash) + SEGMENT_FIELD_NUMBER; hash = (53 * hash) + getSegment().hashCode(); } if (getFloatDataCount() > 0) { hash = (37 * hash) + FLOAT_DATA_FIELD_NUMBER; hash = (53 * hash) + getFloatDataList().hashCode(); } if (getInt32DataCount() > 0) { hash = (37 * hash) + INT32_DATA_FIELD_NUMBER; hash = (53 * hash) + getInt32DataList().hashCode(); } if (getStringDataCount() > 0) { hash = (37 * hash) + STRING_DATA_FIELD_NUMBER; hash = (53 * hash) + getStringDataList().hashCode(); } if (getInt64DataCount() > 0) { hash = (37 * hash) + INT64_DATA_FIELD_NUMBER; hash = (53 * hash) + getInt64DataList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (37 * hash) + RAW_DATA_FIELD_NUMBER; hash = (53 * hash) + getRawData().hashCode(); if (getDoubleDataCount() > 0) { hash = (37 * hash) + DOUBLE_DATA_FIELD_NUMBER; hash = (53 * hash) + getDoubleDataList().hashCode(); } if (getUint64DataCount() > 0) { hash = (37 * hash) + UINT64_DATA_FIELD_NUMBER; hash = (53 * hash) + getUint64DataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TensorProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TensorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A message defined to store a tensor in its serialized format.
     * 
* * Protobuf type {@code onnx.TensorProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorProto) onnx.OnnxMl.TensorProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorProto.class, onnx.OnnxMl.TensorProto.Builder.class); } // Construct using onnx.OnnxMl.TensorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); dims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); dataType_ = 0; if (segmentBuilder_ == null) { segment_ = null; } else { segment_ = null; segmentBuilder_ = null; } floatData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); int32Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); stringData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); int64Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); name_ = ""; docString_ = ""; rawData_ = org.nd4j.shade.protobuf.ByteString.EMPTY; doubleData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); uint64Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TensorProto_descriptor; } public onnx.OnnxMl.TensorProto getDefaultInstanceForType() { return onnx.OnnxMl.TensorProto.getDefaultInstance(); } public onnx.OnnxMl.TensorProto build() { onnx.OnnxMl.TensorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TensorProto buildPartial() { onnx.OnnxMl.TensorProto result = new onnx.OnnxMl.TensorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { dims_ = java.util.Collections.unmodifiableList(dims_); bitField0_ = (bitField0_ & ~0x00000001); } result.dims_ = dims_; result.dataType_ = dataType_; if (segmentBuilder_ == null) { result.segment_ = segment_; } else { result.segment_ = segmentBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { floatData_ = java.util.Collections.unmodifiableList(floatData_); bitField0_ = (bitField0_ & ~0x00000008); } result.floatData_ = floatData_; if (((bitField0_ & 0x00000010) == 0x00000010)) { int32Data_ = java.util.Collections.unmodifiableList(int32Data_); bitField0_ = (bitField0_ & ~0x00000010); } result.int32Data_ = int32Data_; if (((bitField0_ & 0x00000020) == 0x00000020)) { stringData_ = java.util.Collections.unmodifiableList(stringData_); bitField0_ = (bitField0_ & ~0x00000020); } result.stringData_ = stringData_; if (((bitField0_ & 0x00000040) == 0x00000040)) { int64Data_ = java.util.Collections.unmodifiableList(int64Data_); bitField0_ = (bitField0_ & ~0x00000040); } result.int64Data_ = int64Data_; result.name_ = name_; result.docString_ = docString_; result.rawData_ = rawData_; if (((bitField0_ & 0x00000400) == 0x00000400)) { doubleData_ = java.util.Collections.unmodifiableList(doubleData_); bitField0_ = (bitField0_ & ~0x00000400); } result.doubleData_ = doubleData_; if (((bitField0_ & 0x00000800) == 0x00000800)) { uint64Data_ = java.util.Collections.unmodifiableList(uint64Data_); bitField0_ = (bitField0_ & ~0x00000800); } result.uint64Data_ = uint64Data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TensorProto) { return mergeFrom((onnx.OnnxMl.TensorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TensorProto other) { if (other == onnx.OnnxMl.TensorProto.getDefaultInstance()) return this; if (!other.dims_.isEmpty()) { if (dims_.isEmpty()) { dims_ = other.dims_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDimsIsMutable(); dims_.addAll(other.dims_); } onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasSegment()) { mergeSegment(other.getSegment()); } if (!other.floatData_.isEmpty()) { if (floatData_.isEmpty()) { floatData_ = other.floatData_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFloatDataIsMutable(); floatData_.addAll(other.floatData_); } onChanged(); } if (!other.int32Data_.isEmpty()) { if (int32Data_.isEmpty()) { int32Data_ = other.int32Data_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureInt32DataIsMutable(); int32Data_.addAll(other.int32Data_); } onChanged(); } if (!other.stringData_.isEmpty()) { if (stringData_.isEmpty()) { stringData_ = other.stringData_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureStringDataIsMutable(); stringData_.addAll(other.stringData_); } onChanged(); } if (!other.int64Data_.isEmpty()) { if (int64Data_.isEmpty()) { int64Data_ = other.int64Data_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureInt64DataIsMutable(); int64Data_.addAll(other.int64Data_); } onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; onChanged(); } if (other.getRawData() != org.nd4j.shade.protobuf.ByteString.EMPTY) { setRawData(other.getRawData()); } if (!other.doubleData_.isEmpty()) { if (doubleData_.isEmpty()) { doubleData_ = other.doubleData_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureDoubleDataIsMutable(); doubleData_.addAll(other.doubleData_); } onChanged(); } if (!other.uint64Data_.isEmpty()) { if (uint64Data_.isEmpty()) { uint64Data_ = other.uint64Data_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureUint64DataIsMutable(); uint64Data_.addAll(other.uint64Data_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TensorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TensorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List dims_ = java.util.Collections.emptyList(); private void ensureDimsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { dims_ = new java.util.ArrayList(dims_); bitField0_ |= 0x00000001; } } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public java.util.List getDimsList() { return java.util.Collections.unmodifiableList(dims_); } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public int getDimsCount() { return dims_.size(); } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public long getDims(int index) { return dims_.get(index); } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public Builder setDims( int index, long value) { ensureDimsIsMutable(); dims_.set(index, value); onChanged(); return this; } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public Builder addDims(long value) { ensureDimsIsMutable(); dims_.add(value); onChanged(); return this; } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public Builder addAllDims( java.lang.Iterable values) { ensureDimsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, dims_); onChanged(); return this; } /** *
       * The shape of the tensor.
       * 
* * repeated int64 dims = 1; */ public Builder clearDims() { dims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private int dataType_ = 0; /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public int getDataTypeValue() { return dataType_; } /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public Builder setDataTypeValue(int value) { dataType_ = value; onChanged(); return this; } /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public onnx.OnnxMl.TensorProto.DataType getDataType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(dataType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public Builder setDataType(onnx.OnnxMl.TensorProto.DataType value) { if (value == null) { throw new NullPointerException(); } dataType_ = value.getNumber(); onChanged(); return this; } /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public Builder clearDataType() { dataType_ = 0; onChanged(); return this; } private onnx.OnnxMl.TensorProto.Segment segment_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto.Segment, onnx.OnnxMl.TensorProto.Segment.Builder, onnx.OnnxMl.TensorProto.SegmentOrBuilder> segmentBuilder_; /** * .onnx.TensorProto.Segment segment = 3; */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMl.TensorProto.Segment getSegment() { if (segmentBuilder_ == null) { return segment_ == null ? onnx.OnnxMl.TensorProto.Segment.getDefaultInstance() : segment_; } else { return segmentBuilder_.getMessage(); } } /** * .onnx.TensorProto.Segment segment = 3; */ public Builder setSegment(onnx.OnnxMl.TensorProto.Segment value) { if (segmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segment_ = value; onChanged(); } else { segmentBuilder_.setMessage(value); } return this; } /** * .onnx.TensorProto.Segment segment = 3; */ public Builder setSegment( onnx.OnnxMl.TensorProto.Segment.Builder builderForValue) { if (segmentBuilder_ == null) { segment_ = builderForValue.build(); onChanged(); } else { segmentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .onnx.TensorProto.Segment segment = 3; */ public Builder mergeSegment(onnx.OnnxMl.TensorProto.Segment value) { if (segmentBuilder_ == null) { if (segment_ != null) { segment_ = onnx.OnnxMl.TensorProto.Segment.newBuilder(segment_).mergeFrom(value).buildPartial(); } else { segment_ = value; } onChanged(); } else { segmentBuilder_.mergeFrom(value); } return this; } /** * .onnx.TensorProto.Segment segment = 3; */ public Builder clearSegment() { if (segmentBuilder_ == null) { segment_ = null; onChanged(); } else { segment_ = null; segmentBuilder_ = null; } return this; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMl.TensorProto.Segment.Builder getSegmentBuilder() { onChanged(); return getSegmentFieldBuilder().getBuilder(); } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMl.TensorProto.SegmentOrBuilder getSegmentOrBuilder() { if (segmentBuilder_ != null) { return segmentBuilder_.getMessageOrBuilder(); } else { return segment_ == null ? onnx.OnnxMl.TensorProto.Segment.getDefaultInstance() : segment_; } } /** * .onnx.TensorProto.Segment segment = 3; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto.Segment, onnx.OnnxMl.TensorProto.Segment.Builder, onnx.OnnxMl.TensorProto.SegmentOrBuilder> getSegmentFieldBuilder() { if (segmentBuilder_ == null) { segmentBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorProto.Segment, onnx.OnnxMl.TensorProto.Segment.Builder, onnx.OnnxMl.TensorProto.SegmentOrBuilder>( getSegment(), getParentForChildren(), isClean()); segment_ = null; } return segmentBuilder_; } private java.util.List floatData_ = java.util.Collections.emptyList(); private void ensureFloatDataIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { floatData_ = new java.util.ArrayList(floatData_); bitField0_ |= 0x00000008; } } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public java.util.List getFloatDataList() { return java.util.Collections.unmodifiableList(floatData_); } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public int getFloatDataCount() { return floatData_.size(); } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public float getFloatData(int index) { return floatData_.get(index); } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public Builder setFloatData( int index, float value) { ensureFloatDataIsMutable(); floatData_.set(index, value); onChanged(); return this; } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public Builder addFloatData(float value) { ensureFloatDataIsMutable(); floatData_.add(value); onChanged(); return this; } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public Builder addAllFloatData( java.lang.Iterable values) { ensureFloatDataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, floatData_); onChanged(); return this; } /** *
       * For float and complex64 values
       * Complex64 tensors are encoded as a single array of floats,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
       * 
* * repeated float float_data = 4 [packed = true]; */ public Builder clearFloatData() { floatData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List int32Data_ = java.util.Collections.emptyList(); private void ensureInt32DataIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { int32Data_ = new java.util.ArrayList(int32Data_); bitField0_ |= 0x00000010; } } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public java.util.List getInt32DataList() { return java.util.Collections.unmodifiableList(int32Data_); } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public int getInt32DataCount() { return int32Data_.size(); } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public int getInt32Data(int index) { return int32Data_.get(index); } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public Builder setInt32Data( int index, int value) { ensureInt32DataIsMutable(); int32Data_.set(index, value); onChanged(); return this; } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public Builder addInt32Data(int value) { ensureInt32DataIsMutable(); int32Data_.add(value); onChanged(); return this; } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public Builder addAllInt32Data( java.lang.Iterable values) { ensureInt32DataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, int32Data_); onChanged(); return this; } /** *
       * For int32, uint8, int8, uint16, int16, bool, and float16 values
       * float16 values must be bit-wise converted to an uint16_t prior
       * to writing to the buffer.
       * When this field is present, the data_type field MUST be
       * INT32, INT16, INT8, UINT16, INT8, BOOL, or FLOAT32
       * 
* * repeated int32 int32_data = 5 [packed = true]; */ public Builder clearInt32Data() { int32Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List stringData_ = java.util.Collections.emptyList(); private void ensureStringDataIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { stringData_ = new java.util.ArrayList(stringData_); bitField0_ |= 0x00000020; } } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public java.util.List getStringDataList() { return java.util.Collections.unmodifiableList(stringData_); } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public int getStringDataCount() { return stringData_.size(); } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public org.nd4j.shade.protobuf.ByteString getStringData(int index) { return stringData_.get(index); } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public Builder setStringData( int index, org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringDataIsMutable(); stringData_.set(index, value); onChanged(); return this; } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public Builder addStringData(org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringDataIsMutable(); stringData_.add(value); onChanged(); return this; } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public Builder addAllStringData( java.lang.Iterable values) { ensureStringDataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, stringData_); onChanged(); return this; } /** *
       * For strings.
       * Each element of string_data is a UTF-8 encoded Unicode
       * string. No trailing null, no leading BOM. The protobuf "string"
       * scalar type is not used to match ML community conventions.
       * When this field is present, the data_type field MUST be STRING
       * 
* * repeated bytes string_data = 6; */ public Builder clearStringData() { stringData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List int64Data_ = java.util.Collections.emptyList(); private void ensureInt64DataIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { int64Data_ = new java.util.ArrayList(int64Data_); bitField0_ |= 0x00000040; } } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public java.util.List getInt64DataList() { return java.util.Collections.unmodifiableList(int64Data_); } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public int getInt64DataCount() { return int64Data_.size(); } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public long getInt64Data(int index) { return int64Data_.get(index); } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public Builder setInt64Data( int index, long value) { ensureInt64DataIsMutable(); int64Data_.set(index, value); onChanged(); return this; } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public Builder addInt64Data(long value) { ensureInt64DataIsMutable(); int64Data_.add(value); onChanged(); return this; } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public Builder addAllInt64Data( java.lang.Iterable values) { ensureInt64DataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, int64Data_); onChanged(); return this; } /** *
       * For int64.
       * When this field is present, the data_type field MUST be INT64
       * 
* * repeated int64 int64_data = 7 [packed = true]; */ public Builder clearInt64Data() { int64Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Optionally, a name for the tensor.
       * 
* * string name = 8; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optionally, a name for the tensor.
       * 
* * string name = 8; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Optionally, a name for the tensor.
       * 
* * string name = 8; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Optionally, a name for the tensor.
       * 
* * string name = 8; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Optionally, a name for the tensor.
       * 
* * string name = 8; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * A human-readable documentation for this tensor. Markdown is allowed.
       * 
* * string doc_string = 12; */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A human-readable documentation for this tensor. Markdown is allowed.
       * 
* * string doc_string = 12; */ public org.nd4j.shade.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * A human-readable documentation for this tensor. Markdown is allowed.
       * 
* * string doc_string = 12; */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; onChanged(); return this; } /** *
       * A human-readable documentation for this tensor. Markdown is allowed.
       * 
* * string doc_string = 12; */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); onChanged(); return this; } /** *
       * A human-readable documentation for this tensor. Markdown is allowed.
       * 
* * string doc_string = 12; */ public Builder setDocStringBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private org.nd4j.shade.protobuf.ByteString rawData_ = org.nd4j.shade.protobuf.ByteString.EMPTY; /** *
       * Serializations can either use one of the fields above, or use this
       * raw bytes field. The only exception is the string case, where one is
       * required to store the content in the repeated bytes string_data field.
       * When this raw_data field is used to store tensor value, elements MUST
       * be stored in as fixed-width, little-endian order.
       * Floating-point data types MUST be stored in IEEE 754 format.
       * Complex64 elements must be written as two consecutive FLOAT values, real component first.
       * Complex128 elements must be written as two consecutive DOUBLE values, real component first.
       * Boolean type MUST be written one byte per tensor element (00000001 for true, 00000000 for false).
       * Note: the advantage of specific field rather than the raw_data field is
       * that in some cases (e.g. int data), protobuf does a better packing via
       * variable length storage, and may lead to smaller binary footprint.
       * When this field is present, the data_type field MUST NOT be STRING or UNDEFINED
       * 
* * bytes raw_data = 9; */ public org.nd4j.shade.protobuf.ByteString getRawData() { return rawData_; } /** *
       * Serializations can either use one of the fields above, or use this
       * raw bytes field. The only exception is the string case, where one is
       * required to store the content in the repeated bytes string_data field.
       * When this raw_data field is used to store tensor value, elements MUST
       * be stored in as fixed-width, little-endian order.
       * Floating-point data types MUST be stored in IEEE 754 format.
       * Complex64 elements must be written as two consecutive FLOAT values, real component first.
       * Complex128 elements must be written as two consecutive DOUBLE values, real component first.
       * Boolean type MUST be written one byte per tensor element (00000001 for true, 00000000 for false).
       * Note: the advantage of specific field rather than the raw_data field is
       * that in some cases (e.g. int data), protobuf does a better packing via
       * variable length storage, and may lead to smaller binary footprint.
       * When this field is present, the data_type field MUST NOT be STRING or UNDEFINED
       * 
* * bytes raw_data = 9; */ public Builder setRawData(org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rawData_ = value; onChanged(); return this; } /** *
       * Serializations can either use one of the fields above, or use this
       * raw bytes field. The only exception is the string case, where one is
       * required to store the content in the repeated bytes string_data field.
       * When this raw_data field is used to store tensor value, elements MUST
       * be stored in as fixed-width, little-endian order.
       * Floating-point data types MUST be stored in IEEE 754 format.
       * Complex64 elements must be written as two consecutive FLOAT values, real component first.
       * Complex128 elements must be written as two consecutive DOUBLE values, real component first.
       * Boolean type MUST be written one byte per tensor element (00000001 for true, 00000000 for false).
       * Note: the advantage of specific field rather than the raw_data field is
       * that in some cases (e.g. int data), protobuf does a better packing via
       * variable length storage, and may lead to smaller binary footprint.
       * When this field is present, the data_type field MUST NOT be STRING or UNDEFINED
       * 
* * bytes raw_data = 9; */ public Builder clearRawData() { rawData_ = getDefaultInstance().getRawData(); onChanged(); return this; } private java.util.List doubleData_ = java.util.Collections.emptyList(); private void ensureDoubleDataIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { doubleData_ = new java.util.ArrayList(doubleData_); bitField0_ |= 0x00000400; } } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public java.util.List getDoubleDataList() { return java.util.Collections.unmodifiableList(doubleData_); } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public int getDoubleDataCount() { return doubleData_.size(); } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public double getDoubleData(int index) { return doubleData_.get(index); } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public Builder setDoubleData( int index, double value) { ensureDoubleDataIsMutable(); doubleData_.set(index, value); onChanged(); return this; } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public Builder addDoubleData(double value) { ensureDoubleDataIsMutable(); doubleData_.add(value); onChanged(); return this; } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public Builder addAllDoubleData( java.lang.Iterable values) { ensureDoubleDataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, doubleData_); onChanged(); return this; } /** *
       * For double
       * Complex64 tensors are encoded as a single array of doubles,
       * with the real components appearing in odd numbered positions,
       * and the corresponding imaginary component apparing in the
       * subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
       * is encoded as [1.0, 2.0 ,3.0 ,4.0]
       * When this field is present, the data_type field MUST be DOUBLE or COMPLEX128
       * 
* * repeated double double_data = 10 [packed = true]; */ public Builder clearDoubleData() { doubleData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private java.util.List uint64Data_ = java.util.Collections.emptyList(); private void ensureUint64DataIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { uint64Data_ = new java.util.ArrayList(uint64Data_); bitField0_ |= 0x00000800; } } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public java.util.List getUint64DataList() { return java.util.Collections.unmodifiableList(uint64Data_); } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public int getUint64DataCount() { return uint64Data_.size(); } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public long getUint64Data(int index) { return uint64Data_.get(index); } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public Builder setUint64Data( int index, long value) { ensureUint64DataIsMutable(); uint64Data_.set(index, value); onChanged(); return this; } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public Builder addUint64Data(long value) { ensureUint64DataIsMutable(); uint64Data_.add(value); onChanged(); return this; } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public Builder addAllUint64Data( java.lang.Iterable values) { ensureUint64DataIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, uint64Data_); onChanged(); return this; } /** *
       * For uint64 and uint32 values
       * When this field is present, the data_type field MUST be
       * UINT32 or UINT64
       * 
* * repeated uint64 uint64_data = 11 [packed = true]; */ public Builder clearUint64Data() { uint64Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorProto) } // @@protoc_insertion_point(class_scope:onnx.TensorProto) private static final onnx.OnnxMl.TensorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TensorProto(); } public static onnx.OnnxMl.TensorProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public TensorProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new TensorProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TensorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TensorShapeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorShapeProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ java.util.List getDimList(); /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ onnx.OnnxMl.TensorShapeProto.Dimension getDim(int index); /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ int getDimCount(); /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ java.util.List getDimOrBuilderList(); /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder getDimOrBuilder( int index); } /** *
   * Defines a tensor shape. A dimension can be either an integer value
   * or a symbolic variable. A symbolic variable represents an unknown
   * dimension.
   * 
* * Protobuf type {@code onnx.TensorShapeProto} */ public static final class TensorShapeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorShapeProto) TensorShapeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TensorShapeProto.newBuilder() to construct. private TensorShapeProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TensorShapeProto() { dim_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorShapeProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dim_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dim_.add( input.readMessage(onnx.OnnxMl.TensorShapeProto.Dimension.parser(), extensionRegistry)); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dim_ = java.util.Collections.unmodifiableList(dim_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorShapeProto.class, onnx.OnnxMl.TensorShapeProto.Builder.class); } public interface DimensionOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorShapeProto.Dimension) org.nd4j.shade.protobuf.MessageOrBuilder { /** * int64 dim_value = 1; */ long getDimValue(); /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ java.lang.String getDimParam(); /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ org.nd4j.shade.protobuf.ByteString getDimParamBytes(); public onnx.OnnxMl.TensorShapeProto.Dimension.ValueCase getValueCase(); } /** * Protobuf type {@code onnx.TensorShapeProto.Dimension} */ public static final class Dimension extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorShapeProto.Dimension) DimensionOrBuilder { private static final long serialVersionUID = 0L; // Use Dimension.newBuilder() to construct. private Dimension(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Dimension() { } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Dimension( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { valueCase_ = 1; value_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 2; value_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorShapeProto.Dimension.class, onnx.OnnxMl.TensorShapeProto.Dimension.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements org.nd4j.shade.protobuf.Internal.EnumLite { DIM_VALUE(1), DIM_PARAM(2), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return DIM_VALUE; case 2: return DIM_PARAM; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int DIM_VALUE_FIELD_NUMBER = 1; /** * int64 dim_value = 1; */ public long getDimValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } public static final int DIM_PARAM_FIELD_NUMBER = 2; /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ public java.lang.String getDimParam() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 2) { value_ = s; } return s; } } /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ public org.nd4j.shade.protobuf.ByteString getDimParamBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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 onnx.OnnxMl.TensorShapeProto.Dimension)) { return super.equals(obj); } onnx.OnnxMl.TensorShapeProto.Dimension other = (onnx.OnnxMl.TensorShapeProto.Dimension) obj; boolean result = true; result = result && getValueCase().equals( other.getValueCase()); if (!result) return false; switch (valueCase_) { case 1: result = result && (getDimValue() == other.getDimValue()); break; case 2: result = result && getDimParam() .equals(other.getDimParam()); 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(); switch (valueCase_) { case 1: hash = (37 * hash) + DIM_VALUE_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getDimValue()); break; case 2: hash = (37 * hash) + DIM_PARAM_FIELD_NUMBER; hash = (53 * hash) + getDimParam().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto.Dimension parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TensorShapeProto.Dimension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code onnx.TensorShapeProto.Dimension} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorShapeProto.Dimension) onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorShapeProto.Dimension.class, onnx.OnnxMl.TensorShapeProto.Dimension.Builder.class); } // Construct using onnx.OnnxMl.TensorShapeProto.Dimension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); valueCase_ = 0; value_ = null; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } public onnx.OnnxMl.TensorShapeProto.Dimension getDefaultInstanceForType() { return onnx.OnnxMl.TensorShapeProto.Dimension.getDefaultInstance(); } public onnx.OnnxMl.TensorShapeProto.Dimension build() { onnx.OnnxMl.TensorShapeProto.Dimension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TensorShapeProto.Dimension buildPartial() { onnx.OnnxMl.TensorShapeProto.Dimension result = new onnx.OnnxMl.TensorShapeProto.Dimension(this); if (valueCase_ == 1) { result.value_ = value_; } if (valueCase_ == 2) { result.value_ = value_; } result.valueCase_ = valueCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TensorShapeProto.Dimension) { return mergeFrom((onnx.OnnxMl.TensorShapeProto.Dimension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TensorShapeProto.Dimension other) { if (other == onnx.OnnxMl.TensorShapeProto.Dimension.getDefaultInstance()) return this; switch (other.getValueCase()) { case DIM_VALUE: { setDimValue(other.getDimValue()); break; } case DIM_PARAM: { valueCase_ = 2; value_ = other.value_; onChanged(); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TensorShapeProto.Dimension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TensorShapeProto.Dimension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } /** * int64 dim_value = 1; */ public long getDimValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } /** * int64 dim_value = 1; */ public Builder setDimValue(long value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * int64 dim_value = 1; */ public Builder clearDimValue() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
         * namespace Shape
         * 
* * string dim_param = 2; */ public java.lang.String getDimParam() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 2) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * namespace Shape
         * 
* * string dim_param = 2; */ public org.nd4j.shade.protobuf.ByteString getDimParamBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
         * namespace Shape
         * 
* * string dim_param = 2; */ public Builder setDimParam( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 2; value_ = value; onChanged(); return this; } /** *
         * namespace Shape
         * 
* * string dim_param = 2; */ public Builder clearDimParam() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
         * namespace Shape
         * 
* * string dim_param = 2; */ public Builder setDimParamBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 2; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorShapeProto.Dimension) } // @@protoc_insertion_point(class_scope:onnx.TensorShapeProto.Dimension) private static final onnx.OnnxMl.TensorShapeProto.Dimension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TensorShapeProto.Dimension(); } public static onnx.OnnxMl.TensorShapeProto.Dimension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Dimension parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Dimension(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TensorShapeProto.Dimension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int DIM_FIELD_NUMBER = 1; private java.util.List dim_; /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimList() { return dim_; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimOrBuilderList() { return dim_; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public int getDimCount() { return dim_.size(); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.Dimension getDim(int index) { return dim_.get(index); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder getDimOrBuilder( int index) { return dim_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dim_.size(); i++) { output.writeMessage(1, dim_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < dim_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, dim_.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 onnx.OnnxMl.TensorShapeProto)) { return super.equals(obj); } onnx.OnnxMl.TensorShapeProto other = (onnx.OnnxMl.TensorShapeProto) obj; boolean result = true; result = result && getDimList() .equals(other.getDimList()); 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 (getDimCount() > 0) { hash = (37 * hash) + DIM_FIELD_NUMBER; hash = (53 * hash) + getDimList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TensorShapeProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TensorShapeProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TensorShapeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TensorShapeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TensorShapeProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Defines a tensor shape. A dimension can be either an integer value
     * or a symbolic variable. A symbolic variable represents an unknown
     * dimension.
     * 
* * Protobuf type {@code onnx.TensorShapeProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorShapeProto) onnx.OnnxMl.TensorShapeProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TensorShapeProto.class, onnx.OnnxMl.TensorShapeProto.Builder.class); } // Construct using onnx.OnnxMl.TensorShapeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDimFieldBuilder(); } } public Builder clear() { super.clear(); if (dimBuilder_ == null) { dim_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dimBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TensorShapeProto_descriptor; } public onnx.OnnxMl.TensorShapeProto getDefaultInstanceForType() { return onnx.OnnxMl.TensorShapeProto.getDefaultInstance(); } public onnx.OnnxMl.TensorShapeProto build() { onnx.OnnxMl.TensorShapeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TensorShapeProto buildPartial() { onnx.OnnxMl.TensorShapeProto result = new onnx.OnnxMl.TensorShapeProto(this); int from_bitField0_ = bitField0_; if (dimBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { dim_ = java.util.Collections.unmodifiableList(dim_); bitField0_ = (bitField0_ & ~0x00000001); } result.dim_ = dim_; } else { result.dim_ = dimBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TensorShapeProto) { return mergeFrom((onnx.OnnxMl.TensorShapeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TensorShapeProto other) { if (other == onnx.OnnxMl.TensorShapeProto.getDefaultInstance()) return this; if (dimBuilder_ == null) { if (!other.dim_.isEmpty()) { if (dim_.isEmpty()) { dim_ = other.dim_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDimIsMutable(); dim_.addAll(other.dim_); } onChanged(); } } else { if (!other.dim_.isEmpty()) { if (dimBuilder_.isEmpty()) { dimBuilder_.dispose(); dimBuilder_ = null; dim_ = other.dim_; bitField0_ = (bitField0_ & ~0x00000001); dimBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDimFieldBuilder() : null; } else { dimBuilder_.addAllMessages(other.dim_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TensorShapeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TensorShapeProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List dim_ = java.util.Collections.emptyList(); private void ensureDimIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { dim_ = new java.util.ArrayList(dim_); bitField0_ |= 0x00000001; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorShapeProto.Dimension, onnx.OnnxMl.TensorShapeProto.Dimension.Builder, onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder> dimBuilder_; /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimList() { if (dimBuilder_ == null) { return java.util.Collections.unmodifiableList(dim_); } else { return dimBuilder_.getMessageList(); } } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public int getDimCount() { if (dimBuilder_ == null) { return dim_.size(); } else { return dimBuilder_.getCount(); } } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.Dimension getDim(int index) { if (dimBuilder_ == null) { return dim_.get(index); } else { return dimBuilder_.getMessage(index); } } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder setDim( int index, onnx.OnnxMl.TensorShapeProto.Dimension value) { if (dimBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimIsMutable(); dim_.set(index, value); onChanged(); } else { dimBuilder_.setMessage(index, value); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder setDim( int index, onnx.OnnxMl.TensorShapeProto.Dimension.Builder builderForValue) { if (dimBuilder_ == null) { ensureDimIsMutable(); dim_.set(index, builderForValue.build()); onChanged(); } else { dimBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder addDim(onnx.OnnxMl.TensorShapeProto.Dimension value) { if (dimBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimIsMutable(); dim_.add(value); onChanged(); } else { dimBuilder_.addMessage(value); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder addDim( int index, onnx.OnnxMl.TensorShapeProto.Dimension value) { if (dimBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimIsMutable(); dim_.add(index, value); onChanged(); } else { dimBuilder_.addMessage(index, value); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder addDim( onnx.OnnxMl.TensorShapeProto.Dimension.Builder builderForValue) { if (dimBuilder_ == null) { ensureDimIsMutable(); dim_.add(builderForValue.build()); onChanged(); } else { dimBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder addDim( int index, onnx.OnnxMl.TensorShapeProto.Dimension.Builder builderForValue) { if (dimBuilder_ == null) { ensureDimIsMutable(); dim_.add(index, builderForValue.build()); onChanged(); } else { dimBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder addAllDim( java.lang.Iterable values) { if (dimBuilder_ == null) { ensureDimIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, dim_); onChanged(); } else { dimBuilder_.addAllMessages(values); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder clearDim() { if (dimBuilder_ == null) { dim_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dimBuilder_.clear(); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public Builder removeDim(int index) { if (dimBuilder_ == null) { ensureDimIsMutable(); dim_.remove(index); onChanged(); } else { dimBuilder_.remove(index); } return this; } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.Dimension.Builder getDimBuilder( int index) { return getDimFieldBuilder().getBuilder(index); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder getDimOrBuilder( int index) { if (dimBuilder_ == null) { return dim_.get(index); } else { return dimBuilder_.getMessageOrBuilder(index); } } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimOrBuilderList() { if (dimBuilder_ != null) { return dimBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dim_); } } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.Dimension.Builder addDimBuilder() { return getDimFieldBuilder().addBuilder( onnx.OnnxMl.TensorShapeProto.Dimension.getDefaultInstance()); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMl.TensorShapeProto.Dimension.Builder addDimBuilder( int index) { return getDimFieldBuilder().addBuilder( index, onnx.OnnxMl.TensorShapeProto.Dimension.getDefaultInstance()); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimBuilderList() { return getDimFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorShapeProto.Dimension, onnx.OnnxMl.TensorShapeProto.Dimension.Builder, onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder> getDimFieldBuilder() { if (dimBuilder_ == null) { dimBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< onnx.OnnxMl.TensorShapeProto.Dimension, onnx.OnnxMl.TensorShapeProto.Dimension.Builder, onnx.OnnxMl.TensorShapeProto.DimensionOrBuilder>( dim_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); dim_ = null; } return dimBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorShapeProto) } // @@protoc_insertion_point(class_scope:onnx.TensorShapeProto) private static final onnx.OnnxMl.TensorShapeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TensorShapeProto(); } public static onnx.OnnxMl.TensorShapeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public TensorShapeProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new TensorShapeProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TensorShapeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ boolean hasTensorType(); /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ onnx.OnnxMl.TypeProto.Tensor getTensorType(); /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ onnx.OnnxMl.TypeProto.TensorOrBuilder getTensorTypeOrBuilder(); /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ boolean hasSequenceType(); /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ onnx.OnnxMl.TypeProto.Sequence getSequenceType(); /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ onnx.OnnxMl.TypeProto.SequenceOrBuilder getSequenceTypeOrBuilder(); /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ boolean hasMapType(); /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ onnx.OnnxMl.TypeProto.Map getMapType(); /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ onnx.OnnxMl.TypeProto.MapOrBuilder getMapTypeOrBuilder(); public onnx.OnnxMl.TypeProto.ValueCase getValueCase(); } /** *
   * Define the types.
   * 
* * Protobuf type {@code onnx.TypeProto} */ public static final class TypeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto) TypeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TypeProto.newBuilder() to construct. private TypeProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TypeProto() { } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypeProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { onnx.OnnxMl.TypeProto.Tensor.Builder subBuilder = null; if (valueCase_ == 1) { subBuilder = ((onnx.OnnxMl.TypeProto.Tensor) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMl.TypeProto.Tensor.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMl.TypeProto.Tensor) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 1; break; } case 34: { onnx.OnnxMl.TypeProto.Sequence.Builder subBuilder = null; if (valueCase_ == 4) { subBuilder = ((onnx.OnnxMl.TypeProto.Sequence) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMl.TypeProto.Sequence.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMl.TypeProto.Sequence) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 4; break; } case 42: { onnx.OnnxMl.TypeProto.Map.Builder subBuilder = null; if (valueCase_ == 5) { subBuilder = ((onnx.OnnxMl.TypeProto.Map) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMl.TypeProto.Map.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMl.TypeProto.Map) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 5; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.class, onnx.OnnxMl.TypeProto.Builder.class); } public interface TensorOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Tensor) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
       * This field MUST NOT have the value of UNDEFINED
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TensorProto.DataType elem_type = 1; */ int getElemTypeValue(); /** *
       * This field MUST NOT have the value of UNDEFINED
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TensorProto.DataType elem_type = 1; */ onnx.OnnxMl.TensorProto.DataType getElemType(); /** * .onnx.TensorShapeProto shape = 2; */ boolean hasShape(); /** * .onnx.TensorShapeProto shape = 2; */ onnx.OnnxMl.TensorShapeProto getShape(); /** * .onnx.TensorShapeProto shape = 2; */ onnx.OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder(); } /** * Protobuf type {@code onnx.TypeProto.Tensor} */ public static final class Tensor extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Tensor) TensorOrBuilder { private static final long serialVersionUID = 0L; // Use Tensor.newBuilder() to construct. private Tensor(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tensor() { elemType_ = 0; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tensor( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); elemType_ = rawValue; break; } case 18: { onnx.OnnxMl.TensorShapeProto.Builder subBuilder = null; if (shape_ != null) { subBuilder = shape_.toBuilder(); } shape_ = input.readMessage(onnx.OnnxMl.TensorShapeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shape_); shape_ = subBuilder.buildPartial(); } break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Tensor_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Tensor_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Tensor.class, onnx.OnnxMl.TypeProto.Tensor.Builder.class); } public static final int ELEM_TYPE_FIELD_NUMBER = 1; private int elemType_; /** *
       * This field MUST NOT have the value of UNDEFINED
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public int getElemTypeValue() { return elemType_; } /** *
       * This field MUST NOT have the value of UNDEFINED
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public onnx.OnnxMl.TensorProto.DataType getElemType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(elemType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 2; private onnx.OnnxMl.TensorShapeProto shape_; /** * .onnx.TensorShapeProto shape = 2; */ public boolean hasShape() { return shape_ != null; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMl.TensorShapeProto getShape() { return shape_ == null ? onnx.OnnxMl.TensorShapeProto.getDefaultInstance() : shape_; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder() { return getShape(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (elemType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { output.writeEnum(1, elemType_); } if (shape_ != null) { output.writeMessage(2, getShape()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (elemType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(1, elemType_); } if (shape_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getShape()); } 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 onnx.OnnxMl.TypeProto.Tensor)) { return super.equals(obj); } onnx.OnnxMl.TypeProto.Tensor other = (onnx.OnnxMl.TypeProto.Tensor) obj; boolean result = true; result = result && elemType_ == other.elemType_; result = result && (hasShape() == other.hasShape()); if (hasShape()) { result = result && getShape() .equals(other.getShape()); } 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) + ELEM_TYPE_FIELD_NUMBER; hash = (53 * hash) + elemType_; if (hasShape()) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShape().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Tensor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Tensor parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Tensor parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TypeProto.Tensor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code onnx.TypeProto.Tensor} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Tensor) onnx.OnnxMl.TypeProto.TensorOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Tensor_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Tensor_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Tensor.class, onnx.OnnxMl.TypeProto.Tensor.Builder.class); } // Construct using onnx.OnnxMl.TypeProto.Tensor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); elemType_ = 0; if (shapeBuilder_ == null) { shape_ = null; } else { shape_ = null; shapeBuilder_ = null; } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Tensor_descriptor; } public onnx.OnnxMl.TypeProto.Tensor getDefaultInstanceForType() { return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } public onnx.OnnxMl.TypeProto.Tensor build() { onnx.OnnxMl.TypeProto.Tensor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TypeProto.Tensor buildPartial() { onnx.OnnxMl.TypeProto.Tensor result = new onnx.OnnxMl.TypeProto.Tensor(this); result.elemType_ = elemType_; if (shapeBuilder_ == null) { result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TypeProto.Tensor) { return mergeFrom((onnx.OnnxMl.TypeProto.Tensor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TypeProto.Tensor other) { if (other == onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance()) return this; if (other.elemType_ != 0) { setElemTypeValue(other.getElemTypeValue()); } if (other.hasShape()) { mergeShape(other.getShape()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TypeProto.Tensor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TypeProto.Tensor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int elemType_ = 0; /** *
         * This field MUST NOT have the value of UNDEFINED
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public int getElemTypeValue() { return elemType_; } /** *
         * This field MUST NOT have the value of UNDEFINED
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public Builder setElemTypeValue(int value) { elemType_ = value; onChanged(); return this; } /** *
         * This field MUST NOT have the value of UNDEFINED
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public onnx.OnnxMl.TensorProto.DataType getElemType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(elemType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } /** *
         * This field MUST NOT have the value of UNDEFINED
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public Builder setElemType(onnx.OnnxMl.TensorProto.DataType value) { if (value == null) { throw new NullPointerException(); } elemType_ = value.getNumber(); onChanged(); return this; } /** *
         * This field MUST NOT have the value of UNDEFINED
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TensorProto.DataType elem_type = 1; */ public Builder clearElemType() { elemType_ = 0; onChanged(); return this; } private onnx.OnnxMl.TensorShapeProto shape_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorShapeProto, onnx.OnnxMl.TensorShapeProto.Builder, onnx.OnnxMl.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .onnx.TensorShapeProto shape = 2; */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMl.TensorShapeProto getShape() { if (shapeBuilder_ == null) { return shape_ == null ? onnx.OnnxMl.TensorShapeProto.getDefaultInstance() : shape_; } else { return shapeBuilder_.getMessage(); } } /** * .onnx.TensorShapeProto shape = 2; */ public Builder setShape(onnx.OnnxMl.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shape_ = value; onChanged(); } else { shapeBuilder_.setMessage(value); } return this; } /** * .onnx.TensorShapeProto shape = 2; */ public Builder setShape( onnx.OnnxMl.TensorShapeProto.Builder builderForValue) { if (shapeBuilder_ == null) { shape_ = builderForValue.build(); onChanged(); } else { shapeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .onnx.TensorShapeProto shape = 2; */ public Builder mergeShape(onnx.OnnxMl.TensorShapeProto value) { if (shapeBuilder_ == null) { if (shape_ != null) { shape_ = onnx.OnnxMl.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); } else { shape_ = value; } onChanged(); } else { shapeBuilder_.mergeFrom(value); } return this; } /** * .onnx.TensorShapeProto shape = 2; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = null; onChanged(); } else { shape_ = null; shapeBuilder_ = null; } return this; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMl.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_ == null ? onnx.OnnxMl.TensorShapeProto.getDefaultInstance() : shape_; } } /** * .onnx.TensorShapeProto shape = 2; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorShapeProto, onnx.OnnxMl.TensorShapeProto.Builder, onnx.OnnxMl.TensorShapeProtoOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TensorShapeProto, onnx.OnnxMl.TensorShapeProto.Builder, onnx.OnnxMl.TensorShapeProtoOrBuilder>( getShape(), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TypeProto.Tensor) } // @@protoc_insertion_point(class_scope:onnx.TypeProto.Tensor) private static final onnx.OnnxMl.TypeProto.Tensor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TypeProto.Tensor(); } public static onnx.OnnxMl.TypeProto.Tensor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Tensor parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Tensor(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TypeProto.Tensor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SequenceOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Sequence) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ boolean hasElemType(); /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ onnx.OnnxMl.TypeProto getElemType(); /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ onnx.OnnxMl.TypeProtoOrBuilder getElemTypeOrBuilder(); } /** *
     * repeated T
     * 
* * Protobuf type {@code onnx.TypeProto.Sequence} */ public static final class Sequence extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Sequence) SequenceOrBuilder { private static final long serialVersionUID = 0L; // Use Sequence.newBuilder() to construct. private Sequence(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sequence() { } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sequence( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { onnx.OnnxMl.TypeProto.Builder subBuilder = null; if (elemType_ != null) { subBuilder = elemType_.toBuilder(); } elemType_ = input.readMessage(onnx.OnnxMl.TypeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(elemType_); elemType_ = subBuilder.buildPartial(); } break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Sequence_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Sequence_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Sequence.class, onnx.OnnxMl.TypeProto.Sequence.Builder.class); } public static final int ELEM_TYPE_FIELD_NUMBER = 1; private onnx.OnnxMl.TypeProto elemType_; /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ public boolean hasElemType() { return elemType_ != null; } /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ public onnx.OnnxMl.TypeProto getElemType() { return elemType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : elemType_; } /** *
       * The type and optional shape of each element of the sequence.
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto elem_type = 1; */ public onnx.OnnxMl.TypeProtoOrBuilder getElemTypeOrBuilder() { return getElemType(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (elemType_ != null) { output.writeMessage(1, getElemType()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (elemType_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, getElemType()); } 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 onnx.OnnxMl.TypeProto.Sequence)) { return super.equals(obj); } onnx.OnnxMl.TypeProto.Sequence other = (onnx.OnnxMl.TypeProto.Sequence) obj; boolean result = true; result = result && (hasElemType() == other.hasElemType()); if (hasElemType()) { result = result && getElemType() .equals(other.getElemType()); } 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 (hasElemType()) { hash = (37 * hash) + ELEM_TYPE_FIELD_NUMBER; hash = (53 * hash) + getElemType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Sequence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Sequence parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Sequence parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TypeProto.Sequence prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * repeated T
       * 
* * Protobuf type {@code onnx.TypeProto.Sequence} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Sequence) onnx.OnnxMl.TypeProto.SequenceOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Sequence_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Sequence_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Sequence.class, onnx.OnnxMl.TypeProto.Sequence.Builder.class); } // Construct using onnx.OnnxMl.TypeProto.Sequence.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (elemTypeBuilder_ == null) { elemType_ = null; } else { elemType_ = null; elemTypeBuilder_ = null; } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Sequence_descriptor; } public onnx.OnnxMl.TypeProto.Sequence getDefaultInstanceForType() { return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } public onnx.OnnxMl.TypeProto.Sequence build() { onnx.OnnxMl.TypeProto.Sequence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TypeProto.Sequence buildPartial() { onnx.OnnxMl.TypeProto.Sequence result = new onnx.OnnxMl.TypeProto.Sequence(this); if (elemTypeBuilder_ == null) { result.elemType_ = elemType_; } else { result.elemType_ = elemTypeBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TypeProto.Sequence) { return mergeFrom((onnx.OnnxMl.TypeProto.Sequence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TypeProto.Sequence other) { if (other == onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance()) return this; if (other.hasElemType()) { mergeElemType(other.getElemType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TypeProto.Sequence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TypeProto.Sequence) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private onnx.OnnxMl.TypeProto elemType_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> elemTypeBuilder_; /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public boolean hasElemType() { return elemTypeBuilder_ != null || elemType_ != null; } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public onnx.OnnxMl.TypeProto getElemType() { if (elemTypeBuilder_ == null) { return elemType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : elemType_; } else { return elemTypeBuilder_.getMessage(); } } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public Builder setElemType(onnx.OnnxMl.TypeProto value) { if (elemTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } elemType_ = value; onChanged(); } else { elemTypeBuilder_.setMessage(value); } return this; } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public Builder setElemType( onnx.OnnxMl.TypeProto.Builder builderForValue) { if (elemTypeBuilder_ == null) { elemType_ = builderForValue.build(); onChanged(); } else { elemTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public Builder mergeElemType(onnx.OnnxMl.TypeProto value) { if (elemTypeBuilder_ == null) { if (elemType_ != null) { elemType_ = onnx.OnnxMl.TypeProto.newBuilder(elemType_).mergeFrom(value).buildPartial(); } else { elemType_ = value; } onChanged(); } else { elemTypeBuilder_.mergeFrom(value); } return this; } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public Builder clearElemType() { if (elemTypeBuilder_ == null) { elemType_ = null; onChanged(); } else { elemType_ = null; elemTypeBuilder_ = null; } return this; } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public onnx.OnnxMl.TypeProto.Builder getElemTypeBuilder() { onChanged(); return getElemTypeFieldBuilder().getBuilder(); } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ public onnx.OnnxMl.TypeProtoOrBuilder getElemTypeOrBuilder() { if (elemTypeBuilder_ != null) { return elemTypeBuilder_.getMessageOrBuilder(); } else { return elemType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : elemType_; } } /** *
         * The type and optional shape of each element of the sequence.
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto elem_type = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> getElemTypeFieldBuilder() { if (elemTypeBuilder_ == null) { elemTypeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder>( getElemType(), getParentForChildren(), isClean()); elemType_ = null; } return elemTypeBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TypeProto.Sequence) } // @@protoc_insertion_point(class_scope:onnx.TypeProto.Sequence) private static final onnx.OnnxMl.TypeProto.Sequence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TypeProto.Sequence(); } public static onnx.OnnxMl.TypeProto.Sequence getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Sequence parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Sequence(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TypeProto.Sequence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Map) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
       * This field MUST be present for this version of the IR.
       * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
       * 
* * .onnx.TensorProto.DataType key_type = 1; */ int getKeyTypeValue(); /** *
       * This field MUST be present for this version of the IR.
       * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
       * 
* * .onnx.TensorProto.DataType key_type = 1; */ onnx.OnnxMl.TensorProto.DataType getKeyType(); /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ boolean hasValueType(); /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ onnx.OnnxMl.TypeProto getValueType(); /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ onnx.OnnxMl.TypeProtoOrBuilder getValueTypeOrBuilder(); } /** *
     * map<K,V>
     * 
* * Protobuf type {@code onnx.TypeProto.Map} */ public static final class Map extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Map) MapOrBuilder { private static final long serialVersionUID = 0L; // Use Map.newBuilder() to construct. private Map(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Map() { keyType_ = 0; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Map( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); keyType_ = rawValue; break; } case 18: { onnx.OnnxMl.TypeProto.Builder subBuilder = null; if (valueType_ != null) { subBuilder = valueType_.toBuilder(); } valueType_ = input.readMessage(onnx.OnnxMl.TypeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(valueType_); valueType_ = subBuilder.buildPartial(); } break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Map_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Map.class, onnx.OnnxMl.TypeProto.Map.Builder.class); } public static final int KEY_TYPE_FIELD_NUMBER = 1; private int keyType_; /** *
       * This field MUST be present for this version of the IR.
       * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
       * 
* * .onnx.TensorProto.DataType key_type = 1; */ public int getKeyTypeValue() { return keyType_; } /** *
       * This field MUST be present for this version of the IR.
       * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
       * 
* * .onnx.TensorProto.DataType key_type = 1; */ public onnx.OnnxMl.TensorProto.DataType getKeyType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(keyType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } public static final int VALUE_TYPE_FIELD_NUMBER = 2; private onnx.OnnxMl.TypeProto valueType_; /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ public boolean hasValueType() { return valueType_ != null; } /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMl.TypeProto getValueType() { return valueType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : valueType_; } /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMl.TypeProtoOrBuilder getValueTypeOrBuilder() { return getValueType(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { output.writeEnum(1, keyType_); } if (valueType_ != null) { output.writeMessage(2, getValueType()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (keyType_ != onnx.OnnxMl.TensorProto.DataType.UNDEFINED.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(1, keyType_); } if (valueType_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getValueType()); } 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 onnx.OnnxMl.TypeProto.Map)) { return super.equals(obj); } onnx.OnnxMl.TypeProto.Map other = (onnx.OnnxMl.TypeProto.Map) obj; boolean result = true; result = result && keyType_ == other.keyType_; result = result && (hasValueType() == other.hasValueType()); if (hasValueType()) { result = result && getValueType() .equals(other.getValueType()); } 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) + KEY_TYPE_FIELD_NUMBER; hash = (53 * hash) + keyType_; if (hasValueType()) { hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getValueType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TypeProto.Map parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Map parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Map parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Map parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Map parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto.Map parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Map parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Map parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Map parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Map parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto.Map parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto.Map parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TypeProto.Map prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * map<K,V>
       * 
* * Protobuf type {@code onnx.TypeProto.Map} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Map) onnx.OnnxMl.TypeProto.MapOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Map_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.Map.class, onnx.OnnxMl.TypeProto.Map.Builder.class); } // Construct using onnx.OnnxMl.TypeProto.Map.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); keyType_ = 0; if (valueTypeBuilder_ == null) { valueType_ = null; } else { valueType_ = null; valueTypeBuilder_ = null; } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TypeProto_Map_descriptor; } public onnx.OnnxMl.TypeProto.Map getDefaultInstanceForType() { return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } public onnx.OnnxMl.TypeProto.Map build() { onnx.OnnxMl.TypeProto.Map result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TypeProto.Map buildPartial() { onnx.OnnxMl.TypeProto.Map result = new onnx.OnnxMl.TypeProto.Map(this); result.keyType_ = keyType_; if (valueTypeBuilder_ == null) { result.valueType_ = valueType_; } else { result.valueType_ = valueTypeBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TypeProto.Map) { return mergeFrom((onnx.OnnxMl.TypeProto.Map)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TypeProto.Map other) { if (other == onnx.OnnxMl.TypeProto.Map.getDefaultInstance()) return this; if (other.keyType_ != 0) { setKeyTypeValue(other.getKeyTypeValue()); } if (other.hasValueType()) { mergeValueType(other.getValueType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TypeProto.Map parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TypeProto.Map) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int keyType_ = 0; /** *
         * This field MUST be present for this version of the IR.
         * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
         * 
* * .onnx.TensorProto.DataType key_type = 1; */ public int getKeyTypeValue() { return keyType_; } /** *
         * This field MUST be present for this version of the IR.
         * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
         * 
* * .onnx.TensorProto.DataType key_type = 1; */ public Builder setKeyTypeValue(int value) { keyType_ = value; onChanged(); return this; } /** *
         * This field MUST be present for this version of the IR.
         * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
         * 
* * .onnx.TensorProto.DataType key_type = 1; */ public onnx.OnnxMl.TensorProto.DataType getKeyType() { onnx.OnnxMl.TensorProto.DataType result = onnx.OnnxMl.TensorProto.DataType.valueOf(keyType_); return result == null ? onnx.OnnxMl.TensorProto.DataType.UNRECOGNIZED : result; } /** *
         * This field MUST be present for this version of the IR.
         * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
         * 
* * .onnx.TensorProto.DataType key_type = 1; */ public Builder setKeyType(onnx.OnnxMl.TensorProto.DataType value) { if (value == null) { throw new NullPointerException(); } keyType_ = value.getNumber(); onChanged(); return this; } /** *
         * This field MUST be present for this version of the IR.
         * This field MUST refer to an integral type ([U]INT{8|16|32|64}) or STRING
         * 
* * .onnx.TensorProto.DataType key_type = 1; */ public Builder clearKeyType() { keyType_ = 0; onChanged(); return this; } private onnx.OnnxMl.TypeProto valueType_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> valueTypeBuilder_; /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public boolean hasValueType() { return valueTypeBuilder_ != null || valueType_ != null; } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMl.TypeProto getValueType() { if (valueTypeBuilder_ == null) { return valueType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : valueType_; } else { return valueTypeBuilder_.getMessage(); } } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public Builder setValueType(onnx.OnnxMl.TypeProto value) { if (valueTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valueType_ = value; onChanged(); } else { valueTypeBuilder_.setMessage(value); } return this; } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public Builder setValueType( onnx.OnnxMl.TypeProto.Builder builderForValue) { if (valueTypeBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); } else { valueTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public Builder mergeValueType(onnx.OnnxMl.TypeProto value) { if (valueTypeBuilder_ == null) { if (valueType_ != null) { valueType_ = onnx.OnnxMl.TypeProto.newBuilder(valueType_).mergeFrom(value).buildPartial(); } else { valueType_ = value; } onChanged(); } else { valueTypeBuilder_.mergeFrom(value); } return this; } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public Builder clearValueType() { if (valueTypeBuilder_ == null) { valueType_ = null; onChanged(); } else { valueType_ = null; valueTypeBuilder_ = null; } return this; } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMl.TypeProto.Builder getValueTypeBuilder() { onChanged(); return getValueTypeFieldBuilder().getBuilder(); } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMl.TypeProtoOrBuilder getValueTypeOrBuilder() { if (valueTypeBuilder_ != null) { return valueTypeBuilder_.getMessageOrBuilder(); } else { return valueType_ == null ? onnx.OnnxMl.TypeProto.getDefaultInstance() : valueType_; } } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder> getValueTypeFieldBuilder() { if (valueTypeBuilder_ == null) { valueTypeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto, onnx.OnnxMl.TypeProto.Builder, onnx.OnnxMl.TypeProtoOrBuilder>( getValueType(), getParentForChildren(), isClean()); valueType_ = null; } return valueTypeBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TypeProto.Map) } // @@protoc_insertion_point(class_scope:onnx.TypeProto.Map) private static final onnx.OnnxMl.TypeProto.Map DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TypeProto.Map(); } public static onnx.OnnxMl.TypeProto.Map getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Map parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Map(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TypeProto.Map getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements org.nd4j.shade.protobuf.Internal.EnumLite { TENSOR_TYPE(1), SEQUENCE_TYPE(4), MAP_TYPE(5), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return TENSOR_TYPE; case 4: return SEQUENCE_TYPE; case 5: return MAP_TYPE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int TENSOR_TYPE_FIELD_NUMBER = 1; /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public boolean hasTensorType() { return valueCase_ == 1; } /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMl.TypeProto.Tensor getTensorType() { if (valueCase_ == 1) { return (onnx.OnnxMl.TypeProto.Tensor) value_; } return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMl.TypeProto.TensorOrBuilder getTensorTypeOrBuilder() { if (valueCase_ == 1) { return (onnx.OnnxMl.TypeProto.Tensor) value_; } return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } public static final int SEQUENCE_TYPE_FIELD_NUMBER = 4; /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public boolean hasSequenceType() { return valueCase_ == 4; } /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMl.TypeProto.Sequence getSequenceType() { if (valueCase_ == 4) { return (onnx.OnnxMl.TypeProto.Sequence) value_; } return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMl.TypeProto.SequenceOrBuilder getSequenceTypeOrBuilder() { if (valueCase_ == 4) { return (onnx.OnnxMl.TypeProto.Sequence) value_; } return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } public static final int MAP_TYPE_FIELD_NUMBER = 5; /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ public boolean hasMapType() { return valueCase_ == 5; } /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMl.TypeProto.Map getMapType() { if (valueCase_ == 5) { return (onnx.OnnxMl.TypeProto.Map) value_; } return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMl.TypeProto.MapOrBuilder getMapTypeOrBuilder() { if (valueCase_ == 5) { return (onnx.OnnxMl.TypeProto.Map) value_; } return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (onnx.OnnxMl.TypeProto.Tensor) value_); } if (valueCase_ == 4) { output.writeMessage(4, (onnx.OnnxMl.TypeProto.Sequence) value_); } if (valueCase_ == 5) { output.writeMessage(5, (onnx.OnnxMl.TypeProto.Map) value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, (onnx.OnnxMl.TypeProto.Tensor) value_); } if (valueCase_ == 4) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, (onnx.OnnxMl.TypeProto.Sequence) value_); } if (valueCase_ == 5) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, (onnx.OnnxMl.TypeProto.Map) value_); } 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 onnx.OnnxMl.TypeProto)) { return super.equals(obj); } onnx.OnnxMl.TypeProto other = (onnx.OnnxMl.TypeProto) obj; boolean result = true; result = result && getValueCase().equals( other.getValueCase()); if (!result) return false; switch (valueCase_) { case 1: result = result && getTensorType() .equals(other.getTensorType()); break; case 4: result = result && getSequenceType() .equals(other.getSequenceType()); break; case 5: result = result && getMapType() .equals(other.getMapType()); 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(); switch (valueCase_) { case 1: hash = (37 * hash) + TENSOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTensorType().hashCode(); break; case 4: hash = (37 * hash) + SEQUENCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getSequenceType().hashCode(); break; case 5: hash = (37 * hash) + MAP_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMapType().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.TypeProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.TypeProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.TypeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.TypeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.TypeProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.TypeProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Define the types.
     * 
* * Protobuf type {@code onnx.TypeProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto) onnx.OnnxMl.TypeProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_TypeProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_TypeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.TypeProto.class, onnx.OnnxMl.TypeProto.Builder.class); } // Construct using onnx.OnnxMl.TypeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); valueCase_ = 0; value_ = null; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_TypeProto_descriptor; } public onnx.OnnxMl.TypeProto getDefaultInstanceForType() { return onnx.OnnxMl.TypeProto.getDefaultInstance(); } public onnx.OnnxMl.TypeProto build() { onnx.OnnxMl.TypeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.TypeProto buildPartial() { onnx.OnnxMl.TypeProto result = new onnx.OnnxMl.TypeProto(this); if (valueCase_ == 1) { if (tensorTypeBuilder_ == null) { result.value_ = value_; } else { result.value_ = tensorTypeBuilder_.build(); } } if (valueCase_ == 4) { if (sequenceTypeBuilder_ == null) { result.value_ = value_; } else { result.value_ = sequenceTypeBuilder_.build(); } } if (valueCase_ == 5) { if (mapTypeBuilder_ == null) { result.value_ = value_; } else { result.value_ = mapTypeBuilder_.build(); } } result.valueCase_ = valueCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.TypeProto) { return mergeFrom((onnx.OnnxMl.TypeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.TypeProto other) { if (other == onnx.OnnxMl.TypeProto.getDefaultInstance()) return this; switch (other.getValueCase()) { case TENSOR_TYPE: { mergeTensorType(other.getTensorType()); break; } case SEQUENCE_TYPE: { mergeSequenceType(other.getSequenceType()); break; } case MAP_TYPE: { mergeMapType(other.getMapType()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.TypeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.TypeProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Tensor, onnx.OnnxMl.TypeProto.Tensor.Builder, onnx.OnnxMl.TypeProto.TensorOrBuilder> tensorTypeBuilder_; /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public boolean hasTensorType() { return valueCase_ == 1; } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMl.TypeProto.Tensor getTensorType() { if (tensorTypeBuilder_ == null) { if (valueCase_ == 1) { return (onnx.OnnxMl.TypeProto.Tensor) value_; } return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } else { if (valueCase_ == 1) { return tensorTypeBuilder_.getMessage(); } return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public Builder setTensorType(onnx.OnnxMl.TypeProto.Tensor value) { if (tensorTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { tensorTypeBuilder_.setMessage(value); } valueCase_ = 1; return this; } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public Builder setTensorType( onnx.OnnxMl.TypeProto.Tensor.Builder builderForValue) { if (tensorTypeBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { tensorTypeBuilder_.setMessage(builderForValue.build()); } valueCase_ = 1; return this; } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public Builder mergeTensorType(onnx.OnnxMl.TypeProto.Tensor value) { if (tensorTypeBuilder_ == null) { if (valueCase_ == 1 && value_ != onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance()) { value_ = onnx.OnnxMl.TypeProto.Tensor.newBuilder((onnx.OnnxMl.TypeProto.Tensor) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { tensorTypeBuilder_.mergeFrom(value); } tensorTypeBuilder_.setMessage(value); } valueCase_ = 1; return this; } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public Builder clearTensorType() { if (tensorTypeBuilder_ == null) { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; } tensorTypeBuilder_.clear(); } return this; } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMl.TypeProto.Tensor.Builder getTensorTypeBuilder() { return getTensorTypeFieldBuilder().getBuilder(); } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMl.TypeProto.TensorOrBuilder getTensorTypeOrBuilder() { if ((valueCase_ == 1) && (tensorTypeBuilder_ != null)) { return tensorTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (onnx.OnnxMl.TypeProto.Tensor) value_; } return onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Tensor, onnx.OnnxMl.TypeProto.Tensor.Builder, onnx.OnnxMl.TypeProto.TensorOrBuilder> getTensorTypeFieldBuilder() { if (tensorTypeBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = onnx.OnnxMl.TypeProto.Tensor.getDefaultInstance(); } tensorTypeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Tensor, onnx.OnnxMl.TypeProto.Tensor.Builder, onnx.OnnxMl.TypeProto.TensorOrBuilder>( (onnx.OnnxMl.TypeProto.Tensor) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged();; return tensorTypeBuilder_; } private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Sequence, onnx.OnnxMl.TypeProto.Sequence.Builder, onnx.OnnxMl.TypeProto.SequenceOrBuilder> sequenceTypeBuilder_; /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public boolean hasSequenceType() { return valueCase_ == 4; } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMl.TypeProto.Sequence getSequenceType() { if (sequenceTypeBuilder_ == null) { if (valueCase_ == 4) { return (onnx.OnnxMl.TypeProto.Sequence) value_; } return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } else { if (valueCase_ == 4) { return sequenceTypeBuilder_.getMessage(); } return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public Builder setSequenceType(onnx.OnnxMl.TypeProto.Sequence value) { if (sequenceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { sequenceTypeBuilder_.setMessage(value); } valueCase_ = 4; return this; } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public Builder setSequenceType( onnx.OnnxMl.TypeProto.Sequence.Builder builderForValue) { if (sequenceTypeBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { sequenceTypeBuilder_.setMessage(builderForValue.build()); } valueCase_ = 4; return this; } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public Builder mergeSequenceType(onnx.OnnxMl.TypeProto.Sequence value) { if (sequenceTypeBuilder_ == null) { if (valueCase_ == 4 && value_ != onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance()) { value_ = onnx.OnnxMl.TypeProto.Sequence.newBuilder((onnx.OnnxMl.TypeProto.Sequence) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 4) { sequenceTypeBuilder_.mergeFrom(value); } sequenceTypeBuilder_.setMessage(value); } valueCase_ = 4; return this; } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public Builder clearSequenceType() { if (sequenceTypeBuilder_ == null) { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; } sequenceTypeBuilder_.clear(); } return this; } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMl.TypeProto.Sequence.Builder getSequenceTypeBuilder() { return getSequenceTypeFieldBuilder().getBuilder(); } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMl.TypeProto.SequenceOrBuilder getSequenceTypeOrBuilder() { if ((valueCase_ == 4) && (sequenceTypeBuilder_ != null)) { return sequenceTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 4) { return (onnx.OnnxMl.TypeProto.Sequence) value_; } return onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Sequence, onnx.OnnxMl.TypeProto.Sequence.Builder, onnx.OnnxMl.TypeProto.SequenceOrBuilder> getSequenceTypeFieldBuilder() { if (sequenceTypeBuilder_ == null) { if (!(valueCase_ == 4)) { value_ = onnx.OnnxMl.TypeProto.Sequence.getDefaultInstance(); } sequenceTypeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Sequence, onnx.OnnxMl.TypeProto.Sequence.Builder, onnx.OnnxMl.TypeProto.SequenceOrBuilder>( (onnx.OnnxMl.TypeProto.Sequence) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 4; onChanged();; return sequenceTypeBuilder_; } private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Map, onnx.OnnxMl.TypeProto.Map.Builder, onnx.OnnxMl.TypeProto.MapOrBuilder> mapTypeBuilder_; /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public boolean hasMapType() { return valueCase_ == 5; } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMl.TypeProto.Map getMapType() { if (mapTypeBuilder_ == null) { if (valueCase_ == 5) { return (onnx.OnnxMl.TypeProto.Map) value_; } return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } else { if (valueCase_ == 5) { return mapTypeBuilder_.getMessage(); } return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public Builder setMapType(onnx.OnnxMl.TypeProto.Map value) { if (mapTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { mapTypeBuilder_.setMessage(value); } valueCase_ = 5; return this; } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public Builder setMapType( onnx.OnnxMl.TypeProto.Map.Builder builderForValue) { if (mapTypeBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { mapTypeBuilder_.setMessage(builderForValue.build()); } valueCase_ = 5; return this; } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public Builder mergeMapType(onnx.OnnxMl.TypeProto.Map value) { if (mapTypeBuilder_ == null) { if (valueCase_ == 5 && value_ != onnx.OnnxMl.TypeProto.Map.getDefaultInstance()) { value_ = onnx.OnnxMl.TypeProto.Map.newBuilder((onnx.OnnxMl.TypeProto.Map) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 5) { mapTypeBuilder_.mergeFrom(value); } mapTypeBuilder_.setMessage(value); } valueCase_ = 5; return this; } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public Builder clearMapType() { if (mapTypeBuilder_ == null) { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; } mapTypeBuilder_.clear(); } return this; } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMl.TypeProto.Map.Builder getMapTypeBuilder() { return getMapTypeFieldBuilder().getBuilder(); } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMl.TypeProto.MapOrBuilder getMapTypeOrBuilder() { if ((valueCase_ == 5) && (mapTypeBuilder_ != null)) { return mapTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 5) { return (onnx.OnnxMl.TypeProto.Map) value_; } return onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Map, onnx.OnnxMl.TypeProto.Map.Builder, onnx.OnnxMl.TypeProto.MapOrBuilder> getMapTypeFieldBuilder() { if (mapTypeBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = onnx.OnnxMl.TypeProto.Map.getDefaultInstance(); } mapTypeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< onnx.OnnxMl.TypeProto.Map, onnx.OnnxMl.TypeProto.Map.Builder, onnx.OnnxMl.TypeProto.MapOrBuilder>( (onnx.OnnxMl.TypeProto.Map) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged();; return mapTypeBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TypeProto) } // @@protoc_insertion_point(class_scope:onnx.TypeProto) private static final onnx.OnnxMl.TypeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.TypeProto(); } public static onnx.OnnxMl.TypeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public TypeProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new TypeProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.TypeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperatorSetIdProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.OperatorSetIdProto) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * The domain of the operator set being identified.
     * The empty string ("") or absence of this field implies the operator
     * set that is defined as part of the ONNX specification.
     * This field MUST be present in this version of the IR when referring to any other operator set.
     * 
* * string domain = 1; */ java.lang.String getDomain(); /** *
     * The domain of the operator set being identified.
     * The empty string ("") or absence of this field implies the operator
     * set that is defined as part of the ONNX specification.
     * This field MUST be present in this version of the IR when referring to any other operator set.
     * 
* * string domain = 1; */ org.nd4j.shade.protobuf.ByteString getDomainBytes(); /** *
     * The version of the operator set being identified.
     * This field MUST be present in this version of the IR.
     * 
* * int64 version = 2; */ long getVersion(); } /** *
   * OperatorSets are uniquely identified by a (domain, opset_version) pair.
   * 
* * Protobuf type {@code onnx.OperatorSetIdProto} */ public static final class OperatorSetIdProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.OperatorSetIdProto) OperatorSetIdProtoOrBuilder { private static final long serialVersionUID = 0L; // Use OperatorSetIdProto.newBuilder() to construct. private OperatorSetIdProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperatorSetIdProto() { domain_ = ""; version_ = 0L; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperatorSetIdProto( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); domain_ = s; break; } case 16: { version_ = input.readInt64(); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_OperatorSetIdProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_OperatorSetIdProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.OperatorSetIdProto.class, onnx.OnnxMl.OperatorSetIdProto.Builder.class); } public static final int DOMAIN_FIELD_NUMBER = 1; private volatile java.lang.Object domain_; /** *
     * The domain of the operator set being identified.
     * The empty string ("") or absence of this field implies the operator
     * set that is defined as part of the ONNX specification.
     * This field MUST be present in this version of the IR when referring to any other operator set.
     * 
* * string domain = 1; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** *
     * The domain of the operator set being identified.
     * The empty string ("") or absence of this field implies the operator
     * set that is defined as part of the ONNX specification.
     * This field MUST be present in this version of the IR when referring to any other operator set.
     * 
* * string domain = 1; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 2; private long version_; /** *
     * The version of the operator set being identified.
     * This field MUST be present in this version of the IR.
     * 
* * int64 version = 2; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDomainBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); } if (version_ != 0L) { output.writeInt64(2, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDomainBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); } if (version_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(2, version_); } 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 onnx.OnnxMl.OperatorSetIdProto)) { return super.equals(obj); } onnx.OnnxMl.OperatorSetIdProto other = (onnx.OnnxMl.OperatorSetIdProto) obj; boolean result = true; result = result && getDomain() .equals(other.getDomain()); result = result && (getVersion() == other.getVersion()); 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) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.OperatorSetIdProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMl.OperatorSetIdProto parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMl.OperatorSetIdProto parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMl.OperatorSetIdProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * OperatorSets are uniquely identified by a (domain, opset_version) pair.
     * 
* * Protobuf type {@code onnx.OperatorSetIdProto} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.OperatorSetIdProto) onnx.OnnxMl.OperatorSetIdProtoOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMl.internal_static_onnx_OperatorSetIdProto_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMl.internal_static_onnx_OperatorSetIdProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMl.OperatorSetIdProto.class, onnx.OnnxMl.OperatorSetIdProto.Builder.class); } // Construct using onnx.OnnxMl.OperatorSetIdProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); domain_ = ""; version_ = 0L; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMl.internal_static_onnx_OperatorSetIdProto_descriptor; } public onnx.OnnxMl.OperatorSetIdProto getDefaultInstanceForType() { return onnx.OnnxMl.OperatorSetIdProto.getDefaultInstance(); } public onnx.OnnxMl.OperatorSetIdProto build() { onnx.OnnxMl.OperatorSetIdProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMl.OperatorSetIdProto buildPartial() { onnx.OnnxMl.OperatorSetIdProto result = new onnx.OnnxMl.OperatorSetIdProto(this); result.domain_ = domain_; result.version_ = version_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof onnx.OnnxMl.OperatorSetIdProto) { return mergeFrom((onnx.OnnxMl.OperatorSetIdProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMl.OperatorSetIdProto other) { if (other == onnx.OnnxMl.OperatorSetIdProto.getDefaultInstance()) return this; if (!other.getDomain().isEmpty()) { domain_ = other.domain_; onChanged(); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMl.OperatorSetIdProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMl.OperatorSetIdProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object domain_ = ""; /** *
       * The domain of the operator set being identified.
       * The empty string ("") or absence of this field implies the operator
       * set that is defined as part of the ONNX specification.
       * This field MUST be present in this version of the IR when referring to any other operator set.
       * 
* * string domain = 1; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The domain of the operator set being identified.
       * The empty string ("") or absence of this field implies the operator
       * set that is defined as part of the ONNX specification.
       * This field MUST be present in this version of the IR when referring to any other operator set.
       * 
* * string domain = 1; */ public org.nd4j.shade.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * The domain of the operator set being identified.
       * The empty string ("") or absence of this field implies the operator
       * set that is defined as part of the ONNX specification.
       * This field MUST be present in this version of the IR when referring to any other operator set.
       * 
* * string domain = 1; */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); return this; } /** *
       * The domain of the operator set being identified.
       * The empty string ("") or absence of this field implies the operator
       * set that is defined as part of the ONNX specification.
       * This field MUST be present in this version of the IR when referring to any other operator set.
       * 
* * string domain = 1; */ public Builder clearDomain() { domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** *
       * The domain of the operator set being identified.
       * The empty string ("") or absence of this field implies the operator
       * set that is defined as part of the ONNX specification.
       * This field MUST be present in this version of the IR when referring to any other operator set.
       * 
* * string domain = 1; */ public Builder setDomainBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; onChanged(); return this; } private long version_ ; /** *
       * The version of the operator set being identified.
       * This field MUST be present in this version of the IR.
       * 
* * int64 version = 2; */ public long getVersion() { return version_; } /** *
       * The version of the operator set being identified.
       * This field MUST be present in this version of the IR.
       * 
* * int64 version = 2; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** *
       * The version of the operator set being identified.
       * This field MUST be present in this version of the IR.
       * 
* * int64 version = 2; */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.OperatorSetIdProto) } // @@protoc_insertion_point(class_scope:onnx.OperatorSetIdProto) private static final onnx.OnnxMl.OperatorSetIdProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMl.OperatorSetIdProto(); } public static onnx.OnnxMl.OperatorSetIdProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public OperatorSetIdProto parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new OperatorSetIdProto(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public onnx.OnnxMl.OperatorSetIdProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_AttributeProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_AttributeProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_ValueInfoProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_ValueInfoProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_NodeProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_NodeProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_ModelProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_ModelProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_StringStringEntryProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_StringStringEntryProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_GraphProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_GraphProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TensorProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TensorProto_Segment_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorProto_Segment_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TensorShapeProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorShapeProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TensorShapeProto_Dimension_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TypeProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TypeProto_Tensor_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Tensor_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TypeProto_Sequence_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Sequence_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_TypeProto_Map_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Map_fieldAccessorTable; private static final org.nd4j.shade.protobuf.Descriptors.Descriptor internal_static_onnx_OperatorSetIdProto_descriptor; private static final org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_OperatorSetIdProto_fieldAccessorTable; public static org.nd4j.shade.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static org.nd4j.shade.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\ronnx-ml.proto\022\004onnx\"\311\003\n\016AttributeProto" + "\022\014\n\004name\030\001 \001(\t\022\022\n\ndoc_string\030\r \001(\t\0220\n\004ty" + "pe\030\024 \001(\0162\".onnx.AttributeProto.Attribute" + "Type\022\t\n\001f\030\002 \001(\002\022\t\n\001i\030\003 \001(\003\022\t\n\001s\030\004 \001(\014\022\034\n" + "\001t\030\005 \001(\0132\021.onnx.TensorProto\022\033\n\001g\030\006 \001(\0132\020" + ".onnx.GraphProto\022\016\n\006floats\030\007 \003(\002\022\014\n\004ints" + "\030\010 \003(\003\022\017\n\007strings\030\t \003(\014\022\"\n\007tensors\030\n \003(\013" + "2\021.onnx.TensorProto\022 \n\006graphs\030\013 \003(\0132\020.on" + "nx.GraphProto\"\221\001\n\rAttributeType\022\r\n\tUNDEF" + "INED\020\000\022\t\n\005FLOAT\020\001\022\007\n\003INT\020\002\022\n\n\006STRING\020\003\022\n" + "\n\006TENSOR\020\004\022\t\n\005GRAPH\020\005\022\n\n\006FLOATS\020\006\022\010\n\004INT" + "S\020\007\022\013\n\007STRINGS\020\010\022\013\n\007TENSORS\020\t\022\n\n\006GRAPHS\020" + "\n\"Q\n\016ValueInfoProto\022\014\n\004name\030\001 \001(\t\022\035\n\004typ" + "e\030\002 \001(\0132\017.onnx.TypeProto\022\022\n\ndoc_string\030\003" + " \001(\t\"\226\001\n\tNodeProto\022\r\n\005input\030\001 \003(\t\022\016\n\006out" + "put\030\002 \003(\t\022\014\n\004name\030\003 \001(\t\022\017\n\007op_type\030\004 \001(\t" + "\022\016\n\006domain\030\007 \001(\t\022\'\n\tattribute\030\005 \003(\0132\024.on" + "nx.AttributeProto\022\022\n\ndoc_string\030\006 \001(\t\"\223\002" + "\n\nModelProto\022\022\n\nir_version\030\001 \001(\003\022.\n\014opse" + "t_import\030\010 \003(\0132\030.onnx.OperatorSetIdProto" + "\022\025\n\rproducer_name\030\002 \001(\t\022\030\n\020producer_vers" + "ion\030\003 \001(\t\022\016\n\006domain\030\004 \001(\t\022\025\n\rmodel_versi" + "on\030\005 \001(\003\022\022\n\ndoc_string\030\006 \001(\t\022\037\n\005graph\030\007 " + "\001(\0132\020.onnx.GraphProto\0224\n\016metadata_props\030" + "\016 \003(\0132\034.onnx.StringStringEntryProto\"4\n\026S" + "tringStringEntryProto\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t\"\352\001\n\nGraphProto\022\035\n\004node\030\001 \003(\0132\017" + ".onnx.NodeProto\022\014\n\004name\030\002 \001(\t\022&\n\013initial" + "izer\030\005 \003(\0132\021.onnx.TensorProto\022\022\n\ndoc_str" + "ing\030\n \001(\t\022#\n\005input\030\013 \003(\0132\024.onnx.ValueInf" + "oProto\022$\n\006output\030\014 \003(\0132\024.onnx.ValueInfoP" + "roto\022(\n\nvalue_info\030\r \003(\0132\024.onnx.ValueInf" + "oProto\"\257\004\n\013TensorProto\022\014\n\004dims\030\001 \003(\003\022-\n\t" + "data_type\030\002 \001(\0162\032.onnx.TensorProto.DataT" + "ype\022*\n\007segment\030\003 \001(\0132\031.onnx.TensorProto." + "Segment\022\026\n\nfloat_data\030\004 \003(\002B\002\020\001\022\026\n\nint32" + "_data\030\005 \003(\005B\002\020\001\022\023\n\013string_data\030\006 \003(\014\022\026\n\n" + "int64_data\030\007 \003(\003B\002\020\001\022\014\n\004name\030\010 \001(\t\022\022\n\ndo" + "c_string\030\014 \001(\t\022\020\n\010raw_data\030\t \001(\014\022\027\n\013doub" + "le_data\030\n \003(\001B\002\020\001\022\027\n\013uint64_data\030\013 \003(\004B\002" + "\020\001\032%\n\007Segment\022\r\n\005begin\030\001 \001(\003\022\013\n\003end\030\002 \001(" + "\003\"\314\001\n\010DataType\022\r\n\tUNDEFINED\020\000\022\t\n\005FLOAT\020\001" + "\022\t\n\005UINT8\020\002\022\010\n\004INT8\020\003\022\n\n\006UINT16\020\004\022\t\n\005INT" + "16\020\005\022\t\n\005INT32\020\006\022\t\n\005INT64\020\007\022\n\n\006STRING\020\010\022\010" + "\n\004BOOL\020\t\022\013\n\007FLOAT16\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006UIN" + "T32\020\014\022\n\n\006UINT64\020\r\022\r\n\tCOMPLEX64\020\016\022\016\n\nCOMP" + "LEX128\020\017\"\201\001\n\020TensorShapeProto\022-\n\003dim\030\001 \003" + "(\0132 .onnx.TensorShapeProto.Dimension\032>\n\t" + "Dimension\022\023\n\tdim_value\030\001 \001(\003H\000\022\023\n\tdim_pa" + "ram\030\002 \001(\tH\000B\007\n\005value\"\211\003\n\tTypeProto\022-\n\013te" + "nsor_type\030\001 \001(\0132\026.onnx.TypeProto.TensorH" + "\000\0221\n\rsequence_type\030\004 \001(\0132\030.onnx.TypeProt" + "o.SequenceH\000\022\'\n\010map_type\030\005 \001(\0132\023.onnx.Ty" + "peProto.MapH\000\032^\n\006Tensor\022-\n\telem_type\030\001 \001" + "(\0162\032.onnx.TensorProto.DataType\022%\n\005shape\030" + "\002 \001(\0132\026.onnx.TensorShapeProto\032.\n\010Sequenc" + "e\022\"\n\telem_type\030\001 \001(\0132\017.onnx.TypeProto\032X\n" + "\003Map\022,\n\010key_type\030\001 \001(\0162\032.onnx.TensorProt" + "o.DataType\022#\n\nvalue_type\030\002 \001(\0132\017.onnx.Ty" + "peProtoB\007\n\005value\"5\n\022OperatorSetIdProto\022\016" + "\n\006domain\030\001 \001(\t\022\017\n\007version\030\002 \001(\003*c\n\007Versi" + "on\022\022\n\016_START_VERSION\020\000\022\031\n\025IR_VERSION_201" + "7_10_10\020\001\022\031\n\025IR_VERSION_2017_10_30\020\002\022\016\n\n" + "IR_VERSION\020\003b\006proto3" }; org.nd4j.shade.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.nd4j.shade.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public org.nd4j.shade.protobuf.ExtensionRegistry assignDescriptors( org.nd4j.shade.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; org.nd4j.shade.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new org.nd4j.shade.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_onnx_AttributeProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_onnx_AttributeProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_AttributeProto_descriptor, new java.lang.String[] { "Name", "DocString", "Type", "F", "I", "S", "T", "G", "Floats", "Ints", "Strings", "Tensors", "Graphs", }); internal_static_onnx_ValueInfoProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_onnx_ValueInfoProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_ValueInfoProto_descriptor, new java.lang.String[] { "Name", "Type", "DocString", }); internal_static_onnx_NodeProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_onnx_NodeProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_NodeProto_descriptor, new java.lang.String[] { "Input", "Output", "Name", "OpType", "Domain", "Attribute", "DocString", }); internal_static_onnx_ModelProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_onnx_ModelProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_ModelProto_descriptor, new java.lang.String[] { "IrVersion", "OpsetImport", "ProducerName", "ProducerVersion", "Domain", "ModelVersion", "DocString", "Graph", "MetadataProps", }); internal_static_onnx_StringStringEntryProto_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_onnx_StringStringEntryProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_StringStringEntryProto_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_onnx_GraphProto_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_onnx_GraphProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_GraphProto_descriptor, new java.lang.String[] { "Node", "Name", "Initializer", "DocString", "Input", "Output", "ValueInfo", }); internal_static_onnx_TensorProto_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_onnx_TensorProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TensorProto_descriptor, new java.lang.String[] { "Dims", "DataType", "Segment", "FloatData", "Int32Data", "StringData", "Int64Data", "Name", "DocString", "RawData", "DoubleData", "Uint64Data", }); internal_static_onnx_TensorProto_Segment_descriptor = internal_static_onnx_TensorProto_descriptor.getNestedTypes().get(0); internal_static_onnx_TensorProto_Segment_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TensorProto_Segment_descriptor, new java.lang.String[] { "Begin", "End", }); internal_static_onnx_TensorShapeProto_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_onnx_TensorShapeProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TensorShapeProto_descriptor, new java.lang.String[] { "Dim", }); internal_static_onnx_TensorShapeProto_Dimension_descriptor = internal_static_onnx_TensorShapeProto_descriptor.getNestedTypes().get(0); internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TensorShapeProto_Dimension_descriptor, new java.lang.String[] { "DimValue", "DimParam", "Value", }); internal_static_onnx_TypeProto_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_onnx_TypeProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TypeProto_descriptor, new java.lang.String[] { "TensorType", "SequenceType", "MapType", "Value", }); internal_static_onnx_TypeProto_Tensor_descriptor = internal_static_onnx_TypeProto_descriptor.getNestedTypes().get(0); internal_static_onnx_TypeProto_Tensor_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TypeProto_Tensor_descriptor, new java.lang.String[] { "ElemType", "Shape", }); internal_static_onnx_TypeProto_Sequence_descriptor = internal_static_onnx_TypeProto_descriptor.getNestedTypes().get(1); internal_static_onnx_TypeProto_Sequence_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TypeProto_Sequence_descriptor, new java.lang.String[] { "ElemType", }); internal_static_onnx_TypeProto_Map_descriptor = internal_static_onnx_TypeProto_descriptor.getNestedTypes().get(2); internal_static_onnx_TypeProto_Map_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_TypeProto_Map_descriptor, new java.lang.String[] { "KeyType", "ValueType", }); internal_static_onnx_OperatorSetIdProto_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_onnx_OperatorSetIdProto_fieldAccessorTable = new org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_onnx_OperatorSetIdProto_descriptor, new java.lang.String[] { "Domain", "Version", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy