Class ListAssetsResponse.Builder

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

public static final class ListAssetsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAssetsResponse.Builder> implements ListAssetsResponseOrBuilder
 Response message for listing assets.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.ListAssetsResponse
  • 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<ListAssetsResponse.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<ListAssetsResponse.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<ListAssetsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ListAssetsResponse.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<ListAssetsResponse.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<ListAssetsResponse.Builder>
    • mergeFrom

      public ListAssetsResponse.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<ListAssetsResponse.Builder>
      Throws:
      IOException
    • getListAssetsResultsList

      public List<ListAssetsResponse.ListAssetsResult> getListAssetsResultsList()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
      Specified by:
      getListAssetsResultsList in interface ListAssetsResponseOrBuilder
    • getListAssetsResultsCount

      public int getListAssetsResultsCount()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
      Specified by:
      getListAssetsResultsCount in interface ListAssetsResponseOrBuilder
    • getListAssetsResults

      public ListAssetsResponse.ListAssetsResult getListAssetsResults(int index)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
      Specified by:
      getListAssetsResults in interface ListAssetsResponseOrBuilder
    • setListAssetsResults

      public ListAssetsResponse.Builder setListAssetsResults(int index, ListAssetsResponse.ListAssetsResult value)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • setListAssetsResults

      public ListAssetsResponse.Builder setListAssetsResults(int index, ListAssetsResponse.ListAssetsResult.Builder builderForValue)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addListAssetsResults

       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addListAssetsResults

      public ListAssetsResponse.Builder addListAssetsResults(int index, ListAssetsResponse.ListAssetsResult value)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addListAssetsResults

      public ListAssetsResponse.Builder addListAssetsResults(ListAssetsResponse.ListAssetsResult.Builder builderForValue)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addListAssetsResults

      public ListAssetsResponse.Builder addListAssetsResults(int index, ListAssetsResponse.ListAssetsResult.Builder builderForValue)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addAllListAssetsResults

      public ListAssetsResponse.Builder addAllListAssetsResults(Iterable<? extends ListAssetsResponse.ListAssetsResult> values)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • clearListAssetsResults

      public ListAssetsResponse.Builder clearListAssetsResults()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • removeListAssetsResults

      public ListAssetsResponse.Builder removeListAssetsResults(int index)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • getListAssetsResultsBuilder

      public ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder(int index)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • getListAssetsResultsOrBuilder

      public ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder(int index)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
      Specified by:
      getListAssetsResultsOrBuilder in interface ListAssetsResponseOrBuilder
    • getListAssetsResultsOrBuilderList

      public List<? extends ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
      Specified by:
      getListAssetsResultsOrBuilderList in interface ListAssetsResponseOrBuilder
    • addListAssetsResultsBuilder

      public ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • addListAssetsResultsBuilder

      public ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder(int index)
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • getListAssetsResultsBuilderList

      public List<ListAssetsResponse.ListAssetsResult.Builder> getListAssetsResultsBuilderList()
       Assets matching the list request.
       
      repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    • hasReadTime

      public boolean hasReadTime()
       Time used for executing the list request.
       
      .google.protobuf.Timestamp read_time = 2;
      Specified by:
      hasReadTime in interface ListAssetsResponseOrBuilder
      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 ListAssetsResponseOrBuilder
      Returns:
      The readTime.
    • setReadTime

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

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

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

      public ListAssetsResponse.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 ListAssetsResponseOrBuilder
    • 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 ListAssetsResponseOrBuilder
      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 ListAssetsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAssetsResponse.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 ListAssetsResponse.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 ListAssetsResponse.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 assets matching the query.
       
      int32 total_size = 4;
      Specified by:
      getTotalSize in interface ListAssetsResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

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

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