Package com.google.cloud.visionai.v1
Class SearchIndexEndpointRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.SearchIndexEndpointRequest
- All Implemented Interfaces:
SearchIndexEndpointRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SearchIndexEndpointRequest
extends com.google.protobuf.GeneratedMessage
implements SearchIndexEndpointRequestOrBuilder
Request message for SearchIndexEndpoint.Protobuf type
google.cloud.visionai.v1.SearchIndexEndpointRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for SearchIndexEndpoint.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCriteria(int index) Criteria applied to search results.intCriteria applied to search results.Criteria applied to search results.getCriteriaOrBuilder(int index) Criteria applied to search results.List<? extends CriteriaOrBuilder>Criteria applied to search results.static SearchIndexEndpointRequeststatic final com.google.protobuf.Descriptors.DescriptorgetExclusionCriteria(int index) Criteria to exclude from search results.intCriteria to exclude from search results.Criteria to exclude from search results.getExclusionCriteriaOrBuilder(int index) Criteria to exclude from search results.List<? extends CriteriaOrBuilder>Criteria to exclude from search results.An image-only query.An image-only query.Required.com.google.protobuf.ByteStringRequired.intRequested page size.The continuation token to fetch the next page.com.google.protobuf.ByteStringThe continuation token to fetch the next page.com.google.protobuf.Parser<SearchIndexEndpointRequest>intA text-only query.com.google.protobuf.ByteStringA text-only query.inthashCode()booleanAn image-only query.booleanA text-only query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SearchIndexEndpointRequest prototype) protected SearchIndexEndpointRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SearchIndexEndpointRequestparseDelimitedFrom(InputStream input) static SearchIndexEndpointRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchIndexEndpointRequestparseFrom(byte[] data) static SearchIndexEndpointRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchIndexEndpointRequestparseFrom(com.google.protobuf.ByteString data) static SearchIndexEndpointRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchIndexEndpointRequestparseFrom(com.google.protobuf.CodedInputStream input) static SearchIndexEndpointRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchIndexEndpointRequestparseFrom(InputStream input) static SearchIndexEndpointRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchIndexEndpointRequestparseFrom(ByteBuffer data) static SearchIndexEndpointRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SearchIndexEndpointRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
IMAGE_QUERY_FIELD_NUMBER
public static final int IMAGE_QUERY_FIELD_NUMBER- See Also:
-
TEXT_QUERY_FIELD_NUMBER
public static final int TEXT_QUERY_FIELD_NUMBER- See Also:
-
INDEX_ENDPOINT_FIELD_NUMBER
public static final int INDEX_ENDPOINT_FIELD_NUMBER- See Also:
-
CRITERIA_FIELD_NUMBER
public static final int CRITERIA_FIELD_NUMBER- See Also:
-
EXCLUSION_CRITERIA_FIELD_NUMBER
public static final int EXCLUSION_CRITERIA_FIELD_NUMBER- See Also:
-
PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER- See Also:
-
PAGE_TOKEN_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getQueryCase
- Specified by:
getQueryCasein interfaceSearchIndexEndpointRequestOrBuilder
-
hasImageQuery
public boolean hasImageQuery()An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;- Specified by:
hasImageQueryin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- Whether the imageQuery field is set.
-
getImageQuery
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;- Specified by:
getImageQueryin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The imageQuery.
-
getImageQueryOrBuilder
An image-only query.
.google.cloud.visionai.v1.ImageQuery image_query = 2;- Specified by:
getImageQueryOrBuilderin interfaceSearchIndexEndpointRequestOrBuilder
-
hasTextQuery
public boolean hasTextQuery()A text-only query.
string text_query = 3;- Specified by:
hasTextQueryin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- Whether the textQuery field is set.
-
getTextQuery
A text-only query.
string text_query = 3;- Specified by:
getTextQueryin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The textQuery.
-
getTextQueryBytes
public com.google.protobuf.ByteString getTextQueryBytes()A text-only query.
string text_query = 3;- Specified by:
getTextQueryBytesin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The bytes for textQuery.
-
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) = { ... }- Specified by:
getIndexEndpointin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The indexEndpoint.
-
getIndexEndpointBytes
public com.google.protobuf.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) = { ... }- Specified by:
getIndexEndpointBytesin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The bytes for indexEndpoint.
-
getCriteriaList
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaListin interfaceSearchIndexEndpointRequestOrBuilder
-
getCriteriaOrBuilderList
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaOrBuilderListin interfaceSearchIndexEndpointRequestOrBuilder
-
getCriteriaCount
public int getCriteriaCount()Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaCountin interfaceSearchIndexEndpointRequestOrBuilder
-
getCriteria
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriain interfaceSearchIndexEndpointRequestOrBuilder
-
getCriteriaOrBuilder
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaOrBuilderin interfaceSearchIndexEndpointRequestOrBuilder
-
getExclusionCriteriaList
Criteria to exclude from search results. Note that `fetch_matched_annotations` will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;- Specified by:
getExclusionCriteriaListin interfaceSearchIndexEndpointRequestOrBuilder
-
getExclusionCriteriaOrBuilderList
Criteria to exclude from search results. Note that `fetch_matched_annotations` will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;- Specified by:
getExclusionCriteriaOrBuilderListin interfaceSearchIndexEndpointRequestOrBuilder
-
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;- Specified by:
getExclusionCriteriaCountin interfaceSearchIndexEndpointRequestOrBuilder
-
getExclusionCriteria
Criteria to exclude from search results. Note that `fetch_matched_annotations` will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;- Specified by:
getExclusionCriteriain interfaceSearchIndexEndpointRequestOrBuilder
-
getExclusionCriteriaOrBuilder
Criteria to exclude from search results. Note that `fetch_matched_annotations` will be ignored.
repeated .google.cloud.visionai.v1.Criteria exclusion_criteria = 7;- Specified by:
getExclusionCriteriaOrBuilderin interfaceSearchIndexEndpointRequestOrBuilder
-
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 200.
int32 page_size = 5;- Specified by:
getPageSizein interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The pageSize.
-
getPageToken
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;- Specified by:
getPageTokenin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()The continuation token to fetch the next page. If empty, it means it is fetching the first page.
string page_token = 6;- Specified by:
getPageTokenBytesin interfaceSearchIndexEndpointRequestOrBuilder- Returns:
- The bytes for pageToken.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SearchIndexEndpointRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SearchIndexEndpointRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchIndexEndpointRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-