Enum Class EnvironmentInfo.HostingEnvironment.HostingEnvironmentType
java.lang.Object
java.lang.Enum<EnvironmentInfo.HostingEnvironment.HostingEnvironmentType>
io.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<EnvironmentInfo.HostingEnvironment.HostingEnvironmentType>,Constable
- Enclosing class:
EnvironmentInfo.HostingEnvironment
public static enum EnvironmentInfo.HostingEnvironment.HostingEnvironmentType
extends Enum<EnvironmentInfo.HostingEnvironment.HostingEnvironmentType>
implements com.google.protobuf.ProtocolMessageEnum
What kind of hosting environment we're running in. This list is about what can actually be detected reliably and is unrelated to what SDKs can actually run in.Protobuf enum
temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDetect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`Detect via `AWS_LAMBDA_FUNCTION_NAME`Detect via `WEBSITE_SITE_NAME`Detect via `CONTAINER_APP_NAME`Detect via `FUNCTIONS_EXTENSION_VERSION`Should always be in the list if we're running inside a docker containerDetect via `GAE_SERVICE`Detect via `K_SERVICE`Should always be in the list if we're running inside any k8s environmentShould never actually be set, exists to follow convention of having a default. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDetect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`static final intDetect via `AWS_LAMBDA_FUNCTION_NAME`static final intDetect via `WEBSITE_SITE_NAME`static final intDetect via `CONTAINER_APP_NAME`static final intDetect via `FUNCTIONS_EXTENSION_VERSION`static final intShould always be in the list if we're running inside a docker containerstatic final intDetect via `GAE_SERVICE`static final intDetect via `K_SERVICE`static final intShould always be in the list if we're running inside any k8s environmentstatic final intShould never actually be set, exists to follow convention of having a default. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<EnvironmentInfo.HostingEnvironment.HostingEnvironmentType> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_UNSPECIFIEDShould never actually be set, exists to follow convention of having a default. SDKs should just leave `hosting_environments` empty if none can be determined.
HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED = 0; -
HOSTING_ENVIRONMENT_TYPE_DOCKER
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_DOCKERShould always be in the list if we're running inside a docker container
HOSTING_ENVIRONMENT_TYPE_DOCKER = 1; -
HOSTING_ENVIRONMENT_TYPE_K8S
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_K8SShould always be in the list if we're running inside any k8s environment
HOSTING_ENVIRONMENT_TYPE_K8S = 2; -
HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDADetect via `AWS_LAMBDA_FUNCTION_NAME`
HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA = 3; -
HOSTING_ENVIRONMENT_TYPE_AWS_ECS
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_AWS_ECSDetect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`
HOSTING_ENVIRONMENT_TYPE_AWS_ECS = 4; -
HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUNDetect via `K_SERVICE`
HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN = 6; -
HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINEDetect via `GAE_SERVICE`
HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE = 7; -
HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICEDetect via `WEBSITE_SITE_NAME`
HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE = 8; -
HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONSDetect via `FUNCTIONS_EXTENSION_VERSION`
HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS = 9; -
HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS
public static final EnvironmentInfo.HostingEnvironment.HostingEnvironmentType HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPSDetect via `CONTAINER_APP_NAME`
HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS = 10; -
UNRECOGNIZED
-
-
Field Details
-
HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED_VALUEShould never actually be set, exists to follow convention of having a default. SDKs should just leave `hosting_environments` empty if none can be determined.
HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED = 0;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_DOCKER_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_DOCKER_VALUEShould always be in the list if we're running inside a docker container
HOSTING_ENVIRONMENT_TYPE_DOCKER = 1;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_K8S_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_K8S_VALUEShould always be in the list if we're running inside any k8s environment
HOSTING_ENVIRONMENT_TYPE_K8S = 2;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA_VALUEDetect via `AWS_LAMBDA_FUNCTION_NAME`
HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA = 3;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_AWS_ECS_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_AWS_ECS_VALUEDetect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`
HOSTING_ENVIRONMENT_TYPE_AWS_ECS = 4;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN_VALUEDetect via `K_SERVICE`
HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN = 6;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE_VALUEDetect via `GAE_SERVICE`
HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE = 7;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE_VALUEDetect via `WEBSITE_SITE_NAME`
HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE = 8;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS_VALUEDetect via `FUNCTIONS_EXTENSION_VERSION`
HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS = 9;- See Also:
-
HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS_VALUE
public static final int HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS_VALUEDetect via `CONTAINER_APP_NAME`
HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS = 10;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static EnvironmentInfo.HostingEnvironment.HostingEnvironmentType valueOf(int value) Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
public static com.google.protobuf.Internal.EnumLiteMap<EnvironmentInfo.HostingEnvironment.HostingEnvironmentType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static EnvironmentInfo.HostingEnvironment.HostingEnvironmentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-