Class MemoryLogRawAllocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MemoryLogRawAllocation.Builder>
com.google.protobuf.GeneratedMessage.Builder<MemoryLogRawAllocation.Builder>
org.tensorflow.proto.MemoryLogRawAllocation.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, MemoryLogRawAllocationOrBuilder
- Enclosing class:
MemoryLogRawAllocation
public static final class MemoryLogRawAllocation.Builder
extends GeneratedMessage.Builder<MemoryLogRawAllocation.Builder>
implements MemoryLogRawAllocationOrBuilder
Protobuf type
tensorflow.MemoryLogRawAllocation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Id of the tensor buffer being allocated, used to match to a corresponding deallocation.Name of the allocator used.Number of bytes in the allocation.Name of the operation making the allocation.clearPtr()Address of the allocation.Process-unique step id.longId of the tensor buffer being allocated, used to match to a corresponding deallocation.Name of the allocator used.Name of the allocator used.static final Descriptors.DescriptorlongNumber of bytes in the allocation.Name of the operation making the allocation.Name of the operation making the allocation.longgetPtr()Address of the allocation.longProcess-unique step id.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(MemoryLogRawAllocation other) setAllocationId(long value) Id of the tensor buffer being allocated, used to match to a corresponding deallocation.setAllocatorName(String value) Name of the allocator used.setAllocatorNameBytes(ByteString value) Name of the allocator used.setNumBytes(long value) Number of bytes in the allocation.setOperation(String value) Name of the operation making the allocation.setOperationBytes(ByteString value) Name of the operation making the allocation.setPtr(long value) Address of the allocation.setStepId(long value) Process-unique step id.Methods 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<MemoryLogRawAllocation.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<MemoryLogRawAllocation.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<MemoryLogRawAllocation.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<MemoryLogRawAllocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<MemoryLogRawAllocation.Builder>
-
mergeFrom
public MemoryLogRawAllocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<MemoryLogRawAllocation.Builder>- Throws:
IOException
-
getStepId
public long getStepId()Process-unique step id.
int64 step_id = 1;- Specified by:
getStepIdin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The stepId.
-
setStepId
Process-unique step id.
int64 step_id = 1;- Parameters:
value- The stepId to set.- Returns:
- This builder for chaining.
-
clearStepId
Process-unique step id.
int64 step_id = 1;- Returns:
- This builder for chaining.
-
getOperation
Name of the operation making the allocation.
string operation = 2;- Specified by:
getOperationin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The operation.
-
getOperationBytes
Name of the operation making the allocation.
string operation = 2;- Specified by:
getOperationBytesin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The bytes for operation.
-
setOperation
Name of the operation making the allocation.
string operation = 2;- Parameters:
value- The operation to set.- Returns:
- This builder for chaining.
-
clearOperation
Name of the operation making the allocation.
string operation = 2;- Returns:
- This builder for chaining.
-
setOperationBytes
Name of the operation making the allocation.
string operation = 2;- Parameters:
value- The bytes for operation to set.- Returns:
- This builder for chaining.
-
getNumBytes
public long getNumBytes()Number of bytes in the allocation.
int64 num_bytes = 3;- Specified by:
getNumBytesin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The numBytes.
-
setNumBytes
Number of bytes in the allocation.
int64 num_bytes = 3;- Parameters:
value- The numBytes to set.- Returns:
- This builder for chaining.
-
clearNumBytes
Number of bytes in the allocation.
int64 num_bytes = 3;- Returns:
- This builder for chaining.
-
getPtr
public long getPtr()Address of the allocation.
uint64 ptr = 4;- Specified by:
getPtrin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The ptr.
-
setPtr
Address of the allocation.
uint64 ptr = 4;- Parameters:
value- The ptr to set.- Returns:
- This builder for chaining.
-
clearPtr
Address of the allocation.
uint64 ptr = 4;- Returns:
- This builder for chaining.
-
getAllocationId
public long getAllocationId()Id of the tensor buffer being allocated, used to match to a corresponding deallocation.
int64 allocation_id = 5;- Specified by:
getAllocationIdin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The allocationId.
-
setAllocationId
Id of the tensor buffer being allocated, used to match to a corresponding deallocation.
int64 allocation_id = 5;- Parameters:
value- The allocationId to set.- Returns:
- This builder for chaining.
-
clearAllocationId
Id of the tensor buffer being allocated, used to match to a corresponding deallocation.
int64 allocation_id = 5;- Returns:
- This builder for chaining.
-
getAllocatorName
Name of the allocator used.
string allocator_name = 6;- Specified by:
getAllocatorNamein interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The allocatorName.
-
getAllocatorNameBytes
Name of the allocator used.
string allocator_name = 6;- Specified by:
getAllocatorNameBytesin interfaceMemoryLogRawAllocationOrBuilder- Returns:
- The bytes for allocatorName.
-
setAllocatorName
Name of the allocator used.
string allocator_name = 6;- Parameters:
value- The allocatorName to set.- Returns:
- This builder for chaining.
-
clearAllocatorName
Name of the allocator used.
string allocator_name = 6;- Returns:
- This builder for chaining.
-
setAllocatorNameBytes
Name of the allocator used.
string allocator_name = 6;- Parameters:
value- The bytes for allocatorName to set.- Returns:
- This builder for chaining.
-