public static enum LogsPolicy.Destination extends Enum<LogsPolicy.Destination> implements com.google.protobuf.ProtocolMessageEnum
The destination (if any) for logs.Protobuf enum
google.cloud.batch.v1.LogsPolicy.Destination| Enum Constant and Description |
|---|
CLOUD_LOGGING
Logs are streamed to Cloud Logging.
|
DESTINATION_UNSPECIFIED
(Default) Logs are not preserved.
|
PATH
Logs are saved to the file path specified in the `logsPath` field.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOUD_LOGGING_VALUE
Logs are streamed to Cloud Logging.
|
static int |
DESTINATION_UNSPECIFIED_VALUE
(Default) Logs are not preserved.
|
static int |
PATH_VALUE
Logs are saved to the file path specified in the `logsPath` field.
|
| Modifier and Type | Method and Description |
|---|---|
static LogsPolicy.Destination |
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<LogsPolicy.Destination> |
internalGetValueMap() |
static LogsPolicy.Destination |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LogsPolicy.Destination |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogsPolicy.Destination |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogsPolicy.Destination[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogsPolicy.Destination DESTINATION_UNSPECIFIED
(Default) Logs are not preserved.
DESTINATION_UNSPECIFIED = 0;public static final LogsPolicy.Destination CLOUD_LOGGING
Logs are streamed to Cloud Logging. Optionally, you can configure additional settings in the `cloudLoggingOption` field.
CLOUD_LOGGING = 1;public static final LogsPolicy.Destination PATH
Logs are saved to the file path specified in the `logsPath` field.
PATH = 2;public static final LogsPolicy.Destination UNRECOGNIZED
public static final int DESTINATION_UNSPECIFIED_VALUE
(Default) Logs are not preserved.
DESTINATION_UNSPECIFIED = 0;public static final int CLOUD_LOGGING_VALUE
Logs are streamed to Cloud Logging. Optionally, you can configure additional settings in the `cloudLoggingOption` field.
CLOUD_LOGGING = 1;public static final int PATH_VALUE
Logs are saved to the file path specified in the `logsPath` field.
PATH = 2;public static LogsPolicy.Destination[] values()
for (LogsPolicy.Destination c : LogsPolicy.Destination.values()) System.out.println(c);
public static LogsPolicy.Destination 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LogsPolicy.Destination valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LogsPolicy.Destination forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LogsPolicy.Destination> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LogsPolicy.Destination valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.