Enum DataService.DeploymentMode
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<DataService.DeploymentMode>
- Enclosing class:
DataService
public static enum DataService.DeploymentMode
extends Enum<DataService.DeploymentMode>
implements ProtocolMessageEnum
tf.data service deployment mode.Protobuf enum
tensorflow.data.DeploymentMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiontf.data service workers colocate with TF workers.tf.data service workers run in colocated TF hosts and dedicated tf.data hosts.tf.data service workers run in dedicated tf.data hosts.DEPLOYMENT_MODE_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final inttf.data service workers colocate with TF workers.static final inttf.data service workers run in colocated TF hosts and dedicated tf.data hosts.static final inttf.data service workers run in dedicated tf.data hosts.static final intDEPLOYMENT_MODE_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic DataService.DeploymentModeforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic DataService.DeploymentModevalueOf(int value) Deprecated.static DataService.DeploymentModeReturns the enum constant of this type with the specified name.static DataService.DeploymentModeReturns the enum constant of this type with the specified name.static DataService.DeploymentMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEPLOYMENT_MODE_UNSPECIFIED
DEPLOYMENT_MODE_UNSPECIFIED = 0; -
DEPLOYMENT_MODE_COLOCATED
tf.data service workers colocate with TF workers.
DEPLOYMENT_MODE_COLOCATED = 1; -
DEPLOYMENT_MODE_REMOTE
tf.data service workers run in dedicated tf.data hosts.
DEPLOYMENT_MODE_REMOTE = 2; -
DEPLOYMENT_MODE_HYBRID
tf.data service workers run in colocated TF hosts and dedicated tf.data hosts.
DEPLOYMENT_MODE_HYBRID = 3; -
UNRECOGNIZED
-
-
Field Details
-
DEPLOYMENT_MODE_UNSPECIFIED_VALUE
public static final int DEPLOYMENT_MODE_UNSPECIFIED_VALUEDEPLOYMENT_MODE_UNSPECIFIED = 0;- See Also:
-
DEPLOYMENT_MODE_COLOCATED_VALUE
public static final int DEPLOYMENT_MODE_COLOCATED_VALUEtf.data service workers colocate with TF workers.
DEPLOYMENT_MODE_COLOCATED = 1;- See Also:
-
DEPLOYMENT_MODE_REMOTE_VALUE
public static final int DEPLOYMENT_MODE_REMOTE_VALUEtf.data service workers run in dedicated tf.data hosts.
DEPLOYMENT_MODE_REMOTE = 2;- See Also:
-
DEPLOYMENT_MODE_HYBRID_VALUE
public static final int DEPLOYMENT_MODE_HYBRID_VALUEtf.data service workers run in colocated TF hosts and dedicated tf.data hosts.
DEPLOYMENT_MODE_HYBRID = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-