Class FindingSummary.Builder (0.7.0)

public static final class FindingSummary.Builder extends GeneratedMessageV3.Builder<FindingSummary.Builder> implements FindingSummaryOrBuilder

The details for a finding.

Protobuf type google.cloud.cloudsecuritycompliance.v1.FindingSummary

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRelatedFrameworks(Iterable<String> values)

public FindingSummary.Builder addAllRelatedFrameworks(Iterable<String> values)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The relatedFrameworks to add.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

addRelatedFrameworks(String value)

public FindingSummary.Builder addRelatedFrameworks(String value)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The relatedFrameworks to add.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

addRelatedFrameworksBytes(ByteString value)

public FindingSummary.Builder addRelatedFrameworksBytes(ByteString value)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the relatedFrameworks to add.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FindingSummary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FindingSummary.Builder
Overrides

build()

public FindingSummary build()
Returns
Type Description
FindingSummary

buildPartial()

public FindingSummary buildPartial()
Returns
Type Description
FindingSummary

clear()

public FindingSummary.Builder clear()
Returns
Type Description
FindingSummary.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FindingSummary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FindingSummary.Builder
Overrides

clearFindingCategory()

public FindingSummary.Builder clearFindingCategory()

The category of the finding.

string finding_category = 1;

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearFindingClass()

public FindingSummary.Builder clearFindingClass()

The class of the finding.

.google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2;

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearFindingCount()

public FindingSummary.Builder clearFindingCount()

The count of the finding.

int64 finding_count = 4;

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearName()

public FindingSummary.Builder clearName()

Identifier. The name of the finding summary.

string name = 7 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FindingSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FindingSummary.Builder
Overrides

clearRelatedFrameworks()

public FindingSummary.Builder clearRelatedFrameworks()

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearSeverity()

public FindingSummary.Builder clearSeverity()

The severity of the finding.

.google.cloud.cloudsecuritycompliance.v1.Severity severity = 3;

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

clearUpdateTime()

public FindingSummary.Builder clearUpdateTime()

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FindingSummary.Builder

clone()

public FindingSummary.Builder clone()
Returns
Type Description
FindingSummary.Builder
Overrides

getDefaultInstanceForType()

public FindingSummary getDefaultInstanceForType()
Returns
Type Description
FindingSummary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFindingCategory()

public String getFindingCategory()

The category of the finding.

string finding_category = 1;

Returns
Type Description
String

The findingCategory.

getFindingCategoryBytes()

public ByteString getFindingCategoryBytes()

The category of the finding.

string finding_category = 1;

Returns
Type Description
ByteString

The bytes for findingCategory.

getFindingClass()

public FindingClass getFindingClass()

The class of the finding.

.google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2;

Returns
Type Description
FindingClass

The findingClass.

getFindingClassValue()

public int getFindingClassValue()

The class of the finding.

.google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2;

Returns
Type Description
int

The enum numeric value on the wire for findingClass.

getFindingCount()

public long getFindingCount()

The count of the finding.

int64 finding_count = 4;

Returns
Type Description
long

The findingCount.

getName()

public String getName()

Identifier. The name of the finding summary.

string name = 7 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the finding summary.

string name = 7 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getRelatedFrameworks(int index)

public String getRelatedFrameworks(int index)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedFrameworks at the given index.

getRelatedFrameworksBytes(int index)

public ByteString getRelatedFrameworksBytes(int index)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedFrameworks at the given index.

getRelatedFrameworksCount()

public int getRelatedFrameworksCount()

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of relatedFrameworks.

getRelatedFrameworksList()

public ProtocolStringList getRelatedFrameworksList()

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the relatedFrameworks.

getSeverity()

public Severity getSeverity()

The severity of the finding.

.google.cloud.cloudsecuritycompliance.v1.Severity severity = 3;

Returns
Type Description
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the finding.

.google.cloud.cloudsecuritycompliance.v1.Severity severity = 3;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FindingSummary other)

public FindingSummary.Builder mergeFrom(FindingSummary other)
Parameter
Name Description
other FindingSummary
Returns
Type Description
FindingSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FindingSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FindingSummary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FindingSummary.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FindingSummary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FindingSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FindingSummary.Builder
Overrides

mergeUpdateTime(Timestamp value)

public FindingSummary.Builder mergeUpdateTime(Timestamp value)

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FindingSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FindingSummary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FindingSummary.Builder
Overrides

setFindingCategory(String value)

public FindingSummary.Builder setFindingCategory(String value)

The category of the finding.

string finding_category = 1;

Parameter
Name Description
value String

The findingCategory to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setFindingCategoryBytes(ByteString value)

public FindingSummary.Builder setFindingCategoryBytes(ByteString value)

The category of the finding.

string finding_category = 1;

Parameter
Name Description
value ByteString

The bytes for findingCategory to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setFindingClass(FindingClass value)

public FindingSummary.Builder setFindingClass(FindingClass value)

The class of the finding.

.google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2;

Parameter
Name Description
value FindingClass

The findingClass to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setFindingClassValue(int value)

public FindingSummary.Builder setFindingClassValue(int value)

The class of the finding.

.google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2;

Parameter
Name Description
value int

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

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setFindingCount(long value)

public FindingSummary.Builder setFindingCount(long value)

The count of the finding.

int64 finding_count = 4;

Parameter
Name Description
value long

The findingCount to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setName(String value)

public FindingSummary.Builder setName(String value)

Identifier. The name of the finding summary.

string name = 7 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FindingSummary.Builder setNameBytes(ByteString value)

Identifier. The name of the finding summary.

string name = 7 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setRelatedFrameworks(int index, String value)

public FindingSummary.Builder setRelatedFrameworks(int index, String value)

Optional. The list of compliance frameworks that the finding belongs to.

repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The relatedFrameworks to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

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

public FindingSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FindingSummary.Builder
Overrides

setSeverity(Severity value)

public FindingSummary.Builder setSeverity(Severity value)

The severity of the finding.

.google.cloud.cloudsecuritycompliance.v1.Severity severity = 3;

Parameter
Name Description
value Severity

The severity to set.

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setSeverityValue(int value)

public FindingSummary.Builder setSeverityValue(int value)

The severity of the finding.

.google.cloud.cloudsecuritycompliance.v1.Severity severity = 3;

Parameter
Name Description
value int

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

Returns
Type Description
FindingSummary.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FindingSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FindingSummary.Builder
Overrides

setUpdateTime(Timestamp value)

public FindingSummary.Builder setUpdateTime(Timestamp value)

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FindingSummary.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public FindingSummary.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last updated time of the finding.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FindingSummary.Builder