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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ScanRunErrorTrace
build()
ScanRunErrorTrace
buildPartial()
ScanRunErrorTrace.Builder
clear()
ScanRunErrorTrace.Builder
clearCode()
Indicates the error reason code.ScanRunErrorTrace.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ScanRunErrorTrace.Builder
clearMostCommonHttpErrorCode()
If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.ScanRunErrorTrace.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.ScanRunErrorTrace.Builder
clone()
ScanRunErrorTrace.Code
getCode()
Indicates the error reason code.int
getCodeValue()
Indicates the error reason code.ScanRunErrorTrace
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getMostCommonHttpErrorCode()
If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available.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.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.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ScanRunErrorTrace.Builder
mergeFrom(ScanRunErrorTrace other)
ScanRunErrorTrace.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ScanRunErrorTrace.Builder
mergeFrom(com.google.protobuf.Message other)
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.ScanRunErrorTrace.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScanRunErrorTrace.Builder
setCode(ScanRunErrorTrace.Code value)
Indicates the error reason code.ScanRunErrorTrace.Builder
setCodeValue(int value)
Indicates the error reason code.ScanRunErrorTrace.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.ScanRunErrorTrace.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.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.ScanRunErrorTrace.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clear
public ScanRunErrorTrace.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
getDefaultInstanceForType
public ScanRunErrorTrace getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScanRunErrorTrace build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScanRunErrorTrace buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScanRunErrorTrace.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
setField
public ScanRunErrorTrace.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clearField
public ScanRunErrorTrace.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
clearOneof
public ScanRunErrorTrace.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
setRepeatedField
public ScanRunErrorTrace.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
addRepeatedField
public ScanRunErrorTrace.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
mergeFrom
public ScanRunErrorTrace.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScanRunErrorTrace.Builder>
-
mergeFrom
public ScanRunErrorTrace.Builder mergeFrom(ScanRunErrorTrace other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCodeValue
in 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:
getCode
in 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:
hasScanConfigError
in 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:
getScanConfigError
in 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:
getScanConfigErrorOrBuilder
in 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:
getMostCommonHttpErrorCode
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
mergeUnknownFields
public final ScanRunErrorTrace.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRunErrorTrace.Builder>
-
-