Package com.google.cloudbuild.v1
Enum BuildOptions.LoggingMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BuildOptions.LoggingMode>
- Enclosing class:
- BuildOptions
public static enum BuildOptions.LoggingMode
extends Enum<BuildOptions.LoggingMode>
implements com.google.protobuf.ProtocolMessageEnum
Specifies the logging mode.Protobuf enum
google.devtools.cloudbuild.v1.BuildOptions.LoggingMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuild logs are stored in Cloud Logging.Build logs are stored in Cloud Storage.Build logs are stored in Cloud Logging and Cloud Storage.The service determines the logging mode.Turn off all logging.Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBuild logs are stored in Cloud Logging.static final intBuild logs are stored in Cloud Storage.static final intBuild logs are stored in Cloud Logging and Cloud Storage.static final intThe service determines the logging mode.static final intTurn off all logging.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildOptions.LoggingModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BuildOptions.LoggingMode>static BuildOptions.LoggingModevalueOf(int value) Deprecated.static BuildOptions.LoggingModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static BuildOptions.LoggingModeReturns the enum constant of this type with the specified name.static BuildOptions.LoggingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOGGING_UNSPECIFIED
The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.
LOGGING_UNSPECIFIED = 0; -
LEGACY
Build logs are stored in Cloud Logging and Cloud Storage.
LEGACY = 1; -
GCS_ONLY
Build logs are stored in Cloud Storage.
GCS_ONLY = 2; -
STACKDRIVER_ONLY
Deprecated.This option is the same as CLOUD_LOGGING_ONLY.
STACKDRIVER_ONLY = 3 [deprecated = true]; -
CLOUD_LOGGING_ONLY
Build logs are stored in Cloud Logging. Selecting this option will not allow [logs streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
CLOUD_LOGGING_ONLY = 5; -
NONE
Turn off all logging. No build logs will be captured.
NONE = 4; -
UNRECOGNIZED
-
-
Field Details
-
LOGGING_UNSPECIFIED_VALUE
public static final int LOGGING_UNSPECIFIED_VALUEThe service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.
LOGGING_UNSPECIFIED = 0;- See Also:
-
LEGACY_VALUE
public static final int LEGACY_VALUEBuild logs are stored in Cloud Logging and Cloud Storage.
LEGACY = 1;- See Also:
-
GCS_ONLY_VALUE
public static final int GCS_ONLY_VALUEBuild logs are stored in Cloud Storage.
GCS_ONLY = 2;- See Also:
-
STACKDRIVER_ONLY_VALUE
Deprecated.This option is the same as CLOUD_LOGGING_ONLY.
STACKDRIVER_ONLY = 3 [deprecated = true];- See Also:
-
CLOUD_LOGGING_ONLY_VALUE
public static final int CLOUD_LOGGING_ONLY_VALUEBuild logs are stored in Cloud Logging. Selecting this option will not allow [logs streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
CLOUD_LOGGING_ONLY = 5;- See Also:
-
NONE_VALUE
public static final int NONE_VALUETurn off all logging. No build logs will be captured.
NONE = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<BuildOptions.LoggingMode> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static BuildOptions.LoggingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-