DeviceAttributes.Builder

public static final class DeviceAttributes.Builder

Protobuf type tensorflow.DeviceAttributes

Public Methods

DeviceAttributes.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeviceAttributes
DeviceAttributes
DeviceAttributes.Builder
DeviceAttributes.Builder
clearDeviceType ()
 String representation of device_type.
DeviceAttributes.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
DeviceAttributes.Builder
clearIncarnation ()
 A device is assigned a global unique number each time it is
 initialized.
DeviceAttributes.Builder
clearLocality ()
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
DeviceAttributes.Builder
clearMemoryLimit ()
 Memory capacity of device in bytes.
DeviceAttributes.Builder
clearName ()
 Fully specified name of the device within a cluster.
DeviceAttributes.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
DeviceAttributes.Builder
clearPhysicalDeviceDesc ()
 String representation of the physical device that this device maps to.
DeviceAttributes.Builder
DeviceAttributes
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getDeviceType ()
 String representation of device_type.
com.google.protobuf.ByteString
getDeviceTypeBytes ()
 String representation of device_type.
long
getIncarnation ()
 A device is assigned a global unique number each time it is
 initialized.
DeviceLocality
getLocality ()
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
DeviceLocality.Builder
getLocalityBuilder ()
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
DeviceLocalityOrBuilder
getLocalityOrBuilder ()
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
long
getMemoryLimit ()
 Memory capacity of device in bytes.
String
getName ()
 Fully specified name of the device within a cluster.
com.google.protobuf.ByteString
getNameBytes ()
 Fully specified name of the device within a cluster.
String
getPhysicalDeviceDesc ()
 String representation of the physical device that this device maps to.
com.google.protobuf.ByteString
getPhysicalDeviceDescBytes ()
 String representation of the physical device that this device maps to.
boolean
hasLocality ()
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
final boolean
DeviceAttributes.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DeviceAttributes.Builder
mergeFrom (com.google.protobuf.Message other)
DeviceAttributes.Builder
mergeLocality ( DeviceLocality value)
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
final DeviceAttributes.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
DeviceAttributes.Builder
setDeviceType (String value)
 String representation of device_type.
DeviceAttributes.Builder
setDeviceTypeBytes (com.google.protobuf.ByteString value)
 String representation of device_type.
DeviceAttributes.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeviceAttributes.Builder
setIncarnation (long value)
 A device is assigned a global unique number each time it is
 initialized.
DeviceAttributes.Builder
setLocality ( DeviceLocality value)
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
DeviceAttributes.Builder
setLocality ( DeviceLocality.Builder builderForValue)
 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
DeviceAttributes.Builder
setMemoryLimit (long value)
 Memory capacity of device in bytes.
DeviceAttributes.Builder
setName (String value)
 Fully specified name of the device within a cluster.
DeviceAttributes.Builder
setNameBytes (com.google.protobuf.ByteString value)
 Fully specified name of the device within a cluster.
DeviceAttributes.Builder
setPhysicalDeviceDesc (String value)
 String representation of the physical device that this device maps to.
DeviceAttributes.Builder
setPhysicalDeviceDescBytes (com.google.protobuf.ByteString value)
 String representation of the physical device that this device maps to.
DeviceAttributes.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final DeviceAttributes.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public DeviceAttributes.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public DeviceAttributes build ()

public DeviceAttributes buildPartial ()

public DeviceAttributes.Builder clearDeviceType ()

 String representation of device_type.
 
string device_type = 2;

public DeviceAttributes.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

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;

public DeviceAttributes.Builder clearLocality ()

 Platform-specific data about device that may be useful
 for supporting efficient data transfers.
 
.tensorflow.DeviceLocality locality = 5;

public DeviceAttributes.Builder clearMemoryLimit ()

 Memory capacity of device in bytes.
 
int64 memory_limit = 4;

public DeviceAttributes.Builder clearName ()

 Fully specified name of the device within a cluster.
 
string name = 1;

public DeviceAttributes.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public DeviceAttributes.Builder clearPhysicalDeviceDesc ()

 String representation of the physical device that this device maps to.
 
string physical_device_desc = 7;

public DeviceAttributes getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public String getDeviceType ()

 String representation of device_type.
 
string device_type = 2;

public com.google.protobuf.ByteString getDeviceTypeBytes ()