• 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 CropHintsParamsOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHintsParams)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Aspect ratios in floats, representing the ratio of the width to the height
31    * of the image. For example, if the desired aspect ratio is 4/3, the
32    * corresponding float value should be 1.33333.  If not specified, the
33    * best possible crop is returned. The number of provided aspect ratios is
34    * limited to a maximum of 16; any aspect ratios provided after the 16th are
35    * ignored.
36    * </pre>
37    *
38    * <code>repeated float aspect_ratios = 1;</code>
39    *
40    * @return A list containing the aspectRatios.
41    */
getAspectRatiosList()42   java.util.List<java.lang.Float> getAspectRatiosList();
43   /**
44    *
45    *
46    * <pre>
47    * Aspect ratios in floats, representing the ratio of the width to the height
48    * of the image. For example, if the desired aspect ratio is 4/3, the
49    * corresponding float value should be 1.33333.  If not specified, the
50    * best possible crop is returned. The number of provided aspect ratios is
51    * limited to a maximum of 16; any aspect ratios provided after the 16th are
52    * ignored.
53    * </pre>
54    *
55    * <code>repeated float aspect_ratios = 1;</code>
56    *
57    * @return The count of aspectRatios.
58    */
getAspectRatiosCount()59   int getAspectRatiosCount();
60   /**
61    *
62    *
63    * <pre>
64    * Aspect ratios in floats, representing the ratio of the width to the height
65    * of the image. For example, if the desired aspect ratio is 4/3, the
66    * corresponding float value should be 1.33333.  If not specified, the
67    * best possible crop is returned. The number of provided aspect ratios is
68    * limited to a maximum of 16; any aspect ratios provided after the 16th are
69    * ignored.
70    * </pre>
71    *
72    * <code>repeated float aspect_ratios = 1;</code>
73    *
74    * @param index The index of the element to return.
75    * @return The aspectRatios at the given index.
76    */
getAspectRatios(int index)77   float getAspectRatios(int index);
78 }
79