Package org.tensorflow.framework
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.framework.AllocationDescription.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AllocationDescriptionOrBuilder
- Enclosing class:
AllocationDescription
public static final class AllocationDescription.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
implements AllocationDescriptionOrBuilder
Protobuf type
tensorflow.AllocationDescription-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Total number of bytes allocated if knownIdentifier of the allocated buffer if knownName of the allocator usedclearField(com.google.protobuf.Descriptors.FieldDescriptor field) Set if this tensor only has one remaining referenceclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearPtr()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 usedcom.google.protobuf.ByteStringName of the allocator usedstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanSet if this tensor only has one remaining referencelonggetPtr()Address of the allocation.longTotal number of bytes requestedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AllocationDescription other) mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.ByteString value) Name of the allocator usedsetHasSingleReference(boolean value) Set if this tensor only has one remaining referencesetPtr(long value) Address of the allocation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestedBytes(long value) Total number of bytes requestedsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setField
public AllocationDescription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearField
public AllocationDescription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearOneof
public AllocationDescription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setRepeatedField
public AllocationDescription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
addRepeatedField
public AllocationDescription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.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
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
public com.google.protobuf.ByteString 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
public final AllocationDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeUnknownFields
public final AllocationDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-