Class SearchAllResourcesResponse.Builder

    • 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<SearchAllResourcesResponse.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<SearchAllResourcesResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public SearchAllResourcesResponse.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<SearchAllResourcesResponse.Builder>
        Throws:
        IOException
      • getResultsCount

        public int getResultsCount()
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        Specified by:
        getResultsCount in interface SearchAllResourcesResponseOrBuilder
      • setResults

        public SearchAllResourcesResponse.Builder setResults​(int index,
                                                             ResourceSearchResult value)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • addResults

        public SearchAllResourcesResponse.Builder addResults​(ResourceSearchResult value)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • addResults

        public SearchAllResourcesResponse.Builder addResults​(int index,
                                                             ResourceSearchResult value)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • clearResults

        public SearchAllResourcesResponse.Builder clearResults()
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • removeResults

        public SearchAllResourcesResponse.Builder removeResults​(int index)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • getResultsBuilder

        public ResourceSearchResult.Builder getResultsBuilder​(int index)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • addResultsBuilder

        public ResourceSearchResult.Builder addResultsBuilder()
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • addResultsBuilder

        public ResourceSearchResult.Builder addResultsBuilder​(int index)
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • getResultsBuilderList

        public List<ResourceSearchResult.Builder> getResultsBuilderList()
         A list of Resources that match the search query. It contains the resource
         standard metadata information.
         
        repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
      • getNextPageToken

        public String getNextPageToken()
         If there are more results than those appearing in this response, then
         `next_page_token` is included. To get the next set of results, call this
         method again using the value of `next_page_token` as `page_token`.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface SearchAllResourcesResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         If there are more results than those appearing in this response, then
         `next_page_token` is included. To get the next set of results, call this
         method again using the value of `next_page_token` as `page_token`.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface SearchAllResourcesResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public SearchAllResourcesResponse.Builder setNextPageToken​(String value)
         If there are more results than those appearing in this response, then
         `next_page_token` is included. To get the next set of results, call this
         method again using the value of `next_page_token` as `page_token`.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public SearchAllResourcesResponse.Builder clearNextPageToken()
         If there are more results than those appearing in this response, then
         `next_page_token` is included. To get the next set of results, call this
         method again using the value of `next_page_token` as `page_token`.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public SearchAllResourcesResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         If there are more results than those appearing in this response, then
         `next_page_token` is included. To get the next set of results, call this
         method again using the value of `next_page_token` as `page_token`.
         
        string next_page_token = 2;
        Parameters:
        value - The bytes for nextPageToken to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SearchAllResourcesResponse.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<SearchAllResourcesResponse.Builder>
      • mergeUnknownFields

        public final SearchAllResourcesResponse.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<SearchAllResourcesResponse.Builder>