All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v10.common.GmailAdInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/common/ad_type_infos.proto

package com.google.ads.googleads.v10.common;

/**
 * 
 * A Gmail ad.
 * 
* * Protobuf type {@code google.ads.googleads.v10.common.GmailAdInfo} */ public final class GmailAdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.GmailAdInfo) GmailAdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use GmailAdInfo.newBuilder() to construct. private GmailAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GmailAdInfo() { headerImage_ = ""; marketingImage_ = ""; marketingImageHeadline_ = ""; marketingImageDescription_ = ""; productImages_ = java.util.Collections.emptyList(); productVideos_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GmailAdInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.GmailAdInfo.class, com.google.ads.googleads.v10.common.GmailAdInfo.Builder.class); } private int bitField0_; public static final int TEASER_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.common.GmailTeaser teaser_; /** *
   * The Gmail teaser.
   * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; * @return Whether the teaser field is set. */ @java.lang.Override public boolean hasTeaser() { return teaser_ != null; } /** *
   * The Gmail teaser.
   * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; * @return The teaser. */ @java.lang.Override public com.google.ads.googleads.v10.common.GmailTeaser getTeaser() { return teaser_ == null ? com.google.ads.googleads.v10.common.GmailTeaser.getDefaultInstance() : teaser_; } /** *
   * The Gmail teaser.
   * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ @java.lang.Override public com.google.ads.googleads.v10.common.GmailTeaserOrBuilder getTeaserOrBuilder() { return getTeaser(); } public static final int HEADER_IMAGE_FIELD_NUMBER = 10; private volatile java.lang.Object headerImage_; /** *
   * The MediaFile resource name of the header image. Valid image types are GIF,
   * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
   * be between 3:1 and 5:1 (+-1%).
   * 
* * optional string header_image = 10; * @return Whether the headerImage field is set. */ @java.lang.Override public boolean hasHeaderImage() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The MediaFile resource name of the header image. Valid image types are GIF,
   * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
   * be between 3:1 and 5:1 (+-1%).
   * 
* * optional string header_image = 10; * @return The headerImage. */ @java.lang.Override public java.lang.String getHeaderImage() { java.lang.Object ref = headerImage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerImage_ = s; return s; } } /** *
   * The MediaFile resource name of the header image. Valid image types are GIF,
   * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
   * be between 3:1 and 5:1 (+-1%).
   * 
* * optional string header_image = 10; * @return The bytes for headerImage. */ @java.lang.Override public com.google.protobuf.ByteString getHeaderImageBytes() { java.lang.Object ref = headerImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETING_IMAGE_FIELD_NUMBER = 11; private volatile java.lang.Object marketingImage_; /** *
   * The MediaFile resource name of the marketing image. Valid image types are
   * GIF, JPEG and PNG. The image must either be landscape with a minimum size
   * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
   * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
   * 
* * optional string marketing_image = 11; * @return Whether the marketingImage field is set. */ @java.lang.Override public boolean hasMarketingImage() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The MediaFile resource name of the marketing image. Valid image types are
   * GIF, JPEG and PNG. The image must either be landscape with a minimum size
   * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
   * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
   * 
* * optional string marketing_image = 11; * @return The marketingImage. */ @java.lang.Override public java.lang.String getMarketingImage() { java.lang.Object ref = marketingImage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImage_ = s; return s; } } /** *
   * The MediaFile resource name of the marketing image. Valid image types are
   * GIF, JPEG and PNG. The image must either be landscape with a minimum size
   * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
   * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
   * 
* * optional string marketing_image = 11; * @return The bytes for marketingImage. */ @java.lang.Override public com.google.protobuf.ByteString getMarketingImageBytes() { java.lang.Object ref = marketingImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETING_IMAGE_HEADLINE_FIELD_NUMBER = 12; private volatile java.lang.Object marketingImageHeadline_; /** *
   * Headline of the marketing image.
   * 
* * optional string marketing_image_headline = 12; * @return Whether the marketingImageHeadline field is set. */ @java.lang.Override public boolean hasMarketingImageHeadline() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Headline of the marketing image.
   * 
* * optional string marketing_image_headline = 12; * @return The marketingImageHeadline. */ @java.lang.Override public java.lang.String getMarketingImageHeadline() { java.lang.Object ref = marketingImageHeadline_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImageHeadline_ = s; return s; } } /** *
   * Headline of the marketing image.
   * 
* * optional string marketing_image_headline = 12; * @return The bytes for marketingImageHeadline. */ @java.lang.Override public com.google.protobuf.ByteString getMarketingImageHeadlineBytes() { java.lang.Object ref = marketingImageHeadline_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImageHeadline_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETING_IMAGE_DESCRIPTION_FIELD_NUMBER = 13; private volatile java.lang.Object marketingImageDescription_; /** *
   * Description of the marketing image.
   * 
* * optional string marketing_image_description = 13; * @return Whether the marketingImageDescription field is set. */ @java.lang.Override public boolean hasMarketingImageDescription() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Description of the marketing image.
   * 
* * optional string marketing_image_description = 13; * @return The marketingImageDescription. */ @java.lang.Override public java.lang.String getMarketingImageDescription() { java.lang.Object ref = marketingImageDescription_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImageDescription_ = s; return s; } } /** *
   * Description of the marketing image.
   * 
* * optional string marketing_image_description = 13; * @return The bytes for marketingImageDescription. */ @java.lang.Override public com.google.protobuf.ByteString getMarketingImageDescriptionBytes() { java.lang.Object ref = marketingImageDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImageDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETING_IMAGE_DISPLAY_CALL_TO_ACTION_FIELD_NUMBER = 6; private com.google.ads.googleads.v10.common.DisplayCallToAction marketingImageDisplayCallToAction_; /** *
   * Display-call-to-action of the marketing image.
   * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; * @return Whether the marketingImageDisplayCallToAction field is set. */ @java.lang.Override public boolean hasMarketingImageDisplayCallToAction() { return marketingImageDisplayCallToAction_ != null; } /** *
   * Display-call-to-action of the marketing image.
   * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; * @return The marketingImageDisplayCallToAction. */ @java.lang.Override public com.google.ads.googleads.v10.common.DisplayCallToAction getMarketingImageDisplayCallToAction() { return marketingImageDisplayCallToAction_ == null ? com.google.ads.googleads.v10.common.DisplayCallToAction.getDefaultInstance() : marketingImageDisplayCallToAction_; } /** *
   * Display-call-to-action of the marketing image.
   * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ @java.lang.Override public com.google.ads.googleads.v10.common.DisplayCallToActionOrBuilder getMarketingImageDisplayCallToActionOrBuilder() { return getMarketingImageDisplayCallToAction(); } public static final int PRODUCT_IMAGES_FIELD_NUMBER = 7; private java.util.List productImages_; /** *
   * Product images. Up to 15 images are supported.
   * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ @java.lang.Override public java.util.List getProductImagesList() { return productImages_; } /** *
   * Product images. Up to 15 images are supported.
   * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ @java.lang.Override public java.util.List getProductImagesOrBuilderList() { return productImages_; } /** *
   * Product images. Up to 15 images are supported.
   * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ @java.lang.Override public int getProductImagesCount() { return productImages_.size(); } /** *
   * Product images. Up to 15 images are supported.
   * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ @java.lang.Override public com.google.ads.googleads.v10.common.ProductImage getProductImages(int index) { return productImages_.get(index); } /** *
   * Product images. Up to 15 images are supported.
   * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ @java.lang.Override public com.google.ads.googleads.v10.common.ProductImageOrBuilder getProductImagesOrBuilder( int index) { return productImages_.get(index); } public static final int PRODUCT_VIDEOS_FIELD_NUMBER = 8; private java.util.List productVideos_; /** *
   * Product videos. Up to 7 videos are supported. At least one product video
   * or a marketing image must be specified.
   * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ @java.lang.Override public java.util.List getProductVideosList() { return productVideos_; } /** *
   * Product videos. Up to 7 videos are supported. At least one product video
   * or a marketing image must be specified.
   * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ @java.lang.Override public java.util.List getProductVideosOrBuilderList() { return productVideos_; } /** *
   * Product videos. Up to 7 videos are supported. At least one product video
   * or a marketing image must be specified.
   * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ @java.lang.Override public int getProductVideosCount() { return productVideos_.size(); } /** *
   * Product videos. Up to 7 videos are supported. At least one product video
   * or a marketing image must be specified.
   * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ @java.lang.Override public com.google.ads.googleads.v10.common.ProductVideo getProductVideos(int index) { return productVideos_.get(index); } /** *
   * Product videos. Up to 7 videos are supported. At least one product video
   * or a marketing image must be specified.
   * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ @java.lang.Override public com.google.ads.googleads.v10.common.ProductVideoOrBuilder getProductVideosOrBuilder( int index) { return productVideos_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (teaser_ != null) { output.writeMessage(1, getTeaser()); } if (marketingImageDisplayCallToAction_ != null) { output.writeMessage(6, getMarketingImageDisplayCallToAction()); } for (int i = 0; i < productImages_.size(); i++) { output.writeMessage(7, productImages_.get(i)); } for (int i = 0; i < productVideos_.size(); i++) { output.writeMessage(8, productVideos_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, headerImage_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, marketingImage_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, marketingImageHeadline_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, marketingImageDescription_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (teaser_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTeaser()); } if (marketingImageDisplayCallToAction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMarketingImageDisplayCallToAction()); } for (int i = 0; i < productImages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, productImages_.get(i)); } for (int i = 0; i < productVideos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, productVideos_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, headerImage_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, marketingImage_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, marketingImageHeadline_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, marketingImageDescription_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.common.GmailAdInfo)) { return super.equals(obj); } com.google.ads.googleads.v10.common.GmailAdInfo other = (com.google.ads.googleads.v10.common.GmailAdInfo) obj; if (hasTeaser() != other.hasTeaser()) return false; if (hasTeaser()) { if (!getTeaser() .equals(other.getTeaser())) return false; } if (hasHeaderImage() != other.hasHeaderImage()) return false; if (hasHeaderImage()) { if (!getHeaderImage() .equals(other.getHeaderImage())) return false; } if (hasMarketingImage() != other.hasMarketingImage()) return false; if (hasMarketingImage()) { if (!getMarketingImage() .equals(other.getMarketingImage())) return false; } if (hasMarketingImageHeadline() != other.hasMarketingImageHeadline()) return false; if (hasMarketingImageHeadline()) { if (!getMarketingImageHeadline() .equals(other.getMarketingImageHeadline())) return false; } if (hasMarketingImageDescription() != other.hasMarketingImageDescription()) return false; if (hasMarketingImageDescription()) { if (!getMarketingImageDescription() .equals(other.getMarketingImageDescription())) return false; } if (hasMarketingImageDisplayCallToAction() != other.hasMarketingImageDisplayCallToAction()) return false; if (hasMarketingImageDisplayCallToAction()) { if (!getMarketingImageDisplayCallToAction() .equals(other.getMarketingImageDisplayCallToAction())) return false; } if (!getProductImagesList() .equals(other.getProductImagesList())) return false; if (!getProductVideosList() .equals(other.getProductVideosList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTeaser()) { hash = (37 * hash) + TEASER_FIELD_NUMBER; hash = (53 * hash) + getTeaser().hashCode(); } if (hasHeaderImage()) { hash = (37 * hash) + HEADER_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getHeaderImage().hashCode(); } if (hasMarketingImage()) { hash = (37 * hash) + MARKETING_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getMarketingImage().hashCode(); } if (hasMarketingImageHeadline()) { hash = (37 * hash) + MARKETING_IMAGE_HEADLINE_FIELD_NUMBER; hash = (53 * hash) + getMarketingImageHeadline().hashCode(); } if (hasMarketingImageDescription()) { hash = (37 * hash) + MARKETING_IMAGE_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getMarketingImageDescription().hashCode(); } if (hasMarketingImageDisplayCallToAction()) { hash = (37 * hash) + MARKETING_IMAGE_DISPLAY_CALL_TO_ACTION_FIELD_NUMBER; hash = (53 * hash) + getMarketingImageDisplayCallToAction().hashCode(); } if (getProductImagesCount() > 0) { hash = (37 * hash) + PRODUCT_IMAGES_FIELD_NUMBER; hash = (53 * hash) + getProductImagesList().hashCode(); } if (getProductVideosCount() > 0) { hash = (37 * hash) + PRODUCT_VIDEOS_FIELD_NUMBER; hash = (53 * hash) + getProductVideosList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.GmailAdInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.common.GmailAdInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A Gmail ad.
   * 
* * Protobuf type {@code google.ads.googleads.v10.common.GmailAdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.GmailAdInfo) com.google.ads.googleads.v10.common.GmailAdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.GmailAdInfo.class, com.google.ads.googleads.v10.common.GmailAdInfo.Builder.class); } // Construct using com.google.ads.googleads.v10.common.GmailAdInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (teaserBuilder_ == null) { teaser_ = null; } else { teaser_ = null; teaserBuilder_ = null; } headerImage_ = ""; bitField0_ = (bitField0_ & ~0x00000001); marketingImage_ = ""; bitField0_ = (bitField0_ & ~0x00000002); marketingImageHeadline_ = ""; bitField0_ = (bitField0_ & ~0x00000004); marketingImageDescription_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (marketingImageDisplayCallToActionBuilder_ == null) { marketingImageDisplayCallToAction_ = null; } else { marketingImageDisplayCallToAction_ = null; marketingImageDisplayCallToActionBuilder_ = null; } if (productImagesBuilder_ == null) { productImages_ = java.util.Collections.emptyList(); } else { productImages_ = null; productImagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (productVideosBuilder_ == null) { productVideos_ = java.util.Collections.emptyList(); } else { productVideos_ = null; productVideosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailAdInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.common.GmailAdInfo getDefaultInstanceForType() { return com.google.ads.googleads.v10.common.GmailAdInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.common.GmailAdInfo build() { com.google.ads.googleads.v10.common.GmailAdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.common.GmailAdInfo buildPartial() { com.google.ads.googleads.v10.common.GmailAdInfo result = new com.google.ads.googleads.v10.common.GmailAdInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (teaserBuilder_ == null) { result.teaser_ = teaser_; } else { result.teaser_ = teaserBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.headerImage_ = headerImage_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.marketingImage_ = marketingImage_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.marketingImageHeadline_ = marketingImageHeadline_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.marketingImageDescription_ = marketingImageDescription_; if (marketingImageDisplayCallToActionBuilder_ == null) { result.marketingImageDisplayCallToAction_ = marketingImageDisplayCallToAction_; } else { result.marketingImageDisplayCallToAction_ = marketingImageDisplayCallToActionBuilder_.build(); } if (productImagesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { productImages_ = java.util.Collections.unmodifiableList(productImages_); bitField0_ = (bitField0_ & ~0x00000010); } result.productImages_ = productImages_; } else { result.productImages_ = productImagesBuilder_.build(); } if (productVideosBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { productVideos_ = java.util.Collections.unmodifiableList(productVideos_); bitField0_ = (bitField0_ & ~0x00000020); } result.productVideos_ = productVideos_; } else { result.productVideos_ = productVideosBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.common.GmailAdInfo) { return mergeFrom((com.google.ads.googleads.v10.common.GmailAdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.common.GmailAdInfo other) { if (other == com.google.ads.googleads.v10.common.GmailAdInfo.getDefaultInstance()) return this; if (other.hasTeaser()) { mergeTeaser(other.getTeaser()); } if (other.hasHeaderImage()) { bitField0_ |= 0x00000001; headerImage_ = other.headerImage_; onChanged(); } if (other.hasMarketingImage()) { bitField0_ |= 0x00000002; marketingImage_ = other.marketingImage_; onChanged(); } if (other.hasMarketingImageHeadline()) { bitField0_ |= 0x00000004; marketingImageHeadline_ = other.marketingImageHeadline_; onChanged(); } if (other.hasMarketingImageDescription()) { bitField0_ |= 0x00000008; marketingImageDescription_ = other.marketingImageDescription_; onChanged(); } if (other.hasMarketingImageDisplayCallToAction()) { mergeMarketingImageDisplayCallToAction(other.getMarketingImageDisplayCallToAction()); } if (productImagesBuilder_ == null) { if (!other.productImages_.isEmpty()) { if (productImages_.isEmpty()) { productImages_ = other.productImages_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureProductImagesIsMutable(); productImages_.addAll(other.productImages_); } onChanged(); } } else { if (!other.productImages_.isEmpty()) { if (productImagesBuilder_.isEmpty()) { productImagesBuilder_.dispose(); productImagesBuilder_ = null; productImages_ = other.productImages_; bitField0_ = (bitField0_ & ~0x00000010); productImagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProductImagesFieldBuilder() : null; } else { productImagesBuilder_.addAllMessages(other.productImages_); } } } if (productVideosBuilder_ == null) { if (!other.productVideos_.isEmpty()) { if (productVideos_.isEmpty()) { productVideos_ = other.productVideos_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureProductVideosIsMutable(); productVideos_.addAll(other.productVideos_); } onChanged(); } } else { if (!other.productVideos_.isEmpty()) { if (productVideosBuilder_.isEmpty()) { productVideosBuilder_.dispose(); productVideosBuilder_ = null; productVideos_ = other.productVideos_; bitField0_ = (bitField0_ & ~0x00000020); productVideosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProductVideosFieldBuilder() : null; } else { productVideosBuilder_.addAllMessages(other.productVideos_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTeaserFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 50: { input.readMessage( getMarketingImageDisplayCallToActionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { com.google.ads.googleads.v10.common.ProductImage m = input.readMessage( com.google.ads.googleads.v10.common.ProductImage.parser(), extensionRegistry); if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); productImages_.add(m); } else { productImagesBuilder_.addMessage(m); } break; } // case 58 case 66: { com.google.ads.googleads.v10.common.ProductVideo m = input.readMessage( com.google.ads.googleads.v10.common.ProductVideo.parser(), extensionRegistry); if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); productVideos_.add(m); } else { productVideosBuilder_.addMessage(m); } break; } // case 66 case 82: { headerImage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 82 case 90: { marketingImage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 90 case 98: { marketingImageHeadline_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 98 case 106: { marketingImageDescription_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.ads.googleads.v10.common.GmailTeaser teaser_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.GmailTeaser, com.google.ads.googleads.v10.common.GmailTeaser.Builder, com.google.ads.googleads.v10.common.GmailTeaserOrBuilder> teaserBuilder_; /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; * @return Whether the teaser field is set. */ public boolean hasTeaser() { return teaserBuilder_ != null || teaser_ != null; } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; * @return The teaser. */ public com.google.ads.googleads.v10.common.GmailTeaser getTeaser() { if (teaserBuilder_ == null) { return teaser_ == null ? com.google.ads.googleads.v10.common.GmailTeaser.getDefaultInstance() : teaser_; } else { return teaserBuilder_.getMessage(); } } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public Builder setTeaser(com.google.ads.googleads.v10.common.GmailTeaser value) { if (teaserBuilder_ == null) { if (value == null) { throw new NullPointerException(); } teaser_ = value; onChanged(); } else { teaserBuilder_.setMessage(value); } return this; } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public Builder setTeaser( com.google.ads.googleads.v10.common.GmailTeaser.Builder builderForValue) { if (teaserBuilder_ == null) { teaser_ = builderForValue.build(); onChanged(); } else { teaserBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public Builder mergeTeaser(com.google.ads.googleads.v10.common.GmailTeaser value) { if (teaserBuilder_ == null) { if (teaser_ != null) { teaser_ = com.google.ads.googleads.v10.common.GmailTeaser.newBuilder(teaser_).mergeFrom(value).buildPartial(); } else { teaser_ = value; } onChanged(); } else { teaserBuilder_.mergeFrom(value); } return this; } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public Builder clearTeaser() { if (teaserBuilder_ == null) { teaser_ = null; onChanged(); } else { teaser_ = null; teaserBuilder_ = null; } return this; } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public com.google.ads.googleads.v10.common.GmailTeaser.Builder getTeaserBuilder() { onChanged(); return getTeaserFieldBuilder().getBuilder(); } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ public com.google.ads.googleads.v10.common.GmailTeaserOrBuilder getTeaserOrBuilder() { if (teaserBuilder_ != null) { return teaserBuilder_.getMessageOrBuilder(); } else { return teaser_ == null ? com.google.ads.googleads.v10.common.GmailTeaser.getDefaultInstance() : teaser_; } } /** *
     * The Gmail teaser.
     * 
* * .google.ads.googleads.v10.common.GmailTeaser teaser = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.GmailTeaser, com.google.ads.googleads.v10.common.GmailTeaser.Builder, com.google.ads.googleads.v10.common.GmailTeaserOrBuilder> getTeaserFieldBuilder() { if (teaserBuilder_ == null) { teaserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.GmailTeaser, com.google.ads.googleads.v10.common.GmailTeaser.Builder, com.google.ads.googleads.v10.common.GmailTeaserOrBuilder>( getTeaser(), getParentForChildren(), isClean()); teaser_ = null; } return teaserBuilder_; } private java.lang.Object headerImage_ = ""; /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @return Whether the headerImage field is set. */ public boolean hasHeaderImage() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @return The headerImage. */ public java.lang.String getHeaderImage() { java.lang.Object ref = headerImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @return The bytes for headerImage. */ public com.google.protobuf.ByteString getHeaderImageBytes() { java.lang.Object ref = headerImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @param value The headerImage to set. * @return This builder for chaining. */ public Builder setHeaderImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; headerImage_ = value; onChanged(); return this; } /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @return This builder for chaining. */ public Builder clearHeaderImage() { bitField0_ = (bitField0_ & ~0x00000001); headerImage_ = getDefaultInstance().getHeaderImage(); onChanged(); return this; } /** *
     * The MediaFile resource name of the header image. Valid image types are GIF,
     * JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
     * be between 3:1 and 5:1 (+-1%).
     * 
* * optional string header_image = 10; * @param value The bytes for headerImage to set. * @return This builder for chaining. */ public Builder setHeaderImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; headerImage_ = value; onChanged(); return this; } private java.lang.Object marketingImage_ = ""; /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @return Whether the marketingImage field is set. */ public boolean hasMarketingImage() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @return The marketingImage. */ public java.lang.String getMarketingImage() { java.lang.Object ref = marketingImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @return The bytes for marketingImage. */ public com.google.protobuf.ByteString getMarketingImageBytes() { java.lang.Object ref = marketingImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @param value The marketingImage to set. * @return This builder for chaining. */ public Builder setMarketingImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; marketingImage_ = value; onChanged(); return this; } /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @return This builder for chaining. */ public Builder clearMarketingImage() { bitField0_ = (bitField0_ & ~0x00000002); marketingImage_ = getDefaultInstance().getMarketingImage(); onChanged(); return this; } /** *
     * The MediaFile resource name of the marketing image. Valid image types are
     * GIF, JPEG and PNG. The image must either be landscape with a minimum size
     * of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
     * minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
     * 
* * optional string marketing_image = 11; * @param value The bytes for marketingImage to set. * @return This builder for chaining. */ public Builder setMarketingImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; marketingImage_ = value; onChanged(); return this; } private java.lang.Object marketingImageHeadline_ = ""; /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @return Whether the marketingImageHeadline field is set. */ public boolean hasMarketingImageHeadline() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @return The marketingImageHeadline. */ public java.lang.String getMarketingImageHeadline() { java.lang.Object ref = marketingImageHeadline_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImageHeadline_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @return The bytes for marketingImageHeadline. */ public com.google.protobuf.ByteString getMarketingImageHeadlineBytes() { java.lang.Object ref = marketingImageHeadline_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImageHeadline_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @param value The marketingImageHeadline to set. * @return This builder for chaining. */ public Builder setMarketingImageHeadline( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; marketingImageHeadline_ = value; onChanged(); return this; } /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @return This builder for chaining. */ public Builder clearMarketingImageHeadline() { bitField0_ = (bitField0_ & ~0x00000004); marketingImageHeadline_ = getDefaultInstance().getMarketingImageHeadline(); onChanged(); return this; } /** *
     * Headline of the marketing image.
     * 
* * optional string marketing_image_headline = 12; * @param value The bytes for marketingImageHeadline to set. * @return This builder for chaining. */ public Builder setMarketingImageHeadlineBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; marketingImageHeadline_ = value; onChanged(); return this; } private java.lang.Object marketingImageDescription_ = ""; /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @return Whether the marketingImageDescription field is set. */ public boolean hasMarketingImageDescription() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @return The marketingImageDescription. */ public java.lang.String getMarketingImageDescription() { java.lang.Object ref = marketingImageDescription_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); marketingImageDescription_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @return The bytes for marketingImageDescription. */ public com.google.protobuf.ByteString getMarketingImageDescriptionBytes() { java.lang.Object ref = marketingImageDescription_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); marketingImageDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @param value The marketingImageDescription to set. * @return This builder for chaining. */ public Builder setMarketingImageDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; marketingImageDescription_ = value; onChanged(); return this; } /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @return This builder for chaining. */ public Builder clearMarketingImageDescription() { bitField0_ = (bitField0_ & ~0x00000008); marketingImageDescription_ = getDefaultInstance().getMarketingImageDescription(); onChanged(); return this; } /** *
     * Description of the marketing image.
     * 
* * optional string marketing_image_description = 13; * @param value The bytes for marketingImageDescription to set. * @return This builder for chaining. */ public Builder setMarketingImageDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000008; marketingImageDescription_ = value; onChanged(); return this; } private com.google.ads.googleads.v10.common.DisplayCallToAction marketingImageDisplayCallToAction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.DisplayCallToAction, com.google.ads.googleads.v10.common.DisplayCallToAction.Builder, com.google.ads.googleads.v10.common.DisplayCallToActionOrBuilder> marketingImageDisplayCallToActionBuilder_; /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; * @return Whether the marketingImageDisplayCallToAction field is set. */ public boolean hasMarketingImageDisplayCallToAction() { return marketingImageDisplayCallToActionBuilder_ != null || marketingImageDisplayCallToAction_ != null; } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; * @return The marketingImageDisplayCallToAction. */ public com.google.ads.googleads.v10.common.DisplayCallToAction getMarketingImageDisplayCallToAction() { if (marketingImageDisplayCallToActionBuilder_ == null) { return marketingImageDisplayCallToAction_ == null ? com.google.ads.googleads.v10.common.DisplayCallToAction.getDefaultInstance() : marketingImageDisplayCallToAction_; } else { return marketingImageDisplayCallToActionBuilder_.getMessage(); } } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public Builder setMarketingImageDisplayCallToAction(com.google.ads.googleads.v10.common.DisplayCallToAction value) { if (marketingImageDisplayCallToActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } marketingImageDisplayCallToAction_ = value; onChanged(); } else { marketingImageDisplayCallToActionBuilder_.setMessage(value); } return this; } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public Builder setMarketingImageDisplayCallToAction( com.google.ads.googleads.v10.common.DisplayCallToAction.Builder builderForValue) { if (marketingImageDisplayCallToActionBuilder_ == null) { marketingImageDisplayCallToAction_ = builderForValue.build(); onChanged(); } else { marketingImageDisplayCallToActionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public Builder mergeMarketingImageDisplayCallToAction(com.google.ads.googleads.v10.common.DisplayCallToAction value) { if (marketingImageDisplayCallToActionBuilder_ == null) { if (marketingImageDisplayCallToAction_ != null) { marketingImageDisplayCallToAction_ = com.google.ads.googleads.v10.common.DisplayCallToAction.newBuilder(marketingImageDisplayCallToAction_).mergeFrom(value).buildPartial(); } else { marketingImageDisplayCallToAction_ = value; } onChanged(); } else { marketingImageDisplayCallToActionBuilder_.mergeFrom(value); } return this; } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public Builder clearMarketingImageDisplayCallToAction() { if (marketingImageDisplayCallToActionBuilder_ == null) { marketingImageDisplayCallToAction_ = null; onChanged(); } else { marketingImageDisplayCallToAction_ = null; marketingImageDisplayCallToActionBuilder_ = null; } return this; } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public com.google.ads.googleads.v10.common.DisplayCallToAction.Builder getMarketingImageDisplayCallToActionBuilder() { onChanged(); return getMarketingImageDisplayCallToActionFieldBuilder().getBuilder(); } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ public com.google.ads.googleads.v10.common.DisplayCallToActionOrBuilder getMarketingImageDisplayCallToActionOrBuilder() { if (marketingImageDisplayCallToActionBuilder_ != null) { return marketingImageDisplayCallToActionBuilder_.getMessageOrBuilder(); } else { return marketingImageDisplayCallToAction_ == null ? com.google.ads.googleads.v10.common.DisplayCallToAction.getDefaultInstance() : marketingImageDisplayCallToAction_; } } /** *
     * Display-call-to-action of the marketing image.
     * 
* * .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.DisplayCallToAction, com.google.ads.googleads.v10.common.DisplayCallToAction.Builder, com.google.ads.googleads.v10.common.DisplayCallToActionOrBuilder> getMarketingImageDisplayCallToActionFieldBuilder() { if (marketingImageDisplayCallToActionBuilder_ == null) { marketingImageDisplayCallToActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.DisplayCallToAction, com.google.ads.googleads.v10.common.DisplayCallToAction.Builder, com.google.ads.googleads.v10.common.DisplayCallToActionOrBuilder>( getMarketingImageDisplayCallToAction(), getParentForChildren(), isClean()); marketingImageDisplayCallToAction_ = null; } return marketingImageDisplayCallToActionBuilder_; } private java.util.List productImages_ = java.util.Collections.emptyList(); private void ensureProductImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { productImages_ = new java.util.ArrayList(productImages_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductImage, com.google.ads.googleads.v10.common.ProductImage.Builder, com.google.ads.googleads.v10.common.ProductImageOrBuilder> productImagesBuilder_; /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public java.util.List getProductImagesList() { if (productImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(productImages_); } else { return productImagesBuilder_.getMessageList(); } } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public int getProductImagesCount() { if (productImagesBuilder_ == null) { return productImages_.size(); } else { return productImagesBuilder_.getCount(); } } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public com.google.ads.googleads.v10.common.ProductImage getProductImages(int index) { if (productImagesBuilder_ == null) { return productImages_.get(index); } else { return productImagesBuilder_.getMessage(index); } } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder setProductImages( int index, com.google.ads.googleads.v10.common.ProductImage value) { if (productImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductImagesIsMutable(); productImages_.set(index, value); onChanged(); } else { productImagesBuilder_.setMessage(index, value); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder setProductImages( int index, com.google.ads.googleads.v10.common.ProductImage.Builder builderForValue) { if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); productImages_.set(index, builderForValue.build()); onChanged(); } else { productImagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder addProductImages(com.google.ads.googleads.v10.common.ProductImage value) { if (productImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductImagesIsMutable(); productImages_.add(value); onChanged(); } else { productImagesBuilder_.addMessage(value); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder addProductImages( int index, com.google.ads.googleads.v10.common.ProductImage value) { if (productImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductImagesIsMutable(); productImages_.add(index, value); onChanged(); } else { productImagesBuilder_.addMessage(index, value); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder addProductImages( com.google.ads.googleads.v10.common.ProductImage.Builder builderForValue) { if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); productImages_.add(builderForValue.build()); onChanged(); } else { productImagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder addProductImages( int index, com.google.ads.googleads.v10.common.ProductImage.Builder builderForValue) { if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); productImages_.add(index, builderForValue.build()); onChanged(); } else { productImagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder addAllProductImages( java.lang.Iterable values) { if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, productImages_); onChanged(); } else { productImagesBuilder_.addAllMessages(values); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder clearProductImages() { if (productImagesBuilder_ == null) { productImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { productImagesBuilder_.clear(); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public Builder removeProductImages(int index) { if (productImagesBuilder_ == null) { ensureProductImagesIsMutable(); productImages_.remove(index); onChanged(); } else { productImagesBuilder_.remove(index); } return this; } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public com.google.ads.googleads.v10.common.ProductImage.Builder getProductImagesBuilder( int index) { return getProductImagesFieldBuilder().getBuilder(index); } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public com.google.ads.googleads.v10.common.ProductImageOrBuilder getProductImagesOrBuilder( int index) { if (productImagesBuilder_ == null) { return productImages_.get(index); } else { return productImagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public java.util.List getProductImagesOrBuilderList() { if (productImagesBuilder_ != null) { return productImagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(productImages_); } } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public com.google.ads.googleads.v10.common.ProductImage.Builder addProductImagesBuilder() { return getProductImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.ProductImage.getDefaultInstance()); } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public com.google.ads.googleads.v10.common.ProductImage.Builder addProductImagesBuilder( int index) { return getProductImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.ProductImage.getDefaultInstance()); } /** *
     * Product images. Up to 15 images are supported.
     * 
* * repeated .google.ads.googleads.v10.common.ProductImage product_images = 7; */ public java.util.List getProductImagesBuilderList() { return getProductImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductImage, com.google.ads.googleads.v10.common.ProductImage.Builder, com.google.ads.googleads.v10.common.ProductImageOrBuilder> getProductImagesFieldBuilder() { if (productImagesBuilder_ == null) { productImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductImage, com.google.ads.googleads.v10.common.ProductImage.Builder, com.google.ads.googleads.v10.common.ProductImageOrBuilder>( productImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); productImages_ = null; } return productImagesBuilder_; } private java.util.List productVideos_ = java.util.Collections.emptyList(); private void ensureProductVideosIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { productVideos_ = new java.util.ArrayList(productVideos_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductVideo, com.google.ads.googleads.v10.common.ProductVideo.Builder, com.google.ads.googleads.v10.common.ProductVideoOrBuilder> productVideosBuilder_; /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public java.util.List getProductVideosList() { if (productVideosBuilder_ == null) { return java.util.Collections.unmodifiableList(productVideos_); } else { return productVideosBuilder_.getMessageList(); } } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public int getProductVideosCount() { if (productVideosBuilder_ == null) { return productVideos_.size(); } else { return productVideosBuilder_.getCount(); } } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public com.google.ads.googleads.v10.common.ProductVideo getProductVideos(int index) { if (productVideosBuilder_ == null) { return productVideos_.get(index); } else { return productVideosBuilder_.getMessage(index); } } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder setProductVideos( int index, com.google.ads.googleads.v10.common.ProductVideo value) { if (productVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductVideosIsMutable(); productVideos_.set(index, value); onChanged(); } else { productVideosBuilder_.setMessage(index, value); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder setProductVideos( int index, com.google.ads.googleads.v10.common.ProductVideo.Builder builderForValue) { if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); productVideos_.set(index, builderForValue.build()); onChanged(); } else { productVideosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder addProductVideos(com.google.ads.googleads.v10.common.ProductVideo value) { if (productVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductVideosIsMutable(); productVideos_.add(value); onChanged(); } else { productVideosBuilder_.addMessage(value); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder addProductVideos( int index, com.google.ads.googleads.v10.common.ProductVideo value) { if (productVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductVideosIsMutable(); productVideos_.add(index, value); onChanged(); } else { productVideosBuilder_.addMessage(index, value); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder addProductVideos( com.google.ads.googleads.v10.common.ProductVideo.Builder builderForValue) { if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); productVideos_.add(builderForValue.build()); onChanged(); } else { productVideosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder addProductVideos( int index, com.google.ads.googleads.v10.common.ProductVideo.Builder builderForValue) { if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); productVideos_.add(index, builderForValue.build()); onChanged(); } else { productVideosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder addAllProductVideos( java.lang.Iterable values) { if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, productVideos_); onChanged(); } else { productVideosBuilder_.addAllMessages(values); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder clearProductVideos() { if (productVideosBuilder_ == null) { productVideos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { productVideosBuilder_.clear(); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public Builder removeProductVideos(int index) { if (productVideosBuilder_ == null) { ensureProductVideosIsMutable(); productVideos_.remove(index); onChanged(); } else { productVideosBuilder_.remove(index); } return this; } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public com.google.ads.googleads.v10.common.ProductVideo.Builder getProductVideosBuilder( int index) { return getProductVideosFieldBuilder().getBuilder(index); } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public com.google.ads.googleads.v10.common.ProductVideoOrBuilder getProductVideosOrBuilder( int index) { if (productVideosBuilder_ == null) { return productVideos_.get(index); } else { return productVideosBuilder_.getMessageOrBuilder(index); } } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public java.util.List getProductVideosOrBuilderList() { if (productVideosBuilder_ != null) { return productVideosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(productVideos_); } } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public com.google.ads.googleads.v10.common.ProductVideo.Builder addProductVideosBuilder() { return getProductVideosFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.ProductVideo.getDefaultInstance()); } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public com.google.ads.googleads.v10.common.ProductVideo.Builder addProductVideosBuilder( int index) { return getProductVideosFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.ProductVideo.getDefaultInstance()); } /** *
     * Product videos. Up to 7 videos are supported. At least one product video
     * or a marketing image must be specified.
     * 
* * repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8; */ public java.util.List getProductVideosBuilderList() { return getProductVideosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductVideo, com.google.ads.googleads.v10.common.ProductVideo.Builder, com.google.ads.googleads.v10.common.ProductVideoOrBuilder> getProductVideosFieldBuilder() { if (productVideosBuilder_ == null) { productVideosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.ProductVideo, com.google.ads.googleads.v10.common.ProductVideo.Builder, com.google.ads.googleads.v10.common.ProductVideoOrBuilder>( productVideos_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); productVideos_ = null; } return productVideosBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.GmailAdInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.GmailAdInfo) private static final com.google.ads.googleads.v10.common.GmailAdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.GmailAdInfo(); } public static com.google.ads.googleads.v10.common.GmailAdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GmailAdInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.common.GmailAdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy