public static final class AllocationDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder> implements AllocationDescriptionOrBuilder
tensorflow.AllocationDescription| Modifier and Type | Method and Description |
|---|---|
AllocationDescription.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AllocationDescription |
build() |
AllocationDescription |
buildPartial() |
AllocationDescription.Builder |
clear() |
AllocationDescription.Builder |
clearAllocatedBytes()
Total number of bytes allocated if known
|
AllocationDescription.Builder |
clearAllocationId()
Identifier of the allocated buffer if known
|
AllocationDescription.Builder |
clearAllocatorName()
Name of the allocator used
|
AllocationDescription.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AllocationDescription.Builder |
clearHasSingleReference()
Set if this tensor only has one remaining reference
|
AllocationDescription.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AllocationDescription.Builder |
clearPtr()
Address of the allocation.
|
AllocationDescription.Builder |
clearRequestedBytes()
Total number of bytes requested
|
AllocationDescription.Builder |
clone() |
long |
getAllocatedBytes()
Total number of bytes allocated if known
|
long |
getAllocationId()
Identifier of the allocated buffer if known
|
java.lang.String |
getAllocatorName()
Name of the allocator used
|
com.google.protobuf.ByteString |
getAllocatorNameBytes()
Name of the allocator used
|
AllocationDescription |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getHasSingleReference()
Set if this tensor only has one remaining reference
|
long |
getPtr()
Address of the allocation.
|
long |
getRequestedBytes()
Total number of bytes requested
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AllocationDescription.Builder |
mergeFrom(AllocationDescription other) |
AllocationDescription.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AllocationDescription.Builder |
mergeFrom(com.google.protobuf.Message other) |
AllocationDescription.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AllocationDescription.Builder |
setAllocatedBytes(long value)
Total number of bytes allocated if known
|
AllocationDescription.Builder |
setAllocationId(long value)
Identifier of the allocated buffer if known
|
AllocationDescription.Builder |
setAllocatorName(java.lang.String value)
Name of the allocator used
|
AllocationDescription.Builder |
setAllocatorNameBytes(com.google.protobuf.ByteString value)
Name of the allocator used
|
AllocationDescription.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AllocationDescription.Builder |
setHasSingleReference(boolean value)
Set if this tensor only has one remaining reference
|
AllocationDescription.Builder |
setPtr(long value)
Address of the allocation.
|
AllocationDescription.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AllocationDescription.Builder |
setRequestedBytes(long value)
Total number of bytes requested
|
AllocationDescription.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationDescription build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationDescription buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationDescription.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>public AllocationDescription.Builder mergeFrom(AllocationDescription other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public AllocationDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>java.io.IOExceptionpublic long getRequestedBytes()
Total number of bytes requested
int64 requested_bytes = 1;getRequestedBytes in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setRequestedBytes(long value)
Total number of bytes requested
int64 requested_bytes = 1;value - The requestedBytes to set.public AllocationDescription.Builder clearRequestedBytes()
Total number of bytes requested
int64 requested_bytes = 1;public long getAllocatedBytes()
Total number of bytes allocated if known
int64 allocated_bytes = 2;getAllocatedBytes in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setAllocatedBytes(long value)
Total number of bytes allocated if known
int64 allocated_bytes = 2;value - The allocatedBytes to set.public AllocationDescription.Builder clearAllocatedBytes()
Total number of bytes allocated if known
int64 allocated_bytes = 2;public java.lang.String getAllocatorName()
Name of the allocator used
string allocator_name = 3;getAllocatorName in interface AllocationDescriptionOrBuilderpublic com.google.protobuf.ByteString getAllocatorNameBytes()
Name of the allocator used
string allocator_name = 3;getAllocatorNameBytes in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setAllocatorName(java.lang.String value)
Name of the allocator used
string allocator_name = 3;value - The allocatorName to set.public AllocationDescription.Builder clearAllocatorName()
Name of the allocator used
string allocator_name = 3;public AllocationDescription.Builder setAllocatorNameBytes(com.google.protobuf.ByteString value)
Name of the allocator used
string allocator_name = 3;value - The bytes for allocatorName to set.public long getAllocationId()
Identifier of the allocated buffer if known
int64 allocation_id = 4;getAllocationId in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setAllocationId(long value)
Identifier of the allocated buffer if known
int64 allocation_id = 4;value - The allocationId to set.public AllocationDescription.Builder clearAllocationId()
Identifier of the allocated buffer if known
int64 allocation_id = 4;public boolean getHasSingleReference()
Set if this tensor only has one remaining reference
bool has_single_reference = 5;getHasSingleReference in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setHasSingleReference(boolean value)
Set if this tensor only has one remaining reference
bool has_single_reference = 5;value - The hasSingleReference to set.public AllocationDescription.Builder clearHasSingleReference()
Set if this tensor only has one remaining reference
bool has_single_reference = 5;public long getPtr()
Address of the allocation.
uint64 ptr = 6;getPtr in interface AllocationDescriptionOrBuilderpublic AllocationDescription.Builder setPtr(long value)
Address of the allocation.
uint64 ptr = 6;value - The ptr to set.public AllocationDescription.Builder clearPtr()
Address of the allocation.
uint64 ptr = 6;public final AllocationDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>public final AllocationDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>