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/retail/v2/common.proto 18 19 package com.google.cloud.retail.v2; 20 21 public interface ImageOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Image) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. URI of the image. 31 * This field must be a valid UTF-8 encoded URI with a length limit of 5,000 32 * characters. Otherwise, an INVALID_ARGUMENT error is returned. 33 * Google Merchant Center property 34 * [image_link](https://support.google.com/merchants/answer/6324350). 35 * Schema.org property [Product.image](https://schema.org/image). 36 * </pre> 37 * 38 * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 39 * 40 * @return The uri. 41 */ getUri()42 java.lang.String getUri(); 43 /** 44 * 45 * 46 * <pre> 47 * Required. URI of the image. 48 * This field must be a valid UTF-8 encoded URI with a length limit of 5,000 49 * characters. Otherwise, an INVALID_ARGUMENT error is returned. 50 * Google Merchant Center property 51 * [image_link](https://support.google.com/merchants/answer/6324350). 52 * Schema.org property [Product.image](https://schema.org/image). 53 * </pre> 54 * 55 * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code> 56 * 57 * @return The bytes for uri. 58 */ getUriBytes()59 com.google.protobuf.ByteString getUriBytes(); 60 61 /** 62 * 63 * 64 * <pre> 65 * Height of the image in number of pixels. 66 * This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is 67 * returned. 68 * </pre> 69 * 70 * <code>int32 height = 2;</code> 71 * 72 * @return The height. 73 */ getHeight()74 int getHeight(); 75 76 /** 77 * 78 * 79 * <pre> 80 * Width of the image in number of pixels. 81 * This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is 82 * returned. 83 * </pre> 84 * 85 * <code>int32 width = 3;</code> 86 * 87 * @return The width. 88 */ getWidth()89 int getWidth(); 90 } 91