Class SearchAssetsResponse.Builder (0.1.0)

public static final class SearchAssetsResponse.Builder extends GeneratedMessageV3.Builder<SearchAssetsResponse.Builder> implements SearchAssetsResponseOrBuilder

Response message for SearchAssets.

Protobuf type google.cloud.visionai.v1.SearchAssetsResponse

Static Methods

getDescriptor()

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

Methods

addAllFacetResults(Iterable<? extends FacetGroup> values)

public SearchAssetsResponse.Builder addAllFacetResults(Iterable<? extends FacetGroup> values)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

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

addAllSearchResultItems(Iterable<? extends SearchResultItem> values)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

addFacetResults(FacetGroup value)

public SearchAssetsResponse.Builder addFacetResults(FacetGroup value)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
value FacetGroup
Returns
Type Description
SearchAssetsResponse.Builder

addFacetResults(FacetGroup.Builder builderForValue)

public SearchAssetsResponse.Builder addFacetResults(FacetGroup.Builder builderForValue)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
builderForValue FacetGroup.Builder
Returns
Type Description
SearchAssetsResponse.Builder

addFacetResults(int index, FacetGroup value)

public SearchAssetsResponse.Builder addFacetResults(int index, FacetGroup value)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameters
Name Description
index int
value FacetGroup
Returns
Type Description
SearchAssetsResponse.Builder

addFacetResults(int index, FacetGroup.Builder builderForValue)

public SearchAssetsResponse.Builder addFacetResults(int index, FacetGroup.Builder builderForValue)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameters
Name Description
index int
builderForValue FacetGroup.Builder
Returns
Type Description
SearchAssetsResponse.Builder

addFacetResultsBuilder()

public FacetGroup.Builder addFacetResultsBuilder()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Returns
Type Description
FacetGroup.Builder

addFacetResultsBuilder(int index)

public FacetGroup.Builder addFacetResultsBuilder(int index)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
index int
Returns
Type Description
FacetGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSearchResultItems(SearchResultItem value)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

addSearchResultItems(SearchResultItem.Builder builderForValue)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

addSearchResultItems(int index, SearchResultItem value)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

addSearchResultItems(int index, SearchResultItem.Builder builderForValue)

public SearchAssetsResponse.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
SearchAssetsResponse.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 SearchAssetsResponse build()
Returns
Type Description
SearchAssetsResponse

buildPartial()

public SearchAssetsResponse buildPartial()
Returns
Type Description
SearchAssetsResponse

clear()

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

clearFacetResults()

public SearchAssetsResponse.Builder clearFacetResults()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Returns
Type Description
SearchAssetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchAssetsResponse.Builder clearNextPageToken()

The next-page continuation token.

string next_page_token = 2;

Returns
Type Description
SearchAssetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchResultItems()

public SearchAssetsResponse.Builder clearSearchResultItems()

Returned search results.

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

Returns
Type Description
SearchAssetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchAssetsResponse getDefaultInstanceForType()
Returns
Type Description
SearchAssetsResponse

getDescriptorForType()

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

getFacetResults(int index)

public FacetGroup getFacetResults(int index)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
index int
Returns
Type Description
FacetGroup

getFacetResultsBuilder(int index)

public FacetGroup.Builder getFacetResultsBuilder(int index)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
index int
Returns
Type Description
FacetGroup.Builder

getFacetResultsBuilderList()

public List<FacetGroup.Builder> getFacetResultsBuilderList()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Returns
Type Description
List<Builder>

getFacetResultsCount()

public int getFacetResultsCount()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Returns
Type Description
int

getFacetResultsList()

public List<FacetGroup> getFacetResultsList()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Returns
Type Description
List<FacetGroup>

getFacetResultsOrBuilder(int index)

public FacetGroupOrBuilder getFacetResultsOrBuilder(int index)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
index int
Returns
Type Description
FacetGroupOrBuilder

getFacetResultsOrBuilderList()

public List<? extends FacetGroupOrBuilder> getFacetResultsOrBuilderList()

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

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

getNextPageToken()

public String getNextPageToken()

The next-page continuation token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next-page continuation token.

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(SearchAssetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFacetResults(int index)

public SearchAssetsResponse.Builder removeFacetResults(int index)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchAssetsResponse.Builder

removeSearchResultItems(int index)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

setFacetResults(int index, FacetGroup value)

public SearchAssetsResponse.Builder setFacetResults(int index, FacetGroup value)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameters
Name Description
index int
value FacetGroup
Returns
Type Description
SearchAssetsResponse.Builder

setFacetResults(int index, FacetGroup.Builder builderForValue)

public SearchAssetsResponse.Builder setFacetResults(int index, FacetGroup.Builder builderForValue)

Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.

repeated .google.cloud.visionai.v1.FacetGroup facet_results = 3;

Parameters
Name Description
index int
builderForValue FacetGroup.Builder
Returns
Type Description
SearchAssetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchAssetsResponse.Builder setNextPageToken(String value)

The next-page continuation token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchAssetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchAssetsResponse.Builder setNextPageTokenBytes(ByteString value)

The next-page continuation token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchAssetsResponse.Builder

This builder for chaining.

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

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

setSearchResultItems(int index, SearchResultItem value)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

setSearchResultItems(int index, SearchResultItem.Builder builderForValue)

public SearchAssetsResponse.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
SearchAssetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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