Package com.google.api
Enum Class FieldInfo.Format
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<FieldInfo.Format>
,Constable
- Enclosing class:
- FieldInfo
public static enum FieldInfo.Format
extends Enum<FieldInfo.Format>
implements com.google.protobuf.Internal.EnumLite
The standard format of a field value. The supported formats are all backed by either an RFC defined by the IETF or a Google-defined AIP.Protobuf enum
google.api.FieldInfo.Format
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault, unspecified value.Internet Protocol v4 value as defined by [RFC 791](https://datatracker.ietf.org/doc/html/rfc791).An IP address in either v4 or v6 format as described by the individual values defined herein.Internet Protocol v6 value as defined by [RFC 2460](https://datatracker.ietf.org/doc/html/rfc2460).Universally Unique Identifier, version 4, value as defined by https://datatracker.ietf.org/doc/html/rfc4122. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default, unspecified value.static final int
An IP address in either v4 or v6 format as described by the individual values defined herein.static final int
Internet Protocol v4 value as defined by [RFC 791](https://datatracker.ietf.org/doc/html/rfc791).static final int
Internet Protocol v6 value as defined by [RFC 2460](https://datatracker.ietf.org/doc/html/rfc2460).static final int
Universally Unique Identifier, version 4, value as defined by https://datatracker.ietf.org/doc/html/rfc4122. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldInfo.Format
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<FieldInfo.Format>
static com.google.protobuf.Internal.EnumVerifier
static FieldInfo.Format
valueOf
(int value) Deprecated.static FieldInfo.Format
Returns the enum constant of this class with the specified name.static FieldInfo.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORMAT_UNSPECIFIED
Default, unspecified value.
FORMAT_UNSPECIFIED = 0;
-
UUID4
Universally Unique Identifier, version 4, value as defined by https://datatracker.ietf.org/doc/html/rfc4122. The value may be normalized to entirely lowercase letters. For example, the value `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
UUID4 = 1;
-
IPV4
Internet Protocol v4 value as defined by [RFC 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be condensed, with leading zeros in each octet stripped. For example, `001.022.233.040` would be condensed to `1.22.233.40`.
IPV4 = 2;
-
IPV6
Internet Protocol v6 value as defined by [RFC 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be normalized to entirely lowercase letters with zeros compressed, following [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
IPV6 = 3;
-
IPV4_OR_IPV6
An IP address in either v4 or v6 format as described by the individual values defined herein. See the comments on the IPV4 and IPV6 types for allowed normalizations of each.
IPV4_OR_IPV6 = 4;
-
UNRECOGNIZED
-
-
Field Details
-
FORMAT_UNSPECIFIED_VALUE
public static final int FORMAT_UNSPECIFIED_VALUEDefault, unspecified value.
FORMAT_UNSPECIFIED = 0;
- See Also:
-
UUID4_VALUE
public static final int UUID4_VALUEUniversally Unique Identifier, version 4, value as defined by https://datatracker.ietf.org/doc/html/rfc4122. The value may be normalized to entirely lowercase letters. For example, the value `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
UUID4 = 1;
- See Also:
-
IPV4_VALUE
public static final int IPV4_VALUEInternet Protocol v4 value as defined by [RFC 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be condensed, with leading zeros in each octet stripped. For example, `001.022.233.040` would be condensed to `1.22.233.40`.
IPV4 = 2;
- See Also:
-
IPV6_VALUE
public static final int IPV6_VALUEInternet Protocol v6 value as defined by [RFC 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be normalized to entirely lowercase letters with zeros compressed, following [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
IPV6 = 3;
- See Also:
-
IPV4_OR_IPV6_VALUE
public static final int IPV4_OR_IPV6_VALUEAn IP address in either v4 or v6 format as described by the individual values defined herein. See the comments on the IPV4 and IPV6 types for allowed normalizations of each.
IPV4_OR_IPV6 = 4;
- 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
-
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
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-