• 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 InputConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.InputConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The Google Cloud Storage location to read the input from.
31    * </pre>
32    *
33    * <code>.google.cloud.vision.v1.GcsSource gcs_source = 1;</code>
34    *
35    * @return Whether the gcsSource field is set.
36    */
hasGcsSource()37   boolean hasGcsSource();
38   /**
39    *
40    *
41    * <pre>
42    * The Google Cloud Storage location to read the input from.
43    * </pre>
44    *
45    * <code>.google.cloud.vision.v1.GcsSource gcs_source = 1;</code>
46    *
47    * @return The gcsSource.
48    */
getGcsSource()49   com.google.cloud.vision.v1.GcsSource getGcsSource();
50   /**
51    *
52    *
53    * <pre>
54    * The Google Cloud Storage location to read the input from.
55    * </pre>
56    *
57    * <code>.google.cloud.vision.v1.GcsSource gcs_source = 1;</code>
58    */
getGcsSourceOrBuilder()59   com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder();
60 
61   /**
62    *
63    *
64    * <pre>
65    * File content, represented as a stream of bytes.
66    * Note: As with all `bytes` fields, protobuffers use a pure binary
67    * representation, whereas JSON representations use base64.
68    * Currently, this field only works for BatchAnnotateFiles requests. It does
69    * not work for AsyncBatchAnnotateFiles requests.
70    * </pre>
71    *
72    * <code>bytes content = 3;</code>
73    *
74    * @return The content.
75    */
getContent()76   com.google.protobuf.ByteString getContent();
77 
78   /**
79    *
80    *
81    * <pre>
82    * The type of the file. Currently only "application/pdf", "image/tiff" and
83    * "image/gif" are supported. Wildcards are not supported.
84    * </pre>
85    *
86    * <code>string mime_type = 2;</code>
87    *
88    * @return The mimeType.
89    */
getMimeType()90   java.lang.String getMimeType();
91   /**
92    *
93    *
94    * <pre>
95    * The type of the file. Currently only "application/pdf", "image/tiff" and
96    * "image/gif" are supported. Wildcards are not supported.
97    * </pre>
98    *
99    * <code>string mime_type = 2;</code>
100    *
101    * @return The bytes for mimeType.
102    */
getMimeTypeBytes()103   com.google.protobuf.ByteString getMimeTypeBytes();
104 }
105