Class AnnotationMatchingResult.Builder (0.11.0)

public static final class AnnotationMatchingResult.Builder extends GeneratedMessageV3.Builder<AnnotationMatchingResult.Builder> implements AnnotationMatchingResultOrBuilder

Stores the criteria-annotation matching results for each search result item.

Protobuf type google.cloud.visionai.v1.AnnotationMatchingResult

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotationMatchingResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public AnnotationMatchingResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

clearMatchedAnnotations()

public AnnotationMatchingResult.Builder clearMatchedAnnotations()

Matched annotations for the criteria.

repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;

Returns
Type Description
AnnotationMatchingResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotationMatchingResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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

clone()

public AnnotationMatchingResult.Builder clone()
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnnotationMatchingResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationMatchingResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotationMatchingResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnnotationMatchingResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationMatchingResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotationMatchingResult.Builder
Overrides