Class AnnotationMatchingResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.AnnotationMatchingResult
All Implemented Interfaces:
AnnotationMatchingResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AnnotationMatchingResult extends com.google.protobuf.GeneratedMessage implements AnnotationMatchingResultOrBuilder
 Stores the criteria-annotation matching results for each search result item.
 
Protobuf type google.cloud.visionai.v1.AnnotationMatchingResult
See Also:
  • Field Details

    • CRITERIA_FIELD_NUMBER

      public static final int CRITERIA_FIELD_NUMBER
      See Also:
    • MATCHED_ANNOTATIONS_FIELD_NUMBER

      public static final int MATCHED_ANNOTATIONS_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnnotationMatchingResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationMatchingResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationMatchingResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationMatchingResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AnnotationMatchingResult.Builder newBuilder()
    • newBuilder

      public static AnnotationMatchingResult.Builder newBuilder(AnnotationMatchingResult prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnnotationMatchingResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnnotationMatchingResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnnotationMatchingResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnnotationMatchingResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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