Class DeviceAttributes.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DeviceAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
org.tensorflow.proto.DeviceAttributes.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, DeviceAttributesOrBuilder
- Enclosing class:
DeviceAttributes
public static final class DeviceAttributes.Builder
extends GeneratedMessageV3.Builder<DeviceAttributes.Builder>
implements DeviceAttributesOrBuilder
Protobuf type
tensorflow.DeviceAttributes-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()String representation of device_type.A device is assigned a global unique number each time it is initialized.Platform-specific data about device that may be useful for supporting efficient data transfers.Memory capacity of device in bytes.Fully specified name of the device within a cluster.String representation of the physical device that this device maps to.A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup.clone()static final Descriptors.DescriptorString representation of device_type.String representation of device_type.longA device is assigned a global unique number each time it is initialized.Platform-specific data about device that may be useful for supporting efficient data transfers.Platform-specific data about device that may be useful for supporting efficient data transfers.Platform-specific data about device that may be useful for supporting efficient data transfers.longMemory capacity of device in bytes.getName()Fully specified name of the device within a cluster.Fully specified name of the device within a cluster.String representation of the physical device that this device maps to.String representation of the physical device that this device maps to.longA physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup.booleanPlatform-specific data about device that may be useful for supporting efficient data transfers.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(DeviceAttributes other) mergeLocality(DeviceLocality value) Platform-specific data about device that may be useful for supporting efficient data transfers.final DeviceAttributes.BuildermergeUnknownFields(UnknownFieldSet unknownFields) setDeviceType(String value) String representation of device_type.setDeviceTypeBytes(ByteString value) String representation of device_type.setField(Descriptors.FieldDescriptor field, Object value) setIncarnation(long value) A device is assigned a global unique number each time it is initialized.setLocality(DeviceLocality value) Platform-specific data about device that may be useful for supporting efficient data transfers.setLocality(DeviceLocality.Builder builderForValue) Platform-specific data about device that may be useful for supporting efficient data transfers.setMemoryLimit(long value) Memory capacity of device in bytes.Fully specified name of the device within a cluster.setNameBytes(ByteString value) Fully specified name of the device within a cluster.setPhysicalDeviceDesc(String value) String representation of the physical device that this device maps to.String representation of the physical device that this device maps to.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final DeviceAttributes.BuildersetUnknownFields(UnknownFieldSet unknownFields) setXlaGlobalId(long value) A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup.Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<DeviceAttributes.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
setRepeatedField
public DeviceAttributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DeviceAttributes.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
mergeFrom
public DeviceAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DeviceAttributes.Builder>- Throws:
IOException
-
getName
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNamein interfaceDeviceAttributesOrBuilder- Returns:
- The name.
-
getNameBytes
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNameBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for name.
-
setName
Fully specified name of the device within a cluster.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Fully specified name of the device within a cluster.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypein interfaceDeviceAttributesOrBuilder- Returns:
- The deviceType.
-
getDeviceTypeBytes
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypeBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for deviceType.
-
setDeviceType
String representation of device_type.
string device_type = 2;- Parameters:
value- The deviceType to set.- Returns:
- This builder for chaining.
-
clearDeviceType
String representation of device_type.
string device_type = 2;- Returns:
- This builder for chaining.
-
setDeviceTypeBytes
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
Memory capacity of device in bytes.
int64 memory_limit = 4;- Parameters:
value- The memoryLimit to set.- Returns:
- This builder for chaining.
-
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
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
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5; -
setLocality
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5; -
mergeLocality
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5; -
clearLocality
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5; -
getLocalityBuilder
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5; -
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
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
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
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Specified by:
getPhysicalDeviceDescin interfaceDeviceAttributesOrBuilder- Returns:
- The physicalDeviceDesc.
-
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
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
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Returns:
- This builder for chaining.
-
setPhysicalDeviceDescBytes
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.
-
getXlaGlobalId
public long getXlaGlobalId()A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup. Set to -1 if unavailable, non-negative otherwise.
int64 xla_global_id = 8;- Specified by:
getXlaGlobalIdin interfaceDeviceAttributesOrBuilder- Returns:
- The xlaGlobalId.
-
setXlaGlobalId
A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup. Set to -1 if unavailable, non-negative otherwise.
int64 xla_global_id = 8;- Parameters:
value- The xlaGlobalId to set.- Returns:
- This builder for chaining.
-
clearXlaGlobalId
A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup. Set to -1 if unavailable, non-negative otherwise.
int64 xla_global_id = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<DeviceAttributes.Builder>
-