Enum Class StardocOutputProtos.FunctionParamRole
java.lang.Object
java.lang.Enum<StardocOutputProtos.FunctionParamRole>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StardocOutputProtos.FunctionParamRole>,Constable
- Enclosing class:
- StardocOutputProtos
public static enum StardocOutputProtos.FunctionParamRole
extends Enum<StardocOutputProtos.FunctionParamRole>
implements com.google.protobuf.ProtocolMessageEnum
Representation of the syntactic role of a given function parameter.Protobuf enum
stardoc_output.FunctionParamRole-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA keyword-only parameter, i.e.Residual keyword arguments, typically `**kwargs` in the function's declaration.An ordinary parameter which may be used as a positional or by keyword.A positional-only parameter; such parameters cannot be defined in pure Starlark code, but exist in some natively-defined functions.PARAM_ROLE_UNSPECIFIED = 0;Residual varargs, typically `*args` in the function's declaration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA keyword-only parameter, i.e.static final intResidual keyword arguments, typically `**kwargs` in the function's declaration.static final intAn ordinary parameter which may be used as a positional or by keyword.static final intA positional-only parameter; such parameters cannot be defined in pure Starlark code, but exist in some natively-defined functions.static final intPARAM_ROLE_UNSPECIFIED = 0;static final intResidual varargs, typically `*args` in the function's declaration. -
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<StardocOutputProtos.FunctionParamRole>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
-
PARAM_ROLE_UNSPECIFIED
PARAM_ROLE_UNSPECIFIED = 0; -
PARAM_ROLE_ORDINARY
An ordinary parameter which may be used as a positional or by keyword.
PARAM_ROLE_ORDINARY = 1; -
PARAM_ROLE_POSITIONAL_ONLY
A positional-only parameter; such parameters cannot be defined in pure Starlark code, but exist in some natively-defined functions.
PARAM_ROLE_POSITIONAL_ONLY = 2; -
PARAM_ROLE_KEYWORD_ONLY
A keyword-only parameter, i.e. a non-vararg/kwarg parameter that follows `*` or `*args` in the function's declaration.
PARAM_ROLE_KEYWORD_ONLY = 3; -
PARAM_ROLE_VARARGS
Residual varargs, typically `*args` in the function's declaration.
PARAM_ROLE_VARARGS = 4; -
PARAM_ROLE_KWARGS
Residual keyword arguments, typically `**kwargs` in the function's declaration.
PARAM_ROLE_KWARGS = 5; -
UNRECOGNIZED
-
-
Field Details
-
PARAM_ROLE_UNSPECIFIED_VALUE
public static final int PARAM_ROLE_UNSPECIFIED_VALUEPARAM_ROLE_UNSPECIFIED = 0;- See Also:
-
PARAM_ROLE_ORDINARY_VALUE
public static final int PARAM_ROLE_ORDINARY_VALUEAn ordinary parameter which may be used as a positional or by keyword.
PARAM_ROLE_ORDINARY = 1;- See Also:
-
PARAM_ROLE_POSITIONAL_ONLY_VALUE
public static final int PARAM_ROLE_POSITIONAL_ONLY_VALUEA positional-only parameter; such parameters cannot be defined in pure Starlark code, but exist in some natively-defined functions.
PARAM_ROLE_POSITIONAL_ONLY = 2;- See Also:
-
PARAM_ROLE_KEYWORD_ONLY_VALUE
public static final int PARAM_ROLE_KEYWORD_ONLY_VALUEA keyword-only parameter, i.e. a non-vararg/kwarg parameter that follows `*` or `*args` in the function's declaration.
PARAM_ROLE_KEYWORD_ONLY = 3;- See Also:
-
PARAM_ROLE_VARARGS_VALUE
public static final int PARAM_ROLE_VARARGS_VALUEResidual varargs, typically `*args` in the function's declaration.
PARAM_ROLE_VARARGS = 4;- See Also:
-
PARAM_ROLE_KWARGS_VALUE
public static final int PARAM_ROLE_KWARGS_VALUEResidual keyword arguments, typically `**kwargs` in the function's declaration.
PARAM_ROLE_KWARGS = 5;- 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.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<StardocOutputProtos.FunctionParamRole> 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 StardocOutputProtos.FunctionParamRole 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
-