Class ProductImage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
- com.google.ads.googleads.v10.common.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 typegoogle.ads.googleads.v10.common.ProductImage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductImage.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ProductImagebuild()ProductImagebuildPartial()ProductImage.Builderclear()ProductImage.BuilderclearDescription()Description of the product.ProductImage.BuilderclearDisplayCallToAction()Display-call-to-action of the product image.ProductImage.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ProductImage.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ProductImage.BuilderclearProductImage()The MediaFile resource name of the product image.ProductImage.Builderclone()ProductImagegetDefaultInstanceForType()java.lang.StringgetDescription()Description of the product.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the product.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DisplayCallToActiongetDisplayCallToAction()Display-call-to-action of the product image.DisplayCallToAction.BuildergetDisplayCallToActionBuilder()Display-call-to-action of the product image.DisplayCallToActionOrBuildergetDisplayCallToActionOrBuilder()Display-call-to-action of the product image.java.lang.StringgetProductImage()The MediaFile resource name of the product image.com.google.protobuf.ByteStringgetProductImageBytes()The MediaFile resource name of the product image.booleanhasDescription()Description of the product.booleanhasDisplayCallToAction()Display-call-to-action of the product image.booleanhasProductImage()The MediaFile resource name of the product image.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ProductImage.BuildermergeDisplayCallToAction(DisplayCallToAction value)Display-call-to-action of the product image.ProductImage.BuildermergeFrom(ProductImage other)ProductImage.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ProductImage.BuildermergeFrom(com.google.protobuf.Message other)ProductImage.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ProductImage.BuildersetDescription(java.lang.String value)Description of the product.ProductImage.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Description of the product.ProductImage.BuildersetDisplayCallToAction(DisplayCallToAction value)Display-call-to-action of the product image.ProductImage.BuildersetDisplayCallToAction(DisplayCallToAction.Builder builderForValue)Display-call-to-action of the product image.ProductImage.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ProductImage.BuildersetProductImage(java.lang.String value)The MediaFile resource name of the product image.ProductImage.BuildersetProductImageBytes(com.google.protobuf.ByteString value)The MediaFile resource name of the product image.ProductImage.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ProductImage.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
clear
public ProductImage.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
getDefaultInstanceForType
public ProductImage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProductImage build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProductImage buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProductImage.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
setField
public ProductImage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
clearField
public ProductImage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
clearOneof
public ProductImage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
addRepeatedField
public ProductImage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
mergeFrom
public ProductImage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductImage.Builder>
-
mergeFrom
public ProductImage.Builder mergeFrom(ProductImage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasProductImagein interfaceProductImageOrBuilder- 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:
getProductImagein interfaceProductImageOrBuilder- 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:
getProductImageBytesin interfaceProductImageOrBuilder- 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:
hasDescriptionin interfaceProductImageOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public java.lang.String getDescription()
Description of the product.
optional string description = 5;- Specified by:
getDescriptionin interfaceProductImageOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the product.
optional string description = 5;- Specified by:
getDescriptionBytesin interfaceProductImageOrBuilder- 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:
hasDisplayCallToActionin interfaceProductImageOrBuilder- 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:
getDisplayCallToActionin interfaceProductImageOrBuilder- 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;
-
getDisplayCallToActionOrBuilder
public DisplayCallToActionOrBuilder getDisplayCallToActionOrBuilder()
Display-call-to-action of the product image.
.google.ads.googleads.v10.common.DisplayCallToAction display_call_to_action = 3;- Specified by:
getDisplayCallToActionOrBuilderin interfaceProductImageOrBuilder
-
setUnknownFields
public final ProductImage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
mergeUnknownFields
public final ProductImage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductImage.Builder>
-
-