public static final class SearchIndexEndpointRequest.Builder extends GeneratedMessageV3.Builder<SearchIndexEndpointRequest.Builder> implements SearchIndexEndpointRequestOrBuilder
Request message for SearchIndexEndpoint.
Protobuf type google.cloud.visionai.v1.SearchIndexEndpointRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchIndexEndpointRequest.BuilderImplements
SearchIndexEndpointRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCriteria(Iterable<? extends Criteria> values)
public SearchIndexEndpointRequest.Builder addAllCriteria(Iterable<? extends Criteria> values)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Criteria> |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addAllExclusionCriteria(Iterable<? extends Criteria> values)
public SearchIndexEndpointRequest.Builder addAllExclusionCriteria(Iterable<? extends Criteria> values)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Criteria> |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addCriteria(Criteria value)
public SearchIndexEndpointRequest.Builder addCriteria(Criteria value)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addCriteria(Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder addCriteria(Criteria.Builder builderForValue)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addCriteria(int index, Criteria value)
public SearchIndexEndpointRequest.Builder addCriteria(int index, Criteria value)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addCriteria(int index, Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder addCriteria(int index, Criteria.Builder builderForValue)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addCriteriaBuilder()
public Criteria.Builder addCriteriaBuilder()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
Criteria.Builder |
addCriteriaBuilder(int index)
public Criteria.Builder addCriteriaBuilder(int index)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria.Builder |
addExclusionCriteria(Criteria value)
public SearchIndexEndpointRequest.Builder addExclusionCriteria(Criteria value)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addExclusionCriteria(Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder addExclusionCriteria(Criteria.Builder builderForValue)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addExclusionCriteria(int index, Criteria value)
public SearchIndexEndpointRequest.Builder addExclusionCriteria(int index, Criteria value)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addExclusionCriteria(int index, Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder addExclusionCriteria(int index, Criteria.Builder builderForValue)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
addExclusionCriteriaBuilder()
public Criteria.Builder addExclusionCriteriaBuilder()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
Criteria.Builder |
addExclusionCriteriaBuilder(int index)
public Criteria.Builder addExclusionCriteriaBuilder(int index)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchIndexEndpointRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
build()
public SearchIndexEndpointRequest build()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest |
buildPartial()
public SearchIndexEndpointRequest buildPartial()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest |
clear()
public SearchIndexEndpointRequest.Builder clear()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearCriteria()
public SearchIndexEndpointRequest.Builder clearCriteria()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearExclusionCriteria()
public SearchIndexEndpointRequest.Builder clearExclusionCriteria()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public SearchIndexEndpointRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearImageQuery()
public SearchIndexEndpointRequest.Builder clearImageQuery()
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearIndexEndpoint()
public SearchIndexEndpointRequest.Builder clearIndexEndpoint()
Required. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}'
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchIndexEndpointRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearPageSize()
public SearchIndexEndpointRequest.Builder clearPageSize()
Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick the maximum size, which is 100.
int32 page_size = 5;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
clearPageToken()
public SearchIndexEndpointRequest.Builder clearPageToken()
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
clearQuery()
public SearchIndexEndpointRequest.Builder clearQuery()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
clearTextQuery()
public SearchIndexEndpointRequest.Builder clearTextQuery()
A text-only query.
string text_query = 3;
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
clone()
public SearchIndexEndpointRequest.Builder clone()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
getCriteria(int index)
public Criteria getCriteria(int index)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria |
getCriteriaBuilder(int index)
public Criteria.Builder getCriteriaBuilder(int index)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria.Builder |
getCriteriaBuilderList()
public List<Criteria.Builder> getCriteriaBuilderList()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
List<Builder> |
getCriteriaCount()
public int getCriteriaCount()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
int |
getCriteriaList()
public List<Criteria> getCriteriaList()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
List<Criteria> |
getCriteriaOrBuilder(int index)
public CriteriaOrBuilder getCriteriaOrBuilder(int index)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CriteriaOrBuilder |
getCriteriaOrBuilderList()
public List<? extends CriteriaOrBuilder> getCriteriaOrBuilderList()
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.visionai.v1.CriteriaOrBuilder> |
getDefaultInstanceForType()
public SearchIndexEndpointRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getExclusionCriteria(int index)
public Criteria getExclusionCriteria(int index)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria |
getExclusionCriteriaBuilder(int index)
public Criteria.Builder getExclusionCriteriaBuilder(int index)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Criteria.Builder |
getExclusionCriteriaBuilderList()
public List<Criteria.Builder> getExclusionCriteriaBuilderList()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
List<Builder> |
getExclusionCriteriaCount()
public int getExclusionCriteriaCount()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
int |
getExclusionCriteriaList()
public List<Criteria> getExclusionCriteriaList()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
List<Criteria> |
getExclusionCriteriaOrBuilder(int index)
public CriteriaOrBuilder getExclusionCriteriaOrBuilder(int index)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CriteriaOrBuilder |
getExclusionCriteriaOrBuilderList()
public List<? extends CriteriaOrBuilder> getExclusionCriteriaOrBuilderList()
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.visionai.v1.CriteriaOrBuilder> |
getImageQuery()
public ImageQuery getImageQuery()
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Returns | |
---|---|
Type | Description |
ImageQuery |
The imageQuery. |
getImageQueryBuilder()
public ImageQuery.Builder getImageQueryBuilder()
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Returns | |
---|---|
Type | Description |
ImageQuery.Builder |
getImageQueryOrBuilder()
public ImageQueryOrBuilder getImageQueryOrBuilder()
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Returns | |
---|---|
Type | Description |
ImageQueryOrBuilder |
getIndexEndpoint()
public String getIndexEndpoint()
Required. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}'
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The indexEndpoint. |
getIndexEndpointBytes()
public ByteString getIndexEndpointBytes()
Required. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}'
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for indexEndpoint. |
getPageSize()
public int getPageSize()
Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick the maximum size, which is 100.
int32 page_size = 5;
Returns | |
---|---|
Type | Description |
int |
The pageSize. |
getPageToken()
public String getPageToken()
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;
Returns | |
---|---|
Type | Description |
String |
The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for pageToken. |
getQueryCase()
public SearchIndexEndpointRequest.QueryCase getQueryCase()
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.QueryCase |
getTextQuery()
public String getTextQuery()
A text-only query.
string text_query = 3;
Returns | |
---|---|
Type | Description |
String |
The textQuery. |
getTextQueryBytes()
public ByteString getTextQueryBytes()
A text-only query.
string text_query = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for textQuery. |
hasImageQuery()
public boolean hasImageQuery()
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the imageQuery field is set. |
hasTextQuery()
public boolean hasTextQuery()
A text-only query.
string text_query = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the textQuery field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SearchIndexEndpointRequest other)
public SearchIndexEndpointRequest.Builder mergeFrom(SearchIndexEndpointRequest other)
Parameter | |
---|---|
Name | Description |
other |
SearchIndexEndpointRequest |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchIndexEndpointRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SearchIndexEndpointRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
mergeImageQuery(ImageQuery value)
public SearchIndexEndpointRequest.Builder mergeImageQuery(ImageQuery value)
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Parameter | |
---|---|
Name | Description |
value |
ImageQuery |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchIndexEndpointRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
removeCriteria(int index)
public SearchIndexEndpointRequest.Builder removeCriteria(int index)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
removeExclusionCriteria(int index)
public SearchIndexEndpointRequest.Builder removeExclusionCriteria(int index)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setCriteria(int index, Criteria value)
public SearchIndexEndpointRequest.Builder setCriteria(int index, Criteria value)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setCriteria(int index, Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder setCriteria(int index, Criteria.Builder builderForValue)
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setExclusionCriteria(int index, Criteria value)
public SearchIndexEndpointRequest.Builder setExclusionCriteria(int index, Criteria value)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Criteria |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setExclusionCriteria(int index, Criteria.Builder builderForValue)
public SearchIndexEndpointRequest.Builder setExclusionCriteria(int index, Criteria.Builder builderForValue)
Criteria to exclude from search results.
Note that fetch_matched_annotations
will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Criteria.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SearchIndexEndpointRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setImageQuery(ImageQuery value)
public SearchIndexEndpointRequest.Builder setImageQuery(ImageQuery value)
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Parameter | |
---|---|
Name | Description |
value |
ImageQuery |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setImageQuery(ImageQuery.Builder builderForValue)
public SearchIndexEndpointRequest.Builder setImageQuery(ImageQuery.Builder builderForValue)
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
ImageQuery.Builder |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setIndexEndpoint(String value)
public SearchIndexEndpointRequest.Builder setIndexEndpoint(String value)
Required. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}'
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The indexEndpoint to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setIndexEndpointBytes(ByteString value)
public SearchIndexEndpointRequest.Builder setIndexEndpointBytes(ByteString value)
Required. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}'
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for indexEndpoint to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setPageSize(int value)
public SearchIndexEndpointRequest.Builder setPageSize(int value)
Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick the maximum size, which is 100.
int32 page_size = 5;
Parameter | |
---|---|
Name | Description |
value |
int The pageSize to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setPageToken(String value)
public SearchIndexEndpointRequest.Builder setPageToken(String value)
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;
Parameter | |
---|---|
Name | Description |
value |
String The pageToken to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setPageTokenBytes(ByteString value)
public SearchIndexEndpointRequest.Builder setPageTokenBytes(ByteString value)
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for pageToken to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchIndexEndpointRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
setTextQuery(String value)
public SearchIndexEndpointRequest.Builder setTextQuery(String value)
A text-only query.
string text_query = 3;
Parameter | |
---|---|
Name | Description |
value |
String The textQuery to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setTextQueryBytes(ByteString value)
public SearchIndexEndpointRequest.Builder setTextQueryBytes(ByteString value)
A text-only query.
string text_query = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for textQuery to set. |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchIndexEndpointRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchIndexEndpointRequest.Builder |