Package io.temporal.api.enums.v1
Enum RateLimitSource
- java.lang.Object
-
- java.lang.Enum<RateLimitSource>
-
- io.temporal.api.enums.v1.RateLimitSource
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<RateLimitSource>
@Generated(value="protoc", comments="annotations:RateLimitSource.java.pb.meta") public enum RateLimitSource extends java.lang.Enum<RateLimitSource> implements com.google.protobuf.ProtocolMessageEnumSource for the effective rate limit.
Protobuf enumtemporal.api.enums.v1.RateLimitSource
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RATE_LIMIT_SOURCE_APIThe value was set by the API.RATE_LIMIT_SOURCE_SYSTEMThe value was set as the system default.RATE_LIMIT_SOURCE_UNSPECIFIEDRATE_LIMIT_SOURCE_UNSPECIFIED = 0;RATE_LIMIT_SOURCE_WORKERThe value was set by a worker.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intRATE_LIMIT_SOURCE_API_VALUEThe value was set by the API.static intRATE_LIMIT_SOURCE_SYSTEM_VALUEThe value was set as the system default.static intRATE_LIMIT_SOURCE_UNSPECIFIED_VALUERATE_LIMIT_SOURCE_UNSPECIFIED = 0;static intRATE_LIMIT_SOURCE_WORKER_VALUEThe value was set by a worker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RateLimitSourceforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<RateLimitSource>internalGetValueMap()static RateLimitSourcevalueOf(int value)Deprecated.static RateLimitSourcevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static RateLimitSourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RateLimitSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RATE_LIMIT_SOURCE_UNSPECIFIED
public static final RateLimitSource RATE_LIMIT_SOURCE_UNSPECIFIED
RATE_LIMIT_SOURCE_UNSPECIFIED = 0;
-
RATE_LIMIT_SOURCE_API
public static final RateLimitSource RATE_LIMIT_SOURCE_API
The value was set by the API.
RATE_LIMIT_SOURCE_API = 1;
-
RATE_LIMIT_SOURCE_WORKER
public static final RateLimitSource RATE_LIMIT_SOURCE_WORKER
The value was set by a worker.
RATE_LIMIT_SOURCE_WORKER = 2;
-
RATE_LIMIT_SOURCE_SYSTEM
public static final RateLimitSource RATE_LIMIT_SOURCE_SYSTEM
The value was set as the system default.
RATE_LIMIT_SOURCE_SYSTEM = 3;
-
UNRECOGNIZED
public static final RateLimitSource UNRECOGNIZED
-
-
Field Detail
-
RATE_LIMIT_SOURCE_UNSPECIFIED_VALUE
public static final int RATE_LIMIT_SOURCE_UNSPECIFIED_VALUE
RATE_LIMIT_SOURCE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
RATE_LIMIT_SOURCE_API_VALUE
public static final int RATE_LIMIT_SOURCE_API_VALUE
The value was set by the API.
RATE_LIMIT_SOURCE_API = 1;- See Also:
- Constant Field Values
-
RATE_LIMIT_SOURCE_WORKER_VALUE
public static final int RATE_LIMIT_SOURCE_WORKER_VALUE
The value was set by a worker.
RATE_LIMIT_SOURCE_WORKER = 2;- See Also:
- Constant Field Values
-
RATE_LIMIT_SOURCE_SYSTEM_VALUE
public static final int RATE_LIMIT_SOURCE_SYSTEM_VALUE
The value was set as the system default.
RATE_LIMIT_SOURCE_SYSTEM = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RateLimitSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RateLimitSource c : RateLimitSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RateLimitSource valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 RateLimitSource valueOf(int value)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static RateLimitSource forNumber(int value)
- 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<RateLimitSource> 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 RateLimitSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-