public static enum LogMetric.ApiVersion extends Enum<LogMetric.ApiVersion> implements com.google.protobuf.ProtocolMessageEnum
Logging API version.Protobuf enum
google.logging.v2.LogMetric.ApiVersion
Enum Constant and Description |
---|
UNRECOGNIZED |
V1
Logging API v1.
|
V2
Logging API v2.
|
Modifier and Type | Field and Description |
---|---|
static int |
V1_VALUE
Logging API v1.
|
static int |
V2_VALUE
Logging API v2.
|
Modifier and Type | Method and Description |
---|---|
static LogMetric.ApiVersion |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LogMetric.ApiVersion> |
internalGetValueMap() |
static LogMetric.ApiVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LogMetric.ApiVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogMetric.ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogMetric.ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogMetric.ApiVersion V2
Logging API v2.
V2 = 0;
public static final LogMetric.ApiVersion V1
Logging API v1.
V1 = 1;
public static final LogMetric.ApiVersion UNRECOGNIZED
public static final int V2_VALUE
Logging API v2.
V2 = 0;
public static final int V1_VALUE
Logging API v1.
V1 = 1;
public static LogMetric.ApiVersion[] values()
for (LogMetric.ApiVersion c : LogMetric.ApiVersion.values()) System.out.println(c);
public static LogMetric.ApiVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static LogMetric.ApiVersion valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LogMetric.ApiVersion forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LogMetric.ApiVersion> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LogMetric.ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.