Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SearchProjectsResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • clearField

        public SearchProjectsResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • clearOneof

        public SearchProjectsResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • setRepeatedField

        public SearchProjectsResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • addRepeatedField

        public SearchProjectsResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • 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.
      • setUnknownFields

        public final SearchProjectsResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>
      • mergeUnknownFields

        public final SearchProjectsResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsResponse.Builder>