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

onnx.OnnxMlProto3 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.proto3

package onnx;

public final class OnnxMlProto3 {
  private OnnxMlProto3() {}
  public static void registerAllExtensions(
      com.github.os72.protobuf351.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.github.os72.protobuf351.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.github.os72.protobuf351.Internal.EnumLiteMap< Version> internalValueMap = new com.github.os72.protobuf351.Internal.EnumLiteMap() { public Version findValueByNumber(int number) { return Version.forNumber(number); } }; public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMlProto3.getDescriptor().getEnumTypes().get(0); } private static final Version[] VALUES = values(); public static Version valueOf( com.github.os72.protobuf351.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) com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.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; */ com.github.os72.protobuf351.ByteString getS(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ boolean hasT(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ onnx.OnnxMlProto3.TensorProto getT(); /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ onnx.OnnxMlProto3.TensorProtoOrBuilder getTOrBuilder(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ boolean hasG(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ onnx.OnnxMlProto3.GraphProto getG(); /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ onnx.OnnxMlProto3.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.AttributeProto) AttributeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use AttributeProto.newBuilder() to construct. private AttributeProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private AttributeProto() { name_ = ""; docString_ = ""; type_ = 0; f_ = 0F; i_ = 0L; s_ = com.github.os72.protobuf351.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 com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttributeProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.Builder subBuilder = null; if (t_ != null) { subBuilder = t_.toBuilder(); } t_ = input.readMessage(onnx.OnnxMlProto3.TensorProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(t_); t_ = subBuilder.buildPartial(); } break; } case 50: { onnx.OnnxMlProto3.GraphProto.Builder subBuilder = null; if (g_ != null) { subBuilder = g_.toBuilder(); } g_ = input.readMessage(onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.parser(), extensionRegistry)); break; } case 90: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { graphs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } graphs_.add( input.readMessage(onnx.OnnxMlProto3.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_AttributeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_AttributeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.AttributeProto.class, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.github.os72.protobuf351.Internal.EnumLiteMap< AttributeType> internalValueMap = new com.github.os72.protobuf351.Internal.EnumLiteMap() { public AttributeType findValueByNumber(int number) { return AttributeType.forNumber(number); } }; public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMlProto3.AttributeProto.getDescriptor().getEnumTypes().get(0); } private static final AttributeType[] VALUES = values(); public static AttributeType valueOf( com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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.OnnxMlProto3.AttributeProto.AttributeType getType() { onnx.OnnxMlProto3.AttributeProto.AttributeType result = onnx.OnnxMlProto3.AttributeProto.AttributeType.valueOf(type_); return result == null ? onnx.OnnxMlProto3.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 com.github.os72.protobuf351.ByteString s_; /** *
     * UTF-8 string
     * 
* * bytes s = 4; */ public com.github.os72.protobuf351.ByteString getS() { return s_; } public static final int T_FIELD_NUMBER = 5; private onnx.OnnxMlProto3.TensorProto t_; /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public boolean hasT() { return t_ != null; } /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMlProto3.TensorProto getT() { return t_ == null ? onnx.OnnxMlProto3.TensorProto.getDefaultInstance() : t_; } /** *
     * tensor value
     * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMlProto3.TensorProtoOrBuilder getTOrBuilder() { return getT(); } public static final int G_FIELD_NUMBER = 6; private onnx.OnnxMlProto3.GraphProto g_; /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public boolean hasG() { return g_ != null; } /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMlProto3.GraphProto getG() { return g_ == null ? onnx.OnnxMlProto3.GraphProto.getDefaultInstance() : g_; } /** *
     * graph
     * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMlProto3.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 com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto getTensors(int index) { return tensors_.get(index); } /** *
     * list of tensors
     * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto getGraphs(int index) { return graphs_.get(index); } /** *
     * list of graph
     * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.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()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 13, docString_); } if (type_ != onnx.OnnxMlProto3.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 += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_); } if (f_ != 0F) { size += com.github.os72.protobuf351.CodedOutputStream .computeFloatSize(2, f_); } if (i_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(3, i_); } if (!s_.isEmpty()) { size += com.github.os72.protobuf351.CodedOutputStream .computeBytesSize(4, s_); } if (t_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, getT()); } if (g_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(6, getG()); } { int dataSize = 0; dataSize = 4 * getFloatsList().size(); size += dataSize; if (!getFloatsList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < ints_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeInt64SizeNoTag(ints_.get(i)); } size += dataSize; if (!getIntsList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } intsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < strings_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeBytesSizeNoTag(strings_.get(i)); } size += dataSize; size += 1 * getStringsList().size(); } for (int i = 0; i < tensors_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(10, tensors_.get(i)); } for (int i = 0; i < graphs_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(11, graphs_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(13, docString_); } if (type_ != onnx.OnnxMlProto3.AttributeProto.AttributeType.UNDEFINED.getNumber()) { size += com.github.os72.protobuf351.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.OnnxMlProto3.AttributeProto)) { return super.equals(obj); } onnx.OnnxMlProto3.AttributeProto other = (onnx.OnnxMlProto3.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) + com.github.os72.protobuf351.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.OnnxMlProto3.AttributeProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.AttributeProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.AttributeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.AttributeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.AttributeProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.AttributeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.AttributeProto) onnx.OnnxMlProto3.AttributeProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_AttributeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_AttributeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.AttributeProto.class, onnx.OnnxMlProto3.AttributeProto.Builder.class); } // Construct using onnx.OnnxMlProto3.AttributeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTensorsFieldBuilder(); getGraphsFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; docString_ = ""; type_ = 0; f_ = 0F; i_ = 0L; s_ = com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_AttributeProto_descriptor; } public onnx.OnnxMlProto3.AttributeProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.AttributeProto.getDefaultInstance(); } public onnx.OnnxMlProto3.AttributeProto build() { onnx.OnnxMlProto3.AttributeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.AttributeProto buildPartial() { onnx.OnnxMlProto3.AttributeProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.AttributeProto) { return mergeFrom((onnx.OnnxMlProto3.AttributeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.AttributeProto other) { if (other == onnx.OnnxMlProto3.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() != com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.AttributeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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.OnnxMlProto3.AttributeProto.AttributeType getType() { onnx.OnnxMlProto3.AttributeProto.AttributeType result = onnx.OnnxMlProto3.AttributeProto.AttributeType.valueOf(type_); return result == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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 com.github.os72.protobuf351.ByteString s_ = com.github.os72.protobuf351.ByteString.EMPTY; /** *
       * UTF-8 string
       * 
* * bytes s = 4; */ public com.github.os72.protobuf351.ByteString getS() { return s_; } /** *
       * UTF-8 string
       * 
* * bytes s = 4; */ public Builder setS(com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto t_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.TensorProtoOrBuilder> tBuilder_; /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public boolean hasT() { return tBuilder_ != null || t_ != null; } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMlProto3.TensorProto getT() { if (tBuilder_ == null) { return t_ == null ? onnx.OnnxMlProto3.TensorProto.getDefaultInstance() : t_; } else { return tBuilder_.getMessage(); } } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public Builder setT(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TensorProto value) { if (tBuilder_ == null) { if (t_ != null) { t_ = onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Builder getTBuilder() { onChanged(); return getTFieldBuilder().getBuilder(); } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ public onnx.OnnxMlProto3.TensorProtoOrBuilder getTOrBuilder() { if (tBuilder_ != null) { return tBuilder_.getMessageOrBuilder(); } else { return t_ == null ? onnx.OnnxMlProto3.TensorProto.getDefaultInstance() : t_; } } /** *
       * tensor value
       * 
* * .onnx.TensorProto t = 5; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.TensorProtoOrBuilder> getTFieldBuilder() { if (tBuilder_ == null) { tBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.TensorProtoOrBuilder>( getT(), getParentForChildren(), isClean()); t_ = null; } return tBuilder_; } private onnx.OnnxMlProto3.GraphProto g_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.GraphProtoOrBuilder> gBuilder_; /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public boolean hasG() { return gBuilder_ != null || g_ != null; } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMlProto3.GraphProto getG() { if (gBuilder_ == null) { return g_ == null ? onnx.OnnxMlProto3.GraphProto.getDefaultInstance() : g_; } else { return gBuilder_.getMessage(); } } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public Builder setG(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.GraphProto value) { if (gBuilder_ == null) { if (g_ != null) { g_ = onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto.Builder getGBuilder() { onChanged(); return getGFieldBuilder().getBuilder(); } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ public onnx.OnnxMlProto3.GraphProtoOrBuilder getGOrBuilder() { if (gBuilder_ != null) { return gBuilder_.getMessageOrBuilder(); } else { return g_ == null ? onnx.OnnxMlProto3.GraphProto.getDefaultInstance() : g_; } } /** *
       * graph
       * 
* * .onnx.GraphProto g = 6; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.GraphProtoOrBuilder> getGFieldBuilder() { if (gBuilder_ == null) { gBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.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(); com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getStrings(int index) { return strings_.get(index); } /** *
       * list of UTF-8 strings
       * 
* * repeated bytes strings = 9; */ public Builder setStrings( int index, com.github.os72.protobuf351.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(com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.Builder getTensorsBuilder( int index) { return getTensorsFieldBuilder().getBuilder(index); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Builder addTensorsBuilder() { return getTensorsFieldBuilder().addBuilder( onnx.OnnxMlProto3.TensorProto.getDefaultInstance()); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public onnx.OnnxMlProto3.TensorProto.Builder addTensorsBuilder( int index) { return getTensorsFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.TensorProto.getDefaultInstance()); } /** *
       * list of tensors
       * 
* * repeated .onnx.TensorProto tensors = 10; */ public java.util.List getTensorsBuilderList() { return getTensorsFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.TensorProtoOrBuilder> getTensorsFieldBuilder() { if (tensorsBuilder_ == null) { tensorsBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.GraphProto.Builder getGraphsBuilder( int index) { return getGraphsFieldBuilder().getBuilder(index); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto.Builder addGraphsBuilder() { return getGraphsFieldBuilder().addBuilder( onnx.OnnxMlProto3.GraphProto.getDefaultInstance()); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public onnx.OnnxMlProto3.GraphProto.Builder addGraphsBuilder( int index) { return getGraphsFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.GraphProto.getDefaultInstance()); } /** *
       * list of graph
       * 
* * repeated .onnx.GraphProto graphs = 11; */ public java.util.List getGraphsBuilderList() { return getGraphsFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.GraphProtoOrBuilder> getGraphsFieldBuilder() { if (graphsBuilder_ == null) { graphsBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.GraphProtoOrBuilder>( graphs_, ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); graphs_ = null; } return graphsBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.AttributeProto) } // @@protoc_insertion_point(class_scope:onnx.AttributeProto) private static final onnx.OnnxMlProto3.AttributeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.AttributeProto(); } public static onnx.OnnxMlProto3.AttributeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public AttributeProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new AttributeProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.AttributeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueInfoProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.ValueInfoProto) com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto getType(); /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ onnx.OnnxMlProto3.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; */ com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.ValueInfoProto) ValueInfoProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ValueInfoProto.newBuilder() to construct. private ValueInfoProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private ValueInfoProto() { name_ = ""; docString_ = ""; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValueInfoProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(onnx.OnnxMlProto3.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_ValueInfoProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_ValueInfoProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.ValueInfoProto.class, onnx.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getType() { return type_ == null ? onnx.OnnxMlProto3.TypeProto.getDefaultInstance() : type_; } /** *
     * This field MUST be present in this version of the IR.
     * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != null) { output.writeMessage(2, getType()); } if (!getDocStringBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(2, getType()); } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.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.OnnxMlProto3.ValueInfoProto)) { return super.equals(obj); } onnx.OnnxMlProto3.ValueInfoProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.ValueInfoProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ValueInfoProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ValueInfoProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.ValueInfoProto) onnx.OnnxMlProto3.ValueInfoProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_ValueInfoProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_ValueInfoProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.ValueInfoProto.class, onnx.OnnxMlProto3.ValueInfoProto.Builder.class); } // Construct using onnx.OnnxMlProto3.ValueInfoProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } docString_ = ""; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_ValueInfoProto_descriptor; } public onnx.OnnxMlProto3.ValueInfoProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.ValueInfoProto.getDefaultInstance(); } public onnx.OnnxMlProto3.ValueInfoProto build() { onnx.OnnxMlProto3.ValueInfoProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.ValueInfoProto buildPartial() { onnx.OnnxMlProto3.ValueInfoProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.ValueInfoProto) { return mergeFrom((onnx.OnnxMlProto3.ValueInfoProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.ValueInfoProto other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.ValueInfoProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private onnx.OnnxMlProto3.TypeProto type_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getType() { if (typeBuilder_ == null) { return type_ == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ public onnx.OnnxMlProto3.TypeProtoOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? onnx.OnnxMlProto3.TypeProto.getDefaultInstance() : type_; } } /** *
       * This field MUST be present in this version of the IR.
       * 
* * .onnx.TypeProto type = 2; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.TypeProtoOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.ValueInfoProto) } // @@protoc_insertion_point(class_scope:onnx.ValueInfoProto) private static final onnx.OnnxMlProto3.ValueInfoProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.ValueInfoProto(); } public static onnx.OnnxMlProto3.ValueInfoProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public ValueInfoProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new ValueInfoProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.ValueInfoProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.NodeProto) com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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; */ com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.NodeProto) NodeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use NodeProto.newBuilder() to construct. private NodeProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private NodeProto() { input_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; output_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; name_ = ""; opType_ = ""; domain_ = ""; attribute_ = java.util.Collections.emptyList(); docString_ = ""; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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 com.github.os72.protobuf351.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } input_.add(s); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { output_ = new com.github.os72.protobuf351.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.OnnxMlProto3.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_NodeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_NodeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.NodeProto.class, onnx.OnnxMlProto3.NodeProto.Builder.class); } private int bitField0_; public static final int INPUT_FIELD_NUMBER = 1; private com.github.os72.protobuf351.LazyStringList input_; /** *
     * namespace Value
     * 
* * repeated string input = 1; */ public com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getInputBytes(int index) { return input_.getByteString(index); } public static final int OUTPUT_FIELD_NUMBER = 2; private com.github.os72.protobuf351.LazyStringList output_; /** *
     * namespace Value
     * 
* * repeated string output = 2; */ public com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); opType_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < input_.size(); i++) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, input_.getRaw(i)); } for (int i = 0; i < output_.size(); i++) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, output_.getRaw(i)); } if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 3, name_); } if (!getOpTypeBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, opType_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(5, attribute_.get(i)); } if (!getDocStringBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 6, docString_); } if (!getDomainBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(3, name_); } if (!getOpTypeBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(4, opType_); } for (int i = 0; i < attribute_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, attribute_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(6, docString_); } if (!getDomainBytes().isEmpty()) { size += com.github.os72.protobuf351.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.OnnxMlProto3.NodeProto)) { return super.equals(obj); } onnx.OnnxMlProto3.NodeProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.NodeProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.NodeProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.NodeProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.NodeProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.NodeProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.NodeProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.NodeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.NodeProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.NodeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.NodeProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.NodeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.NodeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.NodeProto) onnx.OnnxMlProto3.NodeProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_NodeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_NodeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.NodeProto.class, onnx.OnnxMlProto3.NodeProto.Builder.class); } // Construct using onnx.OnnxMlProto3.NodeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); } } public Builder clear() { super.clear(); input_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); output_ = com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_NodeProto_descriptor; } public onnx.OnnxMlProto3.NodeProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.NodeProto.getDefaultInstance(); } public onnx.OnnxMlProto3.NodeProto build() { onnx.OnnxMlProto3.NodeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.NodeProto buildPartial() { onnx.OnnxMlProto3.NodeProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.NodeProto) { return mergeFrom((onnx.OnnxMlProto3.NodeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.NodeProto other) { if (other == onnx.OnnxMlProto3.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_ = com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.NodeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.NodeProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.github.os72.protobuf351.LazyStringList input_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; private void ensureInputIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { input_ = new com.github.os72.protobuf351.LazyStringArrayList(input_); bitField0_ |= 0x00000001; } } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public com.github.os72.protobuf351.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 com.github.os72.protobuf351.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(); com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll( values, input_); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder clearInput() { input_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string input = 1; */ public Builder addInputBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputIsMutable(); input_.add(value); onChanged(); return this; } private com.github.os72.protobuf351.LazyStringList output_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; private void ensureOutputIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { output_ = new com.github.os72.protobuf351.LazyStringArrayList(output_); bitField0_ |= 0x00000002; } } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public com.github.os72.protobuf351.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 com.github.os72.protobuf351.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(); com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll( values, output_); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder clearOutput() { output_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * namespace Value
       * 
* * repeated string output = 2; */ public Builder addOutputBytes( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); opType_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.AttributeProto, onnx.OnnxMlProto3.AttributeProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.AttributeProto.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( onnx.OnnxMlProto3.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.OnnxMlProto3.AttributeProto.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.AttributeProto, onnx.OnnxMlProto3.AttributeProto.Builder, onnx.OnnxMlProto3.AttributeProtoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.AttributeProto, onnx.OnnxMlProto3.AttributeProto.Builder, onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.NodeProto) } // @@protoc_insertion_point(class_scope:onnx.NodeProto) private static final onnx.OnnxMlProto3.NodeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.NodeProto(); } public static onnx.OnnxMlProto3.NodeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public NodeProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new NodeProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.NodeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModelProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.ModelProto) com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.GraphProto getGraph(); /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.ModelProto) ModelProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ModelProto.newBuilder() to construct. private ModelProto(com.github.os72.protobuf351.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 com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModelProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.GraphProto.Builder subBuilder = null; if (graph_ != null) { subBuilder = graph_.toBuilder(); } graph_ = input.readMessage(onnx.OnnxMlProto3.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.OnnxMlProto3.OperatorSetIdProto.parser(), extensionRegistry)); break; } case 114: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { metadataProps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } metadataProps_.add( input.readMessage(onnx.OnnxMlProto3.StringStringEntryProto.parser(), extensionRegistry)); break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_ModelProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_ModelProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.ModelProto.class, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getProducerNameBytes() { java.lang.Object ref = producerName_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); producerName_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getProducerVersionBytes() { java.lang.Object ref = producerVersion_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); producerVersion_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int GRAPH_FIELD_NUMBER = 7; private onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto getGraph() { return graph_ == null ? onnx.OnnxMlProto3.GraphProto.getDefaultInstance() : graph_; } /** *
     * The parameterized graph that is evaluated to execute the model.
     * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.StringStringEntryProto getMetadataProps(int index) { return metadataProps_.get(index); } /** *
     * Named metadata values; keys should be distinct.
     * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (irVersion_ != 0L) { output.writeInt64(1, irVersion_); } if (!getProducerNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, producerName_); } if (!getProducerVersionBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 3, producerVersion_); } if (!getDomainBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, domain_); } if (modelVersion_ != 0L) { output.writeInt64(5, modelVersion_); } if (!getDocStringBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(1, irVersion_); } if (!getProducerNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, producerName_); } if (!getProducerVersionBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(3, producerVersion_); } if (!getDomainBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(4, domain_); } if (modelVersion_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(5, modelVersion_); } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(6, docString_); } if (graph_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(7, getGraph()); } for (int i = 0; i < opsetImport_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(8, opsetImport_.get(i)); } for (int i = 0; i < metadataProps_.size(); i++) { size += com.github.os72.protobuf351.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.OnnxMlProto3.ModelProto)) { return super.equals(obj); } onnx.OnnxMlProto3.ModelProto other = (onnx.OnnxMlProto3.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) + com.github.os72.protobuf351.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) + com.github.os72.protobuf351.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.OnnxMlProto3.ModelProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ModelProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ModelProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ModelProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ModelProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.ModelProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.ModelProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ModelProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.ModelProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ModelProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.ModelProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.ModelProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.ModelProto) onnx.OnnxMlProto3.ModelProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_ModelProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_ModelProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.ModelProto.class, onnx.OnnxMlProto3.ModelProto.Builder.class); } // Construct using onnx.OnnxMlProto3.ModelProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_ModelProto_descriptor; } public onnx.OnnxMlProto3.ModelProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.ModelProto.getDefaultInstance(); } public onnx.OnnxMlProto3.ModelProto build() { onnx.OnnxMlProto3.ModelProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.ModelProto buildPartial() { onnx.OnnxMlProto3.ModelProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.ModelProto) { return mergeFrom((onnx.OnnxMlProto3.ModelProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.ModelProto other) { if (other == onnx.OnnxMlProto3.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.ModelProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.OperatorSetIdProto, onnx.OnnxMlProto3.OperatorSetIdProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.OperatorSetIdProto.Builder addOpsetImportBuilder() { return getOpsetImportFieldBuilder().addBuilder( onnx.OnnxMlProto3.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.OnnxMlProto3.OperatorSetIdProto.Builder addOpsetImportBuilder( int index) { return getOpsetImportFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.OperatorSetIdProto, onnx.OnnxMlProto3.OperatorSetIdProto.Builder, onnx.OnnxMlProto3.OperatorSetIdProtoOrBuilder> getOpsetImportFieldBuilder() { if (opsetImportBuilder_ == null) { opsetImportBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.OperatorSetIdProto, onnx.OnnxMlProto3.OperatorSetIdProto.Builder, onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getProducerNameBytes() { java.lang.Object ref = producerName_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); producerName_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getProducerVersionBytes() { java.lang.Object ref = producerVersion_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); producerVersion_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private onnx.OnnxMlProto3.GraphProto graph_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto getGraph() { if (graphBuilder_ == null) { return graph_ == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.GraphProto value) { if (graphBuilder_ == null) { if (graph_ != null) { graph_ = onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto.Builder getGraphBuilder() { onChanged(); return getGraphFieldBuilder().getBuilder(); } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ public onnx.OnnxMlProto3.GraphProtoOrBuilder getGraphOrBuilder() { if (graphBuilder_ != null) { return graphBuilder_.getMessageOrBuilder(); } else { return graph_ == null ? onnx.OnnxMlProto3.GraphProto.getDefaultInstance() : graph_; } } /** *
       * The parameterized graph that is evaluated to execute the model.
       * 
* * .onnx.GraphProto graph = 7; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.GraphProtoOrBuilder> getGraphFieldBuilder() { if (graphBuilder_ == null) { graphBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.GraphProto, onnx.OnnxMlProto3.GraphProto.Builder, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.StringStringEntryProto, onnx.OnnxMlProto3.StringStringEntryProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.StringStringEntryProto.Builder getMetadataPropsBuilder( int index) { return getMetadataPropsFieldBuilder().getBuilder(index); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.StringStringEntryProto.Builder addMetadataPropsBuilder() { return getMetadataPropsFieldBuilder().addBuilder( onnx.OnnxMlProto3.StringStringEntryProto.getDefaultInstance()); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public onnx.OnnxMlProto3.StringStringEntryProto.Builder addMetadataPropsBuilder( int index) { return getMetadataPropsFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.StringStringEntryProto.getDefaultInstance()); } /** *
       * Named metadata values; keys should be distinct.
       * 
* * repeated .onnx.StringStringEntryProto metadata_props = 14; */ public java.util.List getMetadataPropsBuilderList() { return getMetadataPropsFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.StringStringEntryProto, onnx.OnnxMlProto3.StringStringEntryProto.Builder, onnx.OnnxMlProto3.StringStringEntryProtoOrBuilder> getMetadataPropsFieldBuilder() { if (metadataPropsBuilder_ == null) { metadataPropsBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.StringStringEntryProto, onnx.OnnxMlProto3.StringStringEntryProto.Builder, onnx.OnnxMlProto3.StringStringEntryProtoOrBuilder>( metadataProps_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); metadataProps_ = null; } return metadataPropsBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.ModelProto) } // @@protoc_insertion_point(class_scope:onnx.ModelProto) private static final onnx.OnnxMlProto3.ModelProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.ModelProto(); } public static onnx.OnnxMlProto3.ModelProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public ModelProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new ModelProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.ModelProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StringStringEntryProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.StringStringEntryProto) com.github.os72.protobuf351.MessageOrBuilder { /** * string key = 1; */ java.lang.String getKey(); /** * string key = 1; */ com.github.os72.protobuf351.ByteString getKeyBytes(); /** * string value = 2; */ java.lang.String getValue(); /** * string value = 2; */ com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.StringStringEntryProto) StringStringEntryProtoOrBuilder { private static final long serialVersionUID = 0L; // Use StringStringEntryProto.newBuilder() to construct. private StringStringEntryProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private StringStringEntryProto() { key_ = ""; value_ = ""; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringStringEntryProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_StringStringEntryProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_StringStringEntryProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.StringStringEntryProto.class, onnx.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * string key = 1; */ public com.github.os72.protobuf351.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** * string value = 2; */ public com.github.os72.protobuf351.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.github.os72.protobuf351.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, key_); } if (!getValueBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, key_); } if (!getValueBytes().isEmpty()) { size += com.github.os72.protobuf351.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.OnnxMlProto3.StringStringEntryProto)) { return super.equals(obj); } onnx.OnnxMlProto3.StringStringEntryProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.StringStringEntryProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.StringStringEntryProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.StringStringEntryProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.StringStringEntryProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.StringStringEntryProto) onnx.OnnxMlProto3.StringStringEntryProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_StringStringEntryProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_StringStringEntryProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.StringStringEntryProto.class, onnx.OnnxMlProto3.StringStringEntryProto.Builder.class); } // Construct using onnx.OnnxMlProto3.StringStringEntryProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; value_ = ""; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_StringStringEntryProto_descriptor; } public onnx.OnnxMlProto3.StringStringEntryProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.StringStringEntryProto.getDefaultInstance(); } public onnx.OnnxMlProto3.StringStringEntryProto build() { onnx.OnnxMlProto3.StringStringEntryProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.StringStringEntryProto buildPartial() { onnx.OnnxMlProto3.StringStringEntryProto result = new onnx.OnnxMlProto3.StringStringEntryProto(this); result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.StringStringEntryProto) { return mergeFrom((onnx.OnnxMlProto3.StringStringEntryProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.StringStringEntryProto other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.StringStringEntryProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; */ public com.github.os72.protobuf351.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; */ public com.github.os72.protobuf351.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.StringStringEntryProto) } // @@protoc_insertion_point(class_scope:onnx.StringStringEntryProto) private static final onnx.OnnxMlProto3.StringStringEntryProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.StringStringEntryProto(); } public static onnx.OnnxMlProto3.StringStringEntryProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public StringStringEntryProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new StringStringEntryProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.StringStringEntryProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GraphProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.GraphProto) com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.NodeProtoOrBuilder getNodeOrBuilder( int index); /** *
     * The name of the graph.
     * 
* * string name = 2; */ java.lang.String getName(); /** *
     * The name of the graph.
     * 
* * string name = 2; */ com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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; */ com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProtoOrBuilder getInputOrBuilder( int index); /** * repeated .onnx.ValueInfoProto output = 12; */ java.util.List getOutputList(); /** * repeated .onnx.ValueInfoProto output = 12; */ onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.GraphProto) GraphProtoOrBuilder { private static final long serialVersionUID = 0L; // Use GraphProto.newBuilder() to construct. private GraphProto(com.github.os72.protobuf351.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 com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GraphProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto.parser(), extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { output_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } output_.add( input.readMessage(onnx.OnnxMlProto3.ValueInfoProto.parser(), extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { valueInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } valueInfo_.add( input.readMessage(onnx.OnnxMlProto3.ValueInfoProto.parser(), extensionRegistry)); break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_GraphProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_GraphProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.GraphProto.class, onnx.OnnxMlProto3.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.OnnxMlProto3.NodeProto getNode(int index) { return node_.get(index); } /** *
     * The nodes in the graph.
     * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The name of the graph.
     * 
* * string name = 2; */ public com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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.OnnxMlProto3.ValueInfoProto getInput(int index) { return input_.get(index); } /** *
     * The inputs and outputs of the graph.
     * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto getOutput(int index) { return output_.get(index); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < initializer_.size(); i++) { output.writeMessage(5, initializer_.get(i)); } if (!getDocStringBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(1, node_.get(i)); } if (!getNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, name_); } for (int i = 0; i < initializer_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, initializer_.get(i)); } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(10, docString_); } for (int i = 0; i < input_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(11, input_.get(i)); } for (int i = 0; i < output_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(12, output_.get(i)); } for (int i = 0; i < valueInfo_.size(); i++) { size += com.github.os72.protobuf351.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.OnnxMlProto3.GraphProto)) { return super.equals(obj); } onnx.OnnxMlProto3.GraphProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.GraphProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.GraphProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.GraphProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.GraphProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.GraphProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.GraphProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.GraphProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.GraphProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.GraphProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.GraphProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.GraphProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.GraphProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.GraphProto) onnx.OnnxMlProto3.GraphProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_GraphProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_GraphProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.GraphProto.class, onnx.OnnxMlProto3.GraphProto.Builder.class); } // Construct using onnx.OnnxMlProto3.GraphProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_GraphProto_descriptor; } public onnx.OnnxMlProto3.GraphProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.GraphProto.getDefaultInstance(); } public onnx.OnnxMlProto3.GraphProto build() { onnx.OnnxMlProto3.GraphProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.GraphProto buildPartial() { onnx.OnnxMlProto3.GraphProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.GraphProto) { return mergeFrom((onnx.OnnxMlProto3.GraphProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.GraphProto other) { if (other == onnx.OnnxMlProto3.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.GraphProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.NodeProto, onnx.OnnxMlProto3.NodeProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.NodeProto.Builder getNodeBuilder( int index) { return getNodeFieldBuilder().getBuilder(index); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.NodeProto.Builder addNodeBuilder() { return getNodeFieldBuilder().addBuilder( onnx.OnnxMlProto3.NodeProto.getDefaultInstance()); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public onnx.OnnxMlProto3.NodeProto.Builder addNodeBuilder( int index) { return getNodeFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.NodeProto.getDefaultInstance()); } /** *
       * The nodes in the graph.
       * 
* * repeated .onnx.NodeProto node = 1; */ public java.util.List getNodeBuilderList() { return getNodeFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.NodeProto, onnx.OnnxMlProto3.NodeProto.Builder, onnx.OnnxMlProto3.NodeProtoOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.NodeProto, onnx.OnnxMlProto3.NodeProto.Builder, onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Builder addInitializerBuilder() { return getInitializerFieldBuilder().addBuilder( onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Builder addInitializerBuilder( int index) { return getInitializerFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.TensorProtoOrBuilder> getInitializerFieldBuilder() { if (initializerBuilder_ == null) { initializerBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorProto, onnx.OnnxMlProto3.TensorProto.Builder, onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.ValueInfoProto.Builder getInputBuilder( int index) { return getInputFieldBuilder().getBuilder(index); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto.Builder addInputBuilder() { return getInputFieldBuilder().addBuilder( onnx.OnnxMlProto3.ValueInfoProto.getDefaultInstance()); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public onnx.OnnxMlProto3.ValueInfoProto.Builder addInputBuilder( int index) { return getInputFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.ValueInfoProto.getDefaultInstance()); } /** *
       * The inputs and outputs of the graph.
       * 
* * repeated .onnx.ValueInfoProto input = 11; */ public java.util.List getInputBuilderList() { return getInputFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.ValueInfoProtoOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.ValueInfoProto.Builder getOutputBuilder( int index) { return getOutputFieldBuilder().getBuilder(index); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto.Builder addOutputBuilder() { return getOutputFieldBuilder().addBuilder( onnx.OnnxMlProto3.ValueInfoProto.getDefaultInstance()); } /** * repeated .onnx.ValueInfoProto output = 12; */ public onnx.OnnxMlProto3.ValueInfoProto.Builder addOutputBuilder( int index) { return getOutputFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.ValueInfoProto.getDefaultInstance()); } /** * repeated .onnx.ValueInfoProto output = 12; */ public java.util.List getOutputBuilderList() { return getOutputFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.ValueInfoProtoOrBuilder> getOutputFieldBuilder() { if (outputBuilder_ == null) { outputBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto.Builder addValueInfoBuilder() { return getValueInfoFieldBuilder().addBuilder( onnx.OnnxMlProto3.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.OnnxMlProto3.ValueInfoProto.Builder addValueInfoBuilder( int index) { return getValueInfoFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.ValueInfoProtoOrBuilder> getValueInfoFieldBuilder() { if (valueInfoBuilder_ == null) { valueInfoBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.ValueInfoProto, onnx.OnnxMlProto3.ValueInfoProto.Builder, onnx.OnnxMlProto3.ValueInfoProtoOrBuilder>( valueInfo_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); valueInfo_ = null; } return valueInfoBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.GraphProto) } // @@protoc_insertion_point(class_scope:onnx.GraphProto) private static final onnx.OnnxMlProto3.GraphProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.GraphProto(); } public static onnx.OnnxMlProto3.GraphProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public GraphProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new GraphProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.GraphProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TensorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorProto) com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.DataType getDataType(); /** * .onnx.TensorProto.Segment segment = 3; */ boolean hasSegment(); /** * .onnx.TensorProto.Segment segment = 3; */ onnx.OnnxMlProto3.TensorProto.Segment getSegment(); /** * .onnx.TensorProto.Segment segment = 3; */ onnx.OnnxMlProto3.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorProto) TensorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TensorProto.newBuilder() to construct. private TensorProto(com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.ByteString.EMPTY; doubleData_ = java.util.Collections.emptyList(); uint64Data_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.Segment.Builder subBuilder = null; if (segment_ != null) { subBuilder = segment_.toBuilder(); } segment_ = input.readMessage(onnx.OnnxMlProto3.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorProto.class, onnx.OnnxMlProto3.TensorProto.Builder.class); } /** * Protobuf enum {@code onnx.TensorProto.DataType} */ public enum DataType implements com.github.os72.protobuf351.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 com.github.os72.protobuf351.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.github.os72.protobuf351.Internal.EnumLiteMap< DataType> internalValueMap = new com.github.os72.protobuf351.Internal.EnumLiteMap() { public DataType findValueByNumber(int number) { return DataType.forNumber(number); } }; public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptor() { return onnx.OnnxMlProto3.TensorProto.getDescriptor().getEnumTypes().get(0); } private static final DataType[] VALUES = values(); public static DataType valueOf( com.github.os72.protobuf351.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) com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorProto.Segment) SegmentOrBuilder { private static final long serialVersionUID = 0L; // Use Segment.newBuilder() to construct. private Segment(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private Segment() { begin_ = 0L; end_ = 0L; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Segment( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_Segment_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorProto.Segment.class, onnx.OnnxMlProto3.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(com.github.os72.protobuf351.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 += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(1, begin_); } if (end_ != 0L) { size += com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.Segment)) { return super.equals(obj); } onnx.OnnxMlProto3.TensorProto.Segment other = (onnx.OnnxMlProto3.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) + com.github.os72.protobuf351.Internal.hashLong( getBegin()); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getEnd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto.Segment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto.Segment parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto.Segment parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorProto.Segment) onnx.OnnxMlProto3.TensorProto.SegmentOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_Segment_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorProto.Segment.class, onnx.OnnxMlProto3.TensorProto.Segment.Builder.class); } // Construct using onnx.OnnxMlProto3.TensorProto.Segment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); begin_ = 0L; end_ = 0L; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_Segment_descriptor; } public onnx.OnnxMlProto3.TensorProto.Segment getDefaultInstanceForType() { return onnx.OnnxMlProto3.TensorProto.Segment.getDefaultInstance(); } public onnx.OnnxMlProto3.TensorProto.Segment build() { onnx.OnnxMlProto3.TensorProto.Segment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TensorProto.Segment buildPartial() { onnx.OnnxMlProto3.TensorProto.Segment result = new onnx.OnnxMlProto3.TensorProto.Segment(this); result.begin_ = begin_; result.end_ = end_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TensorProto.Segment) { return mergeFrom((onnx.OnnxMlProto3.TensorProto.Segment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TensorProto.Segment other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TensorProto.Segment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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 com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.Segment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TensorProto.Segment(); } public static onnx.OnnxMlProto3.TensorProto.Segment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public Segment parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new Segment(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType getDataType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(dataType_); return result == null ? onnx.OnnxMlProto3.TensorProto.DataType.UNRECOGNIZED : result; } public static final int SEGMENT_FIELD_NUMBER = 3; private onnx.OnnxMlProto3.TensorProto.Segment segment_; /** * .onnx.TensorProto.Segment segment = 3; */ public boolean hasSegment() { return segment_ != null; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMlProto3.TensorProto.Segment getSegment() { return segment_ == null ? onnx.OnnxMlProto3.TensorProto.Segment.getDefaultInstance() : segment_; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMlProto3.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 com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Optionally, a name for the tensor.
     * 
* * string name = 8; */ public com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int RAW_DATA_FIELD_NUMBER = 9; private com.github.os72.protobuf351.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 com.github.os72.protobuf351.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(com.github.os72.protobuf351.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.OnnxMlProto3.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()) { com.github.os72.protobuf351.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()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.CodedOutputStream .computeInt64SizeNoTag(dims_.get(i)); } size += dataSize; if (!getDimsList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dimsMemoizedSerializedSize = dataSize; } if (dataType_ != onnx.OnnxMlProto3.TensorProto.DataType.UNDEFINED.getNumber()) { size += com.github.os72.protobuf351.CodedOutputStream .computeEnumSize(2, dataType_); } if (segment_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(3, getSegment()); } { int dataSize = 0; dataSize = 4 * getFloatDataList().size(); size += dataSize; if (!getFloatDataList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < int32Data_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(int32Data_.get(i)); } size += dataSize; if (!getInt32DataList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } int32DataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < stringData_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeBytesSizeNoTag(stringData_.get(i)); } size += dataSize; size += 1 * getStringDataList().size(); } { int dataSize = 0; for (int i = 0; i < int64Data_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeInt64SizeNoTag(int64Data_.get(i)); } size += dataSize; if (!getInt64DataList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } int64DataMemoizedSerializedSize = dataSize; } if (!getNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(8, name_); } if (!rawData_.isEmpty()) { size += com.github.os72.protobuf351.CodedOutputStream .computeBytesSize(9, rawData_); } { int dataSize = 0; dataSize = 8 * getDoubleDataList().size(); size += dataSize; if (!getDoubleDataList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } doubleDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < uint64Data_.size(); i++) { dataSize += com.github.os72.protobuf351.CodedOutputStream .computeUInt64SizeNoTag(uint64Data_.get(i)); } size += dataSize; if (!getUint64DataList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeInt32SizeNoTag(dataSize); } uint64DataMemoizedSerializedSize = dataSize; } if (!getDocStringBytes().isEmpty()) { size += com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto)) { return super.equals(obj); } onnx.OnnxMlProto3.TensorProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorProto) onnx.OnnxMlProto3.TensorProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorProto.class, onnx.OnnxMlProto3.TensorProto.Builder.class); } // Construct using onnx.OnnxMlProto3.TensorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.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_ = com.github.os72.protobuf351.ByteString.EMPTY; doubleData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); uint64Data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TensorProto_descriptor; } public onnx.OnnxMlProto3.TensorProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.TensorProto.getDefaultInstance(); } public onnx.OnnxMlProto3.TensorProto build() { onnx.OnnxMlProto3.TensorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TensorProto buildPartial() { onnx.OnnxMlProto3.TensorProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TensorProto) { return mergeFrom((onnx.OnnxMlProto3.TensorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TensorProto other) { if (other == onnx.OnnxMlProto3.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() != com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TensorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.DataType getDataType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(dataType_); return result == null ? onnx.OnnxMlProto3.TensorProto.DataType.UNRECOGNIZED : result; } /** *
       * The data type of the tensor.
       * 
* * .onnx.TensorProto.DataType data_type = 2; */ public Builder setDataType(onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Segment segment_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto.Segment, onnx.OnnxMlProto3.TensorProto.Segment.Builder, onnx.OnnxMlProto3.TensorProto.SegmentOrBuilder> segmentBuilder_; /** * .onnx.TensorProto.Segment segment = 3; */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMlProto3.TensorProto.Segment getSegment() { if (segmentBuilder_ == null) { return segment_ == null ? onnx.OnnxMlProto3.TensorProto.Segment.getDefaultInstance() : segment_; } else { return segmentBuilder_.getMessage(); } } /** * .onnx.TensorProto.Segment segment = 3; */ public Builder setSegment(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Segment value) { if (segmentBuilder_ == null) { if (segment_ != null) { segment_ = onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.Segment.Builder getSegmentBuilder() { onChanged(); return getSegmentFieldBuilder().getBuilder(); } /** * .onnx.TensorProto.Segment segment = 3; */ public onnx.OnnxMlProto3.TensorProto.SegmentOrBuilder getSegmentOrBuilder() { if (segmentBuilder_ != null) { return segmentBuilder_.getMessageOrBuilder(); } else { return segment_ == null ? onnx.OnnxMlProto3.TensorProto.Segment.getDefaultInstance() : segment_; } } /** * .onnx.TensorProto.Segment segment = 3; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto.Segment, onnx.OnnxMlProto3.TensorProto.Segment.Builder, onnx.OnnxMlProto3.TensorProto.SegmentOrBuilder> getSegmentFieldBuilder() { if (segmentBuilder_ == null) { segmentBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorProto.Segment, onnx.OnnxMlProto3.TensorProto.Segment.Builder, onnx.OnnxMlProto3.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(); com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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 com.github.os72.protobuf351.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, com.github.os72.protobuf351.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(com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; onChanged(); return this; } private com.github.os72.protobuf351.ByteString rawData_ = com.github.os72.protobuf351.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 com.github.os72.protobuf351.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(com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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(); com.github.os72.protobuf351.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 com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorProto) } // @@protoc_insertion_point(class_scope:onnx.TensorProto) private static final onnx.OnnxMlProto3.TensorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TensorProto(); } public static onnx.OnnxMlProto3.TensorProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public TensorProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new TensorProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TensorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TensorShapeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorShapeProto) com.github.os72.protobuf351.MessageOrBuilder { /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ java.util.List getDimList(); /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ onnx.OnnxMlProto3.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.OnnxMlProto3.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorShapeProto) TensorShapeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TensorShapeProto.newBuilder() to construct. private TensorShapeProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private TensorShapeProto() { dim_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorShapeProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Dimension.parser(), extensionRegistry)); break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dim_ = java.util.Collections.unmodifiableList(dim_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorShapeProto.class, onnx.OnnxMlProto3.TensorShapeProto.Builder.class); } public interface DimensionOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TensorShapeProto.Dimension) com.github.os72.protobuf351.MessageOrBuilder { /** * int64 dim_value = 1; */ long getDimValue(); /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ java.lang.String getDimParam(); /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ com.github.os72.protobuf351.ByteString getDimParamBytes(); public onnx.OnnxMlProto3.TensorShapeProto.Dimension.ValueCase getValueCase(); } /** * Protobuf type {@code onnx.TensorShapeProto.Dimension} */ public static final class Dimension extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TensorShapeProto.Dimension) DimensionOrBuilder { private static final long serialVersionUID = 0L; // Use Dimension.newBuilder() to construct. private Dimension(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private Dimension() { } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Dimension( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorShapeProto.Dimension.class, onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.github.os72.protobuf351.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 2) { value_ = s; } return s; } } /** *
       * namespace Shape
       * 
* * string dim_param = 2; */ public com.github.os72.protobuf351.ByteString getDimParamBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (com.github.os72.protobuf351.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { size += com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Dimension)) { return super.equals(obj); } onnx.OnnxMlProto3.TensorShapeProto.Dimension other = (onnx.OnnxMlProto3.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) + com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code onnx.TensorShapeProto.Dimension} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorShapeProto.Dimension) onnx.OnnxMlProto3.TensorShapeProto.DimensionOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorShapeProto.Dimension.class, onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder.class); } // Construct using onnx.OnnxMlProto3.TensorShapeProto.Dimension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); valueCase_ = 0; value_ = null; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_Dimension_descriptor; } public onnx.OnnxMlProto3.TensorShapeProto.Dimension getDefaultInstanceForType() { return onnx.OnnxMlProto3.TensorShapeProto.Dimension.getDefaultInstance(); } public onnx.OnnxMlProto3.TensorShapeProto.Dimension build() { onnx.OnnxMlProto3.TensorShapeProto.Dimension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TensorShapeProto.Dimension buildPartial() { onnx.OnnxMlProto3.TensorShapeProto.Dimension result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TensorShapeProto.Dimension) { return mergeFrom((onnx.OnnxMlProto3.TensorShapeProto.Dimension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TensorShapeProto.Dimension other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TensorShapeProto.Dimension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDimParamBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 2; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Dimension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TensorShapeProto.Dimension(); } public static onnx.OnnxMlProto3.TensorShapeProto.Dimension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public Dimension parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new Dimension(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto.Dimension getDim(int index) { return dim_.get(index); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMlProto3.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(com.github.os72.protobuf351.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 += com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto)) { return super.equals(obj); } onnx.OnnxMlProto3.TensorShapeProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TensorShapeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TensorShapeProto) onnx.OnnxMlProto3.TensorShapeProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TensorShapeProto.class, onnx.OnnxMlProto3.TensorShapeProto.Builder.class); } // Construct using onnx.OnnxMlProto3.TensorShapeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TensorShapeProto_descriptor; } public onnx.OnnxMlProto3.TensorShapeProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.TensorShapeProto.getDefaultInstance(); } public onnx.OnnxMlProto3.TensorShapeProto build() { onnx.OnnxMlProto3.TensorShapeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TensorShapeProto buildPartial() { onnx.OnnxMlProto3.TensorShapeProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TensorShapeProto) { return mergeFrom((onnx.OnnxMlProto3.TensorShapeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TensorShapeProto other) { if (other == onnx.OnnxMlProto3.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_ = com.github.os72.protobuf351.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TensorShapeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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 com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto.Dimension, onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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(); com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Dimension.Builder getDimBuilder( int index) { return getDimFieldBuilder().getBuilder(index); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto.Dimension.Builder addDimBuilder() { return getDimFieldBuilder().addBuilder( onnx.OnnxMlProto3.TensorShapeProto.Dimension.getDefaultInstance()); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder addDimBuilder( int index) { return getDimFieldBuilder().addBuilder( index, onnx.OnnxMlProto3.TensorShapeProto.Dimension.getDefaultInstance()); } /** * repeated .onnx.TensorShapeProto.Dimension dim = 1; */ public java.util.List getDimBuilderList() { return getDimFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto.Dimension, onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder, onnx.OnnxMlProto3.TensorShapeProto.DimensionOrBuilder> getDimFieldBuilder() { if (dimBuilder_ == null) { dimBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto.Dimension, onnx.OnnxMlProto3.TensorShapeProto.Dimension.Builder, onnx.OnnxMlProto3.TensorShapeProto.DimensionOrBuilder>( dim_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); dim_ = null; } return dimBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TensorShapeProto) } // @@protoc_insertion_point(class_scope:onnx.TensorShapeProto) private static final onnx.OnnxMlProto3.TensorShapeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TensorShapeProto(); } public static onnx.OnnxMlProto3.TensorShapeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public TensorShapeProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new TensorShapeProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TensorShapeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto) com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Tensor getTensorType(); /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence getSequenceType(); /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map getMapType(); /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ onnx.OnnxMlProto3.TypeProto.MapOrBuilder getMapTypeOrBuilder(); public onnx.OnnxMlProto3.TypeProto.ValueCase getValueCase(); } /** *
   * Define the types.
   * 
* * Protobuf type {@code onnx.TypeProto} */ public static final class TypeProto extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto) TypeProtoOrBuilder { private static final long serialVersionUID = 0L; // Use TypeProto.newBuilder() to construct. private TypeProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private TypeProto() { } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypeProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Tensor.Builder subBuilder = null; if (valueCase_ == 1) { subBuilder = ((onnx.OnnxMlProto3.TypeProto.Tensor) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMlProto3.TypeProto.Tensor.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMlProto3.TypeProto.Tensor) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 1; break; } case 34: { onnx.OnnxMlProto3.TypeProto.Sequence.Builder subBuilder = null; if (valueCase_ == 4) { subBuilder = ((onnx.OnnxMlProto3.TypeProto.Sequence) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMlProto3.TypeProto.Sequence.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMlProto3.TypeProto.Sequence) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 4; break; } case 42: { onnx.OnnxMlProto3.TypeProto.Map.Builder subBuilder = null; if (valueCase_ == 5) { subBuilder = ((onnx.OnnxMlProto3.TypeProto.Map) value_).toBuilder(); } value_ = input.readMessage(onnx.OnnxMlProto3.TypeProto.Map.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((onnx.OnnxMlProto3.TypeProto.Map) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 5; break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.class, onnx.OnnxMlProto3.TypeProto.Builder.class); } public interface TensorOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Tensor) com.github.os72.protobuf351.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.OnnxMlProto3.TensorProto.DataType getElemType(); /** * .onnx.TensorShapeProto shape = 2; */ boolean hasShape(); /** * .onnx.TensorShapeProto shape = 2; */ onnx.OnnxMlProto3.TensorShapeProto getShape(); /** * .onnx.TensorShapeProto shape = 2; */ onnx.OnnxMlProto3.TensorShapeProtoOrBuilder getShapeOrBuilder(); } /** * Protobuf type {@code onnx.TypeProto.Tensor} */ public static final class Tensor extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Tensor) TensorOrBuilder { private static final long serialVersionUID = 0L; // Use Tensor.newBuilder() to construct. private Tensor(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private Tensor() { elemType_ = 0; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tensor( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TensorShapeProto.Builder subBuilder = null; if (shape_ != null) { subBuilder = shape_.toBuilder(); } shape_ = input.readMessage(onnx.OnnxMlProto3.TensorShapeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shape_); shape_ = subBuilder.buildPartial(); } break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Tensor_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Tensor_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Tensor.class, onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType getElemType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(elemType_); return result == null ? onnx.OnnxMlProto3.TensorProto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 2; private onnx.OnnxMlProto3.TensorShapeProto shape_; /** * .onnx.TensorShapeProto shape = 2; */ public boolean hasShape() { return shape_ != null; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMlProto3.TensorShapeProto getShape() { return shape_ == null ? onnx.OnnxMlProto3.TensorShapeProto.getDefaultInstance() : shape_; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (elemType_ != onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType.UNDEFINED.getNumber()) { size += com.github.os72.protobuf351.CodedOutputStream .computeEnumSize(1, elemType_); } if (shape_ != null) { size += com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Tensor)) { return super.equals(obj); } onnx.OnnxMlProto3.TypeProto.Tensor other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Tensor parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Tensor parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code onnx.TypeProto.Tensor} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Tensor) onnx.OnnxMlProto3.TypeProto.TensorOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Tensor_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Tensor_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Tensor.class, onnx.OnnxMlProto3.TypeProto.Tensor.Builder.class); } // Construct using onnx.OnnxMlProto3.TypeProto.Tensor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); elemType_ = 0; if (shapeBuilder_ == null) { shape_ = null; } else { shape_ = null; shapeBuilder_ = null; } return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Tensor_descriptor; } public onnx.OnnxMlProto3.TypeProto.Tensor getDefaultInstanceForType() { return onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } public onnx.OnnxMlProto3.TypeProto.Tensor build() { onnx.OnnxMlProto3.TypeProto.Tensor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TypeProto.Tensor buildPartial() { onnx.OnnxMlProto3.TypeProto.Tensor result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TypeProto.Tensor) { return mergeFrom((onnx.OnnxMlProto3.TypeProto.Tensor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TypeProto.Tensor other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TypeProto.Tensor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType getElemType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(elemType_); return result == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto shape_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto, onnx.OnnxMlProto3.TensorShapeProto.Builder, onnx.OnnxMlProto3.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .onnx.TensorShapeProto shape = 2; */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMlProto3.TensorShapeProto getShape() { if (shapeBuilder_ == null) { return shape_ == null ? onnx.OnnxMlProto3.TensorShapeProto.getDefaultInstance() : shape_; } else { return shapeBuilder_.getMessage(); } } /** * .onnx.TensorShapeProto shape = 2; */ public Builder setShape(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto value) { if (shapeBuilder_ == null) { if (shape_ != null) { shape_ = onnx.OnnxMlProto3.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.OnnxMlProto3.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * .onnx.TensorShapeProto shape = 2; */ public onnx.OnnxMlProto3.TensorShapeProtoOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_ == null ? onnx.OnnxMlProto3.TensorShapeProto.getDefaultInstance() : shape_; } } /** * .onnx.TensorShapeProto shape = 2; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto, onnx.OnnxMlProto3.TensorShapeProto.Builder, onnx.OnnxMlProto3.TensorShapeProtoOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TensorShapeProto, onnx.OnnxMlProto3.TensorShapeProto.Builder, onnx.OnnxMlProto3.TensorShapeProtoOrBuilder>( getShape(), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Tensor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TypeProto.Tensor(); } public static onnx.OnnxMlProto3.TypeProto.Tensor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public Tensor parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new Tensor(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TypeProto.Tensor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SequenceOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Sequence) com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.TypeProtoOrBuilder getElemTypeOrBuilder(); } /** *
     * repeated T
     * 
* * Protobuf type {@code onnx.TypeProto.Sequence} */ public static final class Sequence extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Sequence) SequenceOrBuilder { private static final long serialVersionUID = 0L; // Use Sequence.newBuilder() to construct. private Sequence(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private Sequence() { } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sequence( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Builder subBuilder = null; if (elemType_ != null) { subBuilder = elemType_.toBuilder(); } elemType_ = input.readMessage(onnx.OnnxMlProto3.TypeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(elemType_); elemType_ = subBuilder.buildPartial(); } break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Sequence_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Sequence_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Sequence.class, onnx.OnnxMlProto3.TypeProto.Sequence.Builder.class); } public static final int ELEM_TYPE_FIELD_NUMBER = 1; private onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getElemType() { return elemType_ == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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(com.github.os72.protobuf351.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 += com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Sequence)) { return super.equals(obj); } onnx.OnnxMlProto3.TypeProto.Sequence other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Sequence parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * repeated T
       * 
* * Protobuf type {@code onnx.TypeProto.Sequence} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Sequence) onnx.OnnxMlProto3.TypeProto.SequenceOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Sequence_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Sequence_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Sequence.class, onnx.OnnxMlProto3.TypeProto.Sequence.Builder.class); } // Construct using onnx.OnnxMlProto3.TypeProto.Sequence.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (elemTypeBuilder_ == null) { elemType_ = null; } else { elemType_ = null; elemTypeBuilder_ = null; } return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Sequence_descriptor; } public onnx.OnnxMlProto3.TypeProto.Sequence getDefaultInstanceForType() { return onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } public onnx.OnnxMlProto3.TypeProto.Sequence build() { onnx.OnnxMlProto3.TypeProto.Sequence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TypeProto.Sequence buildPartial() { onnx.OnnxMlProto3.TypeProto.Sequence result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TypeProto.Sequence) { return mergeFrom((onnx.OnnxMlProto3.TypeProto.Sequence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TypeProto.Sequence other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TypeProto.Sequence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.TypeProto.Sequence) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private onnx.OnnxMlProto3.TypeProto elemType_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getElemType() { if (elemTypeBuilder_ == null) { return elemType_ == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto value) { if (elemTypeBuilder_ == null) { if (elemType_ != null) { elemType_ = onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProtoOrBuilder getElemTypeOrBuilder() { if (elemTypeBuilder_ != null) { return elemTypeBuilder_.getMessageOrBuilder(); } else { return elemType_ == null ? onnx.OnnxMlProto3.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 com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.TypeProtoOrBuilder> getElemTypeFieldBuilder() { if (elemTypeBuilder_ == null) { elemTypeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.TypeProtoOrBuilder>( getElemType(), getParentForChildren(), isClean()); elemType_ = null; } return elemTypeBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Sequence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TypeProto.Sequence(); } public static onnx.OnnxMlProto3.TypeProto.Sequence getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public Sequence parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new Sequence(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TypeProto.Sequence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.TypeProto.Map) com.github.os72.protobuf351.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto getValueType(); /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ onnx.OnnxMlProto3.TypeProtoOrBuilder getValueTypeOrBuilder(); } /** *
     * map<K,V>
     * 
* * Protobuf type {@code onnx.TypeProto.Map} */ public static final class Map extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.TypeProto.Map) MapOrBuilder { private static final long serialVersionUID = 0L; // Use Map.newBuilder() to construct. private Map(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private Map() { keyType_ = 0; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Map( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Builder subBuilder = null; if (valueType_ != null) { subBuilder = valueType_.toBuilder(); } valueType_ = input.readMessage(onnx.OnnxMlProto3.TypeProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(valueType_); valueType_ = subBuilder.buildPartial(); } break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Map_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Map.class, onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType getKeyType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(keyType_); return result == null ? onnx.OnnxMlProto3.TensorProto.DataType.UNRECOGNIZED : result; } public static final int VALUE_TYPE_FIELD_NUMBER = 2; private onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getValueType() { return valueType_ == null ? onnx.OnnxMlProto3.TypeProto.getDefaultInstance() : valueType_; } /** *
       * This field MUST be present for this version of the IR.
       * 
* * .onnx.TypeProto value_type = 2; */ public onnx.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (keyType_ != onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType.UNDEFINED.getNumber()) { size += com.github.os72.protobuf351.CodedOutputStream .computeEnumSize(1, keyType_); } if (valueType_ != null) { size += com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Map)) { return super.equals(obj); } onnx.OnnxMlProto3.TypeProto.Map other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Map parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Map parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto.Map parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto.Map) onnx.OnnxMlProto3.TypeProto.MapOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Map_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.Map.class, onnx.OnnxMlProto3.TypeProto.Map.Builder.class); } // Construct using onnx.OnnxMlProto3.TypeProto.Map.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); keyType_ = 0; if (valueTypeBuilder_ == null) { valueType_ = null; } else { valueType_ = null; valueTypeBuilder_ = null; } return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_Map_descriptor; } public onnx.OnnxMlProto3.TypeProto.Map getDefaultInstanceForType() { return onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } public onnx.OnnxMlProto3.TypeProto.Map build() { onnx.OnnxMlProto3.TypeProto.Map result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TypeProto.Map buildPartial() { onnx.OnnxMlProto3.TypeProto.Map result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TypeProto.Map) { return mergeFrom((onnx.OnnxMlProto3.TypeProto.Map)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TypeProto.Map other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TypeProto.Map parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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.OnnxMlProto3.TensorProto.DataType getKeyType() { onnx.OnnxMlProto3.TensorProto.DataType result = onnx.OnnxMlProto3.TensorProto.DataType.valueOf(keyType_); return result == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto valueType_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto getValueType() { if (valueTypeBuilder_ == null) { return valueType_ == null ? onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto value) { if (valueTypeBuilder_ == null) { if (valueType_ != null) { valueType_ = onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProtoOrBuilder getValueTypeOrBuilder() { if (valueTypeBuilder_ != null) { return valueTypeBuilder_.getMessageOrBuilder(); } else { return valueType_ == null ? onnx.OnnxMlProto3.TypeProto.getDefaultInstance() : valueType_; } } /** *
         * This field MUST be present for this version of the IR.
         * 
* * .onnx.TypeProto value_type = 2; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.TypeProtoOrBuilder> getValueTypeFieldBuilder() { if (valueTypeBuilder_ == null) { valueTypeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto, onnx.OnnxMlProto3.TypeProto.Builder, onnx.OnnxMlProto3.TypeProtoOrBuilder>( getValueType(), getParentForChildren(), isClean()); valueType_ = null; } return valueTypeBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Map DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TypeProto.Map(); } public static onnx.OnnxMlProto3.TypeProto.Map getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public Map parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new Map(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TypeProto.Map getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.github.os72.protobuf351.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.OnnxMlProto3.TypeProto.Tensor getTensorType() { if (valueCase_ == 1) { return (onnx.OnnxMlProto3.TypeProto.Tensor) value_; } return onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } /** *
     * The type of a tensor.
     * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMlProto3.TypeProto.TensorOrBuilder getTensorTypeOrBuilder() { if (valueCase_ == 1) { return (onnx.OnnxMlProto3.TypeProto.Tensor) value_; } return onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence getSequenceType() { if (valueCase_ == 4) { return (onnx.OnnxMlProto3.TypeProto.Sequence) value_; } return onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } /** *
     * The type of a sequence.
     * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMlProto3.TypeProto.SequenceOrBuilder getSequenceTypeOrBuilder() { if (valueCase_ == 4) { return (onnx.OnnxMlProto3.TypeProto.Sequence) value_; } return onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map getMapType() { if (valueCase_ == 5) { return (onnx.OnnxMlProto3.TypeProto.Map) value_; } return onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } /** *
     * The type of a map.
     * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMlProto3.TypeProto.MapOrBuilder getMapTypeOrBuilder() { if (valueCase_ == 5) { return (onnx.OnnxMlProto3.TypeProto.Map) value_; } return onnx.OnnxMlProto3.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (onnx.OnnxMlProto3.TypeProto.Tensor) value_); } if (valueCase_ == 4) { output.writeMessage(4, (onnx.OnnxMlProto3.TypeProto.Sequence) value_); } if (valueCase_ == 5) { output.writeMessage(5, (onnx.OnnxMlProto3.TypeProto.Map) value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(1, (onnx.OnnxMlProto3.TypeProto.Tensor) value_); } if (valueCase_ == 4) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(4, (onnx.OnnxMlProto3.TypeProto.Sequence) value_); } if (valueCase_ == 5) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, (onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto)) { return super.equals(obj); } onnx.OnnxMlProto3.TypeProto other = (onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.TypeProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.TypeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.TypeProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Define the types.
     * 
* * Protobuf type {@code onnx.TypeProto} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.TypeProto) onnx.OnnxMlProto3.TypeProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.TypeProto.class, onnx.OnnxMlProto3.TypeProto.Builder.class); } // Construct using onnx.OnnxMlProto3.TypeProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); valueCase_ = 0; value_ = null; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_TypeProto_descriptor; } public onnx.OnnxMlProto3.TypeProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.TypeProto.getDefaultInstance(); } public onnx.OnnxMlProto3.TypeProto build() { onnx.OnnxMlProto3.TypeProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.TypeProto buildPartial() { onnx.OnnxMlProto3.TypeProto result = new onnx.OnnxMlProto3.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( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.TypeProto) { return mergeFrom((onnx.OnnxMlProto3.TypeProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.TypeProto other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.TypeProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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 com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Tensor, onnx.OnnxMlProto3.TypeProto.Tensor.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Tensor getTensorType() { if (tensorTypeBuilder_ == null) { if (valueCase_ == 1) { return (onnx.OnnxMlProto3.TypeProto.Tensor) value_; } return onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } else { if (valueCase_ == 1) { return tensorTypeBuilder_.getMessage(); } return onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public Builder setTensorType(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Tensor value) { if (tensorTypeBuilder_ == null) { if (valueCase_ == 1 && value_ != onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance()) { value_ = onnx.OnnxMlProto3.TypeProto.Tensor.newBuilder((onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Tensor.Builder getTensorTypeBuilder() { return getTensorTypeFieldBuilder().getBuilder(); } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ public onnx.OnnxMlProto3.TypeProto.TensorOrBuilder getTensorTypeOrBuilder() { if ((valueCase_ == 1) && (tensorTypeBuilder_ != null)) { return tensorTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (onnx.OnnxMlProto3.TypeProto.Tensor) value_; } return onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } } /** *
       * The type of a tensor.
       * 
* * .onnx.TypeProto.Tensor tensor_type = 1; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Tensor, onnx.OnnxMlProto3.TypeProto.Tensor.Builder, onnx.OnnxMlProto3.TypeProto.TensorOrBuilder> getTensorTypeFieldBuilder() { if (tensorTypeBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = onnx.OnnxMlProto3.TypeProto.Tensor.getDefaultInstance(); } tensorTypeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Tensor, onnx.OnnxMlProto3.TypeProto.Tensor.Builder, onnx.OnnxMlProto3.TypeProto.TensorOrBuilder>( (onnx.OnnxMlProto3.TypeProto.Tensor) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged();; return tensorTypeBuilder_; } private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Sequence, onnx.OnnxMlProto3.TypeProto.Sequence.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence getSequenceType() { if (sequenceTypeBuilder_ == null) { if (valueCase_ == 4) { return (onnx.OnnxMlProto3.TypeProto.Sequence) value_; } return onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } else { if (valueCase_ == 4) { return sequenceTypeBuilder_.getMessage(); } return onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public Builder setSequenceType(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence value) { if (sequenceTypeBuilder_ == null) { if (valueCase_ == 4 && value_ != onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance()) { value_ = onnx.OnnxMlProto3.TypeProto.Sequence.newBuilder((onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Sequence.Builder getSequenceTypeBuilder() { return getSequenceTypeFieldBuilder().getBuilder(); } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ public onnx.OnnxMlProto3.TypeProto.SequenceOrBuilder getSequenceTypeOrBuilder() { if ((valueCase_ == 4) && (sequenceTypeBuilder_ != null)) { return sequenceTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 4) { return (onnx.OnnxMlProto3.TypeProto.Sequence) value_; } return onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } } /** *
       * The type of a sequence.
       * 
* * .onnx.TypeProto.Sequence sequence_type = 4; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Sequence, onnx.OnnxMlProto3.TypeProto.Sequence.Builder, onnx.OnnxMlProto3.TypeProto.SequenceOrBuilder> getSequenceTypeFieldBuilder() { if (sequenceTypeBuilder_ == null) { if (!(valueCase_ == 4)) { value_ = onnx.OnnxMlProto3.TypeProto.Sequence.getDefaultInstance(); } sequenceTypeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Sequence, onnx.OnnxMlProto3.TypeProto.Sequence.Builder, onnx.OnnxMlProto3.TypeProto.SequenceOrBuilder>( (onnx.OnnxMlProto3.TypeProto.Sequence) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 4; onChanged();; return sequenceTypeBuilder_; } private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Map, onnx.OnnxMlProto3.TypeProto.Map.Builder, onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map getMapType() { if (mapTypeBuilder_ == null) { if (valueCase_ == 5) { return (onnx.OnnxMlProto3.TypeProto.Map) value_; } return onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } else { if (valueCase_ == 5) { return mapTypeBuilder_.getMessage(); } return onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public Builder setMapType(onnx.OnnxMlProto3.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.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map value) { if (mapTypeBuilder_ == null) { if (valueCase_ == 5 && value_ != onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance()) { value_ = onnx.OnnxMlProto3.TypeProto.Map.newBuilder((onnx.OnnxMlProto3.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.OnnxMlProto3.TypeProto.Map.Builder getMapTypeBuilder() { return getMapTypeFieldBuilder().getBuilder(); } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ public onnx.OnnxMlProto3.TypeProto.MapOrBuilder getMapTypeOrBuilder() { if ((valueCase_ == 5) && (mapTypeBuilder_ != null)) { return mapTypeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 5) { return (onnx.OnnxMlProto3.TypeProto.Map) value_; } return onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } } /** *
       * The type of a map.
       * 
* * .onnx.TypeProto.Map map_type = 5; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Map, onnx.OnnxMlProto3.TypeProto.Map.Builder, onnx.OnnxMlProto3.TypeProto.MapOrBuilder> getMapTypeFieldBuilder() { if (mapTypeBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = onnx.OnnxMlProto3.TypeProto.Map.getDefaultInstance(); } mapTypeBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< onnx.OnnxMlProto3.TypeProto.Map, onnx.OnnxMlProto3.TypeProto.Map.Builder, onnx.OnnxMlProto3.TypeProto.MapOrBuilder>( (onnx.OnnxMlProto3.TypeProto.Map) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged();; return mapTypeBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.TypeProto) } // @@protoc_insertion_point(class_scope:onnx.TypeProto) private static final onnx.OnnxMlProto3.TypeProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.TypeProto(); } public static onnx.OnnxMlProto3.TypeProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public TypeProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new TypeProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.TypeProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperatorSetIdProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:onnx.OperatorSetIdProto) com.github.os72.protobuf351.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; */ com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:onnx.OperatorSetIdProto) OperatorSetIdProtoOrBuilder { private static final long serialVersionUID = 0L; // Use OperatorSetIdProto.newBuilder() to construct. private OperatorSetIdProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private OperatorSetIdProto() { domain_ = ""; version_ = 0L; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperatorSetIdProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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 (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_OperatorSetIdProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_OperatorSetIdProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.OperatorSetIdProto.class, onnx.OnnxMlProto3.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 { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getDomainBytes().isEmpty()) { com.github.os72.protobuf351.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 += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, domain_); } if (version_ != 0L) { size += com.github.os72.protobuf351.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.OnnxMlProto3.OperatorSetIdProto)) { return super.equals(obj); } onnx.OnnxMlProto3.OperatorSetIdProto other = (onnx.OnnxMlProto3.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) + com.github.os72.protobuf351.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static onnx.OnnxMlProto3.OperatorSetIdProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(onnx.OnnxMlProto3.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:onnx.OperatorSetIdProto) onnx.OnnxMlProto3.OperatorSetIdProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return onnx.OnnxMlProto3.internal_static_onnx_OperatorSetIdProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return onnx.OnnxMlProto3.internal_static_onnx_OperatorSetIdProto_fieldAccessorTable .ensureFieldAccessorsInitialized( onnx.OnnxMlProto3.OperatorSetIdProto.class, onnx.OnnxMlProto3.OperatorSetIdProto.Builder.class); } // Construct using onnx.OnnxMlProto3.OperatorSetIdProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); domain_ = ""; version_ = 0L; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return onnx.OnnxMlProto3.internal_static_onnx_OperatorSetIdProto_descriptor; } public onnx.OnnxMlProto3.OperatorSetIdProto getDefaultInstanceForType() { return onnx.OnnxMlProto3.OperatorSetIdProto.getDefaultInstance(); } public onnx.OnnxMlProto3.OperatorSetIdProto build() { onnx.OnnxMlProto3.OperatorSetIdProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public onnx.OnnxMlProto3.OperatorSetIdProto buildPartial() { onnx.OnnxMlProto3.OperatorSetIdProto result = new onnx.OnnxMlProto3.OperatorSetIdProto(this); result.domain_ = domain_; result.version_ = version_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof onnx.OnnxMlProto3.OperatorSetIdProto) { return mergeFrom((onnx.OnnxMlProto3.OperatorSetIdProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(onnx.OnnxMlProto3.OperatorSetIdProto other) { if (other == onnx.OnnxMlProto3.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( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { onnx.OnnxMlProto3.OperatorSetIdProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (onnx.OnnxMlProto3.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)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.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 com.github.os72.protobuf351.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.github.os72.protobuf351.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( com.github.os72.protobuf351.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 com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:onnx.OperatorSetIdProto) } // @@protoc_insertion_point(class_scope:onnx.OperatorSetIdProto) private static final onnx.OnnxMlProto3.OperatorSetIdProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new onnx.OnnxMlProto3.OperatorSetIdProto(); } public static onnx.OnnxMlProto3.OperatorSetIdProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public OperatorSetIdProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new OperatorSetIdProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public onnx.OnnxMlProto3.OperatorSetIdProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_AttributeProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_AttributeProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_ValueInfoProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_ValueInfoProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_NodeProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_NodeProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_ModelProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_ModelProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_StringStringEntryProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_StringStringEntryProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_GraphProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_GraphProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TensorProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TensorProto_Segment_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorProto_Segment_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TensorShapeProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorShapeProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TensorShapeProto_Dimension_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TensorShapeProto_Dimension_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TypeProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TypeProto_Tensor_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Tensor_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TypeProto_Sequence_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Sequence_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_TypeProto_Map_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_TypeProto_Map_fieldAccessorTable; private static final com.github.os72.protobuf351.Descriptors.Descriptor internal_static_onnx_OperatorSetIdProto_descriptor; private static final com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internal_static_onnx_OperatorSetIdProto_fieldAccessorTable; public static com.github.os72.protobuf351.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.github.os72.protobuf351.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016onnx-ml.proto3\022\004onnx\"\311\003\n\016AttributeProt" + "o\022\014\n\004name\030\001 \001(\t\022\022\n\ndoc_string\030\r \001(\t\0220\n\004t" + "ype\030\024 \001(\0162\".onnx.AttributeProto.Attribut" + "eType\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\004int" + "s\030\010 \003(\003\022\017\n\007strings\030\t \003(\014\022\"\n\007tensors\030\n \003(" + "\0132\021.onnx.TensorProto\022 \n\006graphs\030\013 \003(\0132\020.o" + "nnx.GraphProto\"\221\001\n\rAttributeType\022\r\n\tUNDE" + "FINED\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\004IN" + "TS\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\004ty" + "pe\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\006ou" + "tput\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.o" + "nnx.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\014ops" + "et_import\030\010 \003(\0132\030.onnx.OperatorSetIdProt" + "o\022\025\n\rproducer_name\030\002 \001(\t\022\030\n\020producer_ver" + "sion\030\003 \001(\t\022\016\n\006domain\030\004 \001(\t\022\025\n\rmodel_vers" + "ion\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\026" + "StringStringEntryProto\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\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\013initia" + "lizer\030\005 \003(\0132\021.onnx.TensorProto\022\022\n\ndoc_st" + "ring\030\n \001(\t\022#\n\005input\030\013 \003(\0132\024.onnx.ValueIn" + "foProto\022$\n\006output\030\014 \003(\0132\024.onnx.ValueInfo" + "Proto\022(\n\nvalue_info\030\r \003(\0132\024.onnx.ValueIn" + "foProto\"\257\004\n\013TensorProto\022\014\n\004dims\030\001 \003(\003\022-\n" + "\tdata_type\030\002 \001(\0162\032.onnx.TensorProto.Data" + "Type\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\nint3" + "2_data\030\005 \003(\005B\002\020\001\022\023\n\013string_data\030\006 \003(\014\022\026\n" + "\nint64_data\030\007 \003(\003B\002\020\001\022\014\n\004name\030\010 \001(\t\022\022\n\nd" + "oc_string\030\014 \001(\t\022\020\n\010raw_data\030\t \001(\014\022\027\n\013dou" + "ble_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\005IN" + "T16\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\006UI" + "NT32\020\014\022\n\n\006UINT64\020\r\022\r\n\tCOMPLEX64\020\016\022\016\n\nCOM" + "PLEX128\020\017\"\201\001\n\020TensorShapeProto\022-\n\003dim\030\001 " + "\003(\0132 .onnx.TensorShapeProto.Dimension\032>\n" + "\tDimension\022\023\n\tdim_value\030\001 \001(\003H\000\022\023\n\tdim_p" + "aram\030\002 \001(\tH\000B\007\n\005value\"\211\003\n\tTypeProto\022-\n\013t" + "ensor_type\030\001 \001(\0132\026.onnx.TypeProto.Tensor" + "H\000\0221\n\rsequence_type\030\004 \001(\0132\030.onnx.TypePro" + "to.SequenceH\000\022\'\n\010map_type\030\005 \001(\0132\023.onnx.T" + "ypeProto.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\010Sequen" + "ce\022\"\n\telem_type\030\001 \001(\0132\017.onnx.TypeProto\032X" + "\n\003Map\022,\n\010key_type\030\001 \001(\0162\032.onnx.TensorPro" + "to.DataType\022#\n\nvalue_type\030\002 \001(\0132\017.onnx.T" + "ypeProtoB\007\n\005value\"5\n\022OperatorSetIdProto\022" + "\016\n\006domain\030\001 \001(\t\022\017\n\007version\030\002 \001(\003*c\n\007Vers" + "ion\022\022\n\016_START_VERSION\020\000\022\031\n\025IR_VERSION_20" + "17_10_10\020\001\022\031\n\025IR_VERSION_2017_10_30\020\002\022\016\n" + "\nIR_VERSION\020\003b\006proto3" }; com.github.os72.protobuf351.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.github.os72.protobuf351.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.github.os72.protobuf351.ExtensionRegistry assignDescriptors( com.github.os72.protobuf351.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.github.os72.protobuf351.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.github.os72.protobuf351.Descriptors.FileDescriptor[] { }, assigner); internal_static_onnx_AttributeProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_onnx_AttributeProto_fieldAccessorTable = new com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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 com.github.os72.protobuf351.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