Class FindingTypeStats.Builder (2.13.0)

public static final class FindingTypeStats.Builder extends GeneratedMessageV3.Builder<FindingTypeStats.Builder> implements FindingTypeStatsOrBuilder

A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun.

Protobuf type google.cloud.websecurityscanner.v1.FindingTypeStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FindingTypeStats build()
Returns
TypeDescription
FindingTypeStats

buildPartial()

public FindingTypeStats buildPartial()
Returns
TypeDescription
FindingTypeStats

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFindingCount()

public FindingTypeStats.Builder clearFindingCount()

Output only. The count of findings belonging to this finding type.

int32 finding_count = 2;

Returns
TypeDescription
FindingTypeStats.Builder

This builder for chaining.

clearFindingType()

public FindingTypeStats.Builder clearFindingType()

Output only. The finding type associated with the stats.

string finding_type = 1;

Returns
TypeDescription
FindingTypeStats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FindingTypeStats getDefaultInstanceForType()
Returns
TypeDescription
FindingTypeStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFindingCount()

public int getFindingCount()

Output only. The count of findings belonging to this finding type.

int32 finding_count = 2;

Returns
TypeDescription
int

The findingCount.

getFindingType()

public String getFindingType()

Output only. The finding type associated with the stats.

string finding_type = 1;

Returns
TypeDescription
String

The findingType.

getFindingTypeBytes()

public ByteString getFindingTypeBytes()

Output only. The finding type associated with the stats.

string finding_type = 1;

Returns
TypeDescription
ByteString

The bytes for findingType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FindingTypeStats other)

public FindingTypeStats.Builder mergeFrom(FindingTypeStats other)
Parameter
NameDescription
otherFindingTypeStats
Returns
TypeDescription
FindingTypeStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFindingCount(int value)

public FindingTypeStats.Builder setFindingCount(int value)

Output only. The count of findings belonging to this finding type.

int32 finding_count = 2;

Parameter
NameDescription
valueint

The findingCount to set.

Returns
TypeDescription
FindingTypeStats.Builder

This builder for chaining.

setFindingType(String value)

public FindingTypeStats.Builder setFindingType(String value)

Output only. The finding type associated with the stats.

string finding_type = 1;

Parameter
NameDescription
valueString

The findingType to set.

Returns
TypeDescription
FindingTypeStats.Builder

This builder for chaining.

setFindingTypeBytes(ByteString value)

public FindingTypeStats.Builder setFindingTypeBytes(ByteString value)

Output only. The finding type associated with the stats.

string finding_type = 1;

Parameter
NameDescription
valueByteString

The bytes for findingType to set.

Returns
TypeDescription
FindingTypeStats.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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