com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/ad_type_infos.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A legacy responsive display ad. Ads of this type are labeled 'Responsive ads'
* in the Google Ads UI.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo}
*/
public final class LegacyResponsiveDisplayAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo)
LegacyResponsiveDisplayAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LegacyResponsiveDisplayAdInfo.newBuilder() to construct.
private LegacyResponsiveDisplayAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LegacyResponsiveDisplayAdInfo() {
shortHeadline_ = "";
longHeadline_ = "";
description_ = "";
businessName_ = "";
accentColor_ = "";
mainColor_ = "";
callToActionText_ = "";
logoImage_ = "";
squareLogoImage_ = "";
marketingImage_ = "";
squareMarketingImage_ = "";
formatSetting_ = 0;
pricePrefix_ = "";
promoText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LegacyResponsiveDisplayAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LegacyResponsiveDisplayAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LegacyResponsiveDisplayAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.class, com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.Builder.class);
}
private int bitField0_;
public static final int SHORT_HEADLINE_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object shortHeadline_ = "";
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return Whether the shortHeadline field is set.
*/
@java.lang.Override
public boolean hasShortHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return The shortHeadline.
*/
@java.lang.Override
public java.lang.String getShortHeadline() {
java.lang.Object ref = shortHeadline_;
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();
shortHeadline_ = s;
return s;
}
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return The bytes for shortHeadline.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShortHeadlineBytes() {
java.lang.Object ref = shortHeadline_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortHeadline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LONG_HEADLINE_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object longHeadline_ = "";
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return Whether the longHeadline field is set.
*/
@java.lang.Override
public boolean hasLongHeadline() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return The longHeadline.
*/
@java.lang.Override
public java.lang.String getLongHeadline() {
java.lang.Object ref = longHeadline_;
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();
longHeadline_ = s;
return s;
}
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return The bytes for longHeadline.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLongHeadlineBytes() {
java.lang.Object ref = longHeadline_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longHeadline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSINESS_NAME_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object businessName_ = "";
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return The businessName.
*/
@java.lang.Override
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
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();
businessName_ = s;
return s;
}
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return The bytes for businessName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALLOW_FLEXIBLE_COLOR_FIELD_NUMBER = 20;
private boolean allowFlexibleColor_ = false;
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @return Whether the allowFlexibleColor field is set.
*/
@java.lang.Override
public boolean hasAllowFlexibleColor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @return The allowFlexibleColor.
*/
@java.lang.Override
public boolean getAllowFlexibleColor() {
return allowFlexibleColor_;
}
public static final int ACCENT_COLOR_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private volatile java.lang.Object accentColor_ = "";
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return Whether the accentColor field is set.
*/
@java.lang.Override
public boolean hasAccentColor() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return The accentColor.
*/
@java.lang.Override
public java.lang.String getAccentColor() {
java.lang.Object ref = accentColor_;
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();
accentColor_ = s;
return s;
}
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return The bytes for accentColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccentColorBytes() {
java.lang.Object ref = accentColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accentColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAIN_COLOR_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private volatile java.lang.Object mainColor_ = "";
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return Whether the mainColor field is set.
*/
@java.lang.Override
public boolean hasMainColor() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return The mainColor.
*/
@java.lang.Override
public java.lang.String getMainColor() {
java.lang.Object ref = mainColor_;
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();
mainColor_ = s;
return s;
}
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return The bytes for mainColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMainColorBytes() {
java.lang.Object ref = mainColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mainColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALL_TO_ACTION_TEXT_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object callToActionText_ = "";
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return Whether the callToActionText field is set.
*/
@java.lang.Override
public boolean hasCallToActionText() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return The callToActionText.
*/
@java.lang.Override
public java.lang.String getCallToActionText() {
java.lang.Object ref = callToActionText_;
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();
callToActionText_ = s;
return s;
}
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return The bytes for callToActionText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCallToActionTextBytes() {
java.lang.Object ref = callToActionText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callToActionText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGO_IMAGE_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object logoImage_ = "";
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return Whether the logoImage field is set.
*/
@java.lang.Override
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return The logoImage.
*/
@java.lang.Override
public java.lang.String getLogoImage() {
java.lang.Object ref = logoImage_;
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();
logoImage_ = s;
return s;
}
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return The bytes for logoImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoImageBytes() {
java.lang.Object ref = logoImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SQUARE_LOGO_IMAGE_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private volatile java.lang.Object squareLogoImage_ = "";
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return Whether the squareLogoImage field is set.
*/
@java.lang.Override
public boolean hasSquareLogoImage() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return The squareLogoImage.
*/
@java.lang.Override
public java.lang.String getSquareLogoImage() {
java.lang.Object ref = squareLogoImage_;
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();
squareLogoImage_ = s;
return s;
}
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return The bytes for squareLogoImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSquareLogoImageBytes() {
java.lang.Object ref = squareLogoImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareLogoImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MARKETING_IMAGE_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private volatile java.lang.Object marketingImage_ = "";
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @return Whether the marketingImage field is set.
*/
@java.lang.Override
public boolean hasMarketingImage() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @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 used in the ad.
*
*
* optional string marketing_image = 26;
* @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 SQUARE_MARKETING_IMAGE_FIELD_NUMBER = 27;
@SuppressWarnings("serial")
private volatile java.lang.Object squareMarketingImage_ = "";
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return Whether the squareMarketingImage field is set.
*/
@java.lang.Override
public boolean hasSquareMarketingImage() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return The squareMarketingImage.
*/
@java.lang.Override
public java.lang.String getSquareMarketingImage() {
java.lang.Object ref = squareMarketingImage_;
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();
squareMarketingImage_ = s;
return s;
}
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return The bytes for squareMarketingImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSquareMarketingImageBytes() {
java.lang.Object ref = squareMarketingImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareMarketingImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SETTING_FIELD_NUMBER = 13;
private int formatSetting_ = 0;
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @return The enum numeric value on the wire for formatSetting.
*/
@java.lang.Override public int getFormatSettingValue() {
return formatSetting_;
}
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @return The formatSetting.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting getFormatSetting() {
com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting result = com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.forNumber(formatSetting_);
return result == null ? com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.UNRECOGNIZED : result;
}
public static final int PRICE_PREFIX_FIELD_NUMBER = 28;
@SuppressWarnings("serial")
private volatile java.lang.Object pricePrefix_ = "";
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return Whether the pricePrefix field is set.
*/
@java.lang.Override
public boolean hasPricePrefix() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return The pricePrefix.
*/
@java.lang.Override
public java.lang.String getPricePrefix() {
java.lang.Object ref = pricePrefix_;
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();
pricePrefix_ = s;
return s;
}
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return The bytes for pricePrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPricePrefixBytes() {
java.lang.Object ref = pricePrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pricePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROMO_TEXT_FIELD_NUMBER = 29;
@SuppressWarnings("serial")
private volatile java.lang.Object promoText_ = "";
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return Whether the promoText field is set.
*/
@java.lang.Override
public boolean hasPromoText() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return The promoText.
*/
@java.lang.Override
public java.lang.String getPromoText() {
java.lang.Object ref = promoText_;
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();
promoText_ = s;
return s;
}
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return The bytes for promoText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPromoTextBytes() {
java.lang.Object ref = promoText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promoText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (formatSetting_ != com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.UNSPECIFIED.getNumber()) {
output.writeEnum(13, formatSetting_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, shortHeadline_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, longHeadline_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, businessName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(20, allowFlexibleColor_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, accentColor_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, mainColor_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, callToActionText_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, logoImage_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 25, squareLogoImage_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, marketingImage_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 27, squareMarketingImage_);
}
if (((bitField0_ & 0x00001000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, pricePrefix_);
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 29, promoText_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (formatSetting_ != com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, formatSetting_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, shortHeadline_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, longHeadline_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, businessName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, allowFlexibleColor_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, accentColor_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, mainColor_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, callToActionText_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, logoImage_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, squareLogoImage_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, marketingImage_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, squareMarketingImage_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, pricePrefix_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, promoText_);
}
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.v17.common.LegacyResponsiveDisplayAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo other = (com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo) obj;
if (hasShortHeadline() != other.hasShortHeadline()) return false;
if (hasShortHeadline()) {
if (!getShortHeadline()
.equals(other.getShortHeadline())) return false;
}
if (hasLongHeadline() != other.hasLongHeadline()) return false;
if (hasLongHeadline()) {
if (!getLongHeadline()
.equals(other.getLongHeadline())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasBusinessName() != other.hasBusinessName()) return false;
if (hasBusinessName()) {
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
}
if (hasAllowFlexibleColor() != other.hasAllowFlexibleColor()) return false;
if (hasAllowFlexibleColor()) {
if (getAllowFlexibleColor()
!= other.getAllowFlexibleColor()) return false;
}
if (hasAccentColor() != other.hasAccentColor()) return false;
if (hasAccentColor()) {
if (!getAccentColor()
.equals(other.getAccentColor())) return false;
}
if (hasMainColor() != other.hasMainColor()) return false;
if (hasMainColor()) {
if (!getMainColor()
.equals(other.getMainColor())) return false;
}
if (hasCallToActionText() != other.hasCallToActionText()) return false;
if (hasCallToActionText()) {
if (!getCallToActionText()
.equals(other.getCallToActionText())) return false;
}
if (hasLogoImage() != other.hasLogoImage()) return false;
if (hasLogoImage()) {
if (!getLogoImage()
.equals(other.getLogoImage())) return false;
}
if (hasSquareLogoImage() != other.hasSquareLogoImage()) return false;
if (hasSquareLogoImage()) {
if (!getSquareLogoImage()
.equals(other.getSquareLogoImage())) return false;
}
if (hasMarketingImage() != other.hasMarketingImage()) return false;
if (hasMarketingImage()) {
if (!getMarketingImage()
.equals(other.getMarketingImage())) return false;
}
if (hasSquareMarketingImage() != other.hasSquareMarketingImage()) return false;
if (hasSquareMarketingImage()) {
if (!getSquareMarketingImage()
.equals(other.getSquareMarketingImage())) return false;
}
if (formatSetting_ != other.formatSetting_) return false;
if (hasPricePrefix() != other.hasPricePrefix()) return false;
if (hasPricePrefix()) {
if (!getPricePrefix()
.equals(other.getPricePrefix())) return false;
}
if (hasPromoText() != other.hasPromoText()) return false;
if (hasPromoText()) {
if (!getPromoText()
.equals(other.getPromoText())) 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 (hasShortHeadline()) {
hash = (37 * hash) + SHORT_HEADLINE_FIELD_NUMBER;
hash = (53 * hash) + getShortHeadline().hashCode();
}
if (hasLongHeadline()) {
hash = (37 * hash) + LONG_HEADLINE_FIELD_NUMBER;
hash = (53 * hash) + getLongHeadline().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasBusinessName()) {
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
}
if (hasAllowFlexibleColor()) {
hash = (37 * hash) + ALLOW_FLEXIBLE_COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowFlexibleColor());
}
if (hasAccentColor()) {
hash = (37 * hash) + ACCENT_COLOR_FIELD_NUMBER;
hash = (53 * hash) + getAccentColor().hashCode();
}
if (hasMainColor()) {
hash = (37 * hash) + MAIN_COLOR_FIELD_NUMBER;
hash = (53 * hash) + getMainColor().hashCode();
}
if (hasCallToActionText()) {
hash = (37 * hash) + CALL_TO_ACTION_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionText().hashCode();
}
if (hasLogoImage()) {
hash = (37 * hash) + LOGO_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getLogoImage().hashCode();
}
if (hasSquareLogoImage()) {
hash = (37 * hash) + SQUARE_LOGO_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getSquareLogoImage().hashCode();
}
if (hasMarketingImage()) {
hash = (37 * hash) + MARKETING_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getMarketingImage().hashCode();
}
if (hasSquareMarketingImage()) {
hash = (37 * hash) + SQUARE_MARKETING_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getSquareMarketingImage().hashCode();
}
hash = (37 * hash) + FORMAT_SETTING_FIELD_NUMBER;
hash = (53 * hash) + formatSetting_;
if (hasPricePrefix()) {
hash = (37 * hash) + PRICE_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPricePrefix().hashCode();
}
if (hasPromoText()) {
hash = (37 * hash) + PROMO_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getPromoText().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo 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 legacy responsive display ad. Ads of this type are labeled 'Responsive ads'
* in the Google Ads UI.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo)
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LegacyResponsiveDisplayAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LegacyResponsiveDisplayAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.class, com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
shortHeadline_ = "";
longHeadline_ = "";
description_ = "";
businessName_ = "";
allowFlexibleColor_ = false;
accentColor_ = "";
mainColor_ = "";
callToActionText_ = "";
logoImage_ = "";
squareLogoImage_ = "";
marketingImage_ = "";
squareMarketingImage_ = "";
formatSetting_ = 0;
pricePrefix_ = "";
promoText_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LegacyResponsiveDisplayAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo build() {
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo buildPartial() {
com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo result = new com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.shortHeadline_ = shortHeadline_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.longHeadline_ = longHeadline_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.description_ = description_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.businessName_ = businessName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.allowFlexibleColor_ = allowFlexibleColor_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.accentColor_ = accentColor_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.mainColor_ = mainColor_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.callToActionText_ = callToActionText_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.logoImage_ = logoImage_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.squareLogoImage_ = squareLogoImage_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.marketingImage_ = marketingImage_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.squareMarketingImage_ = squareMarketingImage_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.formatSetting_ = formatSetting_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.pricePrefix_ = pricePrefix_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.promoText_ = promoText_;
to_bitField0_ |= 0x00002000;
}
result.bitField0_ |= to_bitField0_;
}
@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.v17.common.LegacyResponsiveDisplayAdInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo other) {
if (other == com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo.getDefaultInstance()) return this;
if (other.hasShortHeadline()) {
shortHeadline_ = other.shortHeadline_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLongHeadline()) {
longHeadline_ = other.longHeadline_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasDescription()) {
description_ = other.description_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasBusinessName()) {
businessName_ = other.businessName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasAllowFlexibleColor()) {
setAllowFlexibleColor(other.getAllowFlexibleColor());
}
if (other.hasAccentColor()) {
accentColor_ = other.accentColor_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasMainColor()) {
mainColor_ = other.mainColor_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasCallToActionText()) {
callToActionText_ = other.callToActionText_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasLogoImage()) {
logoImage_ = other.logoImage_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasSquareLogoImage()) {
squareLogoImage_ = other.squareLogoImage_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasMarketingImage()) {
marketingImage_ = other.marketingImage_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.hasSquareMarketingImage()) {
squareMarketingImage_ = other.squareMarketingImage_;
bitField0_ |= 0x00000800;
onChanged();
}
if (other.formatSetting_ != 0) {
setFormatSettingValue(other.getFormatSettingValue());
}
if (other.hasPricePrefix()) {
pricePrefix_ = other.pricePrefix_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.hasPromoText()) {
promoText_ = other.promoText_;
bitField0_ |= 0x00004000;
onChanged();
}
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 104: {
formatSetting_ = input.readEnum();
bitField0_ |= 0x00001000;
break;
} // case 104
case 130: {
shortHeadline_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 130
case 138: {
longHeadline_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 138
case 146: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 146
case 154: {
businessName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 154
case 160: {
allowFlexibleColor_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 160
case 170: {
accentColor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 170
case 178: {
mainColor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 178
case 186: {
callToActionText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 186
case 194: {
logoImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 194
case 202: {
squareLogoImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 202
case 210: {
marketingImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 210
case 218: {
squareMarketingImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 218
case 226: {
pricePrefix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 226
case 234: {
promoText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 234
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 java.lang.Object shortHeadline_ = "";
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return Whether the shortHeadline field is set.
*/
public boolean hasShortHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return The shortHeadline.
*/
public java.lang.String getShortHeadline() {
java.lang.Object ref = shortHeadline_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shortHeadline_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return The bytes for shortHeadline.
*/
public com.google.protobuf.ByteString
getShortHeadlineBytes() {
java.lang.Object ref = shortHeadline_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortHeadline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @param value The shortHeadline to set.
* @return This builder for chaining.
*/
public Builder setShortHeadline(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
shortHeadline_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @return This builder for chaining.
*/
public Builder clearShortHeadline() {
shortHeadline_ = getDefaultInstance().getShortHeadline();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The short version of the ad's headline.
*
*
* optional string short_headline = 16;
* @param value The bytes for shortHeadline to set.
* @return This builder for chaining.
*/
public Builder setShortHeadlineBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
shortHeadline_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object longHeadline_ = "";
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return Whether the longHeadline field is set.
*/
public boolean hasLongHeadline() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return The longHeadline.
*/
public java.lang.String getLongHeadline() {
java.lang.Object ref = longHeadline_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
longHeadline_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return The bytes for longHeadline.
*/
public com.google.protobuf.ByteString
getLongHeadlineBytes() {
java.lang.Object ref = longHeadline_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longHeadline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @param value The longHeadline to set.
* @return This builder for chaining.
*/
public Builder setLongHeadline(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
longHeadline_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @return This builder for chaining.
*/
public Builder clearLongHeadline() {
longHeadline_ = getDefaultInstance().getLongHeadline();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The long version of the ad's headline.
*
*
* optional string long_headline = 17;
* @param value The bytes for longHeadline to set.
* @return This builder for chaining.
*/
public Builder setLongHeadlineBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
longHeadline_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The description of the ad.
*
*
* optional string description = 18;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object businessName_ = "";
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return The businessName.
*/
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return The bytes for businessName.
*/
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @param value The businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
businessName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @return This builder for chaining.
*/
public Builder clearBusinessName() {
businessName_ = getDefaultInstance().getBusinessName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The business name in the ad.
*
*
* optional string business_name = 19;
* @param value The bytes for businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
businessName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean allowFlexibleColor_ ;
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @return Whether the allowFlexibleColor field is set.
*/
@java.lang.Override
public boolean hasAllowFlexibleColor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @return The allowFlexibleColor.
*/
@java.lang.Override
public boolean getAllowFlexibleColor() {
return allowFlexibleColor_;
}
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @param value The allowFlexibleColor to set.
* @return This builder for chaining.
*/
public Builder setAllowFlexibleColor(boolean value) {
allowFlexibleColor_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Advertiser's consent to allow flexible color. When true, the ad may be
* served with different color if necessary. When false, the ad will be served
* with the specified colors or a neutral color.
* The default value is `true`.
* Must be true if `main_color` and `accent_color` are not set.
*
*
* optional bool allow_flexible_color = 20;
* @return This builder for chaining.
*/
public Builder clearAllowFlexibleColor() {
bitField0_ = (bitField0_ & ~0x00000010);
allowFlexibleColor_ = false;
onChanged();
return this;
}
private java.lang.Object accentColor_ = "";
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return Whether the accentColor field is set.
*/
public boolean hasAccentColor() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return The accentColor.
*/
public java.lang.String getAccentColor() {
java.lang.Object ref = accentColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accentColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return The bytes for accentColor.
*/
public com.google.protobuf.ByteString
getAccentColorBytes() {
java.lang.Object ref = accentColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accentColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @param value The accentColor to set.
* @return This builder for chaining.
*/
public Builder setAccentColor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
accentColor_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @return This builder for chaining.
*/
public Builder clearAccentColor() {
accentColor_ = getDefaultInstance().getAccentColor();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* The accent color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string accent_color = 21;
* @param value The bytes for accentColor to set.
* @return This builder for chaining.
*/
public Builder setAccentColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
accentColor_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object mainColor_ = "";
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return Whether the mainColor field is set.
*/
public boolean hasMainColor() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return The mainColor.
*/
public java.lang.String getMainColor() {
java.lang.Object ref = mainColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mainColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return The bytes for mainColor.
*/
public com.google.protobuf.ByteString
getMainColorBytes() {
java.lang.Object ref = mainColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mainColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @param value The mainColor to set.
* @return This builder for chaining.
*/
public Builder setMainColor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mainColor_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @return This builder for chaining.
*/
public Builder clearMainColor() {
mainColor_ = getDefaultInstance().getMainColor();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* The main color of the ad in hexadecimal, for example, #ffffff for white.
* If one of `main_color` and `accent_color` is set, the other is required as
* well.
*
*
* optional string main_color = 22;
* @param value The bytes for mainColor to set.
* @return This builder for chaining.
*/
public Builder setMainColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
mainColor_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object callToActionText_ = "";
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return Whether the callToActionText field is set.
*/
public boolean hasCallToActionText() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return The callToActionText.
*/
public java.lang.String getCallToActionText() {
java.lang.Object ref = callToActionText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callToActionText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return The bytes for callToActionText.
*/
public com.google.protobuf.ByteString
getCallToActionTextBytes() {
java.lang.Object ref = callToActionText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callToActionText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @param value The callToActionText to set.
* @return This builder for chaining.
*/
public Builder setCallToActionText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
callToActionText_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @return This builder for chaining.
*/
public Builder clearCallToActionText() {
callToActionText_ = getDefaultInstance().getCallToActionText();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* The call-to-action text for the ad.
*
*
* optional string call_to_action_text = 23;
* @param value The bytes for callToActionText to set.
* @return This builder for chaining.
*/
public Builder setCallToActionTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
callToActionText_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object logoImage_ = "";
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return Whether the logoImage field is set.
*/
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return The logoImage.
*/
public java.lang.String getLogoImage() {
java.lang.Object ref = logoImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logoImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return The bytes for logoImage.
*/
public com.google.protobuf.ByteString
getLogoImageBytes() {
java.lang.Object ref = logoImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @param value The logoImage to set.
* @return This builder for chaining.
*/
public Builder setLogoImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
logoImage_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @return This builder for chaining.
*/
public Builder clearLogoImage() {
logoImage_ = getDefaultInstance().getLogoImage();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the logo image used in the ad.
*
*
* optional string logo_image = 24;
* @param value The bytes for logoImage to set.
* @return This builder for chaining.
*/
public Builder setLogoImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
logoImage_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object squareLogoImage_ = "";
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return Whether the squareLogoImage field is set.
*/
public boolean hasSquareLogoImage() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return The squareLogoImage.
*/
public java.lang.String getSquareLogoImage() {
java.lang.Object ref = squareLogoImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
squareLogoImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return The bytes for squareLogoImage.
*/
public com.google.protobuf.ByteString
getSquareLogoImageBytes() {
java.lang.Object ref = squareLogoImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareLogoImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @param value The squareLogoImage to set.
* @return This builder for chaining.
*/
public Builder setSquareLogoImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
squareLogoImage_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @return This builder for chaining.
*/
public Builder clearSquareLogoImage() {
squareLogoImage_ = getDefaultInstance().getSquareLogoImage();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the square logo image used in the ad.
*
*
* optional string square_logo_image = 25;
* @param value The bytes for squareLogoImage to set.
* @return This builder for chaining.
*/
public Builder setSquareLogoImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
squareLogoImage_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object marketingImage_ = "";
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @return Whether the marketingImage field is set.
*/
public boolean hasMarketingImage() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @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 used in the ad.
*
*
* optional string marketing_image = 26;
* @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 used in the ad.
*
*
* optional string marketing_image = 26;
* @param value The marketingImage to set.
* @return This builder for chaining.
*/
public Builder setMarketingImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
marketingImage_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @return This builder for chaining.
*/
public Builder clearMarketingImage() {
marketingImage_ = getDefaultInstance().getMarketingImage();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the marketing image used in the ad.
*
*
* optional string marketing_image = 26;
* @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);
marketingImage_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object squareMarketingImage_ = "";
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return Whether the squareMarketingImage field is set.
*/
public boolean hasSquareMarketingImage() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return The squareMarketingImage.
*/
public java.lang.String getSquareMarketingImage() {
java.lang.Object ref = squareMarketingImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
squareMarketingImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return The bytes for squareMarketingImage.
*/
public com.google.protobuf.ByteString
getSquareMarketingImageBytes() {
java.lang.Object ref = squareMarketingImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareMarketingImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @param value The squareMarketingImage to set.
* @return This builder for chaining.
*/
public Builder setSquareMarketingImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
squareMarketingImage_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @return This builder for chaining.
*/
public Builder clearSquareMarketingImage() {
squareMarketingImage_ = getDefaultInstance().getSquareMarketingImage();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the square marketing image used in the ad.
*
*
* optional string square_marketing_image = 27;
* @param value The bytes for squareMarketingImage to set.
* @return This builder for chaining.
*/
public Builder setSquareMarketingImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
squareMarketingImage_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private int formatSetting_ = 0;
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @return The enum numeric value on the wire for formatSetting.
*/
@java.lang.Override public int getFormatSettingValue() {
return formatSetting_;
}
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @param value The enum numeric value on the wire for formatSetting to set.
* @return This builder for chaining.
*/
public Builder setFormatSettingValue(int value) {
formatSetting_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @return The formatSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting getFormatSetting() {
com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting result = com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.forNumber(formatSetting_);
return result == null ? com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting.UNRECOGNIZED : result;
}
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @param value The formatSetting to set.
* @return This builder for chaining.
*/
public Builder setFormatSetting(com.google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
formatSetting_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies which format the ad will be served in. Default is ALL_FORMATS.
*
*
* .google.ads.googleads.v17.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
* @return This builder for chaining.
*/
public Builder clearFormatSetting() {
bitField0_ = (bitField0_ & ~0x00001000);
formatSetting_ = 0;
onChanged();
return this;
}
private java.lang.Object pricePrefix_ = "";
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return Whether the pricePrefix field is set.
*/
public boolean hasPricePrefix() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return The pricePrefix.
*/
public java.lang.String getPricePrefix() {
java.lang.Object ref = pricePrefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pricePrefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return The bytes for pricePrefix.
*/
public com.google.protobuf.ByteString
getPricePrefixBytes() {
java.lang.Object ref = pricePrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pricePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @param value The pricePrefix to set.
* @return This builder for chaining.
*/
public Builder setPricePrefix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pricePrefix_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @return This builder for chaining.
*/
public Builder clearPricePrefix() {
pricePrefix_ = getDefaultInstance().getPricePrefix();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
* Prefix before price. For example, 'as low as'.
*
*
* optional string price_prefix = 28;
* @param value The bytes for pricePrefix to set.
* @return This builder for chaining.
*/
public Builder setPricePrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pricePrefix_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private java.lang.Object promoText_ = "";
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return Whether the promoText field is set.
*/
public boolean hasPromoText() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return The promoText.
*/
public java.lang.String getPromoText() {
java.lang.Object ref = promoText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
promoText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return The bytes for promoText.
*/
public com.google.protobuf.ByteString
getPromoTextBytes() {
java.lang.Object ref = promoText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promoText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @param value The promoText to set.
* @return This builder for chaining.
*/
public Builder setPromoText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
promoText_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @return This builder for chaining.
*/
public Builder clearPromoText() {
promoText_ = getDefaultInstance().getPromoText();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
* Promotion text used for dynamic formats of responsive ads. For example
* 'Free two-day shipping'.
*
*
* optional string promo_text = 29;
* @param value The bytes for promoText to set.
* @return This builder for chaining.
*/
public Builder setPromoTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
promoText_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
@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.v17.common.LegacyResponsiveDisplayAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo)
private static final com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo();
}
public static com.google.ads.googleads.v17.common.LegacyResponsiveDisplayAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LegacyResponsiveDisplayAdInfo 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.v17.common.LegacyResponsiveDisplayAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy