Class ServerDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.ServerDef
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, ServerDefOrBuilder
Defines the configuration of a single TensorFlow server.Protobuf type
tensorflow.ServerDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefines the configuration of a single TensorFlow server.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe cluster of which this server is a member.Device filters for remote tasks in the cluster.Device filters for remote tasks in the cluster.The cluster of which this server is a member.static ServerDefThe default configuration for sessions that run on this server.The default configuration for sessions that run on this server.static final Descriptors.DescriptorThe name of the job of which this server is a member.The name of the job of which this server is a member.intgetPort()The server port.The protocol to be used by this server.The protocol to be used by this server.intReplica this server manages.intintThe task index of this server in its job.final UnknownFieldSetbooleanThe cluster of which this server is a member.booleanDevice filters for remote tasks in the cluster.booleanThe default configuration for sessions that run on this server.inthashCode()protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ServerDef.Builderstatic ServerDef.BuildernewBuilder(ServerDef prototype) protected ServerDef.Builderprotected Objectstatic ServerDefparseDelimitedFrom(InputStream input) static ServerDefparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static ServerDefparseFrom(byte[] data) static ServerDefparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static ServerDefparseFrom(ByteString data) static ServerDefparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static ServerDefparseFrom(CodedInputStream input) static ServerDefparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static ServerDefparseFrom(InputStream input) static ServerDefparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static ServerDefparseFrom(ByteBuffer data) static ServerDefparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER- See Also:
-
JOB_NAME_FIELD_NUMBER
public static final int JOB_NAME_FIELD_NUMBER- See Also:
-
REPLICA_FIELD_NUMBER
public static final int REPLICA_FIELD_NUMBER- See Also:
-
TASK_INDEX_FIELD_NUMBER
public static final int TASK_INDEX_FIELD_NUMBER- See Also:
-
DEFAULT_SESSION_CONFIG_FIELD_NUMBER
public static final int DEFAULT_SESSION_CONFIG_FIELD_NUMBER- See Also:
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
CLUSTER_DEVICE_FILTERS_FIELD_NUMBER
public static final int CLUSTER_DEVICE_FILTERS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
hasCluster
public boolean hasCluster()The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1;- Specified by:
hasClusterin interfaceServerDefOrBuilder- Returns:
- Whether the cluster field is set.
-
getCluster
The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1;- Specified by:
getClusterin interfaceServerDefOrBuilder- Returns:
- The cluster.
-
getClusterOrBuilder
The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1;- Specified by:
getClusterOrBuilderin interfaceServerDefOrBuilder
-
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:
getJobNamein interfaceServerDefOrBuilder- Returns:
- The jobName.
-
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:
getJobNameBytesin interfaceServerDefOrBuilder- Returns:
- The bytes for jobName.
-
getReplica
public int getReplica()Replica this server manages.
int32 replica = 8;- Specified by:
getReplicain interfaceServerDefOrBuilder- Returns:
- The replica.
-
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:
getTaskIndexin interfaceServerDefOrBuilder- Returns:
- The taskIndex.
-
hasDefaultSessionConfig
public boolean hasDefaultSessionConfig()The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4;- Specified by:
hasDefaultSessionConfigin interfaceServerDefOrBuilder- Returns:
- Whether the defaultSessionConfig field is set.
-
getDefaultSessionConfig
The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4;- Specified by:
getDefaultSessionConfigin interfaceServerDefOrBuilder- Returns:
- The defaultSessionConfig.
-
getDefaultSessionConfigOrBuilder
The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4;- Specified by:
getDefaultSessionConfigOrBuilderin interfaceServerDefOrBuilder
-
getProtocol
The protocol to be used by this server. Acceptable values include: "grpc", "grpc+verbs".
string protocol = 5;- Specified by:
getProtocolin interfaceServerDefOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
The protocol to be used by this server. Acceptable values include: "grpc", "grpc+verbs".
string protocol = 5;- Specified by:
getProtocolBytesin interfaceServerDefOrBuilder- Returns:
- The bytes for protocol.
-
getPort
public int getPort()The server port. If not set, then we identify the port from the job_name.
int32 port = 6;- Specified by:
getPortin interfaceServerDefOrBuilder- Returns:
- The port.
-
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.
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;- Specified by:
hasClusterDeviceFiltersin interfaceServerDefOrBuilder- Returns:
- Whether the clusterDeviceFilters field is set.
-
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;- Specified by:
getClusterDeviceFiltersin interfaceServerDefOrBuilder- Returns:
- The clusterDeviceFilters.
-
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;- Specified by:
getClusterDeviceFiltersOrBuilderin interfaceServerDefOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerDef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerDef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerDef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServerDef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServerDef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServerDef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-