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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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
|
build()
public SearchResourcesResponse build()
buildPartial()
public SearchResourcesResponse buildPartial()
clear()
public SearchResourcesResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public SearchResourcesResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchResourcesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchResourcesResponse other)
public SearchResourcesResponse.Builder mergeFrom(SearchResourcesResponse other)
public SearchResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResourcesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides