Class AllocationRecord.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, AllocationRecordOrBuilder
    Enclosing class:
    AllocationRecord

    public static final class AllocationRecord.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
    implements AllocationRecordOrBuilder
     An allocation/de-allocation operation performed by the allocator.
     
    Protobuf type tensorflow.AllocationRecord
    • 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<AllocationRecord.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public AllocationRecord.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<AllocationRecord.Builder>
        Throws:
        IOException
      • getAllocMicros

        public long getAllocMicros()
         The timestamp of the operation.
         
        int64 alloc_micros = 1;
        Specified by:
        getAllocMicros in interface AllocationRecordOrBuilder
        Returns:
        The allocMicros.
      • setAllocMicros

        public AllocationRecord.Builder setAllocMicros​(long value)
         The timestamp of the operation.
         
        int64 alloc_micros = 1;
        Parameters:
        value - The allocMicros to set.
        Returns:
        This builder for chaining.
      • clearAllocMicros

        public AllocationRecord.Builder clearAllocMicros()
         The timestamp of the operation.
         
        int64 alloc_micros = 1;
        Returns:
        This builder for chaining.
      • getAllocBytes

        public long getAllocBytes()
         Number of bytes allocated, or de-allocated if negative.
         
        int64 alloc_bytes = 2;
        Specified by:
        getAllocBytes in interface AllocationRecordOrBuilder
        Returns:
        The allocBytes.
      • setAllocBytes

        public AllocationRecord.Builder setAllocBytes​(long value)
         Number of bytes allocated, or de-allocated if negative.
         
        int64 alloc_bytes = 2;
        Parameters:
        value - The allocBytes to set.
        Returns:
        This builder for chaining.
      • clearAllocBytes

        public AllocationRecord.Builder clearAllocBytes()
         Number of bytes allocated, or de-allocated if negative.
         
        int64 alloc_bytes = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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