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.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
OnnxOperators.OperatorProto
build()
OnnxOperators.OperatorProto
buildPartial()
OnnxOperators.OperatorProto.Builder
clear()
OnnxOperators.OperatorProto.Builder
clearDocString()
A human-readable documentation for this operator.OnnxOperators.OperatorProto.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
OnnxOperators.OperatorProto.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
OnnxOperators.OperatorProto.Builder
clearOpType()
The name of the operator within a domain.OnnxOperators.OperatorProto.Builder
clearSinceVersion()
The version of the operator set that first introduced this operator.OnnxOperators.OperatorProto.Builder
clearStatus()
This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.OnnxOperators.OperatorProto.Builder
clone()
OnnxOperators.OperatorProto
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDocString()
A human-readable documentation for this operator.org.nd4j.shade.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this operator.String
getOpType()
The name of the operator within a domain.org.nd4j.shade.protobuf.ByteString
getOpTypeBytes()
The name of the operator within a domain.long
getSinceVersion()
The version of the operator set that first introduced this operator.Onnx.OperatorStatus
getStatus()
This field indicates whether the syntax, semantics, or presence of this operator is in an experimental or stable stage.int
getStatusValue()
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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
OnnxOperators.OperatorProto.Builder
mergeFrom(OnnxOperators.OperatorProto other)
OnnxOperators.OperatorProto.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
OnnxOperators.OperatorProto.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
OnnxOperators.OperatorProto.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
OnnxOperators.OperatorProto.Builder
setDocString(String value)
A human-readable documentation for this operator.OnnxOperators.OperatorProto.Builder
setDocStringBytes(org.nd4j.shade.protobuf.ByteString value)
A human-readable documentation for this operator.OnnxOperators.OperatorProto.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
OnnxOperators.OperatorProto.Builder
setOpType(String value)
The name of the operator within a domain.OnnxOperators.OperatorProto.Builder
setOpTypeBytes(org.nd4j.shade.protobuf.ByteString value)
The name of the operator within a domain.OnnxOperators.OperatorProto.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
OnnxOperators.OperatorProto.Builder
setSinceVersion(long value)
The version of the operator set that first introduced this operator.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.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.OnnxOperators.OperatorProto.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clear
public OnnxOperators.OperatorProto.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
getDefaultInstanceForType
public OnnxOperators.OperatorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public OnnxOperators.OperatorProto build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public OnnxOperators.OperatorProto buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public OnnxOperators.OperatorProto.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clearField
public OnnxOperators.OperatorProto.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
clearOneof
public OnnxOperators.OperatorProto.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeFrom
public OnnxOperators.OperatorProto.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOpType
in 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:
getOpTypeBytes
in 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:
getSinceVersion
in 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:
getStatusValue
in 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:
getStatus
in 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:
getDocString
in 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:
getDocStringBytes
in 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:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
mergeUnknownFields
public final OnnxOperators.OperatorProto.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
-
-