• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/vision/v1/image_annotator.proto
18 
19 package com.google.cloud.vision.v1;
20 
21 public interface CropHintOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHint)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The bounding polygon for the crop region. The coordinates of the bounding
31    * box are in the original image's scale.
32    * </pre>
33    *
34    * <code>.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;</code>
35    *
36    * @return Whether the boundingPoly field is set.
37    */
hasBoundingPoly()38   boolean hasBoundingPoly();
39   /**
40    *
41    *
42    * <pre>
43    * The bounding polygon for the crop region. The coordinates of the bounding
44    * box are in the original image's scale.
45    * </pre>
46    *
47    * <code>.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;</code>
48    *
49    * @return The boundingPoly.
50    */
getBoundingPoly()51   com.google.cloud.vision.v1.BoundingPoly getBoundingPoly();
52   /**
53    *
54    *
55    * <pre>
56    * The bounding polygon for the crop region. The coordinates of the bounding
57    * box are in the original image's scale.
58    * </pre>
59    *
60    * <code>.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;</code>
61    */
getBoundingPolyOrBuilder()62   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
63 
64   /**
65    *
66    *
67    * <pre>
68    * Confidence of this being a salient region.  Range [0, 1].
69    * </pre>
70    *
71    * <code>float confidence = 2;</code>
72    *
73    * @return The confidence.
74    */
getConfidence()75   float getConfidence();
76 
77   /**
78    *
79    *
80    * <pre>
81    * Fraction of importance of this salient region with respect to the original
82    * image.
83    * </pre>
84    *
85    * <code>float importance_fraction = 3;</code>
86    *
87    * @return The importanceFraction.
88    */
getImportanceFraction()89   float getImportanceFraction();
90 }
91