Package com.google.cloud.vision.v1p2beta1 (3.40.0)

GitHub Repository RPC Documentation REST Documentation

This package is not the recommended entry point to using this client library!

For this library, we recommend using com.google.cloud.vision.v1 for new applications.

Prerelease Implications

This package is a prerelease version! Use with caution.

Prerelease versions are considered unstable as they may be shut down and/or subject to breaking changes when upgrading. Use them only for testing or if you specifically need their experimental features.

Client Classes

Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.

Client Description
com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient Service Description: Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.

Settings Classes

Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.

Settings Description
com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings Settings class to configure an instance of ImageAnnotatorClient.

The default instance has everything set to sensible defaults:

Classes

Class Description
com.google.cloud.vision.v1p2beta1.AnnotateFileResponse Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
com.google.cloud.vision.v1p2beta1.AnnotateImageRequest Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.
com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.
com.google.cloud.vision.v1p2beta1.AnnotateImageResponse Response to an image annotation request.
com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder Response to an image annotation request.
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest An offline file annotation request.
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder An offline file annotation request.
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse The response for a single offline file annotation request.
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder The response for a single offline file annotation request.
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest Multiple async file annotation requests are batched into a single service call.
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder Multiple async file annotation requests are batched into a single service call.
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse Response to an async batch file annotation request.
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder Response to an async batch file annotation request.
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest Multiple image annotation requests are batched into a single service call.
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder Multiple image annotation requests are batched into a single service call.
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse Response to a batch image annotation request.
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder Response to a batch image annotation request.
com.google.cloud.vision.v1p2beta1.Block Logical element on the page.
com.google.cloud.vision.v1p2beta1.Block.Builder Logical element on the page.
com.google.cloud.vision.v1p2beta1.BoundingPoly A bounding polygon for the detected image annotation.
com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder A bounding polygon for the detected image annotation.
com.google.cloud.vision.v1p2beta1.ColorInfo Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
com.google.cloud.vision.v1p2beta1.ColorInfo.Builder Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
com.google.cloud.vision.v1p2beta1.CropHint Single crop hint that is used to generate a new crop when serving an image.
com.google.cloud.vision.v1p2beta1.CropHint.Builder Single crop hint that is used to generate a new crop when serving an image.
com.google.cloud.vision.v1p2beta1.CropHintsAnnotation Set of crop hints that are used to generate new crops when serving images.
com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder Set of crop hints that are used to generate new crops when serving images.
com.google.cloud.vision.v1p2beta1.CropHintsParams Parameters for crop hints annotation request.
com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder Parameters for crop hints annotation request.
com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation Set of dominant colors and their corresponding scores.
com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder Set of dominant colors and their corresponding scores.
com.google.cloud.vision.v1p2beta1.EntityAnnotation Set of detected entity features.
com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder Set of detected entity features.
com.google.cloud.vision.v1p2beta1.FaceAnnotation A face annotation object contains the results of face detection.
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder A face annotation object contains the results of face detection.
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark A face-specific landmark (for example, a face feature).
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder A face-specific landmark (for example, a face feature).
com.google.cloud.vision.v1p2beta1.Feature The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple Feature objects can be specified in the features list.
com.google.cloud.vision.v1p2beta1.Feature.Builder The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple Feature objects can be specified in the features list.
com.google.cloud.vision.v1p2beta1.GcsDestination The Google Cloud Storage location where the output will be written to.
com.google.cloud.vision.v1p2beta1.GcsDestination.Builder The Google Cloud Storage location where the output will be written to.
com.google.cloud.vision.v1p2beta1.GcsSource The Google Cloud Storage location where the input will be read from.
com.google.cloud.vision.v1p2beta1.GcsSource.Builder The Google Cloud Storage location where the input will be read from.
com.google.cloud.vision.v1p2beta1.GeometryProto
com.google.cloud.vision.v1p2beta1.Image Client image to perform Google Cloud Vision API tasks over.
com.google.cloud.vision.v1p2beta1.Image.Builder Client image to perform Google Cloud Vision API tasks over.
com.google.cloud.vision.v1p2beta1.ImageAnnotationContext If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.
com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.
com.google.cloud.vision.v1p2beta1.ImageAnnotatorGrpc Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.
com.google.cloud.vision.v1p2beta1.ImageAnnotatorGrpc.ImageAnnotatorImplBase Base class for the server implementation of the service ImageAnnotator. Service that performs Google Cloud Vision API detection tasks over client
com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings.Builder Builder for ImageAnnotatorSettings.
com.google.cloud.vision.v1p2beta1.ImageContext Image context and/or feature-specific parameters.
com.google.cloud.vision.v1p2beta1.ImageContext.Builder Image context and/or feature-specific parameters.
com.google.cloud.vision.v1p2beta1.ImageProperties Stores image properties, such as dominant colors.
com.google.cloud.vision.v1p2beta1.ImageProperties.Builder Stores image properties, such as dominant colors.
com.google.cloud.vision.v1p2beta1.ImageSource External image source (Google Cloud Storage or web URL image location).
com.google.cloud.vision.v1p2beta1.ImageSource.Builder External image source (Google Cloud Storage or web URL image location).
com.google.cloud.vision.v1p2beta1.InputConfig The desired input location and metadata.
com.google.cloud.vision.v1p2beta1.InputConfig.Builder The desired input location and metadata.
com.google.cloud.vision.v1p2beta1.LatLongRect Rectangle determined by min and max LatLng pairs.
com.google.cloud.vision.v1p2beta1.LatLongRect.Builder Rectangle determined by min and max LatLng pairs.
com.google.cloud.vision.v1p2beta1.LocationInfo Detected entity location information.
com.google.cloud.vision.v1p2beta1.LocationInfo.Builder Detected entity location information.
com.google.cloud.vision.v1p2beta1.NormalizedVertex A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
com.google.cloud.vision.v1p2beta1.OperationMetadata Contains metadata for the BatchAnnotateImages operation.
com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder Contains metadata for the BatchAnnotateImages operation.
com.google.cloud.vision.v1p2beta1.OutputConfig The desired output location and metadata.
com.google.cloud.vision.v1p2beta1.OutputConfig.Builder The desired output location and metadata.
com.google.cloud.vision.v1p2beta1.Page Detected page from OCR.
com.google.cloud.vision.v1p2beta1.Page.Builder Detected page from OCR.
com.google.cloud.vision.v1p2beta1.Paragraph Structural unit of text representing a number of words in certain order.
com.google.cloud.vision.v1p2beta1.Paragraph.Builder Structural unit of text representing a number of words in certain order.
com.google.cloud.vision.v1p2beta1.Position A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.
com.google.cloud.vision.v1p2beta1.Position.Builder A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.
com.google.cloud.vision.v1p2beta1.Property A Property consists of a user-supplied name/value pair.
com.google.cloud.vision.v1p2beta1.Property.Builder A Property consists of a user-supplied name/value pair.
com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
com.google.cloud.vision.v1p2beta1.Symbol A single symbol representation.
com.google.cloud.vision.v1p2beta1.Symbol.Builder A single symbol representation.
com.google.cloud.vision.v1p2beta1.TextAnnotation TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak Detected start or end of a structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder Detected start or end of a structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage Detected language for a structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder Detected language for a structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty Additional information detected on the structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder Additional information detected on the structural component.
com.google.cloud.vision.v1p2beta1.TextAnnotationProto
com.google.cloud.vision.v1p2beta1.TextDetectionParams Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
com.google.cloud.vision.v1p2beta1.Vertex A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
com.google.cloud.vision.v1p2beta1.Vertex.Builder A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
com.google.cloud.vision.v1p2beta1.WebDetection Relevant information for the image from the Internet.
com.google.cloud.vision.v1p2beta1.WebDetection.Builder Relevant information for the image from the Internet.
com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity Entity deduced from similar images on the Internet.
com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder Entity deduced from similar images on the Internet.
com.google.cloud.vision.v1p2beta1.WebDetection.WebImage Metadata for online images.
com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder Metadata for online images.
com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel Label to provide extra metadata for the web detection.
com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder Label to provide extra metadata for the web detection.
com.google.cloud.vision.v1p2beta1.WebDetection.WebPage Metadata for web pages.
com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder Metadata for web pages.
com.google.cloud.vision.v1p2beta1.WebDetectionParams Parameters for web detection request.
com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder Parameters for web detection request.
com.google.cloud.vision.v1p2beta1.WebDetectionProto
com.google.cloud.vision.v1p2beta1.Word A word representation.
com.google.cloud.vision.v1p2beta1.Word.Builder A word representation.

Interfaces

Interface Description
com.google.cloud.vision.v1p2beta1.AnnotateFileResponseOrBuilder
com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder
com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequestOrBuilder
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponseOrBuilder
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequestOrBuilder
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponseOrBuilder
com.google.cloud.vision.v1p2beta1.BlockOrBuilder
com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder
com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder
com.google.cloud.vision.v1p2beta1.CropHintOrBuilder
com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder
com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder
com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.FeatureOrBuilder
com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder
com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder
com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder
com.google.cloud.vision.v1p2beta1.ImageAnnotatorGrpc.AsyncService Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.
com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder
com.google.cloud.vision.v1p2beta1.ImageOrBuilder
com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder
com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder
com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder
com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder
com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder
com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder
com.google.cloud.vision.v1p2beta1.OperationMetadataOrBuilder
com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder
com.google.cloud.vision.v1p2beta1.PageOrBuilder
com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder
com.google.cloud.vision.v1p2beta1.PositionOrBuilder
com.google.cloud.vision.v1p2beta1.PropertyOrBuilder
com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.SymbolOrBuilder
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder
com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder
com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder
com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder
com.google.cloud.vision.v1p2beta1.VertexOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder
com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder
com.google.cloud.vision.v1p2beta1.WordOrBuilder

Enums

Enum Description
com.google.cloud.vision.v1p2beta1.Block.BlockType Type of a block (text, image etc) as identified by OCR.
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type Face landmark (feature) type. Left and right are defined from the vantage of the viewer of the image without considering mirror projections typical of photos. So, LEFT_EYE,
com.google.cloud.vision.v1p2beta1.Feature.Type Type of Google Cloud Vision API feature to be extracted.
com.google.cloud.vision.v1p2beta1.Likelihood A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades.
com.google.cloud.vision.v1p2beta1.OperationMetadata.State Batch operation states.
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType Enum to denote the type of break found. New line, space etc.