Class SearchProjectsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchProjectsResponse.Builder>
com.google.cloud.resourcemanager.v3.SearchProjectsResponse.Builder
All Implemented Interfaces:
SearchProjectsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchProjectsResponse

public static final class SearchProjectsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchProjectsResponse.Builder> implements SearchProjectsResponseOrBuilder
 A page of the response received from the
 [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects]
 method.

 A paginated response where more pages are available has
 `next_page_token` set. This token can be used in a subsequent request to
 retrieve the next request page.
 
Protobuf type google.cloud.resourcemanager.v3.SearchProjectsResponse
  • 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<SearchProjectsResponse.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<SearchProjectsResponse.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<SearchProjectsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SearchProjectsResponse.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<SearchProjectsResponse.Builder>
      Throws:
      IOException
    • getProjectsList

      public List<Project> getProjectsList()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
      Specified by:
      getProjectsList in interface SearchProjectsResponseOrBuilder
    • getProjectsCount

      public int getProjectsCount()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
      Specified by:
      getProjectsCount in interface SearchProjectsResponseOrBuilder
    • getProjects

      public Project getProjects(int index)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
      Specified by:
      getProjects in interface SearchProjectsResponseOrBuilder
    • setProjects

      public SearchProjectsResponse.Builder setProjects(int index, Project value)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • setProjects

      public SearchProjectsResponse.Builder setProjects(int index, Project.Builder builderForValue)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addProjects

      public SearchProjectsResponse.Builder addProjects(Project value)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addProjects

      public SearchProjectsResponse.Builder addProjects(int index, Project value)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addProjects

      public SearchProjectsResponse.Builder addProjects(Project.Builder builderForValue)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addProjects

      public SearchProjectsResponse.Builder addProjects(int index, Project.Builder builderForValue)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addAllProjects

      public SearchProjectsResponse.Builder addAllProjects(Iterable<? extends Project> values)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • clearProjects

      public SearchProjectsResponse.Builder clearProjects()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • removeProjects

      public SearchProjectsResponse.Builder removeProjects(int index)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • getProjectsBuilder

      public Project.Builder getProjectsBuilder(int index)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • getProjectsOrBuilder

      public ProjectOrBuilder getProjectsOrBuilder(int index)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
      Specified by:
      getProjectsOrBuilder in interface SearchProjectsResponseOrBuilder
    • getProjectsOrBuilderList

      public List<? extends ProjectOrBuilder> getProjectsOrBuilderList()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
      Specified by:
      getProjectsOrBuilderList in interface SearchProjectsResponseOrBuilder
    • addProjectsBuilder

      public Project.Builder addProjectsBuilder()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • addProjectsBuilder

      public Project.Builder addProjectsBuilder(int index)
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • getProjectsBuilderList

      public List<Project.Builder> getProjectsBuilderList()
       The list of Projects that matched the list filter query. This list can
       be paginated.
       
      repeated .google.cloud.resourcemanager.v3.Project projects = 1;
    • getNextPageToken

      public String getNextPageToken()
       Pagination token.
      
       If the result set is too large to fit in a single response, this token
       is returned. It encodes the position of the current result cursor.
       Feeding this value into a new list request with the `page_token` parameter
       gives the next page of the results.
      
       When `next_page_token` is not filled in, there is no next page and
       the list returned is the last page in the result set.
      
       Pagination tokens have a limited lifetime.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface SearchProjectsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Pagination token.
      
       If the result set is too large to fit in a single response, this token
       is returned. It encodes the position of the current result cursor.
       Feeding this value into a new list request with the `page_token` parameter
       gives the next page of the results.
      
       When `next_page_token` is not filled in, there is no next page and
       the list returned is the last page in the result set.
      
       Pagination tokens have a limited lifetime.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface SearchProjectsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SearchProjectsResponse.Builder setNextPageToken(String value)
       Pagination token.
      
       If the result set is too large to fit in a single response, this token
       is returned. It encodes the position of the current result cursor.
       Feeding this value into a new list request with the `page_token` parameter
       gives the next page of the results.
      
       When `next_page_token` is not filled in, there is no next page and
       the list returned is the last page in the result set.
      
       Pagination tokens have a limited lifetime.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SearchProjectsResponse.Builder clearNextPageToken()
       Pagination token.
      
       If the result set is too large to fit in a single response, this token
       is returned. It encodes the position of the current result cursor.
       Feeding this value into a new list request with the `page_token` parameter
       gives the next page of the results.
      
       When `next_page_token` is not filled in, there is no next page and
       the list returned is the last page in the result set.
      
       Pagination tokens have a limited lifetime.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public SearchProjectsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Pagination token.
      
       If the result set is too large to fit in a single response, this token
       is returned. It encodes the position of the current result cursor.
       Feeding this value into a new list request with the `page_token` parameter
       gives the next page of the results.
      
       When `next_page_token` is not filled in, there is no next page and
       the list returned is the last page in the result set.
      
       Pagination tokens have a limited lifetime.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.