• 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 OutputConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.OutputConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The Google Cloud Storage location to write the output(s) to.
31    * </pre>
32    *
33    * <code>.google.cloud.vision.v1.GcsDestination gcs_destination = 1;</code>
34    *
35    * @return Whether the gcsDestination field is set.
36    */
hasGcsDestination()37   boolean hasGcsDestination();
38   /**
39    *
40    *
41    * <pre>
42    * The Google Cloud Storage location to write the output(s) to.
43    * </pre>
44    *
45    * <code>.google.cloud.vision.v1.GcsDestination gcs_destination = 1;</code>
46    *
47    * @return The gcsDestination.
48    */
getGcsDestination()49   com.google.cloud.vision.v1.GcsDestination getGcsDestination();
50   /**
51    *
52    *
53    * <pre>
54    * The Google Cloud Storage location to write the output(s) to.
55    * </pre>
56    *
57    * <code>.google.cloud.vision.v1.GcsDestination gcs_destination = 1;</code>
58    */
getGcsDestinationOrBuilder()59   com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
60 
61   /**
62    *
63    *
64    * <pre>
65    * The max number of response protos to put into each output JSON file on
66    * Google Cloud Storage.
67    * The valid range is [1, 100]. If not specified, the default value is 20.
68    * For example, for one pdf file with 100 pages, 100 response protos will
69    * be generated. If `batch_size` = 20, then 5 json files each
70    * containing 20 response protos will be written under the prefix
71    * `gcs_destination`.`uri`.
72    * Currently, batch_size only applies to GcsDestination, with potential future
73    * support for other output configurations.
74    * </pre>
75    *
76    * <code>int32 batch_size = 2;</code>
77    *
78    * @return The batchSize.
79    */
getBatchSize()80   int getBatchSize();
81 }
82