Class AnnotateImageResponse.Builder

    • Method Detail

      • getDescriptor

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

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

        public AnnotateImageResponse.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.GeneratedMessageV3.Builder<AnnotateImageResponse.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.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public AnnotateImageResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • clearField

        public AnnotateImageResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • clearOneof

        public AnnotateImageResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • setRepeatedField

        public AnnotateImageResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • addRepeatedField

        public AnnotateImageResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • mergeFrom

        public AnnotateImageResponse.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<AnnotateImageResponse.Builder>
        Throws:
        IOException
      • getFaceAnnotationsCount

        public int getFaceAnnotationsCount()
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
        Specified by:
        getFaceAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setFaceAnnotations

        public AnnotateImageResponse.Builder setFaceAnnotations​(int index,
                                                                FaceAnnotation value)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • setFaceAnnotations

        public AnnotateImageResponse.Builder setFaceAnnotations​(int index,
                                                                FaceAnnotation.Builder builderForValue)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addFaceAnnotations

        public AnnotateImageResponse.Builder addFaceAnnotations​(FaceAnnotation value)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addFaceAnnotations

        public AnnotateImageResponse.Builder addFaceAnnotations​(int index,
                                                                FaceAnnotation value)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addFaceAnnotations

        public AnnotateImageResponse.Builder addFaceAnnotations​(int index,
                                                                FaceAnnotation.Builder builderForValue)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addAllFaceAnnotations

        public AnnotateImageResponse.Builder addAllFaceAnnotations​(Iterable<? extends FaceAnnotation> values)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • clearFaceAnnotations

        public AnnotateImageResponse.Builder clearFaceAnnotations()
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • removeFaceAnnotations

        public AnnotateImageResponse.Builder removeFaceAnnotations​(int index)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • getFaceAnnotationsBuilder

        public FaceAnnotation.Builder getFaceAnnotationsBuilder​(int index)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addFaceAnnotationsBuilder

        public FaceAnnotation.Builder addFaceAnnotationsBuilder()
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • addFaceAnnotationsBuilder

        public FaceAnnotation.Builder addFaceAnnotationsBuilder​(int index)
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • getFaceAnnotationsBuilderList

        public List<FaceAnnotation.Builder> getFaceAnnotationsBuilderList()
         If present, face detection has completed successfully.
         
        repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;
      • getLandmarkAnnotationsCount

        public int getLandmarkAnnotationsCount()
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
        Specified by:
        getLandmarkAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setLandmarkAnnotations

        public AnnotateImageResponse.Builder setLandmarkAnnotations​(int index,
                                                                    EntityAnnotation value)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • setLandmarkAnnotations

        public AnnotateImageResponse.Builder setLandmarkAnnotations​(int index,
                                                                    EntityAnnotation.Builder builderForValue)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotations

        public AnnotateImageResponse.Builder addLandmarkAnnotations​(EntityAnnotation value)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotations

        public AnnotateImageResponse.Builder addLandmarkAnnotations​(int index,
                                                                    EntityAnnotation value)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotations

        public AnnotateImageResponse.Builder addLandmarkAnnotations​(EntityAnnotation.Builder builderForValue)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotations

        public AnnotateImageResponse.Builder addLandmarkAnnotations​(int index,
                                                                    EntityAnnotation.Builder builderForValue)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addAllLandmarkAnnotations

        public AnnotateImageResponse.Builder addAllLandmarkAnnotations​(Iterable<? extends EntityAnnotation> values)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • clearLandmarkAnnotations

        public AnnotateImageResponse.Builder clearLandmarkAnnotations()
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • removeLandmarkAnnotations

        public AnnotateImageResponse.Builder removeLandmarkAnnotations​(int index)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • getLandmarkAnnotationsBuilder

        public EntityAnnotation.Builder getLandmarkAnnotationsBuilder​(int index)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotationsBuilder

        public EntityAnnotation.Builder addLandmarkAnnotationsBuilder()
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • addLandmarkAnnotationsBuilder

        public EntityAnnotation.Builder addLandmarkAnnotationsBuilder​(int index)
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • getLandmarkAnnotationsBuilderList

        public List<EntityAnnotation.Builder> getLandmarkAnnotationsBuilderList()
         If present, landmark detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;
      • getLogoAnnotationsCount

        public int getLogoAnnotationsCount()
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
        Specified by:
        getLogoAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setLogoAnnotations

        public AnnotateImageResponse.Builder setLogoAnnotations​(int index,
                                                                EntityAnnotation value)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • addLogoAnnotations

        public AnnotateImageResponse.Builder addLogoAnnotations​(EntityAnnotation value)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • addLogoAnnotations

        public AnnotateImageResponse.Builder addLogoAnnotations​(int index,
                                                                EntityAnnotation value)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • clearLogoAnnotations

        public AnnotateImageResponse.Builder clearLogoAnnotations()
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • removeLogoAnnotations

        public AnnotateImageResponse.Builder removeLogoAnnotations​(int index)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • getLogoAnnotationsBuilder

        public EntityAnnotation.Builder getLogoAnnotationsBuilder​(int index)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • addLogoAnnotationsBuilder

        public EntityAnnotation.Builder addLogoAnnotationsBuilder()
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • addLogoAnnotationsBuilder

        public EntityAnnotation.Builder addLogoAnnotationsBuilder​(int index)
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • getLogoAnnotationsBuilderList

        public List<EntityAnnotation.Builder> getLogoAnnotationsBuilderList()
         If present, logo detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;
      • getLabelAnnotationsCount

        public int getLabelAnnotationsCount()
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
        Specified by:
        getLabelAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setLabelAnnotations

        public AnnotateImageResponse.Builder setLabelAnnotations​(int index,
                                                                 EntityAnnotation value)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • setLabelAnnotations

        public AnnotateImageResponse.Builder setLabelAnnotations​(int index,
                                                                 EntityAnnotation.Builder builderForValue)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • addLabelAnnotations

        public AnnotateImageResponse.Builder addLabelAnnotations​(EntityAnnotation value)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • addLabelAnnotations

        public AnnotateImageResponse.Builder addLabelAnnotations​(int index,
                                                                 EntityAnnotation value)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • addLabelAnnotations

        public AnnotateImageResponse.Builder addLabelAnnotations​(int index,
                                                                 EntityAnnotation.Builder builderForValue)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • clearLabelAnnotations

        public AnnotateImageResponse.Builder clearLabelAnnotations()
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • removeLabelAnnotations

        public AnnotateImageResponse.Builder removeLabelAnnotations​(int index)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • getLabelAnnotationsBuilder

        public EntityAnnotation.Builder getLabelAnnotationsBuilder​(int index)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • addLabelAnnotationsBuilder

        public EntityAnnotation.Builder addLabelAnnotationsBuilder()
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • addLabelAnnotationsBuilder

        public EntityAnnotation.Builder addLabelAnnotationsBuilder​(int index)
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • getLabelAnnotationsBuilderList

        public List<EntityAnnotation.Builder> getLabelAnnotationsBuilderList()
         If present, label detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;
      • getLocalizedObjectAnnotationsCount

        public int getLocalizedObjectAnnotationsCount()
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
        Specified by:
        getLocalizedObjectAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder setLocalizedObjectAnnotations​(int index,
                                                                           LocalizedObjectAnnotation value)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • setLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder setLocalizedObjectAnnotations​(int index,
                                                                           LocalizedObjectAnnotation.Builder builderForValue)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder addLocalizedObjectAnnotations​(LocalizedObjectAnnotation value)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder addLocalizedObjectAnnotations​(int index,
                                                                           LocalizedObjectAnnotation value)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder addLocalizedObjectAnnotations​(LocalizedObjectAnnotation.Builder builderForValue)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder addLocalizedObjectAnnotations​(int index,
                                                                           LocalizedObjectAnnotation.Builder builderForValue)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addAllLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder addAllLocalizedObjectAnnotations​(Iterable<? extends LocalizedObjectAnnotation> values)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • clearLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder clearLocalizedObjectAnnotations()
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • removeLocalizedObjectAnnotations

        public AnnotateImageResponse.Builder removeLocalizedObjectAnnotations​(int index)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • getLocalizedObjectAnnotationsBuilder

        public LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder​(int index)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotationsBuilder

        public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder()
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • addLocalizedObjectAnnotationsBuilder

        public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder​(int index)
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • getLocalizedObjectAnnotationsBuilderList

        public List<LocalizedObjectAnnotation.Builder> getLocalizedObjectAnnotationsBuilderList()
         If present, localized object detection has completed successfully.
         This will be sorted descending by confidence score.
         
        repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;
      • getTextAnnotationsCount

        public int getTextAnnotationsCount()
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
        Specified by:
        getTextAnnotationsCount in interface AnnotateImageResponseOrBuilder
      • setTextAnnotations

        public AnnotateImageResponse.Builder setTextAnnotations​(int index,
                                                                EntityAnnotation value)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • setTextAnnotations

        public AnnotateImageResponse.Builder setTextAnnotations​(int index,
                                                                EntityAnnotation.Builder builderForValue)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addTextAnnotations

        public AnnotateImageResponse.Builder addTextAnnotations​(EntityAnnotation value)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addTextAnnotations

        public AnnotateImageResponse.Builder addTextAnnotations​(int index,
                                                                EntityAnnotation value)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addTextAnnotations

        public AnnotateImageResponse.Builder addTextAnnotations​(int index,
                                                                EntityAnnotation.Builder builderForValue)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addAllTextAnnotations

        public AnnotateImageResponse.Builder addAllTextAnnotations​(Iterable<? extends EntityAnnotation> values)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • clearTextAnnotations

        public AnnotateImageResponse.Builder clearTextAnnotations()
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • removeTextAnnotations

        public AnnotateImageResponse.Builder removeTextAnnotations​(int index)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • getTextAnnotationsBuilder

        public EntityAnnotation.Builder getTextAnnotationsBuilder​(int index)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addTextAnnotationsBuilder

        public EntityAnnotation.Builder addTextAnnotationsBuilder()
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • addTextAnnotationsBuilder

        public EntityAnnotation.Builder addTextAnnotationsBuilder​(int index)
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • getTextAnnotationsBuilderList

        public List<EntityAnnotation.Builder> getTextAnnotationsBuilderList()
         If present, text (OCR) detection has completed successfully.
         
        repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;
      • hasFullTextAnnotation

        public boolean hasFullTextAnnotation()
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
        Specified by:
        hasFullTextAnnotation in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the fullTextAnnotation field is set.
      • getFullTextAnnotation

        public TextAnnotation getFullTextAnnotation()
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
        Specified by:
        getFullTextAnnotation in interface AnnotateImageResponseOrBuilder
        Returns:
        The fullTextAnnotation.
      • setFullTextAnnotation

        public AnnotateImageResponse.Builder setFullTextAnnotation​(TextAnnotation value)
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      • setFullTextAnnotation

        public AnnotateImageResponse.Builder setFullTextAnnotation​(TextAnnotation.Builder builderForValue)
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      • mergeFullTextAnnotation

        public AnnotateImageResponse.Builder mergeFullTextAnnotation​(TextAnnotation value)
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      • clearFullTextAnnotation

        public AnnotateImageResponse.Builder clearFullTextAnnotation()
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      • getFullTextAnnotationBuilder

        public TextAnnotation.Builder getFullTextAnnotationBuilder()
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      • getFullTextAnnotationOrBuilder

        public TextAnnotationOrBuilder getFullTextAnnotationOrBuilder()
         If present, text (OCR) detection or document (OCR) text detection has
         completed successfully.
         This annotation provides the structural hierarchy for the OCR detected
         text.
         
        .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
        Specified by:
        getFullTextAnnotationOrBuilder in interface AnnotateImageResponseOrBuilder
      • hasSafeSearchAnnotation

        public boolean hasSafeSearchAnnotation()
         If present, safe-search annotation has completed successfully.
         
        .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;
        Specified by:
        hasSafeSearchAnnotation in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the safeSearchAnnotation field is set.
      • setSafeSearchAnnotation

        public AnnotateImageResponse.Builder setSafeSearchAnnotation​(SafeSearchAnnotation value)
         If present, safe-search annotation has completed successfully.
         
        .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;
      • mergeSafeSearchAnnotation

        public AnnotateImageResponse.Builder mergeSafeSearchAnnotation​(SafeSearchAnnotation value)
         If present, safe-search annotation has completed successfully.
         
        .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;
      • clearSafeSearchAnnotation

        public AnnotateImageResponse.Builder clearSafeSearchAnnotation()
         If present, safe-search annotation has completed successfully.
         
        .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;
      • getSafeSearchAnnotationBuilder

        public SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder()
         If present, safe-search annotation has completed successfully.
         
        .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;
      • hasImagePropertiesAnnotation

        public boolean hasImagePropertiesAnnotation()
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
        Specified by:
        hasImagePropertiesAnnotation in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the imagePropertiesAnnotation field is set.
      • setImagePropertiesAnnotation

        public AnnotateImageResponse.Builder setImagePropertiesAnnotation​(ImageProperties value)
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
      • setImagePropertiesAnnotation

        public AnnotateImageResponse.Builder setImagePropertiesAnnotation​(ImageProperties.Builder builderForValue)
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
      • mergeImagePropertiesAnnotation

        public AnnotateImageResponse.Builder mergeImagePropertiesAnnotation​(ImageProperties value)
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
      • clearImagePropertiesAnnotation

        public AnnotateImageResponse.Builder clearImagePropertiesAnnotation()
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
      • getImagePropertiesAnnotationBuilder

        public ImageProperties.Builder getImagePropertiesAnnotationBuilder()
         If present, image properties were extracted successfully.
         
        .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;
      • hasCropHintsAnnotation

        public boolean hasCropHintsAnnotation()
         If present, crop hints have completed successfully.
         
        .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;
        Specified by:
        hasCropHintsAnnotation in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the cropHintsAnnotation field is set.
      • setCropHintsAnnotation

        public AnnotateImageResponse.Builder setCropHintsAnnotation​(CropHintsAnnotation value)
         If present, crop hints have completed successfully.
         
        .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;
      • mergeCropHintsAnnotation

        public AnnotateImageResponse.Builder mergeCropHintsAnnotation​(CropHintsAnnotation value)
         If present, crop hints have completed successfully.
         
        .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;
      • clearCropHintsAnnotation

        public AnnotateImageResponse.Builder clearCropHintsAnnotation()
         If present, crop hints have completed successfully.
         
        .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;
      • getCropHintsAnnotationBuilder

        public CropHintsAnnotation.Builder getCropHintsAnnotationBuilder()
         If present, crop hints have completed successfully.
         
        .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;
      • hasWebDetection

        public boolean hasWebDetection()
         If present, web detection has completed successfully.
         
        .google.cloud.vision.v1.WebDetection web_detection = 13;
        Specified by:
        hasWebDetection in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the webDetection field is set.
      • setWebDetection

        public AnnotateImageResponse.Builder setWebDetection​(WebDetection value)
         If present, web detection has completed successfully.
         
        .google.cloud.vision.v1.WebDetection web_detection = 13;
      • mergeWebDetection

        public AnnotateImageResponse.Builder mergeWebDetection​(WebDetection value)
         If present, web detection has completed successfully.
         
        .google.cloud.vision.v1.WebDetection web_detection = 13;
      • clearWebDetection

        public AnnotateImageResponse.Builder clearWebDetection()
         If present, web detection has completed successfully.
         
        .google.cloud.vision.v1.WebDetection web_detection = 13;
      • getWebDetectionBuilder

        public WebDetection.Builder getWebDetectionBuilder()
         If present, web detection has completed successfully.
         
        .google.cloud.vision.v1.WebDetection web_detection = 13;
      • hasProductSearchResults

        public boolean hasProductSearchResults()
         If present, product search has completed successfully.
         
        .google.cloud.vision.v1.ProductSearchResults product_search_results = 14;
        Specified by:
        hasProductSearchResults in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the productSearchResults field is set.
      • setProductSearchResults

        public AnnotateImageResponse.Builder setProductSearchResults​(ProductSearchResults value)
         If present, product search has completed successfully.
         
        .google.cloud.vision.v1.ProductSearchResults product_search_results = 14;
      • mergeProductSearchResults

        public AnnotateImageResponse.Builder mergeProductSearchResults​(ProductSearchResults value)
         If present, product search has completed successfully.
         
        .google.cloud.vision.v1.ProductSearchResults product_search_results = 14;
      • clearProductSearchResults

        public AnnotateImageResponse.Builder clearProductSearchResults()
         If present, product search has completed successfully.
         
        .google.cloud.vision.v1.ProductSearchResults product_search_results = 14;
      • getProductSearchResultsBuilder

        public ProductSearchResults.Builder getProductSearchResultsBuilder()
         If present, product search has completed successfully.
         
        .google.cloud.vision.v1.ProductSearchResults product_search_results = 14;
      • hasError

        public boolean hasError()
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
        Specified by:
        hasError in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public com.google.rpc.Status getError()
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
        Specified by:
        getError in interface AnnotateImageResponseOrBuilder
        Returns:
        The error.
      • setError

        public AnnotateImageResponse.Builder setError​(com.google.rpc.Status value)
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
      • setError

        public AnnotateImageResponse.Builder setError​(com.google.rpc.Status.Builder builderForValue)
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
      • mergeError

        public AnnotateImageResponse.Builder mergeError​(com.google.rpc.Status value)
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
      • clearError

        public AnnotateImageResponse.Builder clearError()
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
      • getErrorBuilder

        public com.google.rpc.Status.Builder getErrorBuilder()
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
      • getErrorOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         If set, represents the error message for the operation.
         Note that filled-in image annotations are guaranteed to be
         correct, even when `error` is set.
         
        .google.rpc.Status error = 9;
        Specified by:
        getErrorOrBuilder in interface AnnotateImageResponseOrBuilder
      • hasContext

        public boolean hasContext()
         If present, contextual information is needed to understand where this image
         comes from.
         
        .google.cloud.vision.v1.ImageAnnotationContext context = 21;
        Specified by:
        hasContext in interface AnnotateImageResponseOrBuilder
        Returns:
        Whether the context field is set.
      • clearContext

        public AnnotateImageResponse.Builder clearContext()
         If present, contextual information is needed to understand where this image
         comes from.
         
        .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      • getContextBuilder

        public ImageAnnotationContext.Builder getContextBuilder()
         If present, contextual information is needed to understand where this image
         comes from.
         
        .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      • setUnknownFields

        public final AnnotateImageResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>
      • mergeUnknownFields

        public final AnnotateImageResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateImageResponse.Builder>