Package org.tensorflow.framework
Class AllocationRecord.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
- org.tensorflow.framework.AllocationRecord.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
,AllocationRecordOrBuilder
- Enclosing class:
- AllocationRecord
public static final class AllocationRecord.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder> implements AllocationRecordOrBuilder
An allocation/de-allocation operation performed by the allocator.
Protobuf typetensorflow.AllocationRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationRecord.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationRecord
build()
AllocationRecord
buildPartial()
AllocationRecord.Builder
clear()
AllocationRecord.Builder
clearAllocBytes()
Number of bytes allocated, or de-allocated if negative.AllocationRecord.Builder
clearAllocMicros()
The timestamp of the operation.AllocationRecord.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
AllocationRecord.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
AllocationRecord.Builder
clone()
long
getAllocBytes()
Number of bytes allocated, or de-allocated if negative.long
getAllocMicros()
The timestamp of the operation.AllocationRecord
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationRecord.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationRecord.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
AllocationRecord.Builder
mergeFrom(AllocationRecord other)
AllocationRecord.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
AllocationRecord.Builder
setAllocBytes(long value)
Number of bytes allocated, or de-allocated if negative.AllocationRecord.Builder
setAllocMicros(long value)
The timestamp of the operation.AllocationRecord.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationRecord.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationRecord.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
clear
public AllocationRecord.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
getDefaultInstanceForType
public AllocationRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public AllocationRecord build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public AllocationRecord buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public AllocationRecord.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
setField
public AllocationRecord.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
clearField
public AllocationRecord.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
clearOneof
public AllocationRecord.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
setRepeatedField
public AllocationRecord.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
addRepeatedField
public AllocationRecord.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
mergeFrom
public AllocationRecord.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<AllocationRecord.Builder>
-
mergeFrom
public AllocationRecord.Builder mergeFrom(AllocationRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
mergeFrom
public AllocationRecord.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<AllocationRecord.Builder>
- Throws:
IOException
-
getAllocMicros
public long getAllocMicros()
The timestamp of the operation.
int64 alloc_micros = 1;
- Specified by:
getAllocMicros
in interfaceAllocationRecordOrBuilder
- Returns:
- The allocMicros.
-
setAllocMicros
public AllocationRecord.Builder setAllocMicros(long value)
The timestamp of the operation.
int64 alloc_micros = 1;
- Parameters:
value
- The allocMicros to set.- Returns:
- This builder for chaining.
-
clearAllocMicros
public AllocationRecord.Builder clearAllocMicros()
The timestamp of the operation.
int64 alloc_micros = 1;
- Returns:
- This builder for chaining.
-
getAllocBytes
public long getAllocBytes()
Number of bytes allocated, or de-allocated if negative.
int64 alloc_bytes = 2;
- Specified by:
getAllocBytes
in interfaceAllocationRecordOrBuilder
- Returns:
- The allocBytes.
-
setAllocBytes
public AllocationRecord.Builder setAllocBytes(long value)
Number of bytes allocated, or de-allocated if negative.
int64 alloc_bytes = 2;
- Parameters:
value
- The allocBytes to set.- Returns:
- This builder for chaining.
-
clearAllocBytes
public AllocationRecord.Builder clearAllocBytes()
Number of bytes allocated, or de-allocated if negative.
int64 alloc_bytes = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationRecord.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
mergeUnknownFields
public final AllocationRecord.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AllocationRecord.Builder>
-
-