Class ListFindingsResponse.ListFindingsResult.Builder (2.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListFindingsResponse.ListFindingsResult build()
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult

buildPartial()

public ListFindingsResponse.ListFindingsResult buildPartial()
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult

clear()

public ListFindingsResponse.ListFindingsResult.Builder clear()
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFinding()

public ListFindingsResponse.ListFindingsResult.Builder clearFinding()

Finding matching the search request.

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

Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ListFindingsResponse.ListFindingsResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

This builder for chaining.

clone()

public ListFindingsResponse.ListFindingsResult.Builder clone()
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder
Overrides

getDefaultInstanceForType()

public ListFindingsResponse.ListFindingsResult getDefaultInstanceForType()
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFinding()

public Finding getFinding()

Finding matching the search request.

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

Returns
TypeDescription
Finding

The finding.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

Finding matching the search request.

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

Returns
TypeDescription
Finding.Builder

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

Finding matching the search request.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFinding
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

mergeFrom(ListFindingsResponse.ListFindingsResult other)

public ListFindingsResponse.ListFindingsResult.Builder mergeFrom(ListFindingsResponse.ListFindingsResult other)
Parameter
NameDescription
otherListFindingsResponse.ListFindingsResult
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ListFindingsResponse.ListFindingsResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueListFindingsResponse.ListFindingsResult.Resource
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListFindingsResponse.ListFindingsResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFinding
Returns
TypeDescription
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
NameDescription
builderForValueFinding.Builder
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

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

public ListFindingsResponse.ListFindingsResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueListFindingsResponse.ListFindingsResult.Resource
Returns
TypeDescription
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
NameDescription
builderForValueListFindingsResponse.ListFindingsResult.Resource.Builder
Returns
TypeDescription
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
NameDescription
valueListFindingsResponse.ListFindingsResult.StateChange

The stateChange to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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