Package dev.sigstore.proto.trustroot.v1
Enum Class ServiceSelector
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ServiceSelector>
,Constable
public enum ServiceSelector
extends Enum<ServiceSelector>
implements com.google.protobuf.ProtocolMessageEnum
ServiceSelector specifies how a client SHOULD select a set of Services to connect to. A client SHOULD throw an error if the value is SERVICE_SELECTOR_UNDEFINED.Protobuf enum
dev.sigstore.trustroot.v1.ServiceSelector
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClients SHOULD select all Services based on supported API version and validity window.Clients SHOULD select one Service based on supported API version and validity window.Clients SHOULD select a specific number of Services based on supported API version and validity window, using the provided `count`.SERVICE_SELECTOR_UNDEFINED = 0;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Clients SHOULD select all Services based on supported API version and validity window.static final int
Clients SHOULD select one Service based on supported API version and validity window.static final int
Clients SHOULD select a specific number of Services based on supported API version and validity window, using the provided `count`.static final int
SERVICE_SELECTOR_UNDEFINED = 0;
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceSelector
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<ServiceSelector>
static ServiceSelector
valueOf
(int value) Deprecated.static ServiceSelector
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static ServiceSelector
Returns the enum constant of this class with the specified name.static ServiceSelector[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SERVICE_SELECTOR_UNDEFINED
SERVICE_SELECTOR_UNDEFINED = 0;
-
ALL
Clients SHOULD select all Services based on supported API version and validity window.
ALL = 1;
-
ANY
Clients SHOULD select one Service based on supported API version and validity window. It is up to the client implementation to decide how to select the Service, e.g. random or round-robin.
ANY = 2;
-
EXACT
Clients SHOULD select a specific number of Services based on supported API version and validity window, using the provided `count`. It is up to the client implementation to decide how to select the Service, e.g. random or round-robin.
EXACT = 3;
-
UNRECOGNIZED
-
-
Field Details
-
SERVICE_SELECTOR_UNDEFINED_VALUE
public static final int SERVICE_SELECTOR_UNDEFINED_VALUESERVICE_SELECTOR_UNDEFINED = 0;
- See Also:
-
ALL_VALUE
public static final int ALL_VALUEClients SHOULD select all Services based on supported API version and validity window.
ALL = 1;
- See Also:
-
ANY_VALUE
public static final int ANY_VALUEClients SHOULD select one Service based on supported API version and validity window. It is up to the client implementation to decide how to select the Service, e.g. random or round-robin.
ANY = 2;
- See Also:
-
EXACT_VALUE
public static final int EXACT_VALUEClients SHOULD select a specific number of Services based on supported API version and validity window, using the provided `count`. It is up to the client implementation to decide how to select the Service, e.g. random or round-robin.
EXACT = 3;
- 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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
-