Class ListFindingsResponse.Builder (2.12.0)

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

Response message for listing findings.

Protobuf type google.cloud.securitycenter.v1p1beta1.ListFindingsResponse

Static Methods

getDescriptor()

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

Methods

addAllListFindingsResults(Iterable<? extends ListFindingsResponse.ListFindingsResult> values)

public ListFindingsResponse.Builder addAllListFindingsResults(Iterable<? extends ListFindingsResponse.ListFindingsResult> values)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult>
Returns
TypeDescription
ListFindingsResponse.Builder

addListFindingsResults(ListFindingsResponse.ListFindingsResult value)

public ListFindingsResponse.Builder addListFindingsResults(ListFindingsResponse.ListFindingsResult value)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
valueListFindingsResponse.ListFindingsResult
Returns
TypeDescription
ListFindingsResponse.Builder

addListFindingsResults(ListFindingsResponse.ListFindingsResult.Builder builderForValue)

public ListFindingsResponse.Builder addListFindingsResults(ListFindingsResponse.ListFindingsResult.Builder builderForValue)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
builderForValueListFindingsResponse.ListFindingsResult.Builder
Returns
TypeDescription
ListFindingsResponse.Builder

addListFindingsResults(int index, ListFindingsResponse.ListFindingsResult value)

public ListFindingsResponse.Builder addListFindingsResults(int index, ListFindingsResponse.ListFindingsResult value)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameters
NameDescription
indexint
valueListFindingsResponse.ListFindingsResult
Returns
TypeDescription
ListFindingsResponse.Builder

addListFindingsResults(int index, ListFindingsResponse.ListFindingsResult.Builder builderForValue)

public ListFindingsResponse.Builder addListFindingsResults(int index, ListFindingsResponse.ListFindingsResult.Builder builderForValue)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameters
NameDescription
indexint
builderForValueListFindingsResponse.ListFindingsResult.Builder
Returns
TypeDescription
ListFindingsResponse.Builder

addListFindingsResultsBuilder()

public ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

addListFindingsResultsBuilder(int index)

public ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder(int index)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListFindingsResponse build()
Returns
TypeDescription
ListFindingsResponse

buildPartial()

public ListFindingsResponse buildPartial()
Returns
TypeDescription
ListFindingsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearListFindingsResults()

public ListFindingsResponse.Builder clearListFindingsResults()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
ListFindingsResponse.Builder

clearNextPageToken()

public ListFindingsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results.

string next_page_token = 3;

Returns
TypeDescription
ListFindingsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReadTime()

public ListFindingsResponse.Builder clearReadTime()

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Returns
TypeDescription
ListFindingsResponse.Builder

clearTotalSize()

public ListFindingsResponse.Builder clearTotalSize()

The total number of findings matching the query.

int32 total_size = 4;

Returns
TypeDescription
ListFindingsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListFindingsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListFindingsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getListFindingsResults(int index)

public ListFindingsResponse.ListFindingsResult getListFindingsResults(int index)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult

getListFindingsResultsBuilder(int index)

public ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder(int index)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFindingsResponse.ListFindingsResult.Builder

getListFindingsResultsBuilderList()

public List<ListFindingsResponse.ListFindingsResult.Builder> getListFindingsResultsBuilderList()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
List<Builder>

getListFindingsResultsCount()

public int getListFindingsResultsCount()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
int

getListFindingsResultsList()

public List<ListFindingsResponse.ListFindingsResult> getListFindingsResultsList()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
List<ListFindingsResult>

getListFindingsResultsOrBuilder(int index)

public ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFindingsResponse.ListFindingsResultOrBuilder

getListFindingsResultsOrBuilderList()

public List<? extends ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList()

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder>

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results.

string next_page_token = 3;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results.

string next_page_token = 3;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getReadTime()

public Timestamp getReadTime()

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Returns
TypeDescription
Timestamp

The readTime.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Returns
TypeDescription
Builder

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getTotalSize()

public int getTotalSize()

The total number of findings matching the query.

int32 total_size = 4;

Returns
TypeDescription
int

The totalSize.

hasReadTime()

public boolean hasReadTime()

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Returns
TypeDescription
boolean

Whether the readTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListFindingsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReadTime(Timestamp value)

public ListFindingsResponse.Builder mergeReadTime(Timestamp value)

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ListFindingsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeListFindingsResults(int index)

public ListFindingsResponse.Builder removeListFindingsResults(int index)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFindingsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setListFindingsResults(int index, ListFindingsResponse.ListFindingsResult value)

public ListFindingsResponse.Builder setListFindingsResults(int index, ListFindingsResponse.ListFindingsResult value)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameters
NameDescription
indexint
valueListFindingsResponse.ListFindingsResult
Returns
TypeDescription
ListFindingsResponse.Builder

setListFindingsResults(int index, ListFindingsResponse.ListFindingsResult.Builder builderForValue)

public ListFindingsResponse.Builder setListFindingsResults(int index, ListFindingsResponse.ListFindingsResult.Builder builderForValue)

Findings matching the list request.

repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;

Parameters
NameDescription
indexint
builderForValueListFindingsResponse.ListFindingsResult.Builder
Returns
TypeDescription
ListFindingsResponse.Builder

setNextPageToken(String value)

public ListFindingsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results.

string next_page_token = 3;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListFindingsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListFindingsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results.

string next_page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListFindingsResponse.Builder

This builder for chaining.

setReadTime(Timestamp value)

public ListFindingsResponse.Builder setReadTime(Timestamp value)

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ListFindingsResponse.Builder

setReadTime(Timestamp.Builder builderForValue)

public ListFindingsResponse.Builder setReadTime(Timestamp.Builder builderForValue)

Time used for executing the list request.

.google.protobuf.Timestamp read_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ListFindingsResponse.Builder

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

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

setTotalSize(int value)

public ListFindingsResponse.Builder setTotalSize(int value)

The total number of findings matching the query.

int32 total_size = 4;

Parameter
NameDescription
valueint

The totalSize to set.

Returns
TypeDescription
ListFindingsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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