Class ListFindingsResponse.ListFindingsResult.Builder (2.52.0)

public static final class ListFindingsResponse.ListFindingsResult.Builder extends GeneratedMessageV3.Builder<ListFindingsResponse.ListFindingsResult.Builder> implements ListFindingsResponse.ListFindingsResultOrBuilder

Result containing the Finding and its StateChange.

Protobuf type google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListFindingsResponse.ListFindingsResult build()
Returns
Type Description
ListFindingsResponse.ListFindingsResult

buildPartial()

public ListFindingsResponse.ListFindingsResult buildPartial()
Returns
Type Description
ListFindingsResponse.ListFindingsResult

clear()

public ListFindingsResponse.ListFindingsResult.Builder clear()
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFinding()

public ListFindingsResponse.ListFindingsResult.Builder clearFinding()

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public ListFindingsResponse.ListFindingsResult.Builder clearResource()

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

clearStateChange()

public ListFindingsResponse.ListFindingsResult.Builder clearStateChange()

State change of the finding between the points in time.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2;

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

This builder for chaining.

clone()

public ListFindingsResponse.ListFindingsResult.Builder clone()
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder
Overrides

getDefaultInstanceForType()

public ListFindingsResponse.ListFindingsResult getDefaultInstanceForType()
Returns
Type Description
ListFindingsResponse.ListFindingsResult

getDescriptorForType()

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

getFinding()

public Finding getFinding()

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Returns
Type Description
Finding

The finding.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Returns
Type Description
Finding.Builder

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Returns
Type Description
FindingOrBuilder

getResource()

public ListFindingsResponse.ListFindingsResult.Resource getResource()

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Resource

The resource.

getResourceBuilder()

public ListFindingsResponse.ListFindingsResult.Resource.Builder getResourceBuilder()

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Resource.Builder

getResourceOrBuilder()

public ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder()

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListFindingsResponse.ListFindingsResult.ResourceOrBuilder

getStateChange()

public ListFindingsResponse.ListFindingsResult.StateChange getStateChange()

State change of the finding between the points in time.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2;

Returns
Type Description
ListFindingsResponse.ListFindingsResult.StateChange

The stateChange.

getStateChangeValue()

public int getStateChangeValue()

State change of the finding between the points in time.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2;

Returns
Type Description
int

The enum numeric value on the wire for stateChange.

hasFinding()

public boolean hasFinding()

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Returns
Type Description
boolean

Whether the finding field is set.

hasResource()

public boolean hasResource()

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFinding(Finding value)

public ListFindingsResponse.ListFindingsResult.Builder mergeFinding(Finding value)

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Parameter
Name Description
value Finding
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

mergeFrom(ListFindingsResponse.ListFindingsResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResource(ListFindingsResponse.ListFindingsResult.Resource value)

public ListFindingsResponse.ListFindingsResult.Builder mergeResource(ListFindingsResponse.ListFindingsResult.Resource value)

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ListFindingsResponse.ListFindingsResult.Resource
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFinding(Finding value)

public ListFindingsResponse.ListFindingsResult.Builder setFinding(Finding value)

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Parameter
Name Description
value Finding
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

setFinding(Finding.Builder builderForValue)

public ListFindingsResponse.ListFindingsResult.Builder setFinding(Finding.Builder builderForValue)

Finding matching the search request.

.google.cloud.securitycenter.v1.Finding finding = 1;

Parameter
Name Description
builderForValue Finding.Builder
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

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

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

setResource(ListFindingsResponse.ListFindingsResult.Resource value)

public ListFindingsResponse.ListFindingsResult.Builder setResource(ListFindingsResponse.ListFindingsResult.Resource value)

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ListFindingsResponse.ListFindingsResult.Resource
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

setResource(ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue)

public ListFindingsResponse.ListFindingsResult.Builder setResource(ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue)

Output only. Resource that is associated with this finding.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ListFindingsResponse.ListFindingsResult.Resource.Builder
Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

setStateChange(ListFindingsResponse.ListFindingsResult.StateChange value)

public ListFindingsResponse.ListFindingsResult.Builder setStateChange(ListFindingsResponse.ListFindingsResult.StateChange value)

State change of the finding between the points in time.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2;

Parameter
Name Description
value ListFindingsResponse.ListFindingsResult.StateChange

The stateChange to set.

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

This builder for chaining.

setStateChangeValue(int value)

public ListFindingsResponse.ListFindingsResult.Builder setStateChangeValue(int value)

State change of the finding between the points in time.

.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ListFindingsResponse.ListFindingsResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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