Class MemoryLogRawDeallocation.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • getDefaultInstanceForType

        public MemoryLogRawDeallocation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MemoryLogRawDeallocation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MemoryLogRawDeallocation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setField

        public MemoryLogRawDeallocation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • setRepeatedField

        public MemoryLogRawDeallocation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • addRepeatedField

        public MemoryLogRawDeallocation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • mergeFrom

        public MemoryLogRawDeallocation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MemoryLogRawDeallocation.Builder>
        Throws:
        java.io.IOException
      • setStepId

        public MemoryLogRawDeallocation.Builder setStepId​(long value)
         Process-unique step id.
         
        int64 step_id = 1;
        Parameters:
        value - The stepId to set.
        Returns:
        This builder for chaining.
      • getOperationBytes

        public com.google.protobuf.ByteString getOperationBytes()
         Name of the operation making the deallocation.
         
        string operation = 2;
        Specified by:
        getOperationBytes in interface MemoryLogRawDeallocationOrBuilder
        Returns:
        The bytes for operation.
      • setOperation

        public MemoryLogRawDeallocation.Builder setOperation​(java.lang.String value)
         Name of the operation making the deallocation.
         
        string operation = 2;
        Parameters:
        value - The operation to set.
        Returns:
        This builder for chaining.
      • clearOperation

        public MemoryLogRawDeallocation.Builder clearOperation()
         Name of the operation making the deallocation.
         
        string operation = 2;
        Returns:
        This builder for chaining.
      • setOperationBytes

        public MemoryLogRawDeallocation.Builder setOperationBytes​(com.google.protobuf.ByteString value)
         Name of the operation making the deallocation.
         
        string operation = 2;
        Parameters:
        value - The bytes for operation to set.
        Returns:
        This builder for chaining.
      • getAllocationId

        public long getAllocationId()
         Id of the tensor buffer being deallocated, used to match to a
         corresponding allocation.
         
        int64 allocation_id = 3;
        Specified by:
        getAllocationId in interface MemoryLogRawDeallocationOrBuilder
        Returns:
        The allocationId.
      • setAllocationId

        public MemoryLogRawDeallocation.Builder setAllocationId​(long value)
         Id of the tensor buffer being deallocated, used to match to a
         corresponding allocation.
         
        int64 allocation_id = 3;
        Parameters:
        value - The allocationId to set.
        Returns:
        This builder for chaining.
      • clearAllocationId

        public MemoryLogRawDeallocation.Builder clearAllocationId()
         Id of the tensor buffer being deallocated, used to match to a
         corresponding allocation.
         
        int64 allocation_id = 3;
        Returns:
        This builder for chaining.
      • setAllocatorName

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

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

        public MemoryLogRawDeallocation.Builder setAllocatorNameBytes​(com.google.protobuf.ByteString value)
         Name of the allocator used.
         
        string allocator_name = 4;
        Parameters:
        value - The bytes for allocatorName to set.
        Returns:
        This builder for chaining.
      • getDeferred

        public boolean getDeferred()
         True if the deallocation is queued and will be performed later,
         e.g. for GPU lazy freeing of buffers.
         
        bool deferred = 5;
        Specified by:
        getDeferred in interface MemoryLogRawDeallocationOrBuilder
        Returns:
        The deferred.
      • setDeferred

        public MemoryLogRawDeallocation.Builder setDeferred​(boolean value)
         True if the deallocation is queued and will be performed later,
         e.g. for GPU lazy freeing of buffers.
         
        bool deferred = 5;
        Parameters:
        value - The deferred to set.
        Returns:
        This builder for chaining.
      • clearDeferred

        public MemoryLogRawDeallocation.Builder clearDeferred()
         True if the deallocation is queued and will be performed later,
         e.g. for GPU lazy freeing of buffers.
         
        bool deferred = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MemoryLogRawDeallocation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>
      • mergeUnknownFields

        public final MemoryLogRawDeallocation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MemoryLogRawDeallocation.Builder>