Class ListFindingsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder>
com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder
All Implemented Interfaces:
ListFindingsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListFindingsResponse

public static final class ListFindingsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder> implements ListFindingsResponseOrBuilder
 Response message for listing findings.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder>
    • getDefaultInstanceForType

      public ListFindingsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListFindingsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListFindingsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListFindingsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListFindingsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListFindingsResponse.Builder>
    • mergeFrom

      public ListFindingsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListFindingsResponse.Builder>
      Throws:
      IOException
    • getListFindingsResultsList

      public List<ListFindingsResponse.ListFindingsResult> getListFindingsResultsList()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
      Specified by:
      getListFindingsResultsList in interface ListFindingsResponseOrBuilder
    • getListFindingsResultsCount

      public int getListFindingsResultsCount()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
      Specified by:
      getListFindingsResultsCount in interface ListFindingsResponseOrBuilder
    • getListFindingsResults

      public ListFindingsResponse.ListFindingsResult getListFindingsResults(int index)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
      Specified by:
      getListFindingsResults in interface ListFindingsResponseOrBuilder
    • setListFindingsResults

      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;
    • setListFindingsResults

      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;
    • addListFindingsResults

       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • addListFindingsResults

      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;
    • addListFindingsResults

      public ListFindingsResponse.Builder addListFindingsResults(ListFindingsResponse.ListFindingsResult.Builder builderForValue)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • addListFindingsResults

      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;
    • addAllListFindingsResults

      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;
    • clearListFindingsResults

      public ListFindingsResponse.Builder clearListFindingsResults()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • removeListFindingsResults

      public ListFindingsResponse.Builder removeListFindingsResults(int index)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • getListFindingsResultsBuilder

      public ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder(int index)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • getListFindingsResultsOrBuilder

      public ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
      Specified by:
      getListFindingsResultsOrBuilder in interface ListFindingsResponseOrBuilder
    • getListFindingsResultsOrBuilderList

      public List<? extends ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
      Specified by:
      getListFindingsResultsOrBuilderList in interface ListFindingsResponseOrBuilder
    • addListFindingsResultsBuilder

      public ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • addListFindingsResultsBuilder

      public ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder(int index)
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • getListFindingsResultsBuilderList

      public List<ListFindingsResponse.ListFindingsResult.Builder> getListFindingsResultsBuilderList()
       Findings matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
    • hasReadTime

      public boolean hasReadTime()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
      Specified by:
      hasReadTime in interface ListFindingsResponseOrBuilder
      Returns:
      Whether the readTime field is set.
    • getReadTime

      public com.google.protobuf.Timestamp getReadTime()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
      Specified by:
      getReadTime in interface ListFindingsResponseOrBuilder
      Returns:
      The readTime.
    • setReadTime

      public ListFindingsResponse.Builder setReadTime(com.google.protobuf.Timestamp value)
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
    • setReadTime

      public ListFindingsResponse.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
    • mergeReadTime

      public ListFindingsResponse.Builder mergeReadTime(com.google.protobuf.Timestamp value)
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
    • clearReadTime

      public ListFindingsResponse.Builder clearReadTime()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
    • getReadTimeBuilder

      public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
    • getReadTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
      Specified by:
      getReadTimeOrBuilder in interface ListFindingsResponseOrBuilder
    • 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;
      Specified by:
      getNextPageToken in interface ListFindingsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Token to retrieve the next page of results, or empty if there are no more
       results.
       
      string next_page_token = 3;
      Specified by:
      getNextPageTokenBytes in interface ListFindingsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      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;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListFindingsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Token to retrieve the next page of results, or empty if there are no more
       results.
       
      string next_page_token = 3;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getTotalSize

      public int getTotalSize()
       The total number of findings matching the query.
       
      int32 total_size = 4;
      Specified by:
      getTotalSize in interface ListFindingsResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

      public ListFindingsResponse.Builder setTotalSize(int value)
       The total number of findings matching the query.
       
      int32 total_size = 4;
      Parameters:
      value - The totalSize to set.
      Returns:
      This builder for chaining.
    • clearTotalSize

      public ListFindingsResponse.Builder clearTotalSize()
       The total number of findings matching the query.
       
      int32 total_size = 4;
      Returns:
      This builder for chaining.