Package com.google.cloud.visionai.v1
Class SearchAssetsRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.SearchAssetsRequest
- All Implemented Interfaces:
SearchAssetsRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SearchAssetsRequest
extends com.google.protobuf.GeneratedMessage
implements SearchAssetsRequestOrBuilder
Request message for SearchAssets.Protobuf type
google.cloud.visionai.v1.SearchAssetsRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for SearchAssets.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 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 TypeMethodDescriptionbooleanTime ranges that matching video content must fall within.Time ranges that matching video content must fall within.Required.com.google.protobuf.ByteStringRequired.getCriteria(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 SearchAssetsRequeststatic final com.google.protobuf.Descriptors.DescriptorgetFacetSelections(int index) Stores most recent facet selection state.intStores most recent facet selection state.Stores most recent facet selection state.getFacetSelectionsOrBuilder(int index) Stores most recent facet selection state.List<? extends FacetGroupOrBuilder>Stores most recent facet selection state.intThe number of results to be returned in this page.The continuation token to fetch the next page.com.google.protobuf.ByteStringThe continuation token to fetch the next page.com.google.protobuf.Parser<SearchAssetsRequest>getResultAnnotationKeys(int index) A list of annotation keys to specify the annotations to be retrieved and returned with each search result.com.google.protobuf.ByteStringgetResultAnnotationKeysBytes(int index) A list of annotation keys to specify the annotations to be retrieved and returned with each search result.intA list of annotation keys to specify the annotations to be retrieved and returned with each search result.com.google.protobuf.ProtocolStringListA list of annotation keys to specify the annotations to be retrieved and returned with each search result.Sort by the value under the data schema key.Sort by the value under the data schema key.Global search query.com.google.protobuf.ByteStringGlobal search query.intbooleanTime ranges that matching video content must fall within.inthashCode()booleanSort by the value under the data schema key.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SearchAssetsRequest.Builderstatic SearchAssetsRequest.BuildernewBuilder(SearchAssetsRequest prototype) protected SearchAssetsRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SearchAssetsRequestparseDelimitedFrom(InputStream input) static SearchAssetsRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchAssetsRequestparseFrom(byte[] data) static SearchAssetsRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchAssetsRequestparseFrom(com.google.protobuf.ByteString data) static SearchAssetsRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchAssetsRequestparseFrom(com.google.protobuf.CodedInputStream input) static SearchAssetsRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchAssetsRequestparseFrom(InputStream input) static SearchAssetsRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchAssetsRequestparseFrom(ByteBuffer data) static SearchAssetsRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SearchAssetsRequest>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
-
SCHEMA_KEY_SORTING_STRATEGY_FIELD_NUMBER
public static final int SCHEMA_KEY_SORTING_STRATEGY_FIELD_NUMBER- See Also:
-
CORPUS_FIELD_NUMBER
public static final int CORPUS_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:
-
CONTENT_TIME_RANGES_FIELD_NUMBER
public static final int CONTENT_TIME_RANGES_FIELD_NUMBER- See Also:
-
CRITERIA_FIELD_NUMBER
public static final int CRITERIA_FIELD_NUMBER- See Also:
-
FACET_SELECTIONS_FIELD_NUMBER
public static final int FACET_SELECTIONS_FIELD_NUMBER- See Also:
-
RESULT_ANNOTATION_KEYS_FIELD_NUMBER
public static final int RESULT_ANNOTATION_KEYS_FIELD_NUMBER- See Also:
-
SEARCH_QUERY_FIELD_NUMBER
public static final int SEARCH_QUERY_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
-
getSortSpecCase
- Specified by:
getSortSpecCasein interfaceSearchAssetsRequestOrBuilder
-
hasSchemaKeySortingStrategy
public boolean hasSchemaKeySortingStrategy()Sort by the value under the data schema key.
.google.cloud.visionai.v1.SchemaKeySortingStrategy schema_key_sorting_strategy = 9;- Specified by:
hasSchemaKeySortingStrategyin interfaceSearchAssetsRequestOrBuilder- Returns:
- Whether the schemaKeySortingStrategy field is set.
-
getSchemaKeySortingStrategy
Sort by the value under the data schema key.
.google.cloud.visionai.v1.SchemaKeySortingStrategy schema_key_sorting_strategy = 9;- Specified by:
getSchemaKeySortingStrategyin interfaceSearchAssetsRequestOrBuilder- Returns:
- The schemaKeySortingStrategy.
-
getSchemaKeySortingStrategyOrBuilder
Sort by the value under the data schema key.
.google.cloud.visionai.v1.SchemaKeySortingStrategy schema_key_sorting_strategy = 9;- Specified by:
getSchemaKeySortingStrategyOrBuilderin interfaceSearchAssetsRequestOrBuilder
-
getCorpus
Required. The parent corpus to search. Format: `projects/{project_id}/locations/{location_id}/corpora/{corpus_id}'string corpus = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getCorpusin interfaceSearchAssetsRequestOrBuilder- Returns:
- The corpus.
-
getCorpusBytes
public com.google.protobuf.ByteString getCorpusBytes()Required. The parent corpus to search. Format: `projects/{project_id}/locations/{location_id}/corpora/{corpus_id}'string corpus = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getCorpusBytesin interfaceSearchAssetsRequestOrBuilder- Returns:
- The bytes for corpus.
-
getPageSize
public int getPageSize()The number of results to be returned in this page. If it's 0, the server will decide the appropriate page_size.
int32 page_size = 2;- Specified by:
getPageSizein interfaceSearchAssetsRequestOrBuilder- 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 = 3;- Specified by:
getPageTokenin interfaceSearchAssetsRequestOrBuilder- 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 = 3;- Specified by:
getPageTokenBytesin interfaceSearchAssetsRequestOrBuilder- Returns:
- The bytes for pageToken.
-
hasContentTimeRanges
public boolean hasContentTimeRanges()Time ranges that matching video content must fall within. If no ranges are provided, there will be no time restriction. This field is treated just like the criteria below, but defined separately for convenience as it is used frequently. Note that if the end_time is in the future, it will be clamped to the time the request was received.
.google.cloud.visionai.v1.DateTimeRangeArray content_time_ranges = 5;- Specified by:
hasContentTimeRangesin interfaceSearchAssetsRequestOrBuilder- Returns:
- Whether the contentTimeRanges field is set.
-
getContentTimeRanges
Time ranges that matching video content must fall within. If no ranges are provided, there will be no time restriction. This field is treated just like the criteria below, but defined separately for convenience as it is used frequently. Note that if the end_time is in the future, it will be clamped to the time the request was received.
.google.cloud.visionai.v1.DateTimeRangeArray content_time_ranges = 5;- Specified by:
getContentTimeRangesin interfaceSearchAssetsRequestOrBuilder- Returns:
- The contentTimeRanges.
-
getContentTimeRangesOrBuilder
Time ranges that matching video content must fall within. If no ranges are provided, there will be no time restriction. This field is treated just like the criteria below, but defined separately for convenience as it is used frequently. Note that if the end_time is in the future, it will be clamped to the time the request was received.
.google.cloud.visionai.v1.DateTimeRangeArray content_time_ranges = 5;- Specified by:
getContentTimeRangesOrBuilderin interfaceSearchAssetsRequestOrBuilder
-
getCriteriaList
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaListin interfaceSearchAssetsRequestOrBuilder
-
getCriteriaOrBuilderList
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaOrBuilderListin interfaceSearchAssetsRequestOrBuilder
-
getCriteriaCount
public int getCriteriaCount()Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaCountin interfaceSearchAssetsRequestOrBuilder
-
getCriteria
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriain interfaceSearchAssetsRequestOrBuilder
-
getCriteriaOrBuilder
Criteria applied to search results.
repeated .google.cloud.visionai.v1.Criteria criteria = 4;- Specified by:
getCriteriaOrBuilderin interfaceSearchAssetsRequestOrBuilder
-
getFacetSelectionsList
Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
repeated .google.cloud.visionai.v1.FacetGroup facet_selections = 6;- Specified by:
getFacetSelectionsListin interfaceSearchAssetsRequestOrBuilder
-
getFacetSelectionsOrBuilderList
Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
repeated .google.cloud.visionai.v1.FacetGroup facet_selections = 6;- Specified by:
getFacetSelectionsOrBuilderListin interfaceSearchAssetsRequestOrBuilder
-
getFacetSelectionsCount
public int getFacetSelectionsCount()Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
repeated .google.cloud.visionai.v1.FacetGroup facet_selections = 6;- Specified by:
getFacetSelectionsCountin interfaceSearchAssetsRequestOrBuilder
-
getFacetSelections
Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
repeated .google.cloud.visionai.v1.FacetGroup facet_selections = 6;- Specified by:
getFacetSelectionsin interfaceSearchAssetsRequestOrBuilder
-
getFacetSelectionsOrBuilder
Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
repeated .google.cloud.visionai.v1.FacetGroup facet_selections = 6;- Specified by:
getFacetSelectionsOrBuilderin interfaceSearchAssetsRequestOrBuilder
-
getResultAnnotationKeysList
public com.google.protobuf.ProtocolStringList getResultAnnotationKeysList()A list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
repeated string result_annotation_keys = 8;- Specified by:
getResultAnnotationKeysListin interfaceSearchAssetsRequestOrBuilder- Returns:
- A list containing the resultAnnotationKeys.
-
getResultAnnotationKeysCount
public int getResultAnnotationKeysCount()A list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
repeated string result_annotation_keys = 8;- Specified by:
getResultAnnotationKeysCountin interfaceSearchAssetsRequestOrBuilder- Returns:
- The count of resultAnnotationKeys.
-
getResultAnnotationKeys
A list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
repeated string result_annotation_keys = 8;- Specified by:
getResultAnnotationKeysin interfaceSearchAssetsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resultAnnotationKeys at the given index.
-
getResultAnnotationKeysBytes
public com.google.protobuf.ByteString getResultAnnotationKeysBytes(int index) A list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
repeated string result_annotation_keys = 8;- Specified by:
getResultAnnotationKeysBytesin interfaceSearchAssetsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resultAnnotationKeys at the given index.
-
getSearchQuery
Global search query. Allows user to search assets without needing to specify which field the value belongs to.
string search_query = 10;- Specified by:
getSearchQueryin interfaceSearchAssetsRequestOrBuilder- Returns:
- The searchQuery.
-
getSearchQueryBytes
public com.google.protobuf.ByteString getSearchQueryBytes()Global search query. Allows user to search assets without needing to specify which field the value belongs to.
string search_query = 10;- Specified by:
getSearchQueryBytesin interfaceSearchAssetsRequestOrBuilder- Returns:
- The bytes for searchQuery.
-
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 SearchAssetsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAssetsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAssetsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAssetsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAssetsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SearchAssetsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SearchAssetsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SearchAssetsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SearchAssetsRequest 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 SearchAssetsRequest.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
-