• 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 ImageOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Image)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Image content, represented as a stream of bytes.
31    * Note: As with all `bytes` fields, protobuffers use a pure binary
32    * representation, whereas JSON representations use base64.
33    * Currently, this field only works for BatchAnnotateImages requests. It does
34    * not work for AsyncBatchAnnotateImages requests.
35    * </pre>
36    *
37    * <code>bytes content = 1;</code>
38    *
39    * @return The content.
40    */
getContent()41   com.google.protobuf.ByteString getContent();
42 
43   /**
44    *
45    *
46    * <pre>
47    * Google Cloud Storage image location, or publicly-accessible image
48    * URL. If both `content` and `source` are provided for an image, `content`
49    * takes precedence and is used to perform the image annotation request.
50    * </pre>
51    *
52    * <code>.google.cloud.vision.v1.ImageSource source = 2;</code>
53    *
54    * @return Whether the source field is set.
55    */
hasSource()56   boolean hasSource();
57   /**
58    *
59    *
60    * <pre>
61    * Google Cloud Storage image location, or publicly-accessible image
62    * URL. If both `content` and `source` are provided for an image, `content`
63    * takes precedence and is used to perform the image annotation request.
64    * </pre>
65    *
66    * <code>.google.cloud.vision.v1.ImageSource source = 2;</code>
67    *
68    * @return The source.
69    */
getSource()70   com.google.cloud.vision.v1.ImageSource getSource();
71   /**
72    *
73    *
74    * <pre>
75    * Google Cloud Storage image location, or publicly-accessible image
76    * URL. If both `content` and `source` are provided for an image, `content`
77    * takes precedence and is used to perform the image annotation request.
78    * </pre>
79    *
80    * <code>.google.cloud.vision.v1.ImageSource source = 2;</code>
81    */
getSourceOrBuilder()82   com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder();
83 }
84