Package onnx

Class Onnx.TypeProto.Builder

  • All Implemented Interfaces:
    Cloneable, Onnx.TypeProtoOrBuilder, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    Enclosing class:
    Onnx.TypeProto

    public static final class Onnx.TypeProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
    implements Onnx.TypeProtoOrBuilder
     Types
     The standard ONNX data types.
     
    Protobuf type onnx.TypeProto
    • 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<Onnx.TypeProto.Builder>
      • clear

        public Onnx.TypeProto.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.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<Onnx.TypeProto.Builder>
      • getDefaultInstanceForType

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

        public Onnx.TypeProto 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 Onnx.TypeProto buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public Onnx.TypeProto.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
      • setField

        public Onnx.TypeProto.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
      • clearField

        public Onnx.TypeProto.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
      • clearOneof

        public Onnx.TypeProto.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
      • setRepeatedField

        public Onnx.TypeProto.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<Onnx.TypeProto.Builder>
      • addRepeatedField

        public Onnx.TypeProto.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
      • mergeFrom

        public Onnx.TypeProto.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<Onnx.TypeProto.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<Onnx.TypeProto.Builder>
      • mergeFrom

        public Onnx.TypeProto.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<Onnx.TypeProto.Builder>
        Throws:
        IOException
      • hasTensorType

        public boolean hasTensorType()
         The type of a tensor.
         
        .onnx.TypeProto.Tensor tensor_type = 1;
        Specified by:
        hasTensorType in interface Onnx.TypeProtoOrBuilder
        Returns:
        Whether the tensorType field is set.
      • clearTensorType

        public Onnx.TypeProto.Builder clearTensorType()
         The type of a tensor.
         
        .onnx.TypeProto.Tensor tensor_type = 1;
      • getTensorTypeBuilder

        public Onnx.TypeProto.Tensor.Builder getTensorTypeBuilder()
         The type of a tensor.
         
        .onnx.TypeProto.Tensor tensor_type = 1;
      • hasSequenceType

        public boolean hasSequenceType()
         The type of a sequence.
         
        .onnx.TypeProto.Sequence sequence_type = 4;
        Specified by:
        hasSequenceType in interface Onnx.TypeProtoOrBuilder
        Returns:
        Whether the sequenceType field is set.
      • clearSequenceType

        public Onnx.TypeProto.Builder clearSequenceType()
         The type of a sequence.
         
        .onnx.TypeProto.Sequence sequence_type = 4;
      • getSequenceTypeBuilder

        public Onnx.TypeProto.Sequence.Builder getSequenceTypeBuilder()
         The type of a sequence.
         
        .onnx.TypeProto.Sequence sequence_type = 4;
      • hasMapType

        public boolean hasMapType()
         The type of a map.
         
        .onnx.TypeProto.Map map_type = 5;
        Specified by:
        hasMapType in interface Onnx.TypeProtoOrBuilder
        Returns:
        Whether the mapType field is set.
      • clearMapType

        public Onnx.TypeProto.Builder clearMapType()
         The type of a map.
         
        .onnx.TypeProto.Map map_type = 5;
      • hasOptionalType

        public boolean hasOptionalType()
         The type of an optional.
         
        .onnx.TypeProto.Optional optional_type = 9;
        Specified by:
        hasOptionalType in interface Onnx.TypeProtoOrBuilder
        Returns:
        Whether the optionalType field is set.
      • clearOptionalType

        public Onnx.TypeProto.Builder clearOptionalType()
         The type of an optional.
         
        .onnx.TypeProto.Optional optional_type = 9;
      • getOptionalTypeBuilder

        public Onnx.TypeProto.Optional.Builder getOptionalTypeBuilder()
         The type of an optional.
         
        .onnx.TypeProto.Optional optional_type = 9;
      • hasSparseTensorType

        public boolean hasSparseTensorType()
         Type of the sparse tensor
         
        .onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
        Specified by:
        hasSparseTensorType in interface Onnx.TypeProtoOrBuilder
        Returns:
        Whether the sparseTensorType field is set.
      • clearSparseTensorType

        public Onnx.TypeProto.Builder clearSparseTensorType()
         Type of the sparse tensor
         
        .onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
      • getSparseTensorTypeBuilder

        public Onnx.TypeProto.SparseTensor.Builder getSparseTensorTypeBuilder()
         Type of the sparse tensor
         
        .onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
      • getDenotation

        public String getDenotation()
         An optional denotation can be used to denote the whole
         type with a standard semantic description as to what is
         stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition
         for pre-defined type denotations.
         
        string denotation = 6;
        Specified by:
        getDenotation in interface Onnx.TypeProtoOrBuilder
        Returns:
        The denotation.
      • getDenotationBytes

        public org.nd4j.shade.protobuf.ByteString getDenotationBytes()
         An optional denotation can be used to denote the whole
         type with a standard semantic description as to what is
         stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition
         for pre-defined type denotations.
         
        string denotation = 6;
        Specified by:
        getDenotationBytes in interface Onnx.TypeProtoOrBuilder
        Returns:
        The bytes for denotation.
      • setDenotation

        public Onnx.TypeProto.Builder setDenotation​(String value)
         An optional denotation can be used to denote the whole
         type with a standard semantic description as to what is
         stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition
         for pre-defined type denotations.
         
        string denotation = 6;
        Parameters:
        value - The denotation to set.
        Returns:
        This builder for chaining.
      • clearDenotation

        public Onnx.TypeProto.Builder clearDenotation()
         An optional denotation can be used to denote the whole
         type with a standard semantic description as to what is
         stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition
         for pre-defined type denotations.
         
        string denotation = 6;
        Returns:
        This builder for chaining.
      • setDenotationBytes

        public Onnx.TypeProto.Builder setDenotationBytes​(org.nd4j.shade.protobuf.ByteString value)
         An optional denotation can be used to denote the whole
         type with a standard semantic description as to what is
         stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition
         for pre-defined type denotations.
         
        string denotation = 6;
        Parameters:
        value - The bytes for denotation to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Onnx.TypeProto.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<Onnx.TypeProto.Builder>
      • mergeUnknownFields

        public final Onnx.TypeProto.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<Onnx.TypeProto.Builder>