Class DeviceAttributes.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, DeviceAttributesOrBuilder
    Enclosing class:
    DeviceAttributes

    public static final class DeviceAttributes.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
    implements DeviceAttributesOrBuilder
    Protobuf type org.platanios.tensorflow.proto.DeviceAttributes
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • clear

        public DeviceAttributes.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • getDefaultInstanceForType

        public DeviceAttributes getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DeviceAttributes build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DeviceAttributes buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DeviceAttributes.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • setField

        public DeviceAttributes.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • clearField

        public DeviceAttributes.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • clearOneof

        public DeviceAttributes.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • setRepeatedField

        public DeviceAttributes.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • addRepeatedField

        public DeviceAttributes.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • mergeFrom

        public DeviceAttributes.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceAttributes.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • mergeFrom

        public DeviceAttributes.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceAttributes.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         Fully specified name of the device within a cluster.
         
        string name = 1;
        Specified by:
        getName in interface DeviceAttributesOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Fully specified name of the device within a cluster.
         
        string name = 1;
        Specified by:
        getNameBytes in interface DeviceAttributesOrBuilder
        Returns:
        The bytes for name.
      • setName

        public DeviceAttributes.Builder setName​(java.lang.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​(com.google.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 java.lang.String getDeviceType()
         String representation of device_type.
         
        string device_type = 2;
        Specified by:
        getDeviceType in interface DeviceAttributesOrBuilder
        Returns:
        The deviceType.
      • getDeviceTypeBytes

        public com.google.protobuf.ByteString getDeviceTypeBytes()
         String representation of device_type.
         
        string device_type = 2;
        Specified by:
        getDeviceTypeBytes in interface DeviceAttributesOrBuilder
        Returns:
        The bytes for deviceType.
      • setDeviceType

        public DeviceAttributes.Builder setDeviceType​(java.lang.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​(com.google.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:
        getMemoryLimit in interface DeviceAttributesOrBuilder
        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.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
        Specified by:
        hasLocality in interface DeviceAttributesOrBuilder
        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.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
        Specified by:
        getLocality in interface DeviceAttributesOrBuilder
        Returns:
        The locality.
      • setLocality

        public DeviceAttributes.Builder setLocality​(DeviceLocality value)
         Platform-specific data about device that may be useful
         for supporting efficient data transfers.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
      • mergeLocality

        public DeviceAttributes.Builder mergeLocality​(DeviceLocality value)
         Platform-specific data about device that may be useful
         for supporting efficient data transfers.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
      • clearLocality

        public DeviceAttributes.Builder clearLocality()
         Platform-specific data about device that may be useful
         for supporting efficient data transfers.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
      • getLocalityBuilder

        public DeviceLocality.Builder getLocalityBuilder()
         Platform-specific data about device that may be useful
         for supporting efficient data transfers.
         
        .org.platanios.tensorflow.proto.DeviceLocality locality = 5;
      • 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:
        getIncarnation in interface DeviceAttributesOrBuilder
        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 java.lang.String getPhysicalDeviceDesc()
         String representation of the physical device that this device maps to.
         
        string physical_device_desc = 7;
        Specified by:
        getPhysicalDeviceDesc in interface DeviceAttributesOrBuilder
        Returns:
        The physicalDeviceDesc.
      • getPhysicalDeviceDescBytes

        public com.google.protobuf.ByteString getPhysicalDeviceDescBytes()
         String representation of the physical device that this device maps to.
         
        string physical_device_desc = 7;
        Specified by:
        getPhysicalDeviceDescBytes in interface DeviceAttributesOrBuilder
        Returns:
        The bytes for physicalDeviceDesc.
      • setPhysicalDeviceDesc

        public DeviceAttributes.Builder setPhysicalDeviceDesc​(java.lang.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​(com.google.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​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>
      • mergeUnknownFields

        public final DeviceAttributes.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceAttributes.Builder>