Class ServiceConfig.WorkerConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServiceConfig.WorkerConfig.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, ServiceConfig.WorkerConfigOrBuilder
- Enclosing class:
ServiceConfig.WorkerConfig
public static final class ServiceConfig.WorkerConfig.Builder
extends GeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
implements ServiceConfig.WorkerConfigOrBuilder
Configuration for a tf.data service WorkerServer. Next id: 14Protobuf type
tensorflow.data.experimental.WorkerConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllWorkerTags(Iterable<String> values) Tags attached to the worker.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addWorkerTags(String value) Tags attached to the worker.addWorkerTagsBytes(ByteString value) Tags attached to the worker.build()clear()Maximum size of the cross-trainer cache in bytes.If `data_transfer_protocol` is set, the address of the data transfer server.If `data_transfer_protocol` is set, the port to which the data transfer server binds.If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server.The address of the dispatcher to register with.How long to retry requests to the dispatcher before giving up and reporting an error.How often the worker should heartbeat to the master.The port for the worker to bind to.The protocol for the worker to use when connecting to the dispatcher.When shutting down a worker, how long to wait for the gRPC server to process the final requests.The maximum size of a distributed snapshot chunk file.The address of the worker server.Tags attached to the worker.clone()longMaximum size of the cross-trainer cache in bytes.If `data_transfer_protocol` is set, the address of the data transfer server.If `data_transfer_protocol` is set, the address of the data transfer server.longIf `data_transfer_protocol` is set, the port to which the data transfer server binds.If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server.If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server.static final Descriptors.DescriptorThe address of the dispatcher to register with.The address of the dispatcher to register with.longHow long to retry requests to the dispatcher before giving up and reporting an error.longHow often the worker should heartbeat to the master.longgetPort()The port for the worker to bind to.The protocol for the worker to use when connecting to the dispatcher.The protocol for the worker to use when connecting to the dispatcher.longWhen shutting down a worker, how long to wait for the gRPC server to process the final requests.longThe maximum size of a distributed snapshot chunk file.The address of the worker server.The address of the worker server.getWorkerTags(int index) Tags attached to the worker.getWorkerTagsBytes(int index) Tags attached to the worker.intTags attached to the worker.Tags attached to the worker.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields(UnknownFieldSet unknownFields) setCrossTrainerCacheSizeBytes(long value) Maximum size of the cross-trainer cache in bytes.setDataTransferAddress(String value) If `data_transfer_protocol` is set, the address of the data transfer server.If `data_transfer_protocol` is set, the address of the data transfer server.setDataTransferPort(long value) If `data_transfer_protocol` is set, the port to which the data transfer server binds.setDataTransferProtocol(String value) If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server.If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server.setDispatcherAddress(String value) The address of the dispatcher to register with.The address of the dispatcher to register with.setDispatcherTimeoutMs(long value) How long to retry requests to the dispatcher before giving up and reporting an error.setField(Descriptors.FieldDescriptor field, Object value) setHeartbeatIntervalMs(long value) How often the worker should heartbeat to the master.setPort(long value) The port for the worker to bind to.setProtocol(String value) The protocol for the worker to use when connecting to the dispatcher.setProtocolBytes(ByteString value) The protocol for the worker to use when connecting to the dispatcher.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setShutdownQuietPeriodMs(long value) When shutting down a worker, how long to wait for the gRPC server to process the final requests.setSnapshotMaxChunkSizeBytes(long value) The maximum size of a distributed snapshot chunk file.setUnknownFields(UnknownFieldSet unknownFields) setWorkerAddress(String value) The address of the worker server.setWorkerAddressBytes(ByteString value) The address of the worker server.setWorkerTags(int index, String value) Tags attached to the worker.Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
setRepeatedField
public ServiceConfig.WorkerConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
addRepeatedField
public ServiceConfig.WorkerConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ServiceConfig.WorkerConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
mergeFrom
public ServiceConfig.WorkerConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ServiceConfig.WorkerConfig.Builder>- Throws:
IOException
-
getPort
public long getPort()The port for the worker to bind to. A value of 0 indicates that the worker may bind to any available port.
int64 port = 1;- Specified by:
getPortin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The port.
-
setPort
The port for the worker to bind to. A value of 0 indicates that the worker may bind to any available port.
int64 port = 1;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
The port for the worker to bind to. A value of 0 indicates that the worker may bind to any available port.
int64 port = 1;- Returns:
- This builder for chaining.
-
getProtocol
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;- Specified by:
getProtocolin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;- Specified by:
getProtocolBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;- Returns:
- This builder for chaining.
-
setProtocolBytes
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getDispatcherAddress
The address of the dispatcher to register with.
string dispatcher_address = 3;- Specified by:
getDispatcherAddressin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The dispatcherAddress.
-
getDispatcherAddressBytes
The address of the dispatcher to register with.
string dispatcher_address = 3;- Specified by:
getDispatcherAddressBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The bytes for dispatcherAddress.
-
setDispatcherAddress
The address of the dispatcher to register with.
string dispatcher_address = 3;- Parameters:
value- The dispatcherAddress to set.- Returns:
- This builder for chaining.
-
clearDispatcherAddress
The address of the dispatcher to register with.
string dispatcher_address = 3;- Returns:
- This builder for chaining.
-
setDispatcherAddressBytes
The address of the dispatcher to register with.
string dispatcher_address = 3;- Parameters:
value- The bytes for dispatcherAddress to set.- Returns:
- This builder for chaining.
-
getWorkerAddress
The address of the worker server. The substring "%port%", if specified, will be replaced with the worker's bound port. This is useful when the port is set to `0`.
string worker_address = 4;- Specified by:
getWorkerAddressin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The workerAddress.
-
getWorkerAddressBytes
The address of the worker server. The substring "%port%", if specified, will be replaced with the worker's bound port. This is useful when the port is set to `0`.
string worker_address = 4;- Specified by:
getWorkerAddressBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The bytes for workerAddress.
-
setWorkerAddress
The address of the worker server. The substring "%port%", if specified, will be replaced with the worker's bound port. This is useful when the port is set to `0`.
string worker_address = 4;- Parameters:
value- The workerAddress to set.- Returns:
- This builder for chaining.
-
clearWorkerAddress
The address of the worker server. The substring "%port%", if specified, will be replaced with the worker's bound port. This is useful when the port is set to `0`.
string worker_address = 4;- Returns:
- This builder for chaining.
-
setWorkerAddressBytes
The address of the worker server. The substring "%port%", if specified, will be replaced with the worker's bound port. This is useful when the port is set to `0`.
string worker_address = 4;- Parameters:
value- The bytes for workerAddress to set.- Returns:
- This builder for chaining.
-
getWorkerTagsList
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Specified by:
getWorkerTagsListin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- A list containing the workerTags.
-
getWorkerTagsCount
public int getWorkerTagsCount()Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Specified by:
getWorkerTagsCountin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The count of workerTags.
-
getWorkerTags
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Specified by:
getWorkerTagsin interfaceServiceConfig.WorkerConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The workerTags at the given index.
-
getWorkerTagsBytes
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Specified by:
getWorkerTagsBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the workerTags at the given index.
-
setWorkerTags
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Parameters:
index- The index to set the value at.value- The workerTags to set.- Returns:
- This builder for chaining.
-
addWorkerTags
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Parameters:
value- The workerTags to add.- Returns:
- This builder for chaining.
-
addAllWorkerTags
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Parameters:
values- The workerTags to add.- Returns:
- This builder for chaining.
-
clearWorkerTags
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Returns:
- This builder for chaining.
-
addWorkerTagsBytes
Tags attached to the worker. This allows reading from selected workers. For example, by applying a "COLOCATED" tag, tf.data service is able to read from the local tf.data worker if one exists, then from off-TF-host workers, to avoid cross-TF-host reads.
repeated string worker_tags = 10;- Parameters:
value- The bytes of the workerTags to add.- Returns:
- This builder for chaining.
-
getHeartbeatIntervalMs
public long getHeartbeatIntervalMs()How often the worker should heartbeat to the master. A value of 0 indicates that the decision should be left up to the runtime.
int64 heartbeat_interval_ms = 5;- Specified by:
getHeartbeatIntervalMsin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The heartbeatIntervalMs.
-
setHeartbeatIntervalMs
How often the worker should heartbeat to the master. A value of 0 indicates that the decision should be left up to the runtime.
int64 heartbeat_interval_ms = 5;- Parameters:
value- The heartbeatIntervalMs to set.- Returns:
- This builder for chaining.
-
clearHeartbeatIntervalMs
How often the worker should heartbeat to the master. A value of 0 indicates that the decision should be left up to the runtime.
int64 heartbeat_interval_ms = 5;- Returns:
- This builder for chaining.
-
getDispatcherTimeoutMs
public long getDispatcherTimeoutMs()How long to retry requests to the dispatcher before giving up and reporting an error. A value of 0 indicates that the decision should be left up to the runtime.
int64 dispatcher_timeout_ms = 6;- Specified by:
getDispatcherTimeoutMsin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The dispatcherTimeoutMs.
-
setDispatcherTimeoutMs
How long to retry requests to the dispatcher before giving up and reporting an error. A value of 0 indicates that the decision should be left up to the runtime.
int64 dispatcher_timeout_ms = 6;- Parameters:
value- The dispatcherTimeoutMs to set.- Returns:
- This builder for chaining.
-
clearDispatcherTimeoutMs
How long to retry requests to the dispatcher before giving up and reporting an error. A value of 0 indicates that the decision should be left up to the runtime.
int64 dispatcher_timeout_ms = 6;- Returns:
- This builder for chaining.
-
getDataTransferProtocol
If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server. If not set, no such server is started, and the trainer can only get data from the regular worker server over `protocol`.string data_transfer_protocol = 7;- Specified by:
getDataTransferProtocolin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The dataTransferProtocol.
-
getDataTransferProtocolBytes
If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server. If not set, no such server is started, and the trainer can only get data from the regular worker server over `protocol`.string data_transfer_protocol = 7;- Specified by:
getDataTransferProtocolBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The bytes for dataTransferProtocol.
-
setDataTransferProtocol
If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server. If not set, no such server is started, and the trainer can only get data from the regular worker server over `protocol`.string data_transfer_protocol = 7;- Parameters:
value- The dataTransferProtocol to set.- Returns:
- This builder for chaining.
-
clearDataTransferProtocol
If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server. If not set, no such server is started, and the trainer can only get data from the regular worker server over `protocol`.string data_transfer_protocol = 7;- Returns:
- This builder for chaining.
-
setDataTransferProtocolBytes
If set, the name of an alternative data transfer protocol for which the worker starts an additional server ("data transfer server"); the trainer can then get data from this server. If not set, no such server is started, and the trainer can only get data from the regular worker server over `protocol`.string data_transfer_protocol = 7;- Parameters:
value- The bytes for dataTransferProtocol to set.- Returns:
- This builder for chaining.
-
getDataTransferPort
public long getDataTransferPort()If `data_transfer_protocol` is set, the port to which the data transfer server binds. If set to `0`, the server binds to any available port.
int64 data_transfer_port = 13;- Specified by:
getDataTransferPortin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The dataTransferPort.
-
setDataTransferPort
If `data_transfer_protocol` is set, the port to which the data transfer server binds. If set to `0`, the server binds to any available port.
int64 data_transfer_port = 13;- Parameters:
value- The dataTransferPort to set.- Returns:
- This builder for chaining.
-
clearDataTransferPort
If `data_transfer_protocol` is set, the port to which the data transfer server binds. If set to `0`, the server binds to any available port.
int64 data_transfer_port = 13;- Returns:
- This builder for chaining.
-
getDataTransferAddress
If `data_transfer_protocol` is set, the address of the data transfer server. The substring "%dts_port%" can be used to represent -- and is replaced with -- the bound port of the data transfer server; this is useful when `data_transfer_port` is set to `0`.
string data_transfer_address = 8;- Specified by:
getDataTransferAddressin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The dataTransferAddress.
-
getDataTransferAddressBytes
If `data_transfer_protocol` is set, the address of the data transfer server. The substring "%dts_port%" can be used to represent -- and is replaced with -- the bound port of the data transfer server; this is useful when `data_transfer_port` is set to `0`.
string data_transfer_address = 8;- Specified by:
getDataTransferAddressBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The bytes for dataTransferAddress.
-
setDataTransferAddress
If `data_transfer_protocol` is set, the address of the data transfer server. The substring "%dts_port%" can be used to represent -- and is replaced with -- the bound port of the data transfer server; this is useful when `data_transfer_port` is set to `0`.
string data_transfer_address = 8;- Parameters:
value- The dataTransferAddress to set.- Returns:
- This builder for chaining.
-
clearDataTransferAddress
If `data_transfer_protocol` is set, the address of the data transfer server. The substring "%dts_port%" can be used to represent -- and is replaced with -- the bound port of the data transfer server; this is useful when `data_transfer_port` is set to `0`.
string data_transfer_address = 8;- Returns:
- This builder for chaining.
-
setDataTransferAddressBytes
If `data_transfer_protocol` is set, the address of the data transfer server. The substring "%dts_port%" can be used to represent -- and is replaced with -- the bound port of the data transfer server; this is useful when `data_transfer_port` is set to `0`.
string data_transfer_address = 8;- Parameters:
value- The bytes for dataTransferAddress to set.- Returns:
- This builder for chaining.
-
getCrossTrainerCacheSizeBytes
public long getCrossTrainerCacheSizeBytes()Maximum size of the cross-trainer cache in bytes. If enabled, make sure your training job provides sufficient memory resources.
int64 cross_trainer_cache_size_bytes = 11;- Specified by:
getCrossTrainerCacheSizeBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The crossTrainerCacheSizeBytes.
-
setCrossTrainerCacheSizeBytes
Maximum size of the cross-trainer cache in bytes. If enabled, make sure your training job provides sufficient memory resources.
int64 cross_trainer_cache_size_bytes = 11;- Parameters:
value- The crossTrainerCacheSizeBytes to set.- Returns:
- This builder for chaining.
-
clearCrossTrainerCacheSizeBytes
Maximum size of the cross-trainer cache in bytes. If enabled, make sure your training job provides sufficient memory resources.
int64 cross_trainer_cache_size_bytes = 11;- Returns:
- This builder for chaining.
-
getSnapshotMaxChunkSizeBytes
public long getSnapshotMaxChunkSizeBytes()The maximum size of a distributed snapshot chunk file. A value of 0 indicates that the decision should be left up to the runtime.
int64 snapshot_max_chunk_size_bytes = 12;- Specified by:
getSnapshotMaxChunkSizeBytesin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The snapshotMaxChunkSizeBytes.
-
setSnapshotMaxChunkSizeBytes
The maximum size of a distributed snapshot chunk file. A value of 0 indicates that the decision should be left up to the runtime.
int64 snapshot_max_chunk_size_bytes = 12;- Parameters:
value- The snapshotMaxChunkSizeBytes to set.- Returns:
- This builder for chaining.
-
clearSnapshotMaxChunkSizeBytes
The maximum size of a distributed snapshot chunk file. A value of 0 indicates that the decision should be left up to the runtime.
int64 snapshot_max_chunk_size_bytes = 12;- Returns:
- This builder for chaining.
-
getShutdownQuietPeriodMs
public long getShutdownQuietPeriodMs()When shutting down a worker, how long to wait for the gRPC server to process the final requests. This is used to achieve clean shutdown in unit tests.
int64 shutdown_quiet_period_ms = 9;- Specified by:
getShutdownQuietPeriodMsin interfaceServiceConfig.WorkerConfigOrBuilder- Returns:
- The shutdownQuietPeriodMs.
-
setShutdownQuietPeriodMs
When shutting down a worker, how long to wait for the gRPC server to process the final requests. This is used to achieve clean shutdown in unit tests.
int64 shutdown_quiet_period_ms = 9;- Parameters:
value- The shutdownQuietPeriodMs to set.- Returns:
- This builder for chaining.
-
clearShutdownQuietPeriodMs
When shutting down a worker, how long to wait for the gRPC server to process the final requests. This is used to achieve clean shutdown in unit tests.
int64 shutdown_quiet_period_ms = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<ServiceConfig.WorkerConfig.Builder>
-