Package org.platanios.tensorflow.proto
Class AllocationDescription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
- org.platanios.tensorflow.proto.AllocationDescription.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,AllocationDescriptionOrBuilder
- Enclosing class:
- AllocationDescription
public static final class AllocationDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder> implements AllocationDescriptionOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.AllocationDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 knownAllocationDescription.Builder
clearAllocationId()
Identifier of the allocated buffer if knownAllocationDescription.Builder
clearAllocatorName()
Name of the allocator usedAllocationDescription.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationDescription.Builder
clearHasSingleReference()
Set if this tensor only has one remaining referenceAllocationDescription.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationDescription.Builder
clearPtr()
Address of the allocation.AllocationDescription.Builder
clearRequestedBytes()
Total number of bytes requestedAllocationDescription.Builder
clone()
long
getAllocatedBytes()
Total number of bytes allocated if knownlong
getAllocationId()
Identifier of the allocated buffer if knownjava.lang.String
getAllocatorName()
Name of the allocator usedcom.google.protobuf.ByteString
getAllocatorNameBytes()
Name of the allocator usedAllocationDescription
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getHasSingleReference()
Set if this tensor only has one remaining referencelong
getPtr()
Address of the allocation.long
getRequestedBytes()
Total number of bytes requestedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationDescription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationDescription.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationDescription.Builder
mergeFrom(AllocationDescription other)
AllocationDescription.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationDescription.Builder
setAllocatedBytes(long value)
Total number of bytes allocated if knownAllocationDescription.Builder
setAllocationId(long value)
Identifier of the allocated buffer if knownAllocationDescription.Builder
setAllocatorName(java.lang.String value)
Name of the allocator usedAllocationDescription.Builder
setAllocatorNameBytes(com.google.protobuf.ByteString value)
Name of the allocator usedAllocationDescription.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 referenceAllocationDescription.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 requestedAllocationDescription.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clear
public AllocationDescription.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
getDefaultInstanceForType
public AllocationDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationDescription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationDescription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationDescription.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setField
public AllocationDescription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearField
public AllocationDescription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
clearOneof
public AllocationDescription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
setRepeatedField
public AllocationDescription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
addRepeatedField
public AllocationDescription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(AllocationDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeFrom
public AllocationDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationDescription.Builder>
- Throws:
java.io.IOException
-
getRequestedBytes
public long getRequestedBytes()
Total number of bytes requested
int64 requested_bytes = 1;
- Specified by:
getRequestedBytes
in 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:
getAllocatedBytes
in 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 java.lang.String getAllocatorName()
Name of the allocator used
string allocator_name = 3;
- Specified by:
getAllocatorName
in interfaceAllocationDescriptionOrBuilder
- Returns:
- The allocatorName.
-
getAllocatorNameBytes
public com.google.protobuf.ByteString getAllocatorNameBytes()
Name of the allocator used
string allocator_name = 3;
- Specified by:
getAllocatorNameBytes
in interfaceAllocationDescriptionOrBuilder
- Returns:
- The bytes for allocatorName.
-
setAllocatorName
public AllocationDescription.Builder setAllocatorName(java.lang.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(com.google.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:
getAllocationId
in 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:
getHasSingleReference
in 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:
getPtr
in 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(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
mergeUnknownFields
public final AllocationDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder>
-
-