Class AllocationDescription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
com.google.protobuf.GeneratedMessage.Builder<AllocationDescription.Builder>
org.tensorflow.proto.AllocationDescription.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, AllocationDescriptionOrBuilder
- Enclosing class:
AllocationDescription
public static final class AllocationDescription.Builder
extends GeneratedMessage.Builder<AllocationDescription.Builder>
implements AllocationDescriptionOrBuilder
Protobuf type
tensorflow.AllocationDescription-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Total number of bytes allocated if knownIdentifier of the allocated buffer if knownName of the allocator usedSet if this tensor only has one remaining referenceclearPtr()Address of the allocation.Total number of bytes requestedlongTotal number of bytes allocated if knownlongIdentifier of the allocated buffer if knownName of the allocator usedName of the allocator usedstatic final Descriptors.DescriptorbooleanSet if this tensor only has one remaining referencelonggetPtr()Address of the allocation.longTotal number of bytes requestedprotected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(AllocationDescription other) setAllocatedBytes(long value) Total number of bytes allocated if knownsetAllocationId(long value) Identifier of the allocated buffer if knownsetAllocatorName(String value) Name of the allocator usedsetAllocatorNameBytes(ByteString value) Name of the allocator usedsetHasSingleReference(boolean value) Set if this tensor only has one remaining referencesetPtr(long value) Address of the allocation.setRequestedBytes(long value) Total number of bytes requestedMethods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<AllocationDescription.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<AllocationDescription.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<AllocationDescription.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<AllocationDescription.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<AllocationDescription.Builder>- Throws:
IOException
-
getRequestedBytes
public long getRequestedBytes()Total number of bytes requested
int64 requested_bytes = 1;- Specified by:
getRequestedBytesin interfaceAllocationDescriptionOrBuilder- Returns:
- The requestedBytes.
-
setRequestedBytes
Total number of bytes requested
int64 requested_bytes = 1;- Parameters:
value- The requestedBytes to set.- Returns:
- This builder for chaining.
-
clearRequestedBytes
Total number of bytes requested
int64 requested_bytes = 1;- Returns:
- This builder for chaining.
-
getAllocatedBytes
public long getAllocatedBytes()Total number of bytes allocated if known
int64 allocated_bytes = 2;- Specified by:
getAllocatedBytesin interfaceAllocationDescriptionOrBuilder- Returns:
- The allocatedBytes.
-
setAllocatedBytes
Total number of bytes allocated if known
int64 allocated_bytes = 2;- Parameters:
value- The allocatedBytes to set.- Returns:
- This builder for chaining.
-
clearAllocatedBytes
Total number of bytes allocated if known
int64 allocated_bytes = 2;- Returns:
- This builder for chaining.
-
getAllocatorName
Name of the allocator used
string allocator_name = 3;- Specified by:
getAllocatorNamein interfaceAllocationDescriptionOrBuilder- Returns:
- The allocatorName.
-
getAllocatorNameBytes
Name of the allocator used
string allocator_name = 3;- Specified by:
getAllocatorNameBytesin interfaceAllocationDescriptionOrBuilder- Returns:
- The bytes for allocatorName.
-
setAllocatorName
Name of the allocator used
string allocator_name = 3;- Parameters:
value- The allocatorName to set.- Returns:
- This builder for chaining.
-
clearAllocatorName
Name of the allocator used
string allocator_name = 3;- Returns:
- This builder for chaining.
-
setAllocatorNameBytes
Name of the allocator used
string allocator_name = 3;- Parameters:
value- The bytes for allocatorName to set.- Returns:
- This builder for chaining.
-
getAllocationId
public long getAllocationId()Identifier of the allocated buffer if known
int64 allocation_id = 4;- Specified by:
getAllocationIdin interfaceAllocationDescriptionOrBuilder- Returns:
- The allocationId.
-
setAllocationId
Identifier of the allocated buffer if known
int64 allocation_id = 4;- Parameters:
value- The allocationId to set.- Returns:
- This builder for chaining.
-
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:
getHasSingleReferencein interfaceAllocationDescriptionOrBuilder- Returns:
- The hasSingleReference.
-
setHasSingleReference
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
Set if this tensor only has one remaining reference
bool has_single_reference = 5;- Returns:
- This builder for chaining.
-
getPtr
public long getPtr()Address of the allocation.
uint64 ptr = 6;- Specified by:
getPtrin interfaceAllocationDescriptionOrBuilder- Returns:
- The ptr.
-
setPtr
Address of the allocation.
uint64 ptr = 6;- Parameters:
value- The ptr to set.- Returns:
- This builder for chaining.
-
clearPtr
Address of the allocation.
uint64 ptr = 6;- Returns:
- This builder for chaining.
-