Package onnx

Class Onnx.ValueInfoProto.Builder

  • All Implemented Interfaces:
    Cloneable, Onnx.ValueInfoProtoOrBuilder, 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.ValueInfoProto

    public static final class Onnx.ValueInfoProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.ValueInfoProto.Builder>
    implements Onnx.ValueInfoProtoOrBuilder
     Defines information on value, including the name, the type, and
     the shape of the value.
     
    Protobuf type onnx.ValueInfoProto
    • 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.ValueInfoProto.Builder>
      • clear

        public Onnx.ValueInfoProto.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.ValueInfoProto.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.ValueInfoProto.Builder>
      • getDefaultInstanceForType

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

        public Onnx.ValueInfoProto 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.ValueInfoProto 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.ValueInfoProto.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.ValueInfoProto.Builder>
      • setField

        public Onnx.ValueInfoProto.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.ValueInfoProto.Builder>
      • clearField

        public Onnx.ValueInfoProto.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.ValueInfoProto.Builder>
      • clearOneof

        public Onnx.ValueInfoProto.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.ValueInfoProto.Builder>
      • setRepeatedField

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

        public Onnx.ValueInfoProto.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.ValueInfoProto.Builder>
      • mergeFrom

        public Onnx.ValueInfoProto.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.ValueInfoProto.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.ValueInfoProto.Builder>
      • mergeFrom

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

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         This field MUST be present in this version of the IR.
         
        string name = 1;
        Specified by:
        getNameBytes in interface Onnx.ValueInfoProtoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Onnx.ValueInfoProto.Builder setName​(String value)
         This field MUST be present in this version of the IR.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Onnx.ValueInfoProto.Builder clearName()
         This field MUST be present in this version of the IR.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Onnx.ValueInfoProto.Builder setNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         This field MUST be present in this version of the IR.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
        Specified by:
        hasType in interface Onnx.ValueInfoProtoOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public Onnx.TypeProto getType()
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
        Specified by:
        getType in interface Onnx.ValueInfoProtoOrBuilder
        Returns:
        The type.
      • setType

        public Onnx.ValueInfoProto.Builder setType​(Onnx.TypeProto value)
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
      • mergeType

        public Onnx.ValueInfoProto.Builder mergeType​(Onnx.TypeProto value)
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
      • clearType

        public Onnx.ValueInfoProto.Builder clearType()
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
      • getTypeBuilder

        public Onnx.TypeProto.Builder getTypeBuilder()
         This field MUST be present in this version of the IR for
         inputs and outputs of the top-level graph.
         
        .onnx.TypeProto type = 2;
      • getDocString

        public String getDocString()
         A human-readable documentation for this value. Markdown is allowed.
         
        string doc_string = 3;
        Specified by:
        getDocString in interface Onnx.ValueInfoProtoOrBuilder
        Returns:
        The docString.
      • getDocStringBytes

        public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this value. Markdown is allowed.
         
        string doc_string = 3;
        Specified by:
        getDocStringBytes in interface Onnx.ValueInfoProtoOrBuilder
        Returns:
        The bytes for docString.
      • setDocString

        public Onnx.ValueInfoProto.Builder setDocString​(String value)
         A human-readable documentation for this value. Markdown is allowed.
         
        string doc_string = 3;
        Parameters:
        value - The docString to set.
        Returns:
        This builder for chaining.
      • clearDocString

        public Onnx.ValueInfoProto.Builder clearDocString()
         A human-readable documentation for this value. Markdown is allowed.
         
        string doc_string = 3;
        Returns:
        This builder for chaining.
      • setDocStringBytes

        public Onnx.ValueInfoProto.Builder setDocStringBytes​(org.nd4j.shade.protobuf.ByteString value)
         A human-readable documentation for this value. Markdown is allowed.
         
        string doc_string = 3;
        Parameters:
        value - The bytes for docString to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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