• 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 ImageSourceOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageSource)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * **Use `image_uri` instead.**
31    * The Google Cloud Storage  URI of the form
32    * `gs://bucket_name/object_name`. Object versioning is not supported. See
33    * [Google Cloud Storage Request
34    * URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
35    * </pre>
36    *
37    * <code>string gcs_image_uri = 1;</code>
38    *
39    * @return The gcsImageUri.
40    */
getGcsImageUri()41   java.lang.String getGcsImageUri();
42   /**
43    *
44    *
45    * <pre>
46    * **Use `image_uri` instead.**
47    * The Google Cloud Storage  URI of the form
48    * `gs://bucket_name/object_name`. Object versioning is not supported. See
49    * [Google Cloud Storage Request
50    * URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
51    * </pre>
52    *
53    * <code>string gcs_image_uri = 1;</code>
54    *
55    * @return The bytes for gcsImageUri.
56    */
getGcsImageUriBytes()57   com.google.protobuf.ByteString getGcsImageUriBytes();
58 
59   /**
60    *
61    *
62    * <pre>
63    * The URI of the source image. Can be either:
64    * 1. A Google Cloud Storage URI of the form
65    *    `gs://bucket_name/object_name`. Object versioning is not supported. See
66    *    [Google Cloud Storage Request
67    *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
68    *    info.
69    * 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
70    *    HTTP/HTTPS URLs, Google cannot guarantee that the request will be
71    *    completed. Your request may fail if the specified host denies the
72    *    request (e.g. due to request throttling or DOS prevention), or if Google
73    *    throttles requests to the site for abuse prevention. You should not
74    *    depend on externally-hosted images for production applications.
75    * When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
76    * precedence.
77    * </pre>
78    *
79    * <code>string image_uri = 2;</code>
80    *
81    * @return The imageUri.
82    */
getImageUri()83   java.lang.String getImageUri();
84   /**
85    *
86    *
87    * <pre>
88    * The URI of the source image. Can be either:
89    * 1. A Google Cloud Storage URI of the form
90    *    `gs://bucket_name/object_name`. Object versioning is not supported. See
91    *    [Google Cloud Storage Request
92    *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
93    *    info.
94    * 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
95    *    HTTP/HTTPS URLs, Google cannot guarantee that the request will be
96    *    completed. Your request may fail if the specified host denies the
97    *    request (e.g. due to request throttling or DOS prevention), or if Google
98    *    throttles requests to the site for abuse prevention. You should not
99    *    depend on externally-hosted images for production applications.
100    * When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
101    * precedence.
102    * </pre>
103    *
104    * <code>string image_uri = 2;</code>
105    *
106    * @return The bytes for imageUri.
107    */
getImageUriBytes()108   com.google.protobuf.ByteString getImageUriBytes();
109 }
110