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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnnotationMatchingResult.Builder>
    • getDefaultInstanceForType

      public AnnotationMatchingResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AnnotationMatchingResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AnnotationMatchingResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnnotationMatchingResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationMatchingResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasCriteria in interface AnnotationMatchingResultOrBuilder
      Returns:
      Whether the criteria field is set.
    • 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;
      Specified by:
      getCriteria in interface AnnotationMatchingResultOrBuilder
      Returns:
      The criteria.
    • setCriteria

      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;
    • setCriteria

      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;
    • mergeCriteria

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getCriteriaOrBuilder in interface AnnotationMatchingResultOrBuilder
    • getMatchedAnnotationsList

      public List<Annotation> getMatchedAnnotationsList()
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
      Specified by:
      getMatchedAnnotationsList in interface AnnotationMatchingResultOrBuilder
    • getMatchedAnnotationsCount

      public int getMatchedAnnotationsCount()
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
      Specified by:
      getMatchedAnnotationsCount in interface AnnotationMatchingResultOrBuilder
    • getMatchedAnnotations

      public Annotation getMatchedAnnotations(int index)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
      Specified by:
      getMatchedAnnotations in interface AnnotationMatchingResultOrBuilder
    • setMatchedAnnotations

      public AnnotationMatchingResult.Builder setMatchedAnnotations(int index, Annotation value)
       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

      public AnnotationMatchingResult.Builder addMatchedAnnotations(Annotation value)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • addMatchedAnnotations

      public AnnotationMatchingResult.Builder addMatchedAnnotations(int index, Annotation value)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • addMatchedAnnotations

      public AnnotationMatchingResult.Builder addMatchedAnnotations(Annotation.Builder builderForValue)
       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

      public AnnotationMatchingResult.Builder clearMatchedAnnotations()
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • removeMatchedAnnotations

      public AnnotationMatchingResult.Builder removeMatchedAnnotations(int index)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • getMatchedAnnotationsBuilder

      public Annotation.Builder getMatchedAnnotationsBuilder(int index)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • getMatchedAnnotationsOrBuilder

      public AnnotationOrBuilder getMatchedAnnotationsOrBuilder(int index)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
      Specified by:
      getMatchedAnnotationsOrBuilder in interface AnnotationMatchingResultOrBuilder
    • getMatchedAnnotationsOrBuilderList

      public List<? extends AnnotationOrBuilder> getMatchedAnnotationsOrBuilderList()
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
      Specified by:
      getMatchedAnnotationsOrBuilderList in interface AnnotationMatchingResultOrBuilder
    • addMatchedAnnotationsBuilder

      public Annotation.Builder addMatchedAnnotationsBuilder()
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • addMatchedAnnotationsBuilder

      public Annotation.Builder addMatchedAnnotationsBuilder(int index)
       Matched annotations for the criteria.
       
      repeated .google.cloud.visionai.v1.Annotation matched_annotations = 2;
    • getMatchedAnnotationsBuilderList

      public List<Annotation.Builder> 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:
      hasStatus in interface AnnotationMatchingResultOrBuilder
      Returns:
      Whether the status field is set.
    • 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;
      Specified by:
      getStatus in interface AnnotationMatchingResultOrBuilder
      Returns:
      The status.
    • setStatus

      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;
    • setStatus

      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;
    • mergeStatus

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getStatusOrBuilder in interface AnnotationMatchingResultOrBuilder