public static final class SearchResultItem.Builder extends GeneratedMessageV3.Builder<SearchResultItem.Builder> implements SearchResultItemOrBuilder
Search result contains asset name and corresponding time ranges.
Protobuf type google.cloud.visionai.v1.SearchResultItem
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchResultItem.BuilderImplements
SearchResultItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAnnotationMatchingResults(Iterable<? extends AnnotationMatchingResult> values)
public SearchResultItem.Builder addAllAnnotationMatchingResults(Iterable<? extends AnnotationMatchingResult> values)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.AnnotationMatchingResult> |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAllRequestedAnnotations(Iterable<? extends Annotation> values)
public SearchResultItem.Builder addAllRequestedAnnotations(Iterable<? extends Annotation> values)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Annotation> |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAllSegments(Iterable<? extends Partition.TemporalPartition> values) (deprecated)
public SearchResultItem.Builder addAllSegments(Iterable<? extends Partition.TemporalPartition> values)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Partition.TemporalPartition> |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAnnotationMatchingResults(AnnotationMatchingResult value)
public SearchResultItem.Builder addAnnotationMatchingResults(AnnotationMatchingResult value)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
value |
AnnotationMatchingResult |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAnnotationMatchingResults(AnnotationMatchingResult.Builder builderForValue)
public SearchResultItem.Builder addAnnotationMatchingResults(AnnotationMatchingResult.Builder builderForValue)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnnotationMatchingResult.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAnnotationMatchingResults(int index, AnnotationMatchingResult value)
public SearchResultItem.Builder addAnnotationMatchingResults(int index, AnnotationMatchingResult value)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
AnnotationMatchingResult |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAnnotationMatchingResults(int index, AnnotationMatchingResult.Builder builderForValue)
public SearchResultItem.Builder addAnnotationMatchingResults(int index, AnnotationMatchingResult.Builder builderForValue)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
AnnotationMatchingResult.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addAnnotationMatchingResultsBuilder()
public AnnotationMatchingResult.Builder addAnnotationMatchingResultsBuilder()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
AnnotationMatchingResult.Builder |
addAnnotationMatchingResultsBuilder(int index)
public AnnotationMatchingResult.Builder addAnnotationMatchingResultsBuilder(int index)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AnnotationMatchingResult.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResultItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addRequestedAnnotations(Annotation value)
public SearchResultItem.Builder addRequestedAnnotations(Annotation value)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
value |
Annotation |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addRequestedAnnotations(Annotation.Builder builderForValue)
public SearchResultItem.Builder addRequestedAnnotations(Annotation.Builder builderForValue)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Annotation.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addRequestedAnnotations(int index, Annotation value)
public SearchResultItem.Builder addRequestedAnnotations(int index, Annotation value)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Annotation |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addRequestedAnnotations(int index, Annotation.Builder builderForValue)
public SearchResultItem.Builder addRequestedAnnotations(int index, Annotation.Builder builderForValue)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Annotation.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addRequestedAnnotationsBuilder()
public Annotation.Builder addRequestedAnnotationsBuilder()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
Annotation.Builder |
addRequestedAnnotationsBuilder(int index)
public Annotation.Builder addRequestedAnnotationsBuilder(int index)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Annotation.Builder |
addSegments(Partition.TemporalPartition value) (deprecated)
public SearchResultItem.Builder addSegments(Partition.TemporalPartition value)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
value |
Partition.TemporalPartition |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addSegments(Partition.TemporalPartition.Builder builderForValue) (deprecated)
public SearchResultItem.Builder addSegments(Partition.TemporalPartition.Builder builderForValue)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
builderForValue |
Partition.TemporalPartition.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addSegments(int index, Partition.TemporalPartition value) (deprecated)
public SearchResultItem.Builder addSegments(int index, Partition.TemporalPartition value)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Partition.TemporalPartition |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addSegments(int index, Partition.TemporalPartition.Builder builderForValue) (deprecated)
public SearchResultItem.Builder addSegments(int index, Partition.TemporalPartition.Builder builderForValue)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Partition.TemporalPartition.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
addSegmentsBuilder() (deprecated)
public Partition.TemporalPartition.Builder addSegmentsBuilder()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition.Builder |
addSegmentsBuilder(int index) (deprecated)
public Partition.TemporalPartition.Builder addSegmentsBuilder(int index)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition.Builder |
build()
public SearchResultItem build()
Returns | |
---|---|
Type | Description |
SearchResultItem |
buildPartial()
public SearchResultItem buildPartial()
Returns | |
---|---|
Type | Description |
SearchResultItem |
clear()
public SearchResultItem.Builder clear()
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearAnnotationMatchingResults()
public SearchResultItem.Builder clearAnnotationMatchingResults()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearAsset()
public SearchResultItem.Builder clearAsset()
The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 1;
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SearchResultItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResultItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearRelevance()
public SearchResultItem.Builder clearRelevance()
Available to IMAGE corpus types.
Relevance of this SearchResultItem
to user search query (text query or
image query).
By default this represents cosine similarity between the query and the
retrieved media content. The value is in the range of [-1, 1].
Note that search ranking is not only decided by this relevance score,
but also other factors such as the match of annotations.
double relevance = 6;
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
This builder for chaining. |
clearRequestedAnnotations()
public SearchResultItem.Builder clearRequestedAnnotations()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearSegment()
public SearchResultItem.Builder clearSegment()
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clearSegments() (deprecated)
public SearchResultItem.Builder clearSegments()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
clone()
public SearchResultItem.Builder clone()
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
getAnnotationMatchingResults(int index)
public AnnotationMatchingResult getAnnotationMatchingResults(int index)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AnnotationMatchingResult |
getAnnotationMatchingResultsBuilder(int index)
public AnnotationMatchingResult.Builder getAnnotationMatchingResultsBuilder(int index)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AnnotationMatchingResult.Builder |
getAnnotationMatchingResultsBuilderList()
public List<AnnotationMatchingResult.Builder> getAnnotationMatchingResultsBuilderList()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
List<Builder> |
getAnnotationMatchingResultsCount()
public int getAnnotationMatchingResultsCount()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
int |
getAnnotationMatchingResultsList()
public List<AnnotationMatchingResult> getAnnotationMatchingResultsList()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
List<AnnotationMatchingResult> |
getAnnotationMatchingResultsOrBuilder(int index)
public AnnotationMatchingResultOrBuilder getAnnotationMatchingResultsOrBuilder(int index)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AnnotationMatchingResultOrBuilder |
getAnnotationMatchingResultsOrBuilderList()
public List<? extends AnnotationMatchingResultOrBuilder> getAnnotationMatchingResultsOrBuilderList()
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.visionai.v1.AnnotationMatchingResultOrBuilder> |
getAsset()
public String getAsset()
The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 1;
Returns | |
---|---|
Type | Description |
String |
The asset. |
getAssetBytes()
public ByteString getAssetBytes()
The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for asset. |
getDefaultInstanceForType()
public SearchResultItem getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SearchResultItem |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getRelevance()
public double getRelevance()
Available to IMAGE corpus types.
Relevance of this SearchResultItem
to user search query (text query or
image query).
By default this represents cosine similarity between the query and the
retrieved media content. The value is in the range of [-1, 1].
Note that search ranking is not only decided by this relevance score,
but also other factors such as the match of annotations.
double relevance = 6;
Returns | |
---|---|
Type | Description |
double |
The relevance. |
getRequestedAnnotations(int index)
public Annotation getRequestedAnnotations(int index)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Annotation |
getRequestedAnnotationsBuilder(int index)
public Annotation.Builder getRequestedAnnotationsBuilder(int index)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Annotation.Builder |
getRequestedAnnotationsBuilderList()
public List<Annotation.Builder> getRequestedAnnotationsBuilderList()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
List<Builder> |
getRequestedAnnotationsCount()
public int getRequestedAnnotationsCount()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
int |
getRequestedAnnotationsList()
public List<Annotation> getRequestedAnnotationsList()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
List<Annotation> |
getRequestedAnnotationsOrBuilder(int index)
public AnnotationOrBuilder getRequestedAnnotationsOrBuilder(int index)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AnnotationOrBuilder |
getRequestedAnnotationsOrBuilderList()
public List<? extends AnnotationOrBuilder> getRequestedAnnotationsOrBuilderList()
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.visionai.v1.AnnotationOrBuilder> |
getSegment()
public Partition.TemporalPartition getSegment()
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition |
The segment. |
getSegmentBuilder()
public Partition.TemporalPartition.Builder getSegmentBuilder()
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition.Builder |
getSegmentOrBuilder()
public Partition.TemporalPartitionOrBuilder getSegmentOrBuilder()
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Returns | |
---|---|
Type | Description |
Partition.TemporalPartitionOrBuilder |
getSegments(int index) (deprecated)
public Partition.TemporalPartition getSegments(int index)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition |
getSegmentsBuilder(int index) (deprecated)
public Partition.TemporalPartition.Builder getSegmentsBuilder(int index)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Partition.TemporalPartition.Builder |
getSegmentsBuilderList() (deprecated)
public List<Partition.TemporalPartition.Builder> getSegmentsBuilderList()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
List<Builder> |
getSegmentsCount() (deprecated)
public int getSegmentsCount()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
int |
getSegmentsList() (deprecated)
public List<Partition.TemporalPartition> getSegmentsList()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
List<TemporalPartition> |
getSegmentsOrBuilder(int index) (deprecated)
public Partition.TemporalPartitionOrBuilder getSegmentsOrBuilder(int index)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Partition.TemporalPartitionOrBuilder |
getSegmentsOrBuilderList() (deprecated)
public List<? extends Partition.TemporalPartitionOrBuilder> getSegmentsOrBuilderList()
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder> |
hasSegment()
public boolean hasSegment()
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the segment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SearchResultItem other)
public SearchResultItem.Builder mergeFrom(SearchResultItem other)
Parameter | |
---|---|
Name | Description |
other |
SearchResultItem |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchResultItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SearchResultItem.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
mergeSegment(Partition.TemporalPartition value)
public SearchResultItem.Builder mergeSegment(Partition.TemporalPartition value)
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Parameter | |
---|---|
Name | Description |
value |
Partition.TemporalPartition |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResultItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
removeAnnotationMatchingResults(int index)
public SearchResultItem.Builder removeAnnotationMatchingResults(int index)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
removeRequestedAnnotations(int index)
public SearchResultItem.Builder removeRequestedAnnotations(int index)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
removeSegments(int index) (deprecated)
public SearchResultItem.Builder removeSegments(int index)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setAnnotationMatchingResults(int index, AnnotationMatchingResult value)
public SearchResultItem.Builder setAnnotationMatchingResults(int index, AnnotationMatchingResult value)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
AnnotationMatchingResult |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setAnnotationMatchingResults(int index, AnnotationMatchingResult.Builder builderForValue)
public SearchResultItem.Builder setAnnotationMatchingResults(int index, AnnotationMatchingResult.Builder builderForValue)
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
repeated .google.cloud.visionai.v1.AnnotationMatchingResult annotation_matching_results = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
AnnotationMatchingResult.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setAsset(String value)
public SearchResultItem.Builder setAsset(String value)
The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 1;
Parameter | |
---|---|
Name | Description |
value |
String The asset to set. |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
This builder for chaining. |
setAssetBytes(ByteString value)
public SearchResultItem.Builder setAssetBytes(ByteString value)
The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for asset to set. |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResultItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setRelevance(double value)
public SearchResultItem.Builder setRelevance(double value)
Available to IMAGE corpus types.
Relevance of this SearchResultItem
to user search query (text query or
image query).
By default this represents cosine similarity between the query and the
retrieved media content. The value is in the range of [-1, 1].
Note that search ranking is not only decided by this relevance score,
but also other factors such as the match of annotations.
double relevance = 6;
Parameter | |
---|---|
Name | Description |
value |
double The relevance to set. |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResultItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setRequestedAnnotations(int index, Annotation value)
public SearchResultItem.Builder setRequestedAnnotations(int index, Annotation value)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Annotation |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setRequestedAnnotations(int index, Annotation.Builder builderForValue)
public SearchResultItem.Builder setRequestedAnnotations(int index, Annotation.Builder builderForValue)
Search result annotations specified by result_annotation_keys in search request.
repeated .google.cloud.visionai.v1.Annotation requested_annotations = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Annotation.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setSegment(Partition.TemporalPartition value)
public SearchResultItem.Builder setSegment(Partition.TemporalPartition value)
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Parameter | |
---|---|
Name | Description |
value |
Partition.TemporalPartition |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setSegment(Partition.TemporalPartition.Builder builderForValue)
public SearchResultItem.Builder setSegment(Partition.TemporalPartition.Builder builderForValue)
The matched asset segment.
.google.cloud.visionai.v1.Partition.TemporalPartition segment = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
Partition.TemporalPartition.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setSegments(int index, Partition.TemporalPartition value) (deprecated)
public SearchResultItem.Builder setSegments(int index, Partition.TemporalPartition value)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Partition.TemporalPartition |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setSegments(int index, Partition.TemporalPartition.Builder builderForValue) (deprecated)
public SearchResultItem.Builder setSegments(int index, Partition.TemporalPartition.Builder builderForValue)
The matched asset segments.
Deprecated: please use singular segment
field.
repeated .google.cloud.visionai.v1.Partition.TemporalPartition segments = 2 [deprecated = true];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Partition.TemporalPartition.Builder |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResultItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchResultItem.Builder |