Class ScanRunErrorTrace.Builder (2.4.0)

public static final class ScanRunErrorTrace.Builder extends GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder> implements ScanRunErrorTraceOrBuilder

Output only. Defines an error trace message for a ScanRun.

Protobuf type google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanRunErrorTrace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

build()

public ScanRunErrorTrace build()
Returns
TypeDescription
ScanRunErrorTrace

buildPartial()

public ScanRunErrorTrace buildPartial()
Returns
TypeDescription
ScanRunErrorTrace

clear()

public ScanRunErrorTrace.Builder clear()
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

clearCode()

public ScanRunErrorTrace.Builder clearCode()

Indicates the error reason code.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;

Returns
TypeDescription
ScanRunErrorTrace.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScanRunErrorTrace.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

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
TypeDescription
ScanRunErrorTrace.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanRunErrorTrace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

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;

Returns
TypeDescription
ScanRunErrorTrace.Builder

clone()

public ScanRunErrorTrace.Builder clone()
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

getCode()

public ScanRunErrorTrace.Code getCode()

Indicates the error reason code.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;

Returns
TypeDescription
ScanRunErrorTrace.Code

The code.

getCodeValue()

public int getCodeValue()

Indicates the error reason code.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public ScanRunErrorTrace getDefaultInstanceForType()
Returns
TypeDescription
ScanRunErrorTrace

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
int

The mostCommonHttpErrorCode.

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;

Returns
TypeDescription
ScanConfigError

The scanConfigError.

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;

Returns
TypeDescription
ScanConfigError.Builder

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;

Returns
TypeDescription
ScanConfigErrorOrBuilder

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;

Returns
TypeDescription
boolean

Whether the scanConfigError field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScanRunErrorTrace other)

public ScanRunErrorTrace.Builder mergeFrom(ScanRunErrorTrace other)
Parameter
NameDescription
otherScanRunErrorTrace
Returns
TypeDescription
ScanRunErrorTrace.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanRunErrorTrace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScanRunErrorTrace.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

mergeScanConfigError(ScanConfigError value)

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;

Parameter
NameDescription
valueScanConfigError
Returns
TypeDescription
ScanRunErrorTrace.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanRunErrorTrace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

setCode(ScanRunErrorTrace.Code value)

public ScanRunErrorTrace.Builder setCode(ScanRunErrorTrace.Code value)

Indicates the error reason code.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;

Parameter
NameDescription
valueScanRunErrorTrace.Code

The code to set.

Returns
TypeDescription
ScanRunErrorTrace.Builder

This builder for chaining.

setCodeValue(int value)

public ScanRunErrorTrace.Builder setCodeValue(int value)

Indicates the error reason code.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for code to set.

Returns
TypeDescription
ScanRunErrorTrace.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScanRunErrorTrace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

setMostCommonHttpErrorCode(int value)

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;

Parameter
NameDescription
valueint

The mostCommonHttpErrorCode to set.

Returns
TypeDescription
ScanRunErrorTrace.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ScanRunErrorTrace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides

setScanConfigError(ScanConfigError value)

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;

Parameter
NameDescription
valueScanConfigError
Returns
TypeDescription
ScanRunErrorTrace.Builder

setScanConfigError(ScanConfigError.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueScanConfigError.Builder
Returns
TypeDescription
ScanRunErrorTrace.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanRunErrorTrace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanRunErrorTrace.Builder
Overrides