Class AllocationDescription.Builder

    • 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<AllocationDescription.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public AllocationDescription.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<AllocationDescription.Builder>
        Throws:
        IOException
      • setRequestedBytes

        public AllocationDescription.Builder setRequestedBytes​(long value)
         Total number of bytes requested
         
        int64 requested_bytes = 1;
        Parameters:
        value - The requestedBytes to set.
        Returns:
        This builder for chaining.
      • clearRequestedBytes

        public AllocationDescription.Builder clearRequestedBytes()
         Total number of bytes requested
         
        int64 requested_bytes = 1;
        Returns:
        This builder for chaining.
      • setAllocatedBytes

        public AllocationDescription.Builder setAllocatedBytes​(long value)
         Total number of bytes allocated if known
         
        int64 allocated_bytes = 2;
        Parameters:
        value - The allocatedBytes to set.
        Returns:
        This builder for chaining.
      • clearAllocatedBytes

        public AllocationDescription.Builder clearAllocatedBytes()
         Total number of bytes allocated if known
         
        int64 allocated_bytes = 2;
        Returns:
        This builder for chaining.
      • getAllocatorNameBytes

        public org.nd4j.shade.protobuf.ByteString getAllocatorNameBytes()
         Name of the allocator used
         
        string allocator_name = 3;
        Specified by:
        getAllocatorNameBytes in interface AllocationDescriptionOrBuilder
        Returns:
        The bytes for allocatorName.
      • setAllocatorName

        public AllocationDescription.Builder setAllocatorName​(String value)
         Name of the allocator used
         
        string allocator_name = 3;
        Parameters:
        value - The allocatorName to set.
        Returns:
        This builder for chaining.
      • clearAllocatorName

        public AllocationDescription.Builder clearAllocatorName()
         Name of the allocator used
         
        string allocator_name = 3;
        Returns:
        This builder for chaining.
      • setAllocatorNameBytes

        public AllocationDescription.Builder setAllocatorNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         Name of the allocator used
         
        string allocator_name = 3;
        Parameters:
        value - The bytes for allocatorName to set.
        Returns:
        This builder for chaining.
      • setAllocationId

        public AllocationDescription.Builder setAllocationId​(long value)
         Identifier of the allocated buffer if known
         
        int64 allocation_id = 4;
        Parameters:
        value - The allocationId to set.
        Returns:
        This builder for chaining.
      • clearAllocationId

        public AllocationDescription.Builder clearAllocationId()
         Identifier of the allocated buffer if known
         
        int64 allocation_id = 4;
        Returns:
        This builder for chaining.
      • getHasSingleReference

        public boolean getHasSingleReference()
         Set if this tensor only has one remaining reference
         
        bool has_single_reference = 5;
        Specified by:
        getHasSingleReference in interface AllocationDescriptionOrBuilder
        Returns:
        The hasSingleReference.
      • setHasSingleReference

        public AllocationDescription.Builder setHasSingleReference​(boolean value)
         Set if this tensor only has one remaining reference
         
        bool has_single_reference = 5;
        Parameters:
        value - The hasSingleReference to set.
        Returns:
        This builder for chaining.
      • clearHasSingleReference

        public AllocationDescription.Builder clearHasSingleReference()
         Set if this tensor only has one remaining reference
         
        bool has_single_reference = 5;
        Returns:
        This builder for chaining.
      • setPtr

        public AllocationDescription.Builder setPtr​(long value)
         Address of the allocation.
         
        uint64 ptr = 6;
        Parameters:
        value - The ptr to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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