Class SearchResourcesResponse.Builder (0.7.0)

public static final class SearchResourcesResponse.Builder extends GeneratedMessageV3.Builder<SearchResourcesResponse.Builder> implements SearchResourcesResponseOrBuilder

Response for the SearchResources method.

Protobuf type google.cloud.apihub.v1.SearchResourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSearchResults(Iterable<? extends SearchResult> values)

public SearchResourcesResponse.Builder addAllSearchResults(Iterable<? extends SearchResult> values)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.apihub.v1.SearchResult>
Returns
Type Description
SearchResourcesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

addSearchResults(SearchResult value)

public SearchResourcesResponse.Builder addSearchResults(SearchResult value)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
value SearchResult
Returns
Type Description
SearchResourcesResponse.Builder

addSearchResults(SearchResult.Builder builderForValue)

public SearchResourcesResponse.Builder addSearchResults(SearchResult.Builder builderForValue)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
builderForValue SearchResult.Builder
Returns
Type Description
SearchResourcesResponse.Builder

addSearchResults(int index, SearchResult value)

public SearchResourcesResponse.Builder addSearchResults(int index, SearchResult value)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameters
Name Description
index int
value SearchResult
Returns
Type Description
SearchResourcesResponse.Builder

addSearchResults(int index, SearchResult.Builder builderForValue)

public SearchResourcesResponse.Builder addSearchResults(int index, SearchResult.Builder builderForValue)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameters
Name Description
index int
builderForValue SearchResult.Builder
Returns
Type Description
SearchResourcesResponse.Builder

addSearchResultsBuilder()

public SearchResult.Builder addSearchResultsBuilder()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
SearchResult.Builder

addSearchResultsBuilder(int index)

public SearchResult.Builder addSearchResultsBuilder(int index)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResult.Builder

build()

public SearchResourcesResponse build()
Returns
Type Description
SearchResourcesResponse

buildPartial()

public SearchResourcesResponse buildPartial()
Returns
Type Description
SearchResourcesResponse

clear()

public SearchResourcesResponse.Builder clear()
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

clearNextPageToken()

public SearchResourcesResponse.Builder clearNextPageToken()

Pass this token in the SearchResourcesRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

string next_page_token = 2;

Returns
Type Description
SearchResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

clearSearchResults()

public SearchResourcesResponse.Builder clearSearchResults()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
SearchResourcesResponse.Builder

clone()

public SearchResourcesResponse.Builder clone()
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchResourcesResponse getDefaultInstanceForType()
Returns
Type Description
SearchResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Pass this token in the SearchResourcesRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Pass this token in the SearchResourcesRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSearchResults(int index)

public SearchResult getSearchResults(int index)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResult

getSearchResultsBuilder(int index)

public SearchResult.Builder getSearchResultsBuilder(int index)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResult.Builder

getSearchResultsBuilderList()

public List<SearchResult.Builder> getSearchResultsBuilderList()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
List<Builder>

getSearchResultsCount()

public int getSearchResultsCount()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
int

getSearchResultsList()

public List<SearchResult> getSearchResultsList()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
List<SearchResult>

getSearchResultsOrBuilder(int index)

public SearchResultOrBuilder getSearchResultsOrBuilder(int index)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResultOrBuilder

getSearchResultsOrBuilderList()

public List<? extends SearchResultOrBuilder> getSearchResultsOrBuilderList()

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.SearchResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResourcesResponse other)

public SearchResourcesResponse.Builder mergeFrom(SearchResourcesResponse other)
Parameter
Name Description
other SearchResourcesResponse
Returns
Type Description
SearchResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResourcesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchResourcesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

removeSearchResults(int index)

public SearchResourcesResponse.Builder removeSearchResults(int index)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

setNextPageToken(String value)

public SearchResourcesResponse.Builder setNextPageToken(String value)

Pass this token in the SearchResourcesRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchResourcesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchResourcesResponse.Builder setNextPageTokenBytes(ByteString value)

Pass this token in the SearchResourcesRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchResourcesResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchResourcesResponse.Builder
Overrides

setSearchResults(int index, SearchResult value)

public SearchResourcesResponse.Builder setSearchResults(int index, SearchResult value)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameters
Name Description
index int
value SearchResult
Returns
Type Description
SearchResourcesResponse.Builder

setSearchResults(int index, SearchResult.Builder builderForValue)

public SearchResourcesResponse.Builder setSearchResults(int index, SearchResult.Builder builderForValue)

List of search results according to the filter and search query specified. The order of search results represents the ranking.

repeated .google.cloud.apihub.v1.SearchResult search_results = 1;

Parameters
Name Description
index int
builderForValue SearchResult.Builder
Returns
Type Description
SearchResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResourcesResponse.Builder
Overrides