Package org.tensorflow.framework
Class DeviceAttributes.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
- org.tensorflow.framework.DeviceAttributes.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,DeviceAttributesOrBuilder
- Enclosing class:
- DeviceAttributes
public static final class DeviceAttributes.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder> implements DeviceAttributesOrBuilder
Protobuf typetensorflow.DeviceAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceAttributes.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceAttributesbuild()DeviceAttributesbuildPartial()DeviceAttributes.Builderclear()DeviceAttributes.BuilderclearDeviceType()String representation of device_type.DeviceAttributes.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)DeviceAttributes.BuilderclearIncarnation()A device is assigned a global unique number each time it is initialized.DeviceAttributes.BuilderclearLocality()Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceAttributes.BuilderclearMemoryLimit()Memory capacity of device in bytes.DeviceAttributes.BuilderclearName()Fully specified name of the device within a cluster.DeviceAttributes.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)DeviceAttributes.BuilderclearPhysicalDeviceDesc()String representation of the physical device that this device maps to.DeviceAttributes.Builderclone()DeviceAttributesgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDeviceType()String representation of device_type.org.nd4j.shade.protobuf.ByteStringgetDeviceTypeBytes()String representation of device_type.longgetIncarnation()A device is assigned a global unique number each time it is initialized.DeviceLocalitygetLocality()Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceLocality.BuildergetLocalityBuilder()Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceLocalityOrBuildergetLocalityOrBuilder()Platform-specific data about device that may be useful for supporting efficient data transfers.longgetMemoryLimit()Memory capacity of device in bytes.StringgetName()Fully specified name of the device within a cluster.org.nd4j.shade.protobuf.ByteStringgetNameBytes()Fully specified name of the device within a cluster.StringgetPhysicalDeviceDesc()String representation of the physical device that this device maps to.org.nd4j.shade.protobuf.ByteStringgetPhysicalDeviceDescBytes()String representation of the physical device that this device maps to.booleanhasLocality()Platform-specific data about device that may be useful for supporting efficient data transfers.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DeviceAttributes.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)DeviceAttributes.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)DeviceAttributes.BuildermergeFrom(DeviceAttributes other)DeviceAttributes.BuildermergeLocality(DeviceLocality value)Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceAttributes.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)DeviceAttributes.BuildersetDeviceType(String value)String representation of device_type.DeviceAttributes.BuildersetDeviceTypeBytes(org.nd4j.shade.protobuf.ByteString value)String representation of device_type.DeviceAttributes.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceAttributes.BuildersetIncarnation(long value)A device is assigned a global unique number each time it is initialized.DeviceAttributes.BuildersetLocality(DeviceLocality value)Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceAttributes.BuildersetLocality(DeviceLocality.Builder builderForValue)Platform-specific data about device that may be useful for supporting efficient data transfers.DeviceAttributes.BuildersetMemoryLimit(long value)Memory capacity of device in bytes.DeviceAttributes.BuildersetName(String value)Fully specified name of the device within a cluster.DeviceAttributes.BuildersetNameBytes(org.nd4j.shade.protobuf.ByteString value)Fully specified name of the device within a cluster.DeviceAttributes.BuildersetPhysicalDeviceDesc(String value)String representation of the physical device that this device maps to.DeviceAttributes.BuildersetPhysicalDeviceDescBytes(org.nd4j.shade.protobuf.ByteString value)String representation of the physical device that this device maps to.DeviceAttributes.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DeviceAttributes.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<DeviceAttributes.Builder>
-
clear
public DeviceAttributes.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<DeviceAttributes.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<DeviceAttributes.Builder>
-
getDefaultInstanceForType
public DeviceAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public DeviceAttributes build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public DeviceAttributes buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public DeviceAttributes.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<DeviceAttributes.Builder>
-
setField
public DeviceAttributes.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<DeviceAttributes.Builder>
-
clearField
public DeviceAttributes.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<DeviceAttributes.Builder>
-
clearOneof
public DeviceAttributes.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<DeviceAttributes.Builder>
-
setRepeatedField
public DeviceAttributes.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<DeviceAttributes.Builder>
-
addRepeatedField
public DeviceAttributes.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<DeviceAttributes.Builder>
-
mergeFrom
public DeviceAttributes.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<DeviceAttributes.Builder>
-
mergeFrom
public DeviceAttributes.Builder mergeFrom(DeviceAttributes other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
mergeFrom
public DeviceAttributes.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<DeviceAttributes.Builder>- Throws:
IOException
-
getName
public String getName()
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNamein interfaceDeviceAttributesOrBuilder- Returns:
- The name.
-
getNameBytes
public org.nd4j.shade.protobuf.ByteString getNameBytes()
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNameBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for name.
-
setName
public DeviceAttributes.Builder setName(String value)
Fully specified name of the device within a cluster.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DeviceAttributes.Builder clearName()
Fully specified name of the device within a cluster.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DeviceAttributes.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
Fully specified name of the device within a cluster.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDeviceType
public String getDeviceType()
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypein interfaceDeviceAttributesOrBuilder- Returns:
- The deviceType.
-
getDeviceTypeBytes
public org.nd4j.shade.protobuf.ByteString getDeviceTypeBytes()
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypeBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for deviceType.
-
setDeviceType
public DeviceAttributes.Builder setDeviceType(String value)
String representation of device_type.
string device_type = 2;- Parameters:
value- The deviceType to set.- Returns:
- This builder for chaining.
-
clearDeviceType
public DeviceAttributes.Builder clearDeviceType()
String representation of device_type.
string device_type = 2;- Returns:
- This builder for chaining.
-
setDeviceTypeBytes
public DeviceAttributes.Builder setDeviceTypeBytes(org.nd4j.shade.protobuf.ByteString value)
String representation of device_type.
string device_type = 2;- Parameters:
value- The bytes for deviceType to set.- Returns:
- This builder for chaining.
-
getMemoryLimit
public long getMemoryLimit()
Memory capacity of device in bytes.
int64 memory_limit = 4;- Specified by:
getMemoryLimitin interfaceDeviceAttributesOrBuilder- Returns:
- The memoryLimit.
-
setMemoryLimit
public DeviceAttributes.Builder setMemoryLimit(long value)
Memory capacity of device in bytes.
int64 memory_limit = 4;- Parameters:
value- The memoryLimit to set.- Returns:
- This builder for chaining.
-
clearMemoryLimit
public DeviceAttributes.Builder clearMemoryLimit()
Memory capacity of device in bytes.
int64 memory_limit = 4;- Returns:
- This builder for chaining.
-
hasLocality
public boolean hasLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
hasLocalityin interfaceDeviceAttributesOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
public DeviceLocality getLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
getLocalityin interfaceDeviceAttributesOrBuilder- Returns:
- The locality.
-
setLocality
public DeviceAttributes.Builder setLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
-
setLocality
public DeviceAttributes.Builder setLocality(DeviceLocality.Builder builderForValue)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
-
mergeLocality
public DeviceAttributes.Builder mergeLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
-
clearLocality
public DeviceAttributes.Builder clearLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
-
getLocalityBuilder
public DeviceLocality.Builder getLocalityBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
-
getLocalityOrBuilder
public DeviceLocalityOrBuilder getLocalityOrBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
getLocalityOrBuilderin interfaceDeviceAttributesOrBuilder
-
getIncarnation
public long getIncarnation()
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;- Specified by:
getIncarnationin interfaceDeviceAttributesOrBuilder- Returns:
- The incarnation.
-
setIncarnation
public DeviceAttributes.Builder setIncarnation(long value)
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;- Parameters:
value- The incarnation to set.- Returns:
- This builder for chaining.
-
clearIncarnation
public DeviceAttributes.Builder clearIncarnation()
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;- Returns:
- This builder for chaining.
-
getPhysicalDeviceDesc
public String getPhysicalDeviceDesc()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Specified by:
getPhysicalDeviceDescin interfaceDeviceAttributesOrBuilder- Returns:
- The physicalDeviceDesc.
-
getPhysicalDeviceDescBytes
public org.nd4j.shade.protobuf.ByteString getPhysicalDeviceDescBytes()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Specified by:
getPhysicalDeviceDescBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for physicalDeviceDesc.
-
setPhysicalDeviceDesc
public DeviceAttributes.Builder setPhysicalDeviceDesc(String value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Parameters:
value- The physicalDeviceDesc to set.- Returns:
- This builder for chaining.
-
clearPhysicalDeviceDesc
public DeviceAttributes.Builder clearPhysicalDeviceDesc()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Returns:
- This builder for chaining.
-
setPhysicalDeviceDescBytes
public DeviceAttributes.Builder setPhysicalDeviceDescBytes(org.nd4j.shade.protobuf.ByteString value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Parameters:
value- The bytes for physicalDeviceDesc to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DeviceAttributes.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<DeviceAttributes.Builder>
-
mergeUnknownFields
public final DeviceAttributes.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<DeviceAttributes.Builder>
-
-