Enum BuildOptions.LoggingMode

java.lang.Object
java.lang.Enum<BuildOptions.LoggingMode>
com.google.cloudbuild.v1.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 Details

    • LOGGING_UNSPECIFIED

      public static final BuildOptions.LoggingMode 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

      public static final BuildOptions.LoggingMode LEGACY
       Build logs are stored in Cloud Logging and Cloud Storage.
       
      LEGACY = 1;
    • GCS_ONLY

      public static final BuildOptions.LoggingMode GCS_ONLY
       Build logs are stored in Cloud Storage.
       
      GCS_ONLY = 2;
    • STACKDRIVER_ONLY

      @Deprecated public static final BuildOptions.LoggingMode STACKDRIVER_ONLY
      Deprecated.
       This option is the same as CLOUD_LOGGING_ONLY.
       
      STACKDRIVER_ONLY = 3 [deprecated = true];
    • CLOUD_LOGGING_ONLY

      public static final BuildOptions.LoggingMode 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

      public static final BuildOptions.LoggingMode NONE
       Turn off all logging. No build logs will be captured.
       
      NONE = 4;
    • UNRECOGNIZED

      public static final BuildOptions.LoggingMode UNRECOGNIZED
  • Field Details

    • LOGGING_UNSPECIFIED_VALUE

      public static final int LOGGING_UNSPECIFIED_VALUE
       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;
      See Also:
    • LEGACY_VALUE

      public static final int LEGACY_VALUE
       Build logs are stored in Cloud Logging and Cloud Storage.
       
      LEGACY = 1;
      See Also:
    • GCS_ONLY_VALUE

      public static final int GCS_ONLY_VALUE
       Build logs are stored in Cloud Storage.
       
      GCS_ONLY = 2;
      See Also:
    • STACKDRIVER_ONLY_VALUE

      @Deprecated public static final int 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_VALUE
       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;
      See Also:
    • NONE_VALUE

      public static final int NONE_VALUE
       Turn off all logging. No build logs will be captured.
       
      NONE = 4;
      See Also:
  • Method Details

    • values

      public static BuildOptions.LoggingMode[] 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

      public static BuildOptions.LoggingMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static BuildOptions.LoggingMode valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static BuildOptions.LoggingMode forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null