Class ServerDef.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, ServerDefOrBuilder
    Enclosing class:
    ServerDef

    public static final class ServerDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
    implements ServerDefOrBuilder
     Defines the configuration of a single TensorFlow server.
     
    Protobuf type org.platanios.tensorflow.proto.ServerDef
    • 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<ServerDef.Builder>
      • clear

        public ServerDef.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<ServerDef.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<ServerDef.Builder>
      • getDefaultInstanceForType

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

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

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

        public ServerDef.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<ServerDef.Builder>
      • setField

        public ServerDef.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<ServerDef.Builder>
      • clearField

        public ServerDef.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<ServerDef.Builder>
      • clearOneof

        public ServerDef.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<ServerDef.Builder>
      • setRepeatedField

        public ServerDef.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<ServerDef.Builder>
      • addRepeatedField

        public ServerDef.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<ServerDef.Builder>
      • mergeFrom

        public ServerDef.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<ServerDef.Builder>
      • isInitialized

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

        public ServerDef.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<ServerDef.Builder>
        Throws:
        java.io.IOException
      • hasCluster

        public boolean hasCluster()
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
        Specified by:
        hasCluster in interface ServerDefOrBuilder
        Returns:
        Whether the cluster field is set.
      • getCluster

        public ClusterDef getCluster()
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
        Specified by:
        getCluster in interface ServerDefOrBuilder
        Returns:
        The cluster.
      • setCluster

        public ServerDef.Builder setCluster​(ClusterDef value)
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
      • setCluster

        public ServerDef.Builder setCluster​(ClusterDef.Builder builderForValue)
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
      • mergeCluster

        public ServerDef.Builder mergeCluster​(ClusterDef value)
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
      • clearCluster

        public ServerDef.Builder clearCluster()
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
      • getClusterBuilder

        public ClusterDef.Builder getClusterBuilder()
         The cluster of which this server is a member.
         
        .org.platanios.tensorflow.proto.ClusterDef cluster = 1;
      • getJobName

        public java.lang.String getJobName()
         The name of the job of which this server is a member.
         NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
         that matches this name.
         
        string job_name = 2;
        Specified by:
        getJobName in interface ServerDefOrBuilder
        Returns:
        The jobName.
      • getJobNameBytes

        public com.google.protobuf.ByteString getJobNameBytes()
         The name of the job of which this server is a member.
         NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
         that matches this name.
         
        string job_name = 2;
        Specified by:
        getJobNameBytes in interface ServerDefOrBuilder
        Returns:
        The bytes for jobName.
      • setJobName

        public ServerDef.Builder setJobName​(java.lang.String value)
         The name of the job of which this server is a member.
         NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
         that matches this name.
         
        string job_name = 2;
        Parameters:
        value - The jobName to set.
        Returns:
        This builder for chaining.
      • clearJobName

        public ServerDef.Builder clearJobName()
         The name of the job of which this server is a member.
         NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
         that matches this name.
         
        string job_name = 2;
        Returns:
        This builder for chaining.
      • setJobNameBytes

        public ServerDef.Builder setJobNameBytes​(com.google.protobuf.ByteString value)
         The name of the job of which this server is a member.
         NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
         that matches this name.
         
        string job_name = 2;
        Parameters:
        value - The bytes for jobName to set.
        Returns:
        This builder for chaining.
      • getTaskIndex

        public int getTaskIndex()
         The task index of this server in its job.
         NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
         and a mapping in its `tasks` field for this index.
         
        int32 task_index = 3;
        Specified by:
        getTaskIndex in interface ServerDefOrBuilder
        Returns:
        The taskIndex.
      • setTaskIndex

        public ServerDef.Builder setTaskIndex​(int value)
         The task index of this server in its job.
         NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
         and a mapping in its `tasks` field for this index.
         
        int32 task_index = 3;
        Parameters:
        value - The taskIndex to set.
        Returns:
        This builder for chaining.
      • clearTaskIndex

        public ServerDef.Builder clearTaskIndex()
         The task index of this server in its job.
         NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
         and a mapping in its `tasks` field for this index.
         
        int32 task_index = 3;
        Returns:
        This builder for chaining.
      • hasDefaultSessionConfig

        public boolean hasDefaultSessionConfig()
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
        Specified by:
        hasDefaultSessionConfig in interface ServerDefOrBuilder
        Returns:
        Whether the defaultSessionConfig field is set.
      • getDefaultSessionConfig

        public ConfigProto getDefaultSessionConfig()
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
        Specified by:
        getDefaultSessionConfig in interface ServerDefOrBuilder
        Returns:
        The defaultSessionConfig.
      • setDefaultSessionConfig

        public ServerDef.Builder setDefaultSessionConfig​(ConfigProto value)
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
      • setDefaultSessionConfig

        public ServerDef.Builder setDefaultSessionConfig​(ConfigProto.Builder builderForValue)
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
      • mergeDefaultSessionConfig

        public ServerDef.Builder mergeDefaultSessionConfig​(ConfigProto value)
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
      • clearDefaultSessionConfig

        public ServerDef.Builder clearDefaultSessionConfig()
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
      • getDefaultSessionConfigBuilder

        public ConfigProto.Builder getDefaultSessionConfigBuilder()
         The default configuration for sessions that run on this server.
         
        .org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
      • getProtocol

        public java.lang.String getProtocol()
         The protocol to be used by this server.
         Acceptable values include: "grpc", "grpc+verbs".
         
        string protocol = 5;
        Specified by:
        getProtocol in interface ServerDefOrBuilder
        Returns:
        The protocol.
      • getProtocolBytes

        public com.google.protobuf.ByteString getProtocolBytes()
         The protocol to be used by this server.
         Acceptable values include: "grpc", "grpc+verbs".
         
        string protocol = 5;
        Specified by:
        getProtocolBytes in interface ServerDefOrBuilder
        Returns:
        The bytes for protocol.
      • setProtocol

        public ServerDef.Builder setProtocol​(java.lang.String value)
         The protocol to be used by this server.
         Acceptable values include: "grpc", "grpc+verbs".
         
        string protocol = 5;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public ServerDef.Builder clearProtocol()
         The protocol to be used by this server.
         Acceptable values include: "grpc", "grpc+verbs".
         
        string protocol = 5;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public ServerDef.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
         The protocol to be used by this server.
         Acceptable values include: "grpc", "grpc+verbs".
         
        string protocol = 5;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • getPort

        public int getPort()
         The server port. If not set, then we identify the port from the job_name.
         
        int32 port = 6;
        Specified by:
        getPort in interface ServerDefOrBuilder
        Returns:
        The port.
      • setPort

        public ServerDef.Builder setPort​(int value)
         The server port. If not set, then we identify the port from the job_name.
         
        int32 port = 6;
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • clearPort

        public ServerDef.Builder clearPort()
         The server port. If not set, then we identify the port from the job_name.
         
        int32 port = 6;
        Returns:
        This builder for chaining.
      • hasClusterDeviceFilters

        public boolean hasClusterDeviceFilters()
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
        Specified by:
        hasClusterDeviceFilters in interface ServerDefOrBuilder
        Returns:
        Whether the clusterDeviceFilters field is set.
      • getClusterDeviceFilters

        public ClusterDeviceFilters getClusterDeviceFilters()
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
        Specified by:
        getClusterDeviceFilters in interface ServerDefOrBuilder
        Returns:
        The clusterDeviceFilters.
      • setClusterDeviceFilters

        public ServerDef.Builder setClusterDeviceFilters​(ClusterDeviceFilters value)
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
      • setClusterDeviceFilters

        public ServerDef.Builder setClusterDeviceFilters​(ClusterDeviceFilters.Builder builderForValue)
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
      • mergeClusterDeviceFilters

        public ServerDef.Builder mergeClusterDeviceFilters​(ClusterDeviceFilters value)
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
      • clearClusterDeviceFilters

        public ServerDef.Builder clearClusterDeviceFilters()
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
      • getClusterDeviceFiltersBuilder

        public ClusterDeviceFilters.Builder getClusterDeviceFiltersBuilder()
         Device filters for remote tasks in the cluster.
         NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
         
        .org.platanios.tensorflow.proto.ClusterDeviceFilters cluster_device_filters = 7;
      • setUnknownFields

        public final ServerDef.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<ServerDef.Builder>
      • mergeUnknownFields

        public final ServerDef.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<ServerDef.Builder>