Package com.google.protobuf
Enum 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,java.io.Serializable,java.lang.Comparable<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>
- Enclosing class:
- DescriptorProtos.FeatureSet.VisibilityFeature
public static enum DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility extends java.lang.Enum<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> implements Internal.EnumLite
Protobuf enumgoogle.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility.DefaultSymbolVisibilityVerifier
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_SYMBOL_VISIBILITY_UNKNOWNDEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;EXPORT_ALLDefault pre-EDITION_2024, all UNSET visibility are export.EXPORT_TOP_LEVELAll top-level symbols default to export, nested default to local.LOCAL_ALLAll symbols default to local.STRICTAll symbols local by default.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SYMBOL_VISIBILITY_UNKNOWN_VALUEDEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;static intEXPORT_ALL_VALUEDefault pre-EDITION_2024, all UNSET visibility are export.static intEXPORT_TOP_LEVEL_VALUEAll top-level symbols default to export, nested default to local.private static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>internalValueMapstatic intLOCAL_ALL_VALUEAll symbols default to local.static intSTRICT_VALUEAll symbols local by default.private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultSymbolVisibility(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibilityforNumber(int value)intgetNumber()static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility>internalGetValueMap()static Internal.EnumVerifierinternalGetVerifier()static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibilityvalueOf(int value)Deprecated.static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility DEFAULT_SYMBOL_VISIBILITY_UNKNOWN
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
-
EXPORT_ALL
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility EXPORT_ALL
Default pre-EDITION_2024, all UNSET visibility are export.
EXPORT_ALL = 1;
-
EXPORT_TOP_LEVEL
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility EXPORT_TOP_LEVEL
All top-level symbols default to export, nested default to local.
EXPORT_TOP_LEVEL = 2;
-
LOCAL_ALL
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility LOCAL_ALL
All symbols default to local.
LOCAL_ALL = 3;
-
STRICT
public static final DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility 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 Detail
-
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN_VALUE
public static final int DEFAULT_SYMBOL_VISIBILITY_UNKNOWN_VALUE
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;- See Also:
- Constant Field Values
-
EXPORT_ALL_VALUE
public static final int EXPORT_ALL_VALUE
Default pre-EDITION_2024, all UNSET visibility are export.
EXPORT_ALL = 1;- See Also:
- Constant Field Values
-
EXPORT_TOP_LEVEL_VALUE
public static final int EXPORT_TOP_LEVEL_VALUE
All top-level symbols default to export, nested default to local.
EXPORT_TOP_LEVEL = 2;- See Also:
- Constant Field Values
-
LOCAL_ALL_VALUE
public static final int LOCAL_ALL_VALUE
All symbols default to local.
LOCAL_ALL = 3;- See Also:
- Constant Field Values
-
STRICT_VALUE
public static final int STRICT_VALUE
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;- See Also:
- Constant Field Values
-
internalValueMap
private static final Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> internalValueMap
-
value
private final int value
-
-
Method Detail
-
values
public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[] 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 (DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility c : DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility 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 interfaceInternal.EnumLite
-
valueOf
@Deprecated public static DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility 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 DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility forNumber(int value)
-
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.VisibilityFeature.DefaultSymbolVisibility> internalGetValueMap()
-
internalGetVerifier
public static Internal.EnumVerifier internalGetVerifier()
-
-