ServerDef

public final class ServerDef

 Defines the configuration of a single TensorFlow server.
 
Protobuf type tensorflow.ServerDef

Nested Classes

class ServerDef.Builder
 Defines the configuration of a single TensorFlow server. 

Constants

int CLUSTER_DEVICE_FILTERS_FIELD_NUMBER
int CLUSTER_FIELD_NUMBER
int DEFAULT_SESSION_CONFIG_FIELD_NUMBER
int JOB_NAME_FIELD_NUMBER
int PORT_FIELD_NUMBER
int PROTOCOL_FIELD_NUMBER
int TASK_INDEX_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
ClusterDef
getCluster()
 The cluster of which this server is a member.
ClusterDeviceFilters
getClusterDeviceFilters()
 Device filters for remote tasks in the cluster.
ClusterDeviceFiltersOrBuilder
getClusterDeviceFiltersOrBuilder()
 Device filters for remote tasks in the cluster.
ClusterDefOrBuilder
getClusterOrBuilder()
 The cluster of which this server is a member.
static ServerDef
ServerDef
ConfigProto
getDefaultSessionConfig()
 The default configuration for sessions that run on this server.
ConfigProtoOrBuilder
getDefaultSessionConfigOrBuilder()
 The default configuration for sessions that run on this server.
final static com.google.protobuf.Descriptors.Descriptor
String
getJobName()
 The name of the job of which this server is a member.
com.google.protobuf.ByteString
getJobNameBytes()
 The name of the job of which this server is a member.
int
getPort()
 The server port.
String
getProtocol()
 The protocol to be used by this server.
com.google.protobuf.ByteString
getProtocolBytes()
 The protocol to be used by this server.
int
int
getTaskIndex()
 The task index of this server in its job.
final com.google.protobuf.UnknownFieldSet
boolean
hasCluster()
 The cluster of which this server is a member.
boolean
hasClusterDeviceFilters()
 Device filters for remote tasks in the cluster.
boolean
hasDefaultSessionConfig()
 The default configuration for sessions that run on this server.
int
final boolean
static ServerDef.Builder
newBuilder(ServerDef prototype)
static ServerDef.Builder
ServerDef.Builder
static ServerDef
parseDelimitedFrom(InputStream input)
static ServerDef
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServerDef
parseFrom(ByteBuffer data)
static ServerDef
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServerDef
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServerDef
parseFrom(com.google.protobuf.CodedInputStream input)
static ServerDef
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServerDef
parseFrom(com.google.protobuf.ByteString data)
static ServerDef
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServerDef
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
ServerDef.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int CLUSTER_DEVICE_FILTERS_FIELD_NUMBER

Constant Value: 7

public static final int CLUSTER_FIELD_NUMBER

Constant Value: 1

public static final int DEFAULT_SESSION_CONFIG_FIELD_NUMBER

Constant Value: 4

public static final int JOB_NAME_FIELD_NUMBER

Constant Value: 2

public static final int PORT_FIELD_NUMBER

Constant Value: 6

public static final int PROTOCOL_FIELD_NUMBER

Constant Value: 5

public static final int TASK_INDEX_FIELD_NUMBER

Constant Value: 3

Public Methods

public boolean equals (Object obj)

public ClusterDef getCluster ()

 The cluster of which this server is a member.
 
.tensorflow.ClusterDef cluster = 1;

public ClusterDeviceFilters getClusterDeviceFilters ()

 Device filters for remote tasks in the cluster.
 NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
 
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;

public ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder ()

 Device filters for remote tasks in the cluster.
 NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
 
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;

public ClusterDefOrBuilder getClusterOrBuilder ()

 The cluster of which this server is a member.
 
.tensorflow.ClusterDef cluster = 1;

public static ServerDef getDefaultInstance ()

public ServerDef getDefaultInstanceForType ()

public ConfigProto getDefaultSessionConfig ()

 The default configuration for sessions that run on this server.
 
.tensorflow.ConfigProto default_session_config = 4;

public ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder ()

 The default configuration for sessions that run on this server.
 
.tensorflow.ConfigProto default_session_config = 4;

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

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;

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;

public getParserForType ()

public int getPort ()

 The server port. If not set, then we identify the port from the job_name.
 
int32 port = 6;

public String getProtocol ()

 The protocol to be used by this server.
 Acceptable values include: "grpc", "grpc+verbs".
 
string protocol = 5;

public com.google.protobuf.ByteString getProtocolBytes ()

 The protocol to be used by this server.
 Acceptable values include: "grpc", "grpc+verbs".
 
string protocol = 5;

public int getSerializedSize ()

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;

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public boolean hasCluster ()

 The cluster of which this server is a member.
 
.tensorflow.ClusterDef cluster = 1;

public boolean hasClusterDeviceFilters ()

 Device filters for remote tasks in the cluster.
 NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
 
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;

public boolean hasDefaultSessionConfig ()

 The default configuration for sessions that run on this server.
 
.tensorflow.ConfigProto default_session_config = 4;

public int hashCode ()

public final boolean isInitialized ()

public static ServerDef.Builder newBuilder (ServerDef prototype)

public static ServerDef.Builder newBuilder ()

public ServerDef.Builder newBuilderForType ()

public static ServerDef parseDelimitedFrom (InputStream input)

Throws
IOException

public static ServerDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ServerDef parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static ServerDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ServerDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ServerDef parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static ServerDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ServerDef parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static ServerDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ServerDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public ServerDef.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException