Package onnx

Class 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 type onnx.OperatorProto
    • 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 class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
      • getDefaultInstanceForType

        public OnnxOperators.OperatorProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public OnnxOperators.OperatorProto build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public OnnxOperators.OperatorProto buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • setRepeatedField

        public OnnxOperators.OperatorProto.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                                    int index,
                                                                    Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.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 interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxOperators.OperatorProto.Builder>
        Throws:
        IOException
      • 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 interface OnnxOperators.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 interface OnnxOperators.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 interface OnnxOperators.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 interface OnnxOperators.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.
      • 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 interface OnnxOperators.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 interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.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 interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxOperators.OperatorProto.Builder>