Package com.google.cloud.visionai.v1
Class AnnotationMatchingResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
com.google.cloud.visionai.v1.AnnotationMatchingResult.Builder
- All Implemented Interfaces:
AnnotationMatchingResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotationMatchingResult
public static final class AnnotationMatchingResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
implements AnnotationMatchingResultOrBuilder
Stores the criteria-annotation matching results for each search result item.Protobuf type
google.cloud.visionai.v1.AnnotationMatchingResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllMatchedAnnotations(Iterable<? extends Annotation> values) Matched annotations for the criteria.addMatchedAnnotations(int index, Annotation value) Matched annotations for the criteria.addMatchedAnnotations(int index, Annotation.Builder builderForValue) Matched annotations for the criteria.addMatchedAnnotations(Annotation value) Matched annotations for the criteria.addMatchedAnnotations(Annotation.Builder builderForValue) Matched annotations for the criteria.Matched annotations for the criteria.addMatchedAnnotationsBuilder(int index) Matched annotations for the criteria.build()clear()The criteria used for matching.Matched annotations for the criteria.Status of the match result.The criteria used for matching.The criteria used for matching.The criteria used for matching.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatchedAnnotations(int index) Matched annotations for the criteria.getMatchedAnnotationsBuilder(int index) Matched annotations for the criteria.Matched annotations for the criteria.intMatched annotations for the criteria.Matched annotations for the criteria.getMatchedAnnotationsOrBuilder(int index) Matched annotations for the criteria.List<? extends AnnotationOrBuilder>Matched annotations for the criteria.Status of the match result.Status of the match result.Status of the match result.booleanThe criteria used for matching.booleanStatus of the match result.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCriteria(Criteria value) The criteria used for matching.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStatus(Status value) Status of the match result.removeMatchedAnnotations(int index) Matched annotations for the criteria.setCriteria(Criteria value) The criteria used for matching.setCriteria(Criteria.Builder builderForValue) The criteria used for matching.setMatchedAnnotations(int index, Annotation value) Matched annotations for the criteria.setMatchedAnnotations(int index, Annotation.Builder builderForValue) Matched annotations for the criteria.Status of the match result.setStatus(Status.Builder builderForValue) Status of the match result.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<AnnotationMatchingResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationMatchingResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
-
mergeFrom
public AnnotationMatchingResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationMatchingResult.Builder>- Throws:
IOException
-
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;- Specified by:
hasCriteriain interfaceAnnotationMatchingResultOrBuilder- Returns:
- Whether the criteria field is set.
-
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;- Specified by:
getCriteriain interfaceAnnotationMatchingResultOrBuilder- Returns:
- The criteria.
-
setCriteria
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; -
setCriteria
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; -
mergeCriteria
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; -
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; -
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; -
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;- Specified by:
getCriteriaOrBuilderin interfaceAnnotationMatchingResultOrBuilder
-
getMatchedAnnotationsList
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;- Specified by:
getMatchedAnnotationsListin interfaceAnnotationMatchingResultOrBuilder
-
getMatchedAnnotationsCount
public int getMatchedAnnotationsCount()Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;- Specified by:
getMatchedAnnotationsCountin interfaceAnnotationMatchingResultOrBuilder
-
getMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;- Specified by:
getMatchedAnnotationsin interfaceAnnotationMatchingResultOrBuilder
-
setMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
setMatchedAnnotations
public AnnotationMatchingResult.Builder setMatchedAnnotations(int index, Annotation.Builder builderForValue) Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addMatchedAnnotations
public AnnotationMatchingResult.Builder addMatchedAnnotations(int index, Annotation.Builder builderForValue) Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addAllMatchedAnnotations
public AnnotationMatchingResult.Builder addAllMatchedAnnotations(Iterable<? extends Annotation> values) Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
clearMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
removeMatchedAnnotations
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
getMatchedAnnotationsBuilder
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
getMatchedAnnotationsOrBuilder
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;- Specified by:
getMatchedAnnotationsOrBuilderin interfaceAnnotationMatchingResultOrBuilder
-
getMatchedAnnotationsOrBuilderList
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;- Specified by:
getMatchedAnnotationsOrBuilderListin interfaceAnnotationMatchingResultOrBuilder
-
addMatchedAnnotationsBuilder
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
addMatchedAnnotationsBuilder
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
getMatchedAnnotationsBuilderList
Matched annotations for the criteria.
repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2; -
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;- Specified by:
hasStatusin interfaceAnnotationMatchingResultOrBuilder- Returns:
- Whether the status field is set.
-
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;- Specified by:
getStatusin interfaceAnnotationMatchingResultOrBuilder- Returns:
- The status.
-
setStatus
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; -
setStatus
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; -
mergeStatus
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; -
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; -
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; -
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;- Specified by:
getStatusOrBuilderin interfaceAnnotationMatchingResultOrBuilder
-