Package org.platanios.tensorflow.proto
Class ServerDef.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
- org.platanios.tensorflow.proto.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 typeorg.platanios.tensorflow.proto.ServerDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ServerDef
build()
ServerDef
buildPartial()
ServerDef.Builder
clear()
ServerDef.Builder
clearCluster()
The cluster of which this server is a member.ServerDef.Builder
clearClusterDeviceFilters()
Device filters for remote tasks in the cluster.ServerDef.Builder
clearDefaultSessionConfig()
The default configuration for sessions that run on this server.ServerDef.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServerDef.Builder
clearJobName()
The name of the job of which this server is a member.ServerDef.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServerDef.Builder
clearPort()
The server port.ServerDef.Builder
clearProtocol()
The protocol to be used by this server.ServerDef.Builder
clearTaskIndex()
The task index of this server in its job.ServerDef.Builder
clone()
ClusterDef
getCluster()
The cluster of which this server is a member.ClusterDef.Builder
getClusterBuilder()
The cluster of which this server is a member.ClusterDeviceFilters
getClusterDeviceFilters()
Device filters for remote tasks in the cluster.ClusterDeviceFilters.Builder
getClusterDeviceFiltersBuilder()
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.ServerDef
getDefaultInstanceForType()
ConfigProto
getDefaultSessionConfig()
The default configuration for sessions that run on this server.ConfigProto.Builder
getDefaultSessionConfigBuilder()
The default configuration for sessions that run on this server.ConfigProtoOrBuilder
getDefaultSessionConfigOrBuilder()
The default configuration for sessions that run on this server.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.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.java.lang.String
getProtocol()
The protocol to be used by this server.com.google.protobuf.ByteString
getProtocolBytes()
The protocol to be used by this server.int
getTaskIndex()
The task index of this server in its job.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServerDef.Builder
mergeCluster(ClusterDef value)
The cluster of which this server is a member.ServerDef.Builder
mergeClusterDeviceFilters(ClusterDeviceFilters value)
Device filters for remote tasks in the cluster.ServerDef.Builder
mergeDefaultSessionConfig(ConfigProto value)
The default configuration for sessions that run on this server.ServerDef.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServerDef.Builder
mergeFrom(com.google.protobuf.Message other)
ServerDef.Builder
mergeFrom(ServerDef other)
ServerDef.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServerDef.Builder
setCluster(ClusterDef value)
The cluster of which this server is a member.ServerDef.Builder
setCluster(ClusterDef.Builder builderForValue)
The cluster of which this server is a member.ServerDef.Builder
setClusterDeviceFilters(ClusterDeviceFilters value)
Device filters for remote tasks in the cluster.ServerDef.Builder
setClusterDeviceFilters(ClusterDeviceFilters.Builder builderForValue)
Device filters for remote tasks in the cluster.ServerDef.Builder
setDefaultSessionConfig(ConfigProto value)
The default configuration for sessions that run on this server.ServerDef.Builder
setDefaultSessionConfig(ConfigProto.Builder builderForValue)
The default configuration for sessions that run on this server.ServerDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ServerDef.Builder
setJobName(java.lang.String value)
The name of the job of which this server is a member.ServerDef.Builder
setJobNameBytes(com.google.protobuf.ByteString value)
The name of the job of which this server is a member.ServerDef.Builder
setPort(int value)
The server port.ServerDef.Builder
setProtocol(java.lang.String value)
The protocol to be used by this server.ServerDef.Builder
setProtocolBytes(com.google.protobuf.ByteString value)
The protocol to be used by this server.ServerDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ServerDef.Builder
setTaskIndex(int value)
The task index of this server in its job.ServerDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
clear
public ServerDef.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
getDefaultInstanceForType
public ServerDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerDef build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerDef buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerDef.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
clearField
public ServerDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
clearOneof
public ServerDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
mergeFrom
public ServerDef.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerDef.Builder>
-
mergeFrom
public ServerDef.Builder mergeFrom(ServerDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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;
-
getClusterOrBuilder
public ClusterDefOrBuilder getClusterOrBuilder()
The cluster of which this server is a member.
.org.platanios.tensorflow.proto.ClusterDef cluster = 1;
- Specified by:
getClusterOrBuilder
in interfaceServerDefOrBuilder
-
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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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;
-
getDefaultSessionConfigOrBuilder
public ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder()
The default configuration for sessions that run on this server.
.org.platanios.tensorflow.proto.ConfigProto default_session_config = 4;
- Specified by:
getDefaultSessionConfigOrBuilder
in interfaceServerDefOrBuilder
-
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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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 interfaceServerDefOrBuilder
- 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;
-
getClusterDeviceFiltersOrBuilder
public ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder()
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:
getClusterDeviceFiltersOrBuilder
in interfaceServerDefOrBuilder
-
setUnknownFields
public final ServerDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
mergeUnknownFields
public final ServerDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerDef.Builder>
-
-