Interface ImageOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Image, Image.Builder

@Generated public interface ImageOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Height of the image in number of pixels.
    Required.
    com.google.protobuf.ByteString
    Required.
    int
    Width of the image in number of pixels.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getUri

      String getUri()
       Required. URI of the image.
      
       This field must be a valid UTF-8 encoded URI with a length limit of 5,000
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
      
       Google Merchant Center property
       [image_link](https://support.google.com/merchants/answer/6324350).
       Schema.org property [Product.image](https://schema.org/image).
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The uri.
    • getUriBytes

      com.google.protobuf.ByteString getUriBytes()
       Required. URI of the image.
      
       This field must be a valid UTF-8 encoded URI with a length limit of 5,000
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
      
       Google Merchant Center property
       [image_link](https://support.google.com/merchants/answer/6324350).
       Schema.org property [Product.image](https://schema.org/image).
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for uri.
    • getHeight

      int getHeight()
       Height of the image in number of pixels.
      
       This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      int32 height = 2;
      Returns:
      The height.
    • getWidth

      int getWidth()
       Width of the image in number of pixels.
      
       This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      int32 width = 3;
      Returns:
      The width.