Class ServerDef.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, ServerDefOrBuilder
    Enclosing class:
    ServerDef

    public static final class ServerDef.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
    implements ServerDefOrBuilder
     Defines the configuration of a single TensorFlow server.
     
    Protobuf type tensorflow.ServerDef
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • clear

        public ServerDef.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • getDefaultInstanceForType

        public ServerDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public ServerDef build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public ServerDef buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public ServerDef.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • setField

        public ServerDef.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • clearField

        public ServerDef.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • clearOneof

        public ServerDef.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • setRepeatedField

        public ServerDef.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • addRepeatedField

        public ServerDef.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • mergeFrom

        public ServerDef.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ServerDef.Builder>
      • isInitialized

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

        public ServerDef.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                           org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ServerDef.Builder>
        Throws:
        IOException
      • hasCluster

        public boolean hasCluster()
         The cluster of which this server is a member.
         
        .tensorflow.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.
         
        .tensorflow.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.
         
        .tensorflow.ClusterDef cluster = 1;
      • mergeCluster

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

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

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

        public 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 org.nd4j.shade.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​(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​(org.nd4j.shade.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.
         
        .tensorflow.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.
         
        .tensorflow.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.
         
        .tensorflow.ConfigProto default_session_config = 4;
      • setDefaultSessionConfig

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

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

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

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

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

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

        public ServerDef.Builder setProtocol​(String value)
         The protocol to be used by this server.
         Acceptable values include: "grpc".
         
        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".
         
        string protocol = 5;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public ServerDef.Builder setProtocolBytes​(org.nd4j.shade.protobuf.ByteString value)
         The protocol to be used by this server.
         Acceptable values include: "grpc".
         
        string protocol = 5;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ServerDef.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
      • mergeUnknownFields

        public final ServerDef.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>