Class AllocationDescription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.Builder<AllocationDescription.Builder>
implements AllocationDescriptionOrBuilder
Protobuf type
tensorflow.AllocationDescription-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()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 requestedclone()longTotal 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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(AllocationDescription other) mergeUnknownFields(UnknownFieldSet unknownFields) 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 usedsetField(Descriptors.FieldDescriptor field, Object value) setHasSingleReference(boolean value) Set if this tensor only has one remaining referencesetPtr(long value) Address of the allocation.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setRequestedBytes(long value) Total number of bytes requestedsetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setRepeatedField
public AllocationDescription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
addRepeatedField
public AllocationDescription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<AllocationDescription.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 classGeneratedMessageV3.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.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<AllocationDescription.Builder>
-