Package onnx
Class OnnxOperators.OperatorProto.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
- onnx.OnnxOperators.OperatorProto.Builder
-
- All Implemented Interfaces:
Cloneable,OnnxOperators.OperatorProtoOrBuilder,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- Enclosing class:
- OnnxOperators.OperatorProto
public static final class OnnxOperators.OperatorProto.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder> implements OnnxOperators.OperatorProtoOrBuilder
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 typeonnx.OperatorProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnnxOperators.OperatorProto.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)OnnxOperators.OperatorProtobuild()OnnxOperators.OperatorProtobuildPartial()OnnxOperators.OperatorProto.Builderclear()OnnxOperators.OperatorProto.BuilderclearDocString()A human-readable documentation for this operator.OnnxOperators.OperatorProto.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)OnnxOperators.OperatorProto.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)OnnxOperators.OperatorProto.BuilderclearOpType()The name of the operator within a domain.OnnxOperators.OperatorProto.BuilderclearSinceVersion()The version of the operator set that first introduced this operator.OnnxOperators.OperatorProto.BuilderclearStatus()This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.OnnxOperators.OperatorProto.Builderclone()OnnxOperators.OperatorProtogetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDocString()A human-readable documentation for this operator.org.nd4j.shade.protobuf.ByteStringgetDocStringBytes()A human-readable documentation for this operator.StringgetOpType()The name of the operator within a domain.org.nd4j.shade.protobuf.ByteStringgetOpTypeBytes()The name of the operator within a domain.longgetSinceVersion()The version of the operator set that first introduced this operator.Onnx.OperatorStatusgetStatus()This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.intgetStatusValue()This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OnnxOperators.OperatorProto.BuildermergeFrom(OnnxOperators.OperatorProto other)OnnxOperators.OperatorProto.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)OnnxOperators.OperatorProto.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)OnnxOperators.OperatorProto.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)OnnxOperators.OperatorProto.BuildersetDocString(String value)A human-readable documentation for this operator.OnnxOperators.OperatorProto.BuildersetDocStringBytes(org.nd4j.shade.protobuf.ByteString value)A human-readable documentation for this operator.OnnxOperators.OperatorProto.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)OnnxOperators.OperatorProto.BuildersetOpType(String value)The name of the operator within a domain.OnnxOperators.OperatorProto.BuildersetOpTypeBytes(org.nd4j.shade.protobuf.ByteString value)The name of the operator within a domain.OnnxOperators.OperatorProto.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OnnxOperators.OperatorProto.BuildersetSinceVersion(long value)The version of the operator set that first introduced this operator.OnnxOperators.OperatorProto.BuildersetStatus(Onnx.OperatorStatus value)This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.OnnxOperators.OperatorProto.BuildersetStatusValue(int value)This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.OnnxOperators.OperatorProto.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clear
public OnnxOperators.OperatorProto.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
getDefaultInstanceForType
public OnnxOperators.OperatorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public OnnxOperators.OperatorProto build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public OnnxOperators.OperatorProto buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public OnnxOperators.OperatorProto.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
setField
public OnnxOperators.OperatorProto.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clearField
public OnnxOperators.OperatorProto.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clearOneof
public OnnxOperators.OperatorProto.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
setRepeatedField
public OnnxOperators.OperatorProto.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
addRepeatedField
public OnnxOperators.OperatorProto.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeFrom
public OnnxOperators.OperatorProto.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeFrom
public OnnxOperators.OperatorProto.Builder mergeFrom(OnnxOperators.OperatorProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeFrom
public OnnxOperators.OperatorProto.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxOperators.OperatorProto.Builder>- Throws:
IOException
-
getOpType
public 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;- Specified by:
getOpTypein interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The opType.
-
getOpTypeBytes
public org.nd4j.shade.protobuf.ByteString getOpTypeBytes()
The name of the operator within a domain. This field MUST be present in this version of the IR.
string op_type = 1;- Specified by:
getOpTypeBytesin interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The bytes for opType.
-
setOpType
public OnnxOperators.OperatorProto.Builder setOpType(String value)
The name of the operator within a domain. This field MUST be present in this version of the IR.
string op_type = 1;- Parameters:
value- The opType to set.- Returns:
- This builder for chaining.
-
clearOpType
public OnnxOperators.OperatorProto.Builder clearOpType()
The name of the operator within a domain. This field MUST be present in this version of the IR.
string op_type = 1;- Returns:
- This builder for chaining.
-
setOpTypeBytes
public OnnxOperators.OperatorProto.Builder setOpTypeBytes(org.nd4j.shade.protobuf.ByteString value)
The name of the operator within a domain. This field MUST be present in this version of the IR.
string op_type = 1;- Parameters:
value- The bytes for opType to set.- Returns:
- This builder for chaining.
-
getSinceVersion
public long getSinceVersion()
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;- Specified by:
getSinceVersionin interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The sinceVersion.
-
setSinceVersion
public OnnxOperators.OperatorProto.Builder setSinceVersion(long value)
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;- Parameters:
value- The sinceVersion to set.- Returns:
- This builder for chaining.
-
clearSinceVersion
public OnnxOperators.OperatorProto.Builder clearSinceVersion()
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;- Returns:
- This builder for chaining.
-
getStatusValue
public 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;- Specified by:
getStatusValuein interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public OnnxOperators.OperatorProto.Builder setStatusValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public Onnx.OperatorStatus getStatus()
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;- Specified by:
getStatusin interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The status.
-
setStatus
public OnnxOperators.OperatorProto.Builder setStatus(Onnx.OperatorStatus value)
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;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public OnnxOperators.OperatorProto.Builder clearStatus()
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;- Returns:
- This builder for chaining.
-
getDocString
public String getDocString()
A human-readable documentation for this operator. Markdown is allowed.
string doc_string = 10;- Specified by:
getDocStringin interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this operator. Markdown is allowed.
string doc_string = 10;- Specified by:
getDocStringBytesin interfaceOnnxOperators.OperatorProtoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
public OnnxOperators.OperatorProto.Builder setDocString(String value)
A human-readable documentation for this operator. Markdown is allowed.
string doc_string = 10;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
public OnnxOperators.OperatorProto.Builder clearDocString()
A human-readable documentation for this operator. Markdown is allowed.
string doc_string = 10;- Returns:
- This builder for chaining.
-
setDocStringBytes
public OnnxOperators.OperatorProto.Builder setDocStringBytes(org.nd4j.shade.protobuf.ByteString value)
A human-readable documentation for this operator. Markdown is allowed.
string doc_string = 10;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OnnxOperators.OperatorProto.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeUnknownFields
public final OnnxOperators.OperatorProto.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
-