Class ScanRunLog.Builder (2.31.0)

public static final class ScanRunLog.Builder extends GeneratedMessageV3.Builder<ScanRunLog.Builder> implements ScanRunLogOrBuilder

A ScanRunLog is an output-only proto used for Stackdriver customer logging. It is used for logs covering the start and end of scan pipelines. Other than an added summary, this is a subset of the ScanRun. Representation in logs is either a proto Struct, or converted to JSON. Next id: 9

Protobuf type google.cloud.websecurityscanner.v1.ScanRunLog

Implements

ScanRunLogOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScanRunLog build()
Returns
TypeDescription
ScanRunLog

buildPartial()

public ScanRunLog buildPartial()
Returns
TypeDescription
ScanRunLog

clear()

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

clearErrorTrace()

public ScanRunLog.Builder clearErrorTrace()

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Returns
TypeDescription
ScanRunLog.Builder

clearExecutionState()

public ScanRunLog.Builder clearExecutionState()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHasFindings()

public ScanRunLog.Builder clearHasFindings()

bool has_findings = 7;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearName()

public ScanRunLog.Builder clearName()

The resource name of the ScanRun being logged.

string name = 2;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResultState()

public ScanRunLog.Builder clearResultState()

The result state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearSummary()

public ScanRunLog.Builder clearSummary()

Human friendly message about the event.

string summary = 1;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearUrlsCrawledCount()

public ScanRunLog.Builder clearUrlsCrawledCount()

int64 urls_crawled_count = 5;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clearUrlsTestedCount()

public ScanRunLog.Builder clearUrlsTestedCount()

int64 urls_tested_count = 6;

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ScanRunLog getDefaultInstanceForType()
Returns
TypeDescription
ScanRunLog

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorTrace()

public ScanRunErrorTrace getErrorTrace()

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Returns
TypeDescription
ScanRunErrorTrace

The errorTrace.

getErrorTraceBuilder()

public ScanRunErrorTrace.Builder getErrorTraceBuilder()

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Returns
TypeDescription
ScanRunErrorTrace.Builder

getErrorTraceOrBuilder()

public ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder()

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Returns
TypeDescription
ScanRunErrorTraceOrBuilder

getExecutionState()

public ScanRun.ExecutionState getExecutionState()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;

Returns
TypeDescription
ScanRun.ExecutionState

The executionState.

getExecutionStateValue()

public int getExecutionStateValue()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for executionState.

getHasFindings()

public boolean getHasFindings()

bool has_findings = 7;

Returns
TypeDescription
boolean

The hasFindings.

getName()

public String getName()

The resource name of the ScanRun being logged.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the ScanRun being logged.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getResultState()

public ScanRun.ResultState getResultState()

The result state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;

Returns
TypeDescription
ScanRun.ResultState

The resultState.

getResultStateValue()

public int getResultStateValue()

The result state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for resultState.

getSummary()

public String getSummary()

Human friendly message about the event.

string summary = 1;

Returns
TypeDescription
String

The summary.

getSummaryBytes()

public ByteString getSummaryBytes()

Human friendly message about the event.

string summary = 1;

Returns
TypeDescription
ByteString

The bytes for summary.

getUrlsCrawledCount()

public long getUrlsCrawledCount()

int64 urls_crawled_count = 5;

Returns
TypeDescription
long

The urlsCrawledCount.

getUrlsTestedCount()

public long getUrlsTestedCount()

int64 urls_tested_count = 6;

Returns
TypeDescription
long

The urlsTestedCount.

hasErrorTrace()

public boolean hasErrorTrace()

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Returns
TypeDescription
boolean

Whether the errorTrace field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeErrorTrace(ScanRunErrorTrace value)

public ScanRunLog.Builder mergeErrorTrace(ScanRunErrorTrace value)

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Parameter
NameDescription
valueScanRunErrorTrace
Returns
TypeDescription
ScanRunLog.Builder

mergeFrom(ScanRunLog other)

public ScanRunLog.Builder mergeFrom(ScanRunLog other)
Parameter
NameDescription
otherScanRunLog
Returns
TypeDescription
ScanRunLog.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setErrorTrace(ScanRunErrorTrace value)

public ScanRunLog.Builder setErrorTrace(ScanRunErrorTrace value)

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Parameter
NameDescription
valueScanRunErrorTrace
Returns
TypeDescription
ScanRunLog.Builder

setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

public ScanRunLog.Builder setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

.google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;

Parameter
NameDescription
builderForValueScanRunErrorTrace.Builder
Returns
TypeDescription
ScanRunLog.Builder

setExecutionState(ScanRun.ExecutionState value)

public ScanRunLog.Builder setExecutionState(ScanRun.ExecutionState value)

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;

Parameter
NameDescription
valueScanRun.ExecutionState

The executionState to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setExecutionStateValue(int value)

public ScanRunLog.Builder setExecutionStateValue(int value)

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHasFindings(boolean value)

public ScanRunLog.Builder setHasFindings(boolean value)

bool has_findings = 7;

Parameter
NameDescription
valueboolean

The hasFindings to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setName(String value)

public ScanRunLog.Builder setName(String value)

The resource name of the ScanRun being logged.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ScanRunLog.Builder setNameBytes(ByteString value)

The resource name of the ScanRun being logged.

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

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

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

setResultState(ScanRun.ResultState value)

public ScanRunLog.Builder setResultState(ScanRun.ResultState value)

The result state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;

Parameter
NameDescription
valueScanRun.ResultState

The resultState to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setResultStateValue(int value)

public ScanRunLog.Builder setResultStateValue(int value)

The result state of the ScanRun.

.google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setSummary(String value)

public ScanRunLog.Builder setSummary(String value)

Human friendly message about the event.

string summary = 1;

Parameter
NameDescription
valueString

The summary to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setSummaryBytes(ByteString value)

public ScanRunLog.Builder setSummaryBytes(ByteString value)

Human friendly message about the event.

string summary = 1;

Parameter
NameDescription
valueByteString

The bytes for summary to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUrlsCrawledCount(long value)

public ScanRunLog.Builder setUrlsCrawledCount(long value)

int64 urls_crawled_count = 5;

Parameter
NameDescription
valuelong

The urlsCrawledCount to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.

setUrlsTestedCount(long value)

public ScanRunLog.Builder setUrlsTestedCount(long value)

int64 urls_tested_count = 6;

Parameter
NameDescription
valuelong

The urlsTestedCount to set.

Returns
TypeDescription
ScanRunLog.Builder

This builder for chaining.