public static final class AnnotationMatchingResult.Builder extends GeneratedMessage.Builder<AnnotationMatchingResult.Builder> implements AnnotationMatchingResultOrBuilderStores the criteria-annotation matching results for each search result item.
Protobuf type google.cloud.visionai.v1.AnnotationMatchingResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AnnotationMatchingResult.BuilderImplements
AnnotationMatchingResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMatchedAnnotations(Iterable<? extends Annotation> values)
public AnnotationMatchingResult.Builder addAllMatchedAnnotations(Iterable<? extends Annotation> values)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Annotation> |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
addMatchedAnnotations(Annotation value)
public AnnotationMatchingResult.Builder addMatchedAnnotations(Annotation value)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Annotation |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
addMatchedAnnotations(Annotation.Builder builderForValue)
public AnnotationMatchingResult.Builder addMatchedAnnotations(Annotation.Builder builderForValue)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Annotation.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
addMatchedAnnotations(int index, Annotation value)
public AnnotationMatchingResult.Builder addMatchedAnnotations(int index, Annotation value)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Annotation |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
addMatchedAnnotations(int index, Annotation.Builder builderForValue)
public AnnotationMatchingResult.Builder addMatchedAnnotations(int index, Annotation.Builder builderForValue)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Annotation.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
addMatchedAnnotationsBuilder()
public Annotation.Builder addMatchedAnnotationsBuilder()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
Annotation.Builder |
|
addMatchedAnnotationsBuilder(int index)
public Annotation.Builder addMatchedAnnotationsBuilder(int index)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Annotation.Builder |
|
build()
public AnnotationMatchingResult build()| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult |
|
buildPartial()
public AnnotationMatchingResult buildPartial()| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult |
|
clear()
public AnnotationMatchingResult.Builder clear()| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
clearCriteria()
public AnnotationMatchingResult.Builder clearCriteria()The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
clearMatchedAnnotations()
public AnnotationMatchingResult.Builder clearMatchedAnnotations()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
clearStatus()
public AnnotationMatchingResult.Builder clearStatus()Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
getCriteria()
public Criteria getCriteria()The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Returns | |
|---|---|
| Type | Description |
Criteria |
The criteria. |
getCriteriaBuilder()
public Criteria.Builder getCriteriaBuilder()The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Returns | |
|---|---|
| Type | Description |
Criteria.Builder |
|
getCriteriaOrBuilder()
public CriteriaOrBuilder getCriteriaOrBuilder()The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Returns | |
|---|---|
| Type | Description |
CriteriaOrBuilder |
|
getDefaultInstanceForType()
public AnnotationMatchingResult getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMatchedAnnotations(int index)
public Annotation getMatchedAnnotations(int index)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Annotation |
|
getMatchedAnnotationsBuilder(int index)
public Annotation.Builder getMatchedAnnotationsBuilder(int index)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Annotation.Builder |
|
getMatchedAnnotationsBuilderList()
public List<Annotation.Builder> getMatchedAnnotationsBuilderList()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getMatchedAnnotationsCount()
public int getMatchedAnnotationsCount()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMatchedAnnotationsList()
public List<Annotation> getMatchedAnnotationsList()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
List<Annotation> |
|
getMatchedAnnotationsOrBuilder(int index)
public AnnotationOrBuilder getMatchedAnnotationsOrBuilder(int index)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotationOrBuilder |
|
getMatchedAnnotationsOrBuilderList()
public List<? extends AnnotationOrBuilder> getMatchedAnnotationsOrBuilderList()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.visionai.v1.AnnotationOrBuilder> |
|
getStatus()
public Status getStatus()Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status |
The status. |
getStatusBuilder()
public Status.Builder getStatusBuilder()Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status.Builder |
|
getStatusOrBuilder()
public StatusOrBuilder getStatusOrBuilder()Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
hasCriteria()
public boolean hasCriteria()The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the criteria field is set. |
hasStatus()
public boolean hasStatus()Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the status field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCriteria(Criteria value)
public AnnotationMatchingResult.Builder mergeCriteria(Criteria value)The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Criteria |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
mergeFrom(AnnotationMatchingResult other)
public AnnotationMatchingResult.Builder mergeFrom(AnnotationMatchingResult other)| Parameter | |
|---|---|
| Name | Description |
other |
AnnotationMatchingResult |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotationMatchingResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AnnotationMatchingResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
mergeStatus(Status value)
public AnnotationMatchingResult.Builder mergeStatus(Status value)Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
removeMatchedAnnotations(int index)
public AnnotationMatchingResult.Builder removeMatchedAnnotations(int index)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setCriteria(Criteria value)
public AnnotationMatchingResult.Builder setCriteria(Criteria value)The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Criteria |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setCriteria(Criteria.Builder builderForValue)
public AnnotationMatchingResult.Builder setCriteria(Criteria.Builder builderForValue)The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
.google.cloud.visionai.v1.Criteria criteria = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Criteria.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setMatchedAnnotations(int index, Annotation value)
public AnnotationMatchingResult.Builder setMatchedAnnotations(int index, Annotation value)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Annotation |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setMatchedAnnotations(int index, Annotation.Builder builderForValue)
public AnnotationMatchingResult.Builder setMatchedAnnotations(int index, Annotation.Builder builderForValue)Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Annotation.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setStatus(Status value)
public AnnotationMatchingResult.Builder setStatus(Status value)Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|
setStatus(Status.Builder builderForValue)
public AnnotationMatchingResult.Builder setStatus(Status.Builder builderForValue)Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
.google.rpc.Status status = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotationMatchingResult.Builder |
|