Class ScanRunErrorTrace.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder> implements ScanRunErrorTraceOrBuilder
Output only. Defines an error trace message for a ScanRun.
Protobuf typegoogle.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanRunErrorTrace.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScanRunErrorTracebuild()ScanRunErrorTracebuildPartial()ScanRunErrorTrace.Builderclear()ScanRunErrorTrace.BuilderclearCode()Indicates the error reason code.ScanRunErrorTrace.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ScanRunErrorTrace.BuilderclearMostCommonHttpErrorCode()If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.ScanRunErrorTrace.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ScanRunErrorTrace.BuilderclearScanConfigError()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.ScanRunErrorTrace.Builderclone()ScanRunErrorTrace.CodegetCode()Indicates the error reason code.intgetCodeValue()Indicates the error reason code.ScanRunErrorTracegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetMostCommonHttpErrorCode()If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.ScanConfigErrorgetScanConfigError()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.ScanConfigError.BuildergetScanConfigErrorBuilder()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.ScanConfigErrorOrBuildergetScanConfigErrorOrBuilder()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.booleanhasScanConfigError()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.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ScanRunErrorTrace.BuildermergeFrom(ScanRunErrorTrace other)ScanRunErrorTrace.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ScanRunErrorTrace.BuildermergeFrom(com.google.protobuf.Message other)ScanRunErrorTrace.BuildermergeScanConfigError(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.ScanRunErrorTrace.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ScanRunErrorTrace.BuildersetCode(ScanRunErrorTrace.Code value)Indicates the error reason code.ScanRunErrorTrace.BuildersetCodeValue(int value)Indicates the error reason code.ScanRunErrorTrace.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScanRunErrorTrace.BuildersetMostCommonHttpErrorCode(int value)If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.ScanRunErrorTrace.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ScanRunErrorTrace.BuildersetScanConfigError(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.ScanRunErrorTrace.BuildersetScanConfigError(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.ScanRunErrorTrace.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clear
public ScanRunErrorTrace.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
getDefaultInstanceForType
public ScanRunErrorTrace getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScanRunErrorTrace build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScanRunErrorTrace buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScanRunErrorTrace.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
setField
public ScanRunErrorTrace.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clearField
public ScanRunErrorTrace.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clearOneof
public ScanRunErrorTrace.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
setRepeatedField
public ScanRunErrorTrace.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
addRepeatedField
public ScanRunErrorTrace.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
mergeFrom
public ScanRunErrorTrace.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanRunErrorTrace.Builder>
-
mergeFrom
public ScanRunErrorTrace.Builder mergeFrom(ScanRunErrorTrace other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
mergeFrom
public ScanRunErrorTrace.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getCodeValuein interfaceScanRunErrorTraceOrBuilder- 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:
getCodein interfaceScanRunErrorTraceOrBuilder- Returns:
- The code.
-
setCode
public ScanRunErrorTrace.Builder setCode(ScanRunErrorTrace.Code value)
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:
hasScanConfigErrorin interfaceScanRunErrorTraceOrBuilder- 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:
getScanConfigErrorin interfaceScanRunErrorTraceOrBuilder- 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:
getScanConfigErrorOrBuilderin interfaceScanRunErrorTraceOrBuilder
-
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:
getMostCommonHttpErrorCodein interfaceScanRunErrorTraceOrBuilder- 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.
-
setUnknownFields
public final ScanRunErrorTrace.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
mergeUnknownFields
public final ScanRunErrorTrace.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
-