public static final class DeviceAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder> implements DeviceAttributesOrBuilder
tensorflow.DeviceAttributes| Modifier and Type | Method and Description |
|---|---|
DeviceAttributes.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DeviceAttributes |
build() |
DeviceAttributes |
buildPartial() |
DeviceAttributes.Builder |
clear() |
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 |
clone() |
DeviceAttributes |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DeviceAttributes.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DeviceAttributes.Builder |
mergeFrom(DeviceAttributes other) |
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.
|
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.Builder builderForValue)
Platform-specific data about device that may be useful
for supporting efficient data transfers.
|
DeviceAttributes.Builder |
setLocality(DeviceLocality value)
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) |
DeviceAttributes.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DeviceAttributes build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DeviceAttributes buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DeviceAttributes.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder mergeFrom(DeviceAttributes other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public DeviceAttributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceAttributes.Builder>IOExceptionpublic String getName()
Fully specified name of the device within a cluster.
string name = 1;getName in interface DeviceAttributesOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Fully specified name of the device within a cluster.
string name = 1;getNameBytes in interface DeviceAttributesOrBuilderpublic DeviceAttributes.Builder setName(String value)
Fully specified name of the device within a cluster.
string name = 1;public DeviceAttributes.Builder clearName()
Fully specified name of the device within a cluster.
string name = 1;public DeviceAttributes.Builder setNameBytes(com.google.protobuf.ByteString value)
Fully specified name of the device within a cluster.
string name = 1;public String getDeviceType()
String representation of device_type.
string device_type = 2;getDeviceType in interface DeviceAttributesOrBuilderpublic com.google.protobuf.ByteString getDeviceTypeBytes()
String representation of device_type.
string device_type = 2;getDeviceTypeBytes in interface DeviceAttributesOrBuilderpublic DeviceAttributes.Builder setDeviceType(String value)
String representation of device_type.
string device_type = 2;public DeviceAttributes.Builder clearDeviceType()
String representation of device_type.
string device_type = 2;public DeviceAttributes.Builder setDeviceTypeBytes(com.google.protobuf.ByteString value)
String representation of device_type.
string device_type = 2;public long getMemoryLimit()
Memory capacity of device in bytes.
int64 memory_limit = 4;getMemoryLimit in interface DeviceAttributesOrBuilderpublic DeviceAttributes.Builder setMemoryLimit(long value)
Memory capacity of device in bytes.
int64 memory_limit = 4;public DeviceAttributes.Builder clearMemoryLimit()
Memory capacity of device in bytes.
int64 memory_limit = 4;public boolean hasLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;hasLocality in interface DeviceAttributesOrBuilderpublic DeviceLocality getLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;getLocality in interface DeviceAttributesOrBuilderpublic DeviceAttributes.Builder setLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;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;public DeviceAttributes.Builder mergeLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;public DeviceAttributes.Builder clearLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;public DeviceLocality.Builder getLocalityBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;public DeviceLocalityOrBuilder getLocalityOrBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;getLocalityOrBuilder in interface DeviceAttributesOrBuilderpublic long getIncarnation()
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;getIncarnation in interface DeviceAttributesOrBuilderpublic 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;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 String getPhysicalDeviceDesc()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;getPhysicalDeviceDesc in interface DeviceAttributesOrBuilderpublic com.google.protobuf.ByteString getPhysicalDeviceDescBytes()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;getPhysicalDeviceDescBytes in interface DeviceAttributesOrBuilderpublic DeviceAttributes.Builder setPhysicalDeviceDesc(String value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;public DeviceAttributes.Builder clearPhysicalDeviceDesc()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;public DeviceAttributes.Builder setPhysicalDeviceDescBytes(com.google.protobuf.ByteString value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;public final DeviceAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>public final DeviceAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>Copyright © 2015–2019. All rights reserved.