Class ProductImage.Builder

  • All Implemented Interfaces:
    ProductImageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ProductImage

    public static final class ProductImage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
    implements ProductImageOrBuilder
     Product image specific data.
     
    Protobuf type google.ads.googleads.v10.common.ProductImage
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • clear

        public ProductImage.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • getDefaultInstanceForType

        public ProductImage getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ProductImage build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ProductImage buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ProductImage.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • setField

        public ProductImage.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • clearField

        public ProductImage.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • clearOneof

        public ProductImage.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • setRepeatedField

        public ProductImage.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • addRepeatedField

        public ProductImage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • mergeFrom

        public ProductImage.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductImage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • mergeFrom

        public ProductImage.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductImage.Builder>
        Throws:
        java.io.IOException
      • hasProductImage

        public boolean hasProductImage()
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Specified by:
        hasProductImage in interface ProductImageOrBuilder
        Returns:
        Whether the productImage field is set.
      • getProductImage

        public java.lang.String getProductImage()
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Specified by:
        getProductImage in interface ProductImageOrBuilder
        Returns:
        The productImage.
      • getProductImageBytes

        public com.google.protobuf.ByteString getProductImageBytes()
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Specified by:
        getProductImageBytes in interface ProductImageOrBuilder
        Returns:
        The bytes for productImage.
      • setProductImage

        public ProductImage.Builder setProductImage​(java.lang.String value)
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Parameters:
        value - The productImage to set.
        Returns:
        This builder for chaining.
      • clearProductImage

        public ProductImage.Builder clearProductImage()
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Returns:
        This builder for chaining.
      • setProductImageBytes

        public ProductImage.Builder setProductImageBytes​(com.google.protobuf.ByteString value)
         The MediaFile resource name of the product image. Valid image types are
         GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio
         must be 1:1 (+-1%).
         
        optional string product_image = 4;
        Parameters:
        value - The bytes for productImage to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         Description of the product.
         
        optional string description = 5;
        Specified by:
        hasDescription in interface ProductImageOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         Description of the product.
         
        optional string description = 5;
        Specified by:
        getDescription in interface ProductImageOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of the product.
         
        optional string description = 5;
        Specified by:
        getDescriptionBytes in interface ProductImageOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public ProductImage.Builder setDescription​(java.lang.String value)
         Description of the product.
         
        optional string description = 5;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public ProductImage.Builder clearDescription()
         Description of the product.
         
        optional string description = 5;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ProductImage.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the product.
         
        optional string description = 5;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasDisplayCallToAction

        public boolean hasDisplayCallToAction()
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
        Specified by:
        hasDisplayCallToAction in interface ProductImageOrBuilder
        Returns:
        Whether the displayCallToAction field is set.
      • getDisplayCallToAction

        public DisplayCallToAction getDisplayCallToAction()
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
        Specified by:
        getDisplayCallToAction in interface ProductImageOrBuilder
        Returns:
        The displayCallToAction.
      • setDisplayCallToAction

        public ProductImage.Builder setDisplayCallToAction​(DisplayCallToAction value)
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
      • setDisplayCallToAction

        public ProductImage.Builder setDisplayCallToAction​(DisplayCallToAction.Builder builderForValue)
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
      • mergeDisplayCallToAction

        public ProductImage.Builder mergeDisplayCallToAction​(DisplayCallToAction value)
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
      • clearDisplayCallToAction

        public ProductImage.Builder clearDisplayCallToAction()
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
      • getDisplayCallToActionBuilder

        public DisplayCallToAction.Builder getDisplayCallToActionBuilder()
         Display-call-to-action of the product image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;
      • setUnknownFields

        public final ProductImage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
      • mergeUnknownFields

        public final ProductImage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>