Package com.google.protobuf
Enum Class DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
java.lang.Object
java.lang.Enum<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>
com.google.protobuf.DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
- All Implemented Interfaces:
Internal.EnumLite
,Serializable
,Comparable<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>
,Constable
- Enclosing class:
DescriptorProtos.FeatureSet.VisibilityFeature
public static enum DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
extends Enum<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>
implements Internal.EnumLite
Protobuf enum
google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
Default pre-EDITION_2024, all UNSET visibility are export.All top-level symbols default to export, nested default to local.All symbols default to local.All symbols local by default. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
static final int
Default pre-EDITION_2024, all UNSET visibility are export.static final int
All top-level symbols default to export, nested default to local.private static final Internal.EnumLiteMap
<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> static final int
All symbols default to local.static final int
All symbols local by default.private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) final int
static Internal.EnumVerifier
valueOf
(int value) Deprecated.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
-
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility DEFAULT_SYMBOL_VISIBILITY_UNKNOWNDEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
-
EXPORT_ALL
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility EXPORT_ALLDefault pre-EDITION_2024, all UNSET visibility are export.
EXPORT_ALL = 1;
-
EXPORT_TOP_LEVEL
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility EXPORT_TOP_LEVELAll top-level symbols default to export, nested default to local.
EXPORT_TOP_LEVEL = 2;
-
LOCAL_ALL
All symbols default to local.
LOCAL_ALL = 3;
-
STRICT
All symbols local by default. Nested types cannot be exported. With special case caveat for message { enum {} reserved 1 to max; } This is the recommended setting for new protos.
STRICT = 4;
-
-
Field Details
-
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN_VALUE
public static final int DEFAULT_SYMBOL_VISIBILITY_UNKNOWN_VALUEDEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
- See Also:
-
EXPORT_ALL_VALUE
public static final int EXPORT_ALL_VALUEDefault pre-EDITION_2024, all UNSET visibility are export.
EXPORT_ALL = 1;
- See Also:
-
EXPORT_TOP_LEVEL_VALUE
public static final int EXPORT_TOP_LEVEL_VALUEAll top-level symbols default to export, nested default to local.
EXPORT_TOP_LEVEL = 2;
- See Also:
-
LOCAL_ALL_VALUE
public static final int LOCAL_ALL_VALUEAll symbols default to local.
LOCAL_ALL = 3;
- See Also:
-
STRICT_VALUE
public static final int STRICT_VALUEAll symbols local by default. Nested types cannot be exported. With special case caveat for message { enum {} reserved 1 to max; } This is the recommended setting for new protos.
STRICT = 4;
- See Also:
-
internalValueMap
private static final Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> internalValueMap -
value
private final int value
-
-
Constructor Details
-
DefaultSymbolVisibility
private DefaultSymbolVisibility(int value)
-
-
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
public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility valueOf(String name) 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 interfaceInternal.EnumLite
-
valueOf
@Deprecated public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility 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
public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility forNumber(int value) -
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> internalGetValueMap() -
internalGetVerifier
-