Package org.tensorflow.framework
Class AllocationDescription.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
- org.tensorflow.framework.AllocationDescription.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,AllocationDescriptionOrBuilder
- Enclosing class:
- AllocationDescription
public static final class AllocationDescription.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder> implements AllocationDescriptionOrBuilder
Protobuf typetensorflow.AllocationDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationDescription.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationDescriptionbuild()AllocationDescriptionbuildPartial()AllocationDescription.Builderclear()AllocationDescription.BuilderclearAllocatedBytes()Total number of bytes allocated if knownAllocationDescription.BuilderclearAllocationId()Identifier of the allocated buffer if knownAllocationDescription.BuilderclearAllocatorName()Name of the allocator usedAllocationDescription.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)AllocationDescription.BuilderclearHasSingleReference()Set if this tensor only has one remaining referenceAllocationDescription.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)AllocationDescription.BuilderclearPtr()Address of the allocation.AllocationDescription.BuilderclearRequestedBytes()Total number of bytes requestedAllocationDescription.Builderclone()longgetAllocatedBytes()Total number of bytes allocated if knownlonggetAllocationId()Identifier of the allocated buffer if knownStringgetAllocatorName()Name of the allocator usedorg.nd4j.shade.protobuf.ByteStringgetAllocatorNameBytes()Name of the allocator usedAllocationDescriptiongetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetHasSingleReference()Set if this tensor only has one remaining referencelonggetPtr()Address of the allocation.longgetRequestedBytes()Total number of bytes requestedprotected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationDescription.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)AllocationDescription.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)AllocationDescription.BuildermergeFrom(AllocationDescription other)AllocationDescription.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)AllocationDescription.BuildersetAllocatedBytes(long value)Total number of bytes allocated if knownAllocationDescription.BuildersetAllocationId(long value)Identifier of the allocated buffer if knownAllocationDescription.BuildersetAllocatorName(String value)Name of the allocator usedAllocationDescription.BuildersetAllocatorNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the allocator usedAllocationDescription.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationDescription.BuildersetHasSingleReference(boolean value)Set if this tensor only has one remaining referenceAllocationDescription.BuildersetPtr(long value)Address of the allocation.AllocationDescription.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationDescription.BuildersetRequestedBytes(long value)Total number of bytes requestedAllocationDescription.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clear
public AllocationDescription.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDefaultInstanceForType
public AllocationDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public AllocationDescription build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public AllocationDescription buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public AllocationDescription.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setField
public AllocationDescription.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearField
public AllocationDescription.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearOneof
public AllocationDescription.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setRepeatedField
public AllocationDescription.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
addRepeatedField
public AllocationDescription.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(AllocationDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.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
public AllocationDescription.Builder setRequestedBytes(long value)
Total number of bytes requested
int64 requested_bytes = 1;- Parameters:
value- The requestedBytes to set.- Returns:
- This builder for chaining.
-
clearRequestedBytes
public AllocationDescription.Builder 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
public AllocationDescription.Builder setAllocatedBytes(long value)
Total number of bytes allocated if known
int64 allocated_bytes = 2;- Parameters:
value- The allocatedBytes to set.- Returns:
- This builder for chaining.
-
clearAllocatedBytes
public AllocationDescription.Builder clearAllocatedBytes()
Total number of bytes allocated if known
int64 allocated_bytes = 2;- Returns:
- This builder for chaining.
-
getAllocatorName
public String getAllocatorName()
Name of the allocator used
string allocator_name = 3;- Specified by:
getAllocatorNamein interfaceAllocationDescriptionOrBuilder- Returns:
- The allocatorName.
-
getAllocatorNameBytes
public org.nd4j.shade.protobuf.ByteString getAllocatorNameBytes()
Name of the allocator used
string allocator_name = 3;- Specified by:
getAllocatorNameBytesin interfaceAllocationDescriptionOrBuilder- Returns:
- The bytes for allocatorName.
-
setAllocatorName
public AllocationDescription.Builder setAllocatorName(String value)
Name of the allocator used
string allocator_name = 3;- Parameters:
value- The allocatorName to set.- Returns:
- This builder for chaining.
-
clearAllocatorName
public AllocationDescription.Builder clearAllocatorName()
Name of the allocator used
string allocator_name = 3;- Returns:
- This builder for chaining.
-
setAllocatorNameBytes
public AllocationDescription.Builder setAllocatorNameBytes(org.nd4j.shade.protobuf.ByteString value)
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
public AllocationDescription.Builder setAllocationId(long value)
Identifier of the allocated buffer if known
int64 allocation_id = 4;- Parameters:
value- The allocationId to set.- Returns:
- This builder for chaining.
-
clearAllocationId
public AllocationDescription.Builder 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
public AllocationDescription.Builder setHasSingleReference(boolean value)
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
public AllocationDescription.Builder 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
public AllocationDescription.Builder setPtr(long value)
Address of the allocation.
uint64 ptr = 6;- Parameters:
value- The ptr to set.- Returns:
- This builder for chaining.
-
clearPtr
public AllocationDescription.Builder clearPtr()
Address of the allocation.
uint64 ptr = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationDescription.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeUnknownFields
public final AllocationDescription.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
-