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.v1beta.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.v1beta.ScanRunErrorTrace
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Indicates the error reason code.
    If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.
    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.
    Indicates the error reason code.
    int
    Indicates the error reason code.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.
    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.
    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.
    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.
    boolean
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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.
    Indicates the error reason code.
    setCodeValue(int value)
    Indicates the error reason code.
    If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.
    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.
    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.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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()
       Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1beta.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)
       Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1beta.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()
       Indicates the error reason code.
       
      .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;
      Specified by:
      getCode in interface ScanRunErrorTraceOrBuilder
      Returns:
      The code.
    • setCode

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

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

      public boolean hasScanConfigError()
       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.v1beta.ScanConfigError scan_config_error = 2;
      Specified by:
      hasScanConfigError in interface ScanRunErrorTraceOrBuilder
      Returns:
      Whether the scanConfigError field is set.
    • getScanConfigError

      public ScanConfigError getScanConfigError()
       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.v1beta.ScanConfigError scan_config_error = 2;
      Specified by:
      getScanConfigError in interface ScanRunErrorTraceOrBuilder
      Returns:
      The scanConfigError.
    • setScanConfigError

      public ScanRunErrorTrace.Builder setScanConfigError(ScanConfigError value)
       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.v1beta.ScanConfigError scan_config_error = 2;
    • setScanConfigError

      public ScanRunErrorTrace.Builder setScanConfigError(ScanConfigError.Builder builderForValue)
       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.v1beta.ScanConfigError scan_config_error = 2;
    • mergeScanConfigError

      public ScanRunErrorTrace.Builder mergeScanConfigError(ScanConfigError value)
       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.v1beta.ScanConfigError scan_config_error = 2;
    • clearScanConfigError

      public ScanRunErrorTrace.Builder clearScanConfigError()
       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.v1beta.ScanConfigError scan_config_error = 2;
    • getScanConfigErrorBuilder

      public ScanConfigError.Builder getScanConfigErrorBuilder()
       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.v1beta.ScanConfigError scan_config_error = 2;
    • getScanConfigErrorOrBuilder

      public ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder()
       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.v1beta.ScanConfigError scan_config_error = 2;
      Specified by:
      getScanConfigErrorOrBuilder in interface ScanRunErrorTraceOrBuilder
    • getMostCommonHttpErrorCode

      public int getMostCommonHttpErrorCode()
       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)
       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()
       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.