public static enum LogSink.VersionFormat extends java.lang.Enum<LogSink.VersionFormat> implements ProtocolMessageEnum
Available log entry formats. Log entries can be written to Stackdriver Logging in either format and can be exported in either format. Version 2 is the preferred format.Protobuf enum
google.logging.v2.LogSink.VersionFormat
Enum Constant and Description |
---|
UNRECOGNIZED |
V1
`LogEntry` version 1 format.
|
V2
`LogEntry` version 2 format.
|
VERSION_FORMAT_UNSPECIFIED
An unspecified format version that will default to V2.
|
Modifier and Type | Field and Description |
---|---|
static int |
V1_VALUE
`LogEntry` version 1 format.
|
static int |
V2_VALUE
`LogEntry` version 2 format.
|
static int |
VERSION_FORMAT_UNSPECIFIED_VALUE
An unspecified format version that will default to V2.
|
Modifier and Type | Method and Description |
---|---|
static LogSink.VersionFormat |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<LogSink.VersionFormat> |
internalGetValueMap() |
static LogSink.VersionFormat |
valueOf(Descriptors.EnumValueDescriptor desc) |
static LogSink.VersionFormat |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogSink.VersionFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogSink.VersionFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogSink.VersionFormat VERSION_FORMAT_UNSPECIFIED
An unspecified format version that will default to V2.
VERSION_FORMAT_UNSPECIFIED = 0;
public static final LogSink.VersionFormat V2
`LogEntry` version 2 format.
V2 = 1;
public static final LogSink.VersionFormat V1
`LogEntry` version 1 format.
V1 = 2;
public static final LogSink.VersionFormat UNRECOGNIZED
public static final int VERSION_FORMAT_UNSPECIFIED_VALUE
An unspecified format version that will default to V2.
VERSION_FORMAT_UNSPECIFIED = 0;
public static final int V2_VALUE
`LogEntry` version 2 format.
V2 = 1;
public static final int V1_VALUE
`LogEntry` version 1 format.
V1 = 2;
public static LogSink.VersionFormat[] values()
for (LogSink.VersionFormat c : LogSink.VersionFormat.values()) System.out.println(c);
public static LogSink.VersionFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static LogSink.VersionFormat valueOf(int value)
forNumber(int)
instead.public static LogSink.VersionFormat forNumber(int value)
public static Internal.EnumLiteMap<LogSink.VersionFormat> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static LogSink.VersionFormat valueOf(Descriptors.EnumValueDescriptor desc)