Class ScanRunErrorTrace.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder>
com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder
All Implemented Interfaces:
ScanRunErrorTraceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ScanRunErrorTrace

public static final class ScanRunErrorTrace.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder> implements ScanRunErrorTraceOrBuilder
 Output only.
 Defines an error trace message for a ScanRun.
 
Protobuf type google.cloud.websecurityscanner.v1.ScanRunErrorTrace
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder>
    • clear

      public ScanRunErrorTrace.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder>
    • getDefaultInstanceForType

      public ScanRunErrorTrace getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ScanRunErrorTrace build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ScanRunErrorTrace buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ScanRunErrorTrace.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScanRunErrorTrace.Builder>
    • mergeFrom

      public ScanRunErrorTrace.Builder mergeFrom(ScanRunErrorTrace other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ScanRunErrorTrace.Builder>
    • mergeFrom

      public ScanRunErrorTrace.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScanRunErrorTrace.Builder>
      Throws:
      IOException
    • getCodeValue

      public int getCodeValue()
       Output only. Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;
      Specified by:
      getCodeValue in interface ScanRunErrorTraceOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public ScanRunErrorTrace.Builder setCodeValue(int value)
       Output only. Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public ScanRunErrorTrace.Code getCode()
       Output only. Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;
      Specified by:
      getCode in interface ScanRunErrorTraceOrBuilder
      Returns:
      The code.
    • setCode

       Output only. Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public ScanRunErrorTrace.Builder clearCode()
       Output only. Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;
      Returns:
      This builder for chaining.
    • hasScanConfigError

      public boolean hasScanConfigError()
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      Specified by:
      hasScanConfigError in interface ScanRunErrorTraceOrBuilder
      Returns:
      Whether the scanConfigError field is set.
    • getScanConfigError

      public ScanConfigError getScanConfigError()
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      Specified by:
      getScanConfigError in interface ScanRunErrorTraceOrBuilder
      Returns:
      The scanConfigError.
    • setScanConfigError

      public ScanRunErrorTrace.Builder setScanConfigError(ScanConfigError value)
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    • setScanConfigError

      public ScanRunErrorTrace.Builder setScanConfigError(ScanConfigError.Builder builderForValue)
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    • mergeScanConfigError

      public ScanRunErrorTrace.Builder mergeScanConfigError(ScanConfigError value)
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    • clearScanConfigError

      public ScanRunErrorTrace.Builder clearScanConfigError()
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    • getScanConfigErrorBuilder

      public ScanConfigError.Builder getScanConfigErrorBuilder()
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    • getScanConfigErrorOrBuilder

      public ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder()
       Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
       message encountered during scan configuration validation that is performed
       before each scan run.
       
      .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      Specified by:
      getScanConfigErrorOrBuilder in interface ScanRunErrorTraceOrBuilder
    • getMostCommonHttpErrorCode

      public int getMostCommonHttpErrorCode()
       Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
       common HTTP error code, if such is available. For example, if this code is
       404, the scan has encountered too many NOT_FOUND responses.
       
      int32 most_common_http_error_code = 3;
      Specified by:
      getMostCommonHttpErrorCode in interface ScanRunErrorTraceOrBuilder
      Returns:
      The mostCommonHttpErrorCode.
    • setMostCommonHttpErrorCode

      public ScanRunErrorTrace.Builder setMostCommonHttpErrorCode(int value)
       Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
       common HTTP error code, if such is available. For example, if this code is
       404, the scan has encountered too many NOT_FOUND responses.
       
      int32 most_common_http_error_code = 3;
      Parameters:
      value - The mostCommonHttpErrorCode to set.
      Returns:
      This builder for chaining.
    • clearMostCommonHttpErrorCode

      public ScanRunErrorTrace.Builder clearMostCommonHttpErrorCode()
       Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
       common HTTP error code, if such is available. For example, if this code is
       404, the scan has encountered too many NOT_FOUND responses.
       
      int32 most_common_http_error_code = 3;
      Returns:
      This builder for chaining.