onnx.OnnxOperators Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: onnx-operators.proto
package onnx;
public final class OnnxOperators {
private OnnxOperators() {}
public static void registerAllExtensions(
org.nd4j.shade.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.nd4j.shade.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.nd4j.shade.protobuf.ExtensionRegistryLite) registry);
}
public interface OperatorProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:onnx.OperatorProto)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The opType.
*/
java.lang.String getOpType();
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The bytes for opType.
*/
org.nd4j.shade.protobuf.ByteString
getOpTypeBytes();
/**
*
* The version of the operator set that first introduced this
* operator. This value MUST be the same value as the
* opset_version of the operator set that first published this operator.
* Subsequent versions of the operator set MUST NOT alter the signature
* or semantics of the operator once published as STABLE.
* This field MUST be present in this version of the IR.
*
*
* int64 since_version = 2;
* @return The sinceVersion.
*/
long getSinceVersion();
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The status.
*/
onnx.Onnx.OperatorStatus getStatus();
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The docString.
*/
java.lang.String getDocString();
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The bytes for docString.
*/
org.nd4j.shade.protobuf.ByteString
getDocStringBytes();
}
/**
*
* An OperatorProto represents the immutable specification of the signature
* and semantics of an operator.
* Operators are declared as part of an OperatorSet, which also defines the
* domain name for the set.
* Operators are uniquely identified by a three part identifier
* (domain, op_type, since_version)
* where
* *domain* is the domain of an operator set that
* contains this operator specification.
* *op_type* is the name of the operator as referenced by a
* NodeProto.op_type
* *since_version* is the version of the operator set that
* this operator was initially declared in.
*
*
* Protobuf type {@code onnx.OperatorProto}
*/
public static final class OperatorProto extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:onnx.OperatorProto)
OperatorProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use OperatorProto.newBuilder() to construct.
private OperatorProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private OperatorProto() {
opType_ = "";
status_ = 0;
docString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OperatorProto();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OperatorProto(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
opType_ = s;
break;
}
case 16: {
sinceVersion_ = input.readInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
docString_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.nd4j.shade.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return onnx.OnnxOperators.internal_static_onnx_OperatorProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return onnx.OnnxOperators.internal_static_onnx_OperatorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
onnx.OnnxOperators.OperatorProto.class, onnx.OnnxOperators.OperatorProto.Builder.class);
}
public static final int OP_TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object opType_;
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The opType.
*/
@java.lang.Override
public java.lang.String getOpType() {
java.lang.Object ref = opType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opType_ = s;
return s;
}
}
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The bytes for opType.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getOpTypeBytes() {
java.lang.Object ref = opType_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opType_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int SINCE_VERSION_FIELD_NUMBER = 2;
private long sinceVersion_;
/**
*
* The version of the operator set that first introduced this
* operator. This value MUST be the same value as the
* opset_version of the operator set that first published this operator.
* Subsequent versions of the operator set MUST NOT alter the signature
* or semantics of the operator once published as STABLE.
* This field MUST be present in this version of the IR.
*
*
* int64 since_version = 2;
* @return The sinceVersion.
*/
@java.lang.Override
public long getSinceVersion() {
return sinceVersion_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The status.
*/
@java.lang.Override public onnx.Onnx.OperatorStatus getStatus() {
@SuppressWarnings("deprecation")
onnx.Onnx.OperatorStatus result = onnx.Onnx.OperatorStatus.valueOf(status_);
return result == null ? onnx.Onnx.OperatorStatus.UNRECOGNIZED : result;
}
public static final int DOC_STRING_FIELD_NUMBER = 10;
private volatile java.lang.Object docString_;
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The docString.
*/
@java.lang.Override
public java.lang.String getDocString() {
java.lang.Object ref = docString_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
docString_ = s;
return s;
}
}
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The bytes for docString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDocStringBytes() {
java.lang.Object ref = docString_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docString_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, opType_);
}
if (sinceVersion_ != 0L) {
output.writeInt64(2, sinceVersion_);
}
if (status_ != onnx.Onnx.OperatorStatus.EXPERIMENTAL.getNumber()) {
output.writeEnum(3, status_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(docString_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 10, docString_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, opType_);
}
if (sinceVersion_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(2, sinceVersion_);
}
if (status_ != onnx.Onnx.OperatorStatus.EXPERIMENTAL.getNumber()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(docString_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(10, 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.OnnxOperators.OperatorProto)) {
return super.equals(obj);
}
onnx.OnnxOperators.OperatorProto other = (onnx.OnnxOperators.OperatorProto) obj;
if (!getOpType()
.equals(other.getOpType())) return false;
if (getSinceVersion()
!= other.getSinceVersion()) return false;
if (status_ != other.status_) return false;
if (!getDocString()
.equals(other.getDocString())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOpType().hashCode();
hash = (37 * hash) + SINCE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getSinceVersion());
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + DOC_STRING_FIELD_NUMBER;
hash = (53 * hash) + getDocString().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorProto parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(onnx.OnnxOperators.OperatorProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An OperatorProto represents the immutable specification of the signature
* and semantics of an operator.
* Operators are declared as part of an OperatorSet, which also defines the
* domain name for the set.
* Operators are uniquely identified by a three part identifier
* (domain, op_type, since_version)
* where
* *domain* is the domain of an operator set that
* contains this operator specification.
* *op_type* is the name of the operator as referenced by a
* NodeProto.op_type
* *since_version* is the version of the operator set that
* this operator was initially declared in.
*
*
* Protobuf type {@code onnx.OperatorProto}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:onnx.OperatorProto)
onnx.OnnxOperators.OperatorProtoOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return onnx.OnnxOperators.internal_static_onnx_OperatorProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return onnx.OnnxOperators.internal_static_onnx_OperatorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
onnx.OnnxOperators.OperatorProto.class, onnx.OnnxOperators.OperatorProto.Builder.class);
}
// Construct using onnx.OnnxOperators.OperatorProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
opType_ = "";
sinceVersion_ = 0L;
status_ = 0;
docString_ = "";
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return onnx.OnnxOperators.internal_static_onnx_OperatorProto_descriptor;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorProto getDefaultInstanceForType() {
return onnx.OnnxOperators.OperatorProto.getDefaultInstance();
}
@java.lang.Override
public onnx.OnnxOperators.OperatorProto build() {
onnx.OnnxOperators.OperatorProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorProto buildPartial() {
onnx.OnnxOperators.OperatorProto result = new onnx.OnnxOperators.OperatorProto(this);
result.opType_ = opType_;
result.sinceVersion_ = sinceVersion_;
result.status_ = status_;
result.docString_ = docString_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof onnx.OnnxOperators.OperatorProto) {
return mergeFrom((onnx.OnnxOperators.OperatorProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(onnx.OnnxOperators.OperatorProto other) {
if (other == onnx.OnnxOperators.OperatorProto.getDefaultInstance()) return this;
if (!other.getOpType().isEmpty()) {
opType_ = other.opType_;
onChanged();
}
if (other.getSinceVersion() != 0L) {
setSinceVersion(other.getSinceVersion());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getDocString().isEmpty()) {
docString_ = other.docString_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
onnx.OnnxOperators.OperatorProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (onnx.OnnxOperators.OperatorProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object opType_ = "";
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The opType.
*/
public java.lang.String getOpType() {
java.lang.Object ref = opType_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return The bytes for opType.
*/
public org.nd4j.shade.protobuf.ByteString
getOpTypeBytes() {
java.lang.Object ref = opType_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opType_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @param value The opType to set.
* @return This builder for chaining.
*/
public Builder setOpType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
opType_ = value;
onChanged();
return this;
}
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @return This builder for chaining.
*/
public Builder clearOpType() {
opType_ = getDefaultInstance().getOpType();
onChanged();
return this;
}
/**
*
* The name of the operator within a domain.
* This field MUST be present in this version of the IR.
*
*
* string op_type = 1;
* @param value The bytes for opType to set.
* @return This builder for chaining.
*/
public Builder setOpTypeBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
opType_ = value;
onChanged();
return this;
}
private long sinceVersion_ ;
/**
*
* The version of the operator set that first introduced this
* operator. This value MUST be the same value as the
* opset_version of the operator set that first published this operator.
* Subsequent versions of the operator set MUST NOT alter the signature
* or semantics of the operator once published as STABLE.
* This field MUST be present in this version of the IR.
*
*
* int64 since_version = 2;
* @return The sinceVersion.
*/
@java.lang.Override
public long getSinceVersion() {
return sinceVersion_;
}
/**
*
* The version of the operator set that first introduced this
* operator. This value MUST be the same value as the
* opset_version of the operator set that first published this operator.
* Subsequent versions of the operator set MUST NOT alter the signature
* or semantics of the operator once published as STABLE.
* This field MUST be present in this version of the IR.
*
*
* int64 since_version = 2;
* @param value The sinceVersion to set.
* @return This builder for chaining.
*/
public Builder setSinceVersion(long value) {
sinceVersion_ = value;
onChanged();
return this;
}
/**
*
* The version of the operator set that first introduced this
* operator. This value MUST be the same value as the
* opset_version of the operator set that first published this operator.
* Subsequent versions of the operator set MUST NOT alter the signature
* or semantics of the operator once published as STABLE.
* This field MUST be present in this version of the IR.
*
*
* int64 since_version = 2;
* @return This builder for chaining.
*/
public Builder clearSinceVersion() {
sinceVersion_ = 0L;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return The status.
*/
@java.lang.Override
public onnx.Onnx.OperatorStatus getStatus() {
@SuppressWarnings("deprecation")
onnx.Onnx.OperatorStatus result = onnx.Onnx.OperatorStatus.valueOf(status_);
return result == null ? onnx.Onnx.OperatorStatus.UNRECOGNIZED : result;
}
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(onnx.Onnx.OperatorStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* This field indicates whether the syntax, semantics, or presence
* of this operator is in an experimental or stable stage. Once an
* operator is published as STABLE, it's syntax and semantics MUST NOT
* change in subsequent versions of the operator set.
* When an operator is published as EXPERIMENTAL, the syntax and semantics
* of the operator MAY change across operator set versions.
* Operators "become" stable by deprecating the experimental version and
* introducing a new stable operator with the same op_type.
*
*
* .onnx.OperatorStatus status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object docString_ = "";
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The docString.
*/
public java.lang.String getDocString() {
java.lang.Object ref = docString_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
docString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return The bytes for docString.
*/
public org.nd4j.shade.protobuf.ByteString
getDocStringBytes() {
java.lang.Object ref = docString_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docString_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @param value The docString to set.
* @return This builder for chaining.
*/
public Builder setDocString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
docString_ = value;
onChanged();
return this;
}
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @return This builder for chaining.
*/
public Builder clearDocString() {
docString_ = getDefaultInstance().getDocString();
onChanged();
return this;
}
/**
*
* A human-readable documentation for this operator. Markdown is allowed.
*
*
* string doc_string = 10;
* @param value The bytes for docString to set.
* @return This builder for chaining.
*/
public Builder setDocStringBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
docString_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:onnx.OperatorProto)
}
// @@protoc_insertion_point(class_scope:onnx.OperatorProto)
private static final onnx.OnnxOperators.OperatorProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new onnx.OnnxOperators.OperatorProto();
}
public static onnx.OnnxOperators.OperatorProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public OperatorProto parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new OperatorProto(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperatorSetProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:onnx.OperatorSetProto)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The magic.
*/
java.lang.String getMagic();
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The bytes for magic.
*/
org.nd4j.shade.protobuf.ByteString
getMagicBytes();
/**
*
* All OperatorSetProtos indicate the version of the IR syntax and semantics
* they adhere to. It is always IR_VERSION.
* This field MUST be present in this version of the IR
*
*
* int64 ir_version = 2;
* @return The irVersion.
*/
long getIrVersion();
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The irVersionPrerelease.
*/
java.lang.String getIrVersionPrerelease();
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The bytes for irVersionPrerelease.
*/
org.nd4j.shade.protobuf.ByteString
getIrVersionPrereleaseBytes();
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The irBuildMetadata.
*/
java.lang.String getIrBuildMetadata();
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The bytes for irBuildMetadata.
*/
org.nd4j.shade.protobuf.ByteString
getIrBuildMetadataBytes();
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The domain.
*/
java.lang.String getDomain();
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The bytes for domain.
*/
org.nd4j.shade.protobuf.ByteString
getDomainBytes();
/**
*
* The version of the set of operators. This is a simple int value
* that is monotonically increasing as new versions of the operator set
* are published. All operators in this set MUST have since_version
* <= opset_version.
*
*
* int64 opset_version = 5;
* @return The opsetVersion.
*/
long getOpsetVersion();
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The docString.
*/
java.lang.String getDocString();
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The bytes for docString.
*/
org.nd4j.shade.protobuf.ByteString
getDocStringBytes();
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
java.util.List
getOperatorList();
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
onnx.OnnxOperators.OperatorProto getOperator(int index);
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
int getOperatorCount();
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
java.util.List
getOperatorOrBuilderList();
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
onnx.OnnxOperators.OperatorProtoOrBuilder getOperatorOrBuilder(
int index);
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
java.util.List
getFunctionsList();
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
onnx.Onnx.FunctionProto getFunctions(int index);
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
int getFunctionsCount();
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
java.util.List
getFunctionsOrBuilderList();
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
onnx.Onnx.FunctionProtoOrBuilder getFunctionsOrBuilder(
int index);
}
/**
*
* An OperatorSetProto represents an immutable set of immutable operator
* specifications.
* The domain of the set (OperatorSetProto.domain) is a reverse-DNS name
* that disambiguates operator sets defined by independent entities.
* The version of the set (opset_version) is a monotonically increasing
* integer that indicates changes to the membership of the operator set.
* Operator sets are uniquely identified by a two part identifier (domain, opset_version)
* Like ModelProto, OperatorSetProto is intended as a top-level file/wire format,
* and thus has the standard format headers in addition to the operator set information.
*
*
* Protobuf type {@code onnx.OperatorSetProto}
*/
public static final class OperatorSetProto extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:onnx.OperatorSetProto)
OperatorSetProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use OperatorSetProto.newBuilder() to construct.
private OperatorSetProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private OperatorSetProto() {
magic_ = "";
irVersionPrerelease_ = "";
irBuildMetadata_ = "";
domain_ = "";
docString_ = "";
operator_ = java.util.Collections.emptyList();
functions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OperatorSetProto();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OperatorSetProto(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
magic_ = s;
break;
}
case 16: {
irVersion_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
irVersionPrerelease_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
domain_ = s;
break;
}
case 40: {
opsetVersion_ = input.readInt64();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
docString_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
irBuildMetadata_ = s;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
operator_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operator_.add(
input.readMessage(onnx.OnnxOperators.OperatorProto.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
functions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
functions_.add(
input.readMessage(onnx.Onnx.FunctionProto.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.nd4j.shade.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
operator_ = java.util.Collections.unmodifiableList(operator_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
functions_ = java.util.Collections.unmodifiableList(functions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return onnx.OnnxOperators.internal_static_onnx_OperatorSetProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return onnx.OnnxOperators.internal_static_onnx_OperatorSetProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
onnx.OnnxOperators.OperatorSetProto.class, onnx.OnnxOperators.OperatorSetProto.Builder.class);
}
public static final int MAGIC_FIELD_NUMBER = 1;
private volatile java.lang.Object magic_;
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The magic.
*/
@java.lang.Override
public java.lang.String getMagic() {
java.lang.Object ref = magic_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
magic_ = s;
return s;
}
}
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The bytes for magic.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getMagicBytes() {
java.lang.Object ref = magic_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
magic_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int IR_VERSION_FIELD_NUMBER = 2;
private long irVersion_;
/**
*
* All OperatorSetProtos indicate the version of the IR syntax and semantics
* they adhere to. It is always IR_VERSION.
* This field MUST be present in this version of the IR
*
*
* int64 ir_version = 2;
* @return The irVersion.
*/
@java.lang.Override
public long getIrVersion() {
return irVersion_;
}
public static final int IR_VERSION_PRERELEASE_FIELD_NUMBER = 3;
private volatile java.lang.Object irVersionPrerelease_;
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The irVersionPrerelease.
*/
@java.lang.Override
public java.lang.String getIrVersionPrerelease() {
java.lang.Object ref = irVersionPrerelease_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
irVersionPrerelease_ = s;
return s;
}
}
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The bytes for irVersionPrerelease.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getIrVersionPrereleaseBytes() {
java.lang.Object ref = irVersionPrerelease_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
irVersionPrerelease_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int IR_BUILD_METADATA_FIELD_NUMBER = 7;
private volatile java.lang.Object irBuildMetadata_;
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The irBuildMetadata.
*/
@java.lang.Override
public java.lang.String getIrBuildMetadata() {
java.lang.Object ref = irBuildMetadata_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
irBuildMetadata_ = s;
return s;
}
}
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The bytes for irBuildMetadata.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getIrBuildMetadataBytes() {
java.lang.Object ref = irBuildMetadata_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
irBuildMetadata_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_FIELD_NUMBER = 4;
private volatile java.lang.Object domain_;
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The domain.
*/
@java.lang.Override
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domain_ = s;
return s;
}
}
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The bytes for domain.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int OPSET_VERSION_FIELD_NUMBER = 5;
private long opsetVersion_;
/**
*
* The version of the set of operators. This is a simple int value
* that is monotonically increasing as new versions of the operator set
* are published. All operators in this set MUST have since_version
* <= opset_version.
*
*
* int64 opset_version = 5;
* @return The opsetVersion.
*/
@java.lang.Override
public long getOpsetVersion() {
return opsetVersion_;
}
public static final int DOC_STRING_FIELD_NUMBER = 6;
private volatile java.lang.Object docString_;
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The docString.
*/
@java.lang.Override
public java.lang.String getDocString() {
java.lang.Object ref = docString_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
docString_ = s;
return s;
}
}
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The bytes for docString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDocStringBytes() {
java.lang.Object ref = docString_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docString_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int OPERATOR_FIELD_NUMBER = 8;
private java.util.List operator_;
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
@java.lang.Override
public java.util.List getOperatorList() {
return operator_;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
@java.lang.Override
public java.util.List
getOperatorOrBuilderList() {
return operator_;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
@java.lang.Override
public int getOperatorCount() {
return operator_.size();
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
@java.lang.Override
public onnx.OnnxOperators.OperatorProto getOperator(int index) {
return operator_.get(index);
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
@java.lang.Override
public onnx.OnnxOperators.OperatorProtoOrBuilder getOperatorOrBuilder(
int index) {
return operator_.get(index);
}
public static final int FUNCTIONS_FIELD_NUMBER = 9;
private java.util.List functions_;
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
@java.lang.Override
public java.util.List getFunctionsList() {
return functions_;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
@java.lang.Override
public java.util.List
getFunctionsOrBuilderList() {
return functions_;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
@java.lang.Override
public int getFunctionsCount() {
return functions_.size();
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
@java.lang.Override
public onnx.Onnx.FunctionProto getFunctions(int index) {
return functions_.get(index);
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
@java.lang.Override
public onnx.Onnx.FunctionProtoOrBuilder getFunctionsOrBuilder(
int index) {
return functions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(magic_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, magic_);
}
if (irVersion_ != 0L) {
output.writeInt64(2, irVersion_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(irVersionPrerelease_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, irVersionPrerelease_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, domain_);
}
if (opsetVersion_ != 0L) {
output.writeInt64(5, opsetVersion_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(docString_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, docString_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(irBuildMetadata_)) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 7, irBuildMetadata_);
}
for (int i = 0; i < operator_.size(); i++) {
output.writeMessage(8, operator_.get(i));
}
for (int i = 0; i < functions_.size(); i++) {
output.writeMessage(9, functions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(magic_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, magic_);
}
if (irVersion_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(2, irVersion_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(irVersionPrerelease_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, irVersionPrerelease_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, domain_);
}
if (opsetVersion_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(5, opsetVersion_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(docString_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, docString_);
}
if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(irBuildMetadata_)) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(7, irBuildMetadata_);
}
for (int i = 0; i < operator_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(8, operator_.get(i));
}
for (int i = 0; i < functions_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(9, functions_.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.OnnxOperators.OperatorSetProto)) {
return super.equals(obj);
}
onnx.OnnxOperators.OperatorSetProto other = (onnx.OnnxOperators.OperatorSetProto) obj;
if (!getMagic()
.equals(other.getMagic())) return false;
if (getIrVersion()
!= other.getIrVersion()) return false;
if (!getIrVersionPrerelease()
.equals(other.getIrVersionPrerelease())) return false;
if (!getIrBuildMetadata()
.equals(other.getIrBuildMetadata())) return false;
if (!getDomain()
.equals(other.getDomain())) return false;
if (getOpsetVersion()
!= other.getOpsetVersion()) return false;
if (!getDocString()
.equals(other.getDocString())) return false;
if (!getOperatorList()
.equals(other.getOperatorList())) return false;
if (!getFunctionsList()
.equals(other.getFunctionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MAGIC_FIELD_NUMBER;
hash = (53 * hash) + getMagic().hashCode();
hash = (37 * hash) + IR_VERSION_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getIrVersion());
hash = (37 * hash) + IR_VERSION_PRERELEASE_FIELD_NUMBER;
hash = (53 * hash) + getIrVersionPrerelease().hashCode();
hash = (37 * hash) + IR_BUILD_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getIrBuildMetadata().hashCode();
hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
hash = (53 * hash) + getDomain().hashCode();
hash = (37 * hash) + OPSET_VERSION_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getOpsetVersion());
hash = (37 * hash) + DOC_STRING_FIELD_NUMBER;
hash = (53 * hash) + getDocString().hashCode();
if (getOperatorCount() > 0) {
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getOperatorList().hashCode();
}
if (getFunctionsCount() > 0) {
hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorSetProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorSetProto parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static onnx.OnnxOperators.OperatorSetProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(onnx.OnnxOperators.OperatorSetProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An OperatorSetProto represents an immutable set of immutable operator
* specifications.
* The domain of the set (OperatorSetProto.domain) is a reverse-DNS name
* that disambiguates operator sets defined by independent entities.
* The version of the set (opset_version) is a monotonically increasing
* integer that indicates changes to the membership of the operator set.
* Operator sets are uniquely identified by a two part identifier (domain, opset_version)
* Like ModelProto, OperatorSetProto is intended as a top-level file/wire format,
* and thus has the standard format headers in addition to the operator set information.
*
*
* Protobuf type {@code onnx.OperatorSetProto}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:onnx.OperatorSetProto)
onnx.OnnxOperators.OperatorSetProtoOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return onnx.OnnxOperators.internal_static_onnx_OperatorSetProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return onnx.OnnxOperators.internal_static_onnx_OperatorSetProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
onnx.OnnxOperators.OperatorSetProto.class, onnx.OnnxOperators.OperatorSetProto.Builder.class);
}
// Construct using onnx.OnnxOperators.OperatorSetProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperatorFieldBuilder();
getFunctionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
magic_ = "";
irVersion_ = 0L;
irVersionPrerelease_ = "";
irBuildMetadata_ = "";
domain_ = "";
opsetVersion_ = 0L;
docString_ = "";
if (operatorBuilder_ == null) {
operator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
operatorBuilder_.clear();
}
if (functionsBuilder_ == null) {
functions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
functionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return onnx.OnnxOperators.internal_static_onnx_OperatorSetProto_descriptor;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorSetProto getDefaultInstanceForType() {
return onnx.OnnxOperators.OperatorSetProto.getDefaultInstance();
}
@java.lang.Override
public onnx.OnnxOperators.OperatorSetProto build() {
onnx.OnnxOperators.OperatorSetProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorSetProto buildPartial() {
onnx.OnnxOperators.OperatorSetProto result = new onnx.OnnxOperators.OperatorSetProto(this);
int from_bitField0_ = bitField0_;
result.magic_ = magic_;
result.irVersion_ = irVersion_;
result.irVersionPrerelease_ = irVersionPrerelease_;
result.irBuildMetadata_ = irBuildMetadata_;
result.domain_ = domain_;
result.opsetVersion_ = opsetVersion_;
result.docString_ = docString_;
if (operatorBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operator_ = java.util.Collections.unmodifiableList(operator_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operator_ = operator_;
} else {
result.operator_ = operatorBuilder_.build();
}
if (functionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
functions_ = java.util.Collections.unmodifiableList(functions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.functions_ = functions_;
} else {
result.functions_ = functionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof onnx.OnnxOperators.OperatorSetProto) {
return mergeFrom((onnx.OnnxOperators.OperatorSetProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(onnx.OnnxOperators.OperatorSetProto other) {
if (other == onnx.OnnxOperators.OperatorSetProto.getDefaultInstance()) return this;
if (!other.getMagic().isEmpty()) {
magic_ = other.magic_;
onChanged();
}
if (other.getIrVersion() != 0L) {
setIrVersion(other.getIrVersion());
}
if (!other.getIrVersionPrerelease().isEmpty()) {
irVersionPrerelease_ = other.irVersionPrerelease_;
onChanged();
}
if (!other.getIrBuildMetadata().isEmpty()) {
irBuildMetadata_ = other.irBuildMetadata_;
onChanged();
}
if (!other.getDomain().isEmpty()) {
domain_ = other.domain_;
onChanged();
}
if (other.getOpsetVersion() != 0L) {
setOpsetVersion(other.getOpsetVersion());
}
if (!other.getDocString().isEmpty()) {
docString_ = other.docString_;
onChanged();
}
if (operatorBuilder_ == null) {
if (!other.operator_.isEmpty()) {
if (operator_.isEmpty()) {
operator_ = other.operator_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperatorIsMutable();
operator_.addAll(other.operator_);
}
onChanged();
}
} else {
if (!other.operator_.isEmpty()) {
if (operatorBuilder_.isEmpty()) {
operatorBuilder_.dispose();
operatorBuilder_ = null;
operator_ = other.operator_;
bitField0_ = (bitField0_ & ~0x00000001);
operatorBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperatorFieldBuilder() : null;
} else {
operatorBuilder_.addAllMessages(other.operator_);
}
}
}
if (functionsBuilder_ == null) {
if (!other.functions_.isEmpty()) {
if (functions_.isEmpty()) {
functions_ = other.functions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFunctionsIsMutable();
functions_.addAll(other.functions_);
}
onChanged();
}
} else {
if (!other.functions_.isEmpty()) {
if (functionsBuilder_.isEmpty()) {
functionsBuilder_.dispose();
functionsBuilder_ = null;
functions_ = other.functions_;
bitField0_ = (bitField0_ & ~0x00000002);
functionsBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFunctionsFieldBuilder() : null;
} else {
functionsBuilder_.addAllMessages(other.functions_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
onnx.OnnxOperators.OperatorSetProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (onnx.OnnxOperators.OperatorSetProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object magic_ = "";
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The magic.
*/
public java.lang.String getMagic() {
java.lang.Object ref = magic_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
magic_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return The bytes for magic.
*/
public org.nd4j.shade.protobuf.ByteString
getMagicBytes() {
java.lang.Object ref = magic_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
magic_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @param value The magic to set.
* @return This builder for chaining.
*/
public Builder setMagic(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
magic_ = value;
onChanged();
return this;
}
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @return This builder for chaining.
*/
public Builder clearMagic() {
magic_ = getDefaultInstance().getMagic();
onChanged();
return this;
}
/**
*
* All OperatorSetProtos start with a distingushed byte sequence to disambiguate
* protobuf files containing OperatorSets from other content.
* This field MUST be "ONNXOPSET"
* This field MUST be present in this version of the IR
*
*
* string magic = 1;
* @param value The bytes for magic to set.
* @return This builder for chaining.
*/
public Builder setMagicBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
magic_ = value;
onChanged();
return this;
}
private long irVersion_ ;
/**
*
* All OperatorSetProtos indicate the version of the IR syntax and semantics
* they adhere to. It is always IR_VERSION.
* This field MUST be present in this version of the IR
*
*
* int64 ir_version = 2;
* @return The irVersion.
*/
@java.lang.Override
public long getIrVersion() {
return irVersion_;
}
/**
*
* All OperatorSetProtos indicate the version of the IR syntax and semantics
* they adhere to. It is always IR_VERSION.
* This field MUST be present in this version of the IR
*
*
* int64 ir_version = 2;
* @param value The irVersion to set.
* @return This builder for chaining.
*/
public Builder setIrVersion(long value) {
irVersion_ = value;
onChanged();
return this;
}
/**
*
* All OperatorSetProtos indicate the version of the IR syntax and semantics
* they adhere to. It is always IR_VERSION.
* This field MUST be present in this version of the IR
*
*
* int64 ir_version = 2;
* @return This builder for chaining.
*/
public Builder clearIrVersion() {
irVersion_ = 0L;
onChanged();
return this;
}
private java.lang.Object irVersionPrerelease_ = "";
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The irVersionPrerelease.
*/
public java.lang.String getIrVersionPrerelease() {
java.lang.Object ref = irVersionPrerelease_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
irVersionPrerelease_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return The bytes for irVersionPrerelease.
*/
public org.nd4j.shade.protobuf.ByteString
getIrVersionPrereleaseBytes() {
java.lang.Object ref = irVersionPrerelease_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
irVersionPrerelease_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @param value The irVersionPrerelease to set.
* @return This builder for chaining.
*/
public Builder setIrVersionPrerelease(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
irVersionPrerelease_ = value;
onChanged();
return this;
}
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @return This builder for chaining.
*/
public Builder clearIrVersionPrerelease() {
irVersionPrerelease_ = getDefaultInstance().getIrVersionPrerelease();
onChanged();
return this;
}
/**
*
* The prerelease component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_version_prerelease = 3;
* @param value The bytes for irVersionPrerelease to set.
* @return This builder for chaining.
*/
public Builder setIrVersionPrereleaseBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
irVersionPrerelease_ = value;
onChanged();
return this;
}
private java.lang.Object irBuildMetadata_ = "";
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The irBuildMetadata.
*/
public java.lang.String getIrBuildMetadata() {
java.lang.Object ref = irBuildMetadata_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
irBuildMetadata_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return The bytes for irBuildMetadata.
*/
public org.nd4j.shade.protobuf.ByteString
getIrBuildMetadataBytes() {
java.lang.Object ref = irBuildMetadata_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
irBuildMetadata_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @param value The irBuildMetadata to set.
* @return This builder for chaining.
*/
public Builder setIrBuildMetadata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
irBuildMetadata_ = value;
onChanged();
return this;
}
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @return This builder for chaining.
*/
public Builder clearIrBuildMetadata() {
irBuildMetadata_ = getDefaultInstance().getIrBuildMetadata();
onChanged();
return this;
}
/**
*
* The build metadata component of the SemVer of the IR.
* This field MAY be absent in this version of the IR
*
*
* string ir_build_metadata = 7;
* @param value The bytes for irBuildMetadata to set.
* @return This builder for chaining.
*/
public Builder setIrBuildMetadataBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
irBuildMetadata_ = value;
onChanged();
return this;
}
private java.lang.Object domain_ = "";
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The domain.
*/
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return The bytes for domain.
*/
public org.nd4j.shade.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @param value The domain to set.
* @return This builder for chaining.
*/
public Builder setDomain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domain_ = value;
onChanged();
return this;
}
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @return This builder for chaining.
*/
public Builder clearDomain() {
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
*
* Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
*
*
* string domain = 4;
* @param value The bytes for domain to set.
* @return This builder for chaining.
*/
public Builder setDomainBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domain_ = value;
onChanged();
return this;
}
private long opsetVersion_ ;
/**
*
* The version of the set of operators. This is a simple int value
* that is monotonically increasing as new versions of the operator set
* are published. All operators in this set MUST have since_version
* <= opset_version.
*
*
* int64 opset_version = 5;
* @return The opsetVersion.
*/
@java.lang.Override
public long getOpsetVersion() {
return opsetVersion_;
}
/**
*
* The version of the set of operators. This is a simple int value
* that is monotonically increasing as new versions of the operator set
* are published. All operators in this set MUST have since_version
* <= opset_version.
*
*
* int64 opset_version = 5;
* @param value The opsetVersion to set.
* @return This builder for chaining.
*/
public Builder setOpsetVersion(long value) {
opsetVersion_ = value;
onChanged();
return this;
}
/**
*
* The version of the set of operators. This is a simple int value
* that is monotonically increasing as new versions of the operator set
* are published. All operators in this set MUST have since_version
* <= opset_version.
*
*
* int64 opset_version = 5;
* @return This builder for chaining.
*/
public Builder clearOpsetVersion() {
opsetVersion_ = 0L;
onChanged();
return this;
}
private java.lang.Object docString_ = "";
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The docString.
*/
public java.lang.String getDocString() {
java.lang.Object ref = docString_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
docString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return The bytes for docString.
*/
public org.nd4j.shade.protobuf.ByteString
getDocStringBytes() {
java.lang.Object ref = docString_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docString_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @param value The docString to set.
* @return This builder for chaining.
*/
public Builder setDocString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
docString_ = value;
onChanged();
return this;
}
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @return This builder for chaining.
*/
public Builder clearDocString() {
docString_ = getDefaultInstance().getDocString();
onChanged();
return this;
}
/**
*
* A human-readable documentation for this set of operators. Markdown is allowed.
*
*
* string doc_string = 6;
* @param value The bytes for docString to set.
* @return This builder for chaining.
*/
public Builder setDocStringBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
docString_ = value;
onChanged();
return this;
}
private java.util.List operator_ =
java.util.Collections.emptyList();
private void ensureOperatorIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operator_ = new java.util.ArrayList(operator_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.OnnxOperators.OperatorProto, onnx.OnnxOperators.OperatorProto.Builder, onnx.OnnxOperators.OperatorProtoOrBuilder> operatorBuilder_;
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public java.util.List getOperatorList() {
if (operatorBuilder_ == null) {
return java.util.Collections.unmodifiableList(operator_);
} else {
return operatorBuilder_.getMessageList();
}
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public int getOperatorCount() {
if (operatorBuilder_ == null) {
return operator_.size();
} else {
return operatorBuilder_.getCount();
}
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public onnx.OnnxOperators.OperatorProto getOperator(int index) {
if (operatorBuilder_ == null) {
return operator_.get(index);
} else {
return operatorBuilder_.getMessage(index);
}
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder setOperator(
int index, onnx.OnnxOperators.OperatorProto value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperatorIsMutable();
operator_.set(index, value);
onChanged();
} else {
operatorBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder setOperator(
int index, onnx.OnnxOperators.OperatorProto.Builder builderForValue) {
if (operatorBuilder_ == null) {
ensureOperatorIsMutable();
operator_.set(index, builderForValue.build());
onChanged();
} else {
operatorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder addOperator(onnx.OnnxOperators.OperatorProto value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperatorIsMutable();
operator_.add(value);
onChanged();
} else {
operatorBuilder_.addMessage(value);
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder addOperator(
int index, onnx.OnnxOperators.OperatorProto value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperatorIsMutable();
operator_.add(index, value);
onChanged();
} else {
operatorBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder addOperator(
onnx.OnnxOperators.OperatorProto.Builder builderForValue) {
if (operatorBuilder_ == null) {
ensureOperatorIsMutable();
operator_.add(builderForValue.build());
onChanged();
} else {
operatorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder addOperator(
int index, onnx.OnnxOperators.OperatorProto.Builder builderForValue) {
if (operatorBuilder_ == null) {
ensureOperatorIsMutable();
operator_.add(index, builderForValue.build());
onChanged();
} else {
operatorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder addAllOperator(
java.lang.Iterable values) {
if (operatorBuilder_ == null) {
ensureOperatorIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, operator_);
onChanged();
} else {
operatorBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder clearOperator() {
if (operatorBuilder_ == null) {
operator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operatorBuilder_.clear();
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public Builder removeOperator(int index) {
if (operatorBuilder_ == null) {
ensureOperatorIsMutable();
operator_.remove(index);
onChanged();
} else {
operatorBuilder_.remove(index);
}
return this;
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public onnx.OnnxOperators.OperatorProto.Builder getOperatorBuilder(
int index) {
return getOperatorFieldBuilder().getBuilder(index);
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public onnx.OnnxOperators.OperatorProtoOrBuilder getOperatorOrBuilder(
int index) {
if (operatorBuilder_ == null) {
return operator_.get(index); } else {
return operatorBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public java.util.List
getOperatorOrBuilderList() {
if (operatorBuilder_ != null) {
return operatorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operator_);
}
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public onnx.OnnxOperators.OperatorProto.Builder addOperatorBuilder() {
return getOperatorFieldBuilder().addBuilder(
onnx.OnnxOperators.OperatorProto.getDefaultInstance());
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public onnx.OnnxOperators.OperatorProto.Builder addOperatorBuilder(
int index) {
return getOperatorFieldBuilder().addBuilder(
index, onnx.OnnxOperators.OperatorProto.getDefaultInstance());
}
/**
*
* The operators specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos in operator
*
*
* repeated .onnx.OperatorProto operator = 8;
*/
public java.util.List
getOperatorBuilderList() {
return getOperatorFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.OnnxOperators.OperatorProto, onnx.OnnxOperators.OperatorProto.Builder, onnx.OnnxOperators.OperatorProtoOrBuilder>
getOperatorFieldBuilder() {
if (operatorBuilder_ == null) {
operatorBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.OnnxOperators.OperatorProto, onnx.OnnxOperators.OperatorProto.Builder, onnx.OnnxOperators.OperatorProtoOrBuilder>(
operator_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operator_ = null;
}
return operatorBuilder_;
}
private java.util.List functions_ =
java.util.Collections.emptyList();
private void ensureFunctionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
functions_ = new java.util.ArrayList(functions_);
bitField0_ |= 0x00000002;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.Onnx.FunctionProto, onnx.Onnx.FunctionProto.Builder, onnx.Onnx.FunctionProtoOrBuilder> functionsBuilder_;
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public java.util.List getFunctionsList() {
if (functionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(functions_);
} else {
return functionsBuilder_.getMessageList();
}
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public int getFunctionsCount() {
if (functionsBuilder_ == null) {
return functions_.size();
} else {
return functionsBuilder_.getCount();
}
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public onnx.Onnx.FunctionProto getFunctions(int index) {
if (functionsBuilder_ == null) {
return functions_.get(index);
} else {
return functionsBuilder_.getMessage(index);
}
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder setFunctions(
int index, onnx.Onnx.FunctionProto value) {
if (functionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionsIsMutable();
functions_.set(index, value);
onChanged();
} else {
functionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder setFunctions(
int index, onnx.Onnx.FunctionProto.Builder builderForValue) {
if (functionsBuilder_ == null) {
ensureFunctionsIsMutable();
functions_.set(index, builderForValue.build());
onChanged();
} else {
functionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder addFunctions(onnx.Onnx.FunctionProto value) {
if (functionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionsIsMutable();
functions_.add(value);
onChanged();
} else {
functionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder addFunctions(
int index, onnx.Onnx.FunctionProto value) {
if (functionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionsIsMutable();
functions_.add(index, value);
onChanged();
} else {
functionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder addFunctions(
onnx.Onnx.FunctionProto.Builder builderForValue) {
if (functionsBuilder_ == null) {
ensureFunctionsIsMutable();
functions_.add(builderForValue.build());
onChanged();
} else {
functionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder addFunctions(
int index, onnx.Onnx.FunctionProto.Builder builderForValue) {
if (functionsBuilder_ == null) {
ensureFunctionsIsMutable();
functions_.add(index, builderForValue.build());
onChanged();
} else {
functionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder addAllFunctions(
java.lang.Iterable values) {
if (functionsBuilder_ == null) {
ensureFunctionsIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, functions_);
onChanged();
} else {
functionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder clearFunctions() {
if (functionsBuilder_ == null) {
functions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
functionsBuilder_.clear();
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public Builder removeFunctions(int index) {
if (functionsBuilder_ == null) {
ensureFunctionsIsMutable();
functions_.remove(index);
onChanged();
} else {
functionsBuilder_.remove(index);
}
return this;
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public onnx.Onnx.FunctionProto.Builder getFunctionsBuilder(
int index) {
return getFunctionsFieldBuilder().getBuilder(index);
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public onnx.Onnx.FunctionProtoOrBuilder getFunctionsOrBuilder(
int index) {
if (functionsBuilder_ == null) {
return functions_.get(index); } else {
return functionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public java.util.List
getFunctionsOrBuilderList() {
if (functionsBuilder_ != null) {
return functionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(functions_);
}
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public onnx.Onnx.FunctionProto.Builder addFunctionsBuilder() {
return getFunctionsFieldBuilder().addBuilder(
onnx.Onnx.FunctionProto.getDefaultInstance());
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public onnx.Onnx.FunctionProto.Builder addFunctionsBuilder(
int index) {
return getFunctionsFieldBuilder().addBuilder(
index, onnx.Onnx.FunctionProto.getDefaultInstance());
}
/**
*
* The functions specified by this operator set.
* The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
*
*
* repeated .onnx.FunctionProto functions = 9;
*/
public java.util.List
getFunctionsBuilderList() {
return getFunctionsFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.Onnx.FunctionProto, onnx.Onnx.FunctionProto.Builder, onnx.Onnx.FunctionProtoOrBuilder>
getFunctionsFieldBuilder() {
if (functionsBuilder_ == null) {
functionsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
onnx.Onnx.FunctionProto, onnx.Onnx.FunctionProto.Builder, onnx.Onnx.FunctionProtoOrBuilder>(
functions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
functions_ = null;
}
return functionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:onnx.OperatorSetProto)
}
// @@protoc_insertion_point(class_scope:onnx.OperatorSetProto)
private static final onnx.OnnxOperators.OperatorSetProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new onnx.OnnxOperators.OperatorSetProto();
}
public static onnx.OnnxOperators.OperatorSetProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public OperatorSetProto parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new OperatorSetProto(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public onnx.OnnxOperators.OperatorSetProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_onnx_OperatorProto_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_onnx_OperatorProto_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_onnx_OperatorSetProto_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_onnx_OperatorSetProto_fieldAccessorTable;
public static org.nd4j.shade.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.nd4j.shade.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\024onnx-operators.proto\022\004onnx\032\nonnx.proto" +
"\"q\n\rOperatorProto\022\017\n\007op_type\030\001 \001(\t\022\025\n\rsi" +
"nce_version\030\002 \001(\003\022$\n\006status\030\003 \001(\0162\024.onnx" +
".OperatorStatus\022\022\n\ndoc_string\030\n \001(\t\"\371\001\n\020" +
"OperatorSetProto\022\r\n\005magic\030\001 \001(\t\022\022\n\nir_ve" +
"rsion\030\002 \001(\003\022\035\n\025ir_version_prerelease\030\003 \001" +
"(\t\022\031\n\021ir_build_metadata\030\007 \001(\t\022\016\n\006domain\030" +
"\004 \001(\t\022\025\n\ropset_version\030\005 \001(\003\022\022\n\ndoc_stri" +
"ng\030\006 \001(\t\022%\n\010operator\030\010 \003(\0132\023.onnx.Operat" +
"orProto\022&\n\tfunctions\030\t \003(\0132\023.onnx.Functi" +
"onProtoB\002H\003b\006proto3"
};
descriptor = org.nd4j.shade.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.nd4j.shade.protobuf.Descriptors.FileDescriptor[] {
onnx.Onnx.getDescriptor(),
});
internal_static_onnx_OperatorProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_onnx_OperatorProto_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_onnx_OperatorProto_descriptor,
new java.lang.String[] { "OpType", "SinceVersion", "Status", "DocString", });
internal_static_onnx_OperatorSetProto_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_onnx_OperatorSetProto_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_onnx_OperatorSetProto_descriptor,
new java.lang.String[] { "Magic", "IrVersion", "IrVersionPrerelease", "IrBuildMetadata", "Domain", "OpsetVersion", "DocString", "Operator", "Functions", });
onnx.Onnx.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}