Class SearchIndexEndpointResponse.Builder (0.3.0)

public static final class SearchIndexEndpointResponse.Builder extends GeneratedMessageV3.Builder<SearchIndexEndpointResponse.Builder> implements SearchIndexEndpointResponseOrBuilder

Response message for SearchIndexEndpoint.

Protobuf type google.cloud.visionai.v1.SearchIndexEndpointResponse

Static Methods

getDescriptor()

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

Methods

addAllSearchResultItems(Iterable<? extends SearchResultItem> values)

public SearchIndexEndpointResponse.Builder addAllSearchResultItems(Iterable<? extends SearchResultItem> values)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.SearchResultItem>
Returns
Type Description
SearchIndexEndpointResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSearchResultItems(SearchResultItem value)

public SearchIndexEndpointResponse.Builder addSearchResultItems(SearchResultItem value)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
value SearchResultItem
Returns
Type Description
SearchIndexEndpointResponse.Builder

addSearchResultItems(SearchResultItem.Builder builderForValue)

public SearchIndexEndpointResponse.Builder addSearchResultItems(SearchResultItem.Builder builderForValue)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
builderForValue SearchResultItem.Builder
Returns
Type Description
SearchIndexEndpointResponse.Builder

addSearchResultItems(int index, SearchResultItem value)

public SearchIndexEndpointResponse.Builder addSearchResultItems(int index, SearchResultItem value)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameters
Name Description
index int
value SearchResultItem
Returns
Type Description
SearchIndexEndpointResponse.Builder

addSearchResultItems(int index, SearchResultItem.Builder builderForValue)

public SearchIndexEndpointResponse.Builder addSearchResultItems(int index, SearchResultItem.Builder builderForValue)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameters
Name Description
index int
builderForValue SearchResultItem.Builder
Returns
Type Description
SearchIndexEndpointResponse.Builder

addSearchResultItemsBuilder()

public SearchResultItem.Builder addSearchResultItemsBuilder()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
SearchResultItem.Builder

addSearchResultItemsBuilder(int index)

public SearchResultItem.Builder addSearchResultItemsBuilder(int index)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResultItem.Builder

build()

public SearchIndexEndpointResponse build()
Returns
Type Description
SearchIndexEndpointResponse

buildPartial()

public SearchIndexEndpointResponse buildPartial()
Returns
Type Description
SearchIndexEndpointResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchIndexEndpointResponse.Builder clearNextPageToken()

The next-page continuation token. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
SearchIndexEndpointResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchResultItems()

public SearchIndexEndpointResponse.Builder clearSearchResultItems()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
SearchIndexEndpointResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchIndexEndpointResponse getDefaultInstanceForType()
Returns
Type Description
SearchIndexEndpointResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The next-page continuation token. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next-page continuation token. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSearchResultItems(int index)

public SearchResultItem getSearchResultItems(int index)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResultItem

getSearchResultItemsBuilder(int index)

public SearchResultItem.Builder getSearchResultItemsBuilder(int index)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResultItem.Builder

getSearchResultItemsBuilderList()

public List<SearchResultItem.Builder> getSearchResultItemsBuilderList()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
List<Builder>

getSearchResultItemsCount()

public int getSearchResultItemsCount()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
int

getSearchResultItemsList()

public List<SearchResultItem> getSearchResultItemsList()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
List<SearchResultItem>

getSearchResultItemsOrBuilder(int index)

public SearchResultItemOrBuilder getSearchResultItemsOrBuilder(int index)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResultItemOrBuilder

getSearchResultItemsOrBuilderList()

public List<? extends SearchResultItemOrBuilder> getSearchResultItemsOrBuilderList()

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.SearchResultItemOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchIndexEndpointResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSearchResultItems(int index)

public SearchIndexEndpointResponse.Builder removeSearchResultItems(int index)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchIndexEndpointResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchIndexEndpointResponse.Builder setNextPageToken(String value)

The next-page continuation token. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchIndexEndpointResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchIndexEndpointResponse.Builder setNextPageTokenBytes(ByteString value)

The next-page continuation token. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchIndexEndpointResponse.Builder

This builder for chaining.

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

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

setSearchResultItems(int index, SearchResultItem value)

public SearchIndexEndpointResponse.Builder setSearchResultItems(int index, SearchResultItem value)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameters
Name Description
index int
value SearchResultItem
Returns
Type Description
SearchIndexEndpointResponse.Builder

setSearchResultItems(int index, SearchResultItem.Builder builderForValue)

public SearchIndexEndpointResponse.Builder setSearchResultItems(int index, SearchResultItem.Builder builderForValue)

Returned search results.

repeated .google.cloud.visionai.v1.SearchResultItem search_result_items = 1;

Parameters
Name Description
index int
builderForValue SearchResultItem.Builder
Returns
Type Description
SearchIndexEndpointResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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