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

com.google.ads.googleads.v17.common.CallAdInfo Maven / Gradle / Ivy

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 call ad.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.CallAdInfo} */ public final class CallAdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.CallAdInfo) CallAdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CallAdInfo.newBuilder() to construct. private CallAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallAdInfo() { countryCode_ = ""; phoneNumber_ = ""; businessName_ = ""; headline1_ = ""; headline2_ = ""; description1_ = ""; description2_ = ""; phoneNumberVerificationUrl_ = ""; conversionAction_ = ""; conversionReportingState_ = 0; path1_ = ""; path2_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallAdInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_CallAdInfo_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_CallAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.CallAdInfo.class, com.google.ads.googleads.v17.common.CallAdInfo.Builder.class); } public static final int COUNTRY_CODE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object countryCode_ = ""; /** *
   * The country code in the ad.
   * 
* * string country_code = 1; * @return The countryCode. */ @java.lang.Override public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; 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(); countryCode_ = s; return s; } } /** *
   * The country code in the ad.
   * 
* * string country_code = 1; * @return The bytes for countryCode. */ @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** *
   * The phone number in the ad.
   * 
* * string phone_number = 2; * @return The phoneNumber. */ @java.lang.Override public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; 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(); phoneNumber_ = s; return s; } } /** *
   * The phone number in the ad.
   * 
* * string phone_number = 2; * @return The bytes for phoneNumber. */ @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object businessName_ = ""; /** *
   * The business name in the ad.
   * 
* * string business_name = 3; * @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.
   * 
* * string business_name = 3; * @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 HEADLINE1_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object headline1_ = ""; /** *
   * First headline in the ad.
   * 
* * string headline1 = 11; * @return The headline1. */ @java.lang.Override public java.lang.String getHeadline1() { java.lang.Object ref = headline1_; 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(); headline1_ = s; return s; } } /** *
   * First headline in the ad.
   * 
* * string headline1 = 11; * @return The bytes for headline1. */ @java.lang.Override public com.google.protobuf.ByteString getHeadline1Bytes() { java.lang.Object ref = headline1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADLINE2_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object headline2_ = ""; /** *
   * Second headline in the ad.
   * 
* * string headline2 = 12; * @return The headline2. */ @java.lang.Override public java.lang.String getHeadline2() { java.lang.Object ref = headline2_; 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(); headline2_ = s; return s; } } /** *
   * Second headline in the ad.
   * 
* * string headline2 = 12; * @return The bytes for headline2. */ @java.lang.Override public com.google.protobuf.ByteString getHeadline2Bytes() { java.lang.Object ref = headline2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION1_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object description1_ = ""; /** *
   * The first line of the ad's description.
   * 
* * string description1 = 4; * @return The description1. */ @java.lang.Override public java.lang.String getDescription1() { java.lang.Object ref = description1_; 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(); description1_ = s; return s; } } /** *
   * The first line of the ad's description.
   * 
* * string description1 = 4; * @return The bytes for description1. */ @java.lang.Override public com.google.protobuf.ByteString getDescription1Bytes() { java.lang.Object ref = description1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION2_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object description2_ = ""; /** *
   * The second line of the ad's description.
   * 
* * string description2 = 5; * @return The description2. */ @java.lang.Override public java.lang.String getDescription2() { java.lang.Object ref = description2_; 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(); description2_ = s; return s; } } /** *
   * The second line of the ad's description.
   * 
* * string description2 = 5; * @return The bytes for description2. */ @java.lang.Override public com.google.protobuf.ByteString getDescription2Bytes() { java.lang.Object ref = description2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_TRACKED_FIELD_NUMBER = 6; private boolean callTracked_ = false; /** *
   * Whether to enable call tracking for the creative. Enabling call
   * tracking also enables call conversions.
   * 
* * bool call_tracked = 6; * @return The callTracked. */ @java.lang.Override public boolean getCallTracked() { return callTracked_; } public static final int DISABLE_CALL_CONVERSION_FIELD_NUMBER = 7; private boolean disableCallConversion_ = false; /** *
   * Whether to disable call conversion for the creative.
   * If set to `true`, disables call conversions even when `call_tracked` is
   * `true`.
   * If `call_tracked` is `false`, this field is ignored.
   * 
* * bool disable_call_conversion = 7; * @return The disableCallConversion. */ @java.lang.Override public boolean getDisableCallConversion() { return disableCallConversion_; } public static final int PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object phoneNumberVerificationUrl_ = ""; /** *
   * The URL to be used for phone number verification.
   * 
* * string phone_number_verification_url = 8; * @return The phoneNumberVerificationUrl. */ @java.lang.Override public java.lang.String getPhoneNumberVerificationUrl() { java.lang.Object ref = phoneNumberVerificationUrl_; 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(); phoneNumberVerificationUrl_ = s; return s; } } /** *
   * The URL to be used for phone number verification.
   * 
* * string phone_number_verification_url = 8; * @return The bytes for phoneNumberVerificationUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberVerificationUrlBytes() { java.lang.Object ref = phoneNumberVerificationUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumberVerificationUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONVERSION_ACTION_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object conversionAction_ = ""; /** *
   * The conversion action to attribute a call conversion to. If not set a
   * default conversion action is used. This field only has effect if
   * `call_tracked` is set to `true`. Otherwise this field is ignored.
   * 
* * string conversion_action = 9; * @return The conversionAction. */ @java.lang.Override public java.lang.String getConversionAction() { java.lang.Object ref = conversionAction_; 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(); conversionAction_ = s; return s; } } /** *
   * The conversion action to attribute a call conversion to. If not set a
   * default conversion action is used. This field only has effect if
   * `call_tracked` is set to `true`. Otherwise this field is ignored.
   * 
* * string conversion_action = 9; * @return The bytes for conversionAction. */ @java.lang.Override public com.google.protobuf.ByteString getConversionActionBytes() { java.lang.Object ref = conversionAction_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); conversionAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONVERSION_REPORTING_STATE_FIELD_NUMBER = 10; private int conversionReportingState_ = 0; /** *
   * The call conversion behavior of this call ad. It can use its own call
   * conversion setting, inherit the account level setting, or be disabled.
   * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @return The enum numeric value on the wire for conversionReportingState. */ @java.lang.Override public int getConversionReportingStateValue() { return conversionReportingState_; } /** *
   * The call conversion behavior of this call ad. It can use its own call
   * conversion setting, inherit the account level setting, or be disabled.
   * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @return The conversionReportingState. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState getConversionReportingState() { com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState result = com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.forNumber(conversionReportingState_); return result == null ? com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNRECOGNIZED : result; } public static final int PATH1_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object path1_ = ""; /** *
   * First part of text that can be appended to the URL in the ad. Optional.
   * 
* * string path1 = 13; * @return The path1. */ @java.lang.Override public java.lang.String getPath1() { java.lang.Object ref = path1_; 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(); path1_ = s; return s; } } /** *
   * First part of text that can be appended to the URL in the ad. Optional.
   * 
* * string path1 = 13; * @return The bytes for path1. */ @java.lang.Override public com.google.protobuf.ByteString getPath1Bytes() { java.lang.Object ref = path1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH2_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object path2_ = ""; /** *
   * Second part of text that can be appended to the URL in the ad. This field
   * can only be set when `path1` is also set. Optional.
   * 
* * string path2 = 14; * @return The path2. */ @java.lang.Override public java.lang.String getPath2() { java.lang.Object ref = path2_; 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(); path2_ = s; return s; } } /** *
   * Second part of text that can be appended to the URL in the ad. This field
   * can only be set when `path1` is also set. Optional.
   * 
* * string path2 = 14; * @return The bytes for path2. */ @java.lang.Override public com.google.protobuf.ByteString getPath2Bytes() { java.lang.Object ref = path2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path2_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, countryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, businessName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description1_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description2_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description2_); } if (callTracked_ != false) { output.writeBool(6, callTracked_); } if (disableCallConversion_ != false) { output.writeBool(7, disableCallConversion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumberVerificationUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, phoneNumberVerificationUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionAction_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, conversionAction_); } if (conversionReportingState_ != com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNSPECIFIED.getNumber()) { output.writeEnum(10, conversionReportingState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline1_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, headline1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline2_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, headline2_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path1_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, path1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path2_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, path2_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, countryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phoneNumber_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, businessName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description1_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description2_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description2_); } if (callTracked_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, callTracked_); } if (disableCallConversion_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, disableCallConversion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumberVerificationUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, phoneNumberVerificationUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionAction_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, conversionAction_); } if (conversionReportingState_ != com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, conversionReportingState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline1_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, headline1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline2_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, headline2_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path1_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, path1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path2_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, path2_); } 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.CallAdInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.common.CallAdInfo other = (com.google.ads.googleads.v17.common.CallAdInfo) obj; if (!getCountryCode() .equals(other.getCountryCode())) return false; if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; if (!getBusinessName() .equals(other.getBusinessName())) return false; if (!getHeadline1() .equals(other.getHeadline1())) return false; if (!getHeadline2() .equals(other.getHeadline2())) return false; if (!getDescription1() .equals(other.getDescription1())) return false; if (!getDescription2() .equals(other.getDescription2())) return false; if (getCallTracked() != other.getCallTracked()) return false; if (getDisableCallConversion() != other.getDisableCallConversion()) return false; if (!getPhoneNumberVerificationUrl() .equals(other.getPhoneNumberVerificationUrl())) return false; if (!getConversionAction() .equals(other.getConversionAction())) return false; if (conversionReportingState_ != other.conversionReportingState_) return false; if (!getPath1() .equals(other.getPath1())) return false; if (!getPath2() .equals(other.getPath2())) 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(); hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER; hash = (53 * hash) + getBusinessName().hashCode(); hash = (37 * hash) + HEADLINE1_FIELD_NUMBER; hash = (53 * hash) + getHeadline1().hashCode(); hash = (37 * hash) + HEADLINE2_FIELD_NUMBER; hash = (53 * hash) + getHeadline2().hashCode(); hash = (37 * hash) + DESCRIPTION1_FIELD_NUMBER; hash = (53 * hash) + getDescription1().hashCode(); hash = (37 * hash) + DESCRIPTION2_FIELD_NUMBER; hash = (53 * hash) + getDescription2().hashCode(); hash = (37 * hash) + CALL_TRACKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCallTracked()); hash = (37 * hash) + DISABLE_CALL_CONVERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableCallConversion()); hash = (37 * hash) + PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumberVerificationUrl().hashCode(); hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER; hash = (53 * hash) + getConversionAction().hashCode(); hash = (37 * hash) + CONVERSION_REPORTING_STATE_FIELD_NUMBER; hash = (53 * hash) + conversionReportingState_; hash = (37 * hash) + PATH1_FIELD_NUMBER; hash = (53 * hash) + getPath1().hashCode(); hash = (37 * hash) + PATH2_FIELD_NUMBER; hash = (53 * hash) + getPath2().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.CallAdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CallAdInfo 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.CallAdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CallAdInfo 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.CallAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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.CallAdInfo 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 call ad.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.CallAdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.CallAdInfo) com.google.ads.googleads.v17.common.CallAdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_CallAdInfo_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_CallAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.CallAdInfo.class, com.google.ads.googleads.v17.common.CallAdInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.common.CallAdInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; countryCode_ = ""; phoneNumber_ = ""; businessName_ = ""; headline1_ = ""; headline2_ = ""; description1_ = ""; description2_ = ""; callTracked_ = false; disableCallConversion_ = false; phoneNumberVerificationUrl_ = ""; conversionAction_ = ""; conversionReportingState_ = 0; path1_ = ""; path2_ = ""; 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_CallAdInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.CallAdInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.CallAdInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.CallAdInfo build() { com.google.ads.googleads.v17.common.CallAdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.CallAdInfo buildPartial() { com.google.ads.googleads.v17.common.CallAdInfo result = new com.google.ads.googleads.v17.common.CallAdInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.CallAdInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.countryCode_ = countryCode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.phoneNumber_ = phoneNumber_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.businessName_ = businessName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.headline1_ = headline1_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.headline2_ = headline2_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.description1_ = description1_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.description2_ = description2_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.callTracked_ = callTracked_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.disableCallConversion_ = disableCallConversion_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.phoneNumberVerificationUrl_ = phoneNumberVerificationUrl_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.conversionAction_ = conversionAction_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.conversionReportingState_ = conversionReportingState_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.path1_ = path1_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.path2_ = path2_; } } @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.CallAdInfo) { return mergeFrom((com.google.ads.googleads.v17.common.CallAdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.CallAdInfo other) { if (other == com.google.ads.googleads.v17.common.CallAdInfo.getDefaultInstance()) return this; if (!other.getCountryCode().isEmpty()) { countryCode_ = other.countryCode_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPhoneNumber().isEmpty()) { phoneNumber_ = other.phoneNumber_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getBusinessName().isEmpty()) { businessName_ = other.businessName_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getHeadline1().isEmpty()) { headline1_ = other.headline1_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getHeadline2().isEmpty()) { headline2_ = other.headline2_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription1().isEmpty()) { description1_ = other.description1_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getDescription2().isEmpty()) { description2_ = other.description2_; bitField0_ |= 0x00000040; onChanged(); } if (other.getCallTracked() != false) { setCallTracked(other.getCallTracked()); } if (other.getDisableCallConversion() != false) { setDisableCallConversion(other.getDisableCallConversion()); } if (!other.getPhoneNumberVerificationUrl().isEmpty()) { phoneNumberVerificationUrl_ = other.phoneNumberVerificationUrl_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getConversionAction().isEmpty()) { conversionAction_ = other.conversionAction_; bitField0_ |= 0x00000400; onChanged(); } if (other.conversionReportingState_ != 0) { setConversionReportingStateValue(other.getConversionReportingStateValue()); } if (!other.getPath1().isEmpty()) { path1_ = other.path1_; bitField0_ |= 0x00001000; onChanged(); } if (!other.getPath2().isEmpty()) { path2_ = other.path2_; bitField0_ |= 0x00002000; 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 10: { countryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { phoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { businessName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { description1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 34 case 42: { description2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 42 case 48: { callTracked_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 48 case 56: { disableCallConversion_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 56 case 66: { phoneNumberVerificationUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 66 case 74: { conversionAction_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 74 case 80: { conversionReportingState_ = input.readEnum(); bitField0_ |= 0x00000800; break; } // case 80 case 90: { headline1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 90 case 98: { headline2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 98 case 106: { path1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { path2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 114 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 countryCode_ = ""; /** *
     * The country code in the ad.
     * 
* * string country_code = 1; * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The country code in the ad.
     * 
* * string country_code = 1; * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The country code in the ad.
     * 
* * string country_code = 1; * @param value The countryCode to set. * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } countryCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The country code in the ad.
     * 
* * string country_code = 1; * @return This builder for chaining. */ public Builder clearCountryCode() { countryCode_ = getDefaultInstance().getCountryCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The country code in the ad.
     * 
* * string country_code = 1; * @param value The bytes for countryCode to set. * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); countryCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object phoneNumber_ = ""; /** *
     * The phone number in the ad.
     * 
* * string phone_number = 2; * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The phone number in the ad.
     * 
* * string phone_number = 2; * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The phone number in the ad.
     * 
* * string phone_number = 2; * @param value The phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The phone number in the ad.
     * 
* * string phone_number = 2; * @return This builder for chaining. */ public Builder clearPhoneNumber() { phoneNumber_ = getDefaultInstance().getPhoneNumber(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The phone number in the ad.
     * 
* * string phone_number = 2; * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object businessName_ = ""; /** *
     * The business name in the ad.
     * 
* * string business_name = 3; * @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.
     * 
* * string business_name = 3; * @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.
     * 
* * string business_name = 3; * @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_ |= 0x00000004; onChanged(); return this; } /** *
     * The business name in the ad.
     * 
* * string business_name = 3; * @return This builder for chaining. */ public Builder clearBusinessName() { businessName_ = getDefaultInstance().getBusinessName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The business name in the ad.
     * 
* * string business_name = 3; * @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_ |= 0x00000004; onChanged(); return this; } private java.lang.Object headline1_ = ""; /** *
     * First headline in the ad.
     * 
* * string headline1 = 11; * @return The headline1. */ public java.lang.String getHeadline1() { java.lang.Object ref = headline1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headline1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * First headline in the ad.
     * 
* * string headline1 = 11; * @return The bytes for headline1. */ public com.google.protobuf.ByteString getHeadline1Bytes() { java.lang.Object ref = headline1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * First headline in the ad.
     * 
* * string headline1 = 11; * @param value The headline1 to set. * @return This builder for chaining. */ public Builder setHeadline1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headline1_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * First headline in the ad.
     * 
* * string headline1 = 11; * @return This builder for chaining. */ public Builder clearHeadline1() { headline1_ = getDefaultInstance().getHeadline1(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * First headline in the ad.
     * 
* * string headline1 = 11; * @param value The bytes for headline1 to set. * @return This builder for chaining. */ public Builder setHeadline1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headline1_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object headline2_ = ""; /** *
     * Second headline in the ad.
     * 
* * string headline2 = 12; * @return The headline2. */ public java.lang.String getHeadline2() { java.lang.Object ref = headline2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headline2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Second headline in the ad.
     * 
* * string headline2 = 12; * @return The bytes for headline2. */ public com.google.protobuf.ByteString getHeadline2Bytes() { java.lang.Object ref = headline2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Second headline in the ad.
     * 
* * string headline2 = 12; * @param value The headline2 to set. * @return This builder for chaining. */ public Builder setHeadline2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headline2_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Second headline in the ad.
     * 
* * string headline2 = 12; * @return This builder for chaining. */ public Builder clearHeadline2() { headline2_ = getDefaultInstance().getHeadline2(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Second headline in the ad.
     * 
* * string headline2 = 12; * @param value The bytes for headline2 to set. * @return This builder for chaining. */ public Builder setHeadline2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headline2_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object description1_ = ""; /** *
     * The first line of the ad's description.
     * 
* * string description1 = 4; * @return The description1. */ public java.lang.String getDescription1() { java.lang.Object ref = description1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The first line of the ad's description.
     * 
* * string description1 = 4; * @return The bytes for description1. */ public com.google.protobuf.ByteString getDescription1Bytes() { java.lang.Object ref = description1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The first line of the ad's description.
     * 
* * string description1 = 4; * @param value The description1 to set. * @return This builder for chaining. */ public Builder setDescription1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description1_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The first line of the ad's description.
     * 
* * string description1 = 4; * @return This builder for chaining. */ public Builder clearDescription1() { description1_ = getDefaultInstance().getDescription1(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * The first line of the ad's description.
     * 
* * string description1 = 4; * @param value The bytes for description1 to set. * @return This builder for chaining. */ public Builder setDescription1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description1_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object description2_ = ""; /** *
     * The second line of the ad's description.
     * 
* * string description2 = 5; * @return The description2. */ public java.lang.String getDescription2() { java.lang.Object ref = description2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The second line of the ad's description.
     * 
* * string description2 = 5; * @return The bytes for description2. */ public com.google.protobuf.ByteString getDescription2Bytes() { java.lang.Object ref = description2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The second line of the ad's description.
     * 
* * string description2 = 5; * @param value The description2 to set. * @return This builder for chaining. */ public Builder setDescription2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description2_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The second line of the ad's description.
     * 
* * string description2 = 5; * @return This builder for chaining. */ public Builder clearDescription2() { description2_ = getDefaultInstance().getDescription2(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * The second line of the ad's description.
     * 
* * string description2 = 5; * @param value The bytes for description2 to set. * @return This builder for chaining. */ public Builder setDescription2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description2_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private boolean callTracked_ ; /** *
     * Whether to enable call tracking for the creative. Enabling call
     * tracking also enables call conversions.
     * 
* * bool call_tracked = 6; * @return The callTracked. */ @java.lang.Override public boolean getCallTracked() { return callTracked_; } /** *
     * Whether to enable call tracking for the creative. Enabling call
     * tracking also enables call conversions.
     * 
* * bool call_tracked = 6; * @param value The callTracked to set. * @return This builder for chaining. */ public Builder setCallTracked(boolean value) { callTracked_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Whether to enable call tracking for the creative. Enabling call
     * tracking also enables call conversions.
     * 
* * bool call_tracked = 6; * @return This builder for chaining. */ public Builder clearCallTracked() { bitField0_ = (bitField0_ & ~0x00000080); callTracked_ = false; onChanged(); return this; } private boolean disableCallConversion_ ; /** *
     * Whether to disable call conversion for the creative.
     * If set to `true`, disables call conversions even when `call_tracked` is
     * `true`.
     * If `call_tracked` is `false`, this field is ignored.
     * 
* * bool disable_call_conversion = 7; * @return The disableCallConversion. */ @java.lang.Override public boolean getDisableCallConversion() { return disableCallConversion_; } /** *
     * Whether to disable call conversion for the creative.
     * If set to `true`, disables call conversions even when `call_tracked` is
     * `true`.
     * If `call_tracked` is `false`, this field is ignored.
     * 
* * bool disable_call_conversion = 7; * @param value The disableCallConversion to set. * @return This builder for chaining. */ public Builder setDisableCallConversion(boolean value) { disableCallConversion_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Whether to disable call conversion for the creative.
     * If set to `true`, disables call conversions even when `call_tracked` is
     * `true`.
     * If `call_tracked` is `false`, this field is ignored.
     * 
* * bool disable_call_conversion = 7; * @return This builder for chaining. */ public Builder clearDisableCallConversion() { bitField0_ = (bitField0_ & ~0x00000100); disableCallConversion_ = false; onChanged(); return this; } private java.lang.Object phoneNumberVerificationUrl_ = ""; /** *
     * The URL to be used for phone number verification.
     * 
* * string phone_number_verification_url = 8; * @return The phoneNumberVerificationUrl. */ public java.lang.String getPhoneNumberVerificationUrl() { java.lang.Object ref = phoneNumberVerificationUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumberVerificationUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The URL to be used for phone number verification.
     * 
* * string phone_number_verification_url = 8; * @return The bytes for phoneNumberVerificationUrl. */ public com.google.protobuf.ByteString getPhoneNumberVerificationUrlBytes() { java.lang.Object ref = phoneNumberVerificationUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumberVerificationUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The URL to be used for phone number verification.
     * 
* * string phone_number_verification_url = 8; * @param value The phoneNumberVerificationUrl to set. * @return This builder for chaining. */ public Builder setPhoneNumberVerificationUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } phoneNumberVerificationUrl_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * The URL to be used for phone number verification.
     * 
* * string phone_number_verification_url = 8; * @return This builder for chaining. */ public Builder clearPhoneNumberVerificationUrl() { phoneNumberVerificationUrl_ = getDefaultInstance().getPhoneNumberVerificationUrl(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     * The URL to be used for phone number verification.
     * 
* * string phone_number_verification_url = 8; * @param value The bytes for phoneNumberVerificationUrl to set. * @return This builder for chaining. */ public Builder setPhoneNumberVerificationUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phoneNumberVerificationUrl_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object conversionAction_ = ""; /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * `call_tracked` is set to `true`. Otherwise this field is ignored.
     * 
* * string conversion_action = 9; * @return The conversionAction. */ public java.lang.String getConversionAction() { java.lang.Object ref = conversionAction_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversionAction_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * `call_tracked` is set to `true`. Otherwise this field is ignored.
     * 
* * string conversion_action = 9; * @return The bytes for conversionAction. */ public com.google.protobuf.ByteString getConversionActionBytes() { java.lang.Object ref = conversionAction_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); conversionAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * `call_tracked` is set to `true`. Otherwise this field is ignored.
     * 
* * string conversion_action = 9; * @param value The conversionAction to set. * @return This builder for chaining. */ public Builder setConversionAction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } conversionAction_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * `call_tracked` is set to `true`. Otherwise this field is ignored.
     * 
* * string conversion_action = 9; * @return This builder for chaining. */ public Builder clearConversionAction() { conversionAction_ = getDefaultInstance().getConversionAction(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * `call_tracked` is set to `true`. Otherwise this field is ignored.
     * 
* * string conversion_action = 9; * @param value The bytes for conversionAction to set. * @return This builder for chaining. */ public Builder setConversionActionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); conversionAction_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private int conversionReportingState_ = 0; /** *
     * The call conversion behavior of this call ad. It can use its own call
     * conversion setting, inherit the account level setting, or be disabled.
     * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @return The enum numeric value on the wire for conversionReportingState. */ @java.lang.Override public int getConversionReportingStateValue() { return conversionReportingState_; } /** *
     * The call conversion behavior of this call ad. It can use its own call
     * conversion setting, inherit the account level setting, or be disabled.
     * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @param value The enum numeric value on the wire for conversionReportingState to set. * @return This builder for chaining. */ public Builder setConversionReportingStateValue(int value) { conversionReportingState_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * The call conversion behavior of this call ad. It can use its own call
     * conversion setting, inherit the account level setting, or be disabled.
     * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @return The conversionReportingState. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState getConversionReportingState() { com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState result = com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.forNumber(conversionReportingState_); return result == null ? com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNRECOGNIZED : result; } /** *
     * The call conversion behavior of this call ad. It can use its own call
     * conversion setting, inherit the account level setting, or be disabled.
     * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @param value The conversionReportingState to set. * @return This builder for chaining. */ public Builder setConversionReportingState(com.google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; conversionReportingState_ = value.getNumber(); onChanged(); return this; } /** *
     * The call conversion behavior of this call ad. It can use its own call
     * conversion setting, inherit the account level setting, or be disabled.
     * 
* * .google.ads.googleads.v17.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; * @return This builder for chaining. */ public Builder clearConversionReportingState() { bitField0_ = (bitField0_ & ~0x00000800); conversionReportingState_ = 0; onChanged(); return this; } private java.lang.Object path1_ = ""; /** *
     * First part of text that can be appended to the URL in the ad. Optional.
     * 
* * string path1 = 13; * @return The path1. */ public java.lang.String getPath1() { java.lang.Object ref = path1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * First part of text that can be appended to the URL in the ad. Optional.
     * 
* * string path1 = 13; * @return The bytes for path1. */ public com.google.protobuf.ByteString getPath1Bytes() { java.lang.Object ref = path1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * First part of text that can be appended to the URL in the ad. Optional.
     * 
* * string path1 = 13; * @param value The path1 to set. * @return This builder for chaining. */ public Builder setPath1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path1_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * First part of text that can be appended to the URL in the ad. Optional.
     * 
* * string path1 = 13; * @return This builder for chaining. */ public Builder clearPath1() { path1_ = getDefaultInstance().getPath1(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     * First part of text that can be appended to the URL in the ad. Optional.
     * 
* * string path1 = 13; * @param value The bytes for path1 to set. * @return This builder for chaining. */ public Builder setPath1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path1_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object path2_ = ""; /** *
     * Second part of text that can be appended to the URL in the ad. This field
     * can only be set when `path1` is also set. Optional.
     * 
* * string path2 = 14; * @return The path2. */ public java.lang.String getPath2() { java.lang.Object ref = path2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Second part of text that can be appended to the URL in the ad. This field
     * can only be set when `path1` is also set. Optional.
     * 
* * string path2 = 14; * @return The bytes for path2. */ public com.google.protobuf.ByteString getPath2Bytes() { java.lang.Object ref = path2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Second part of text that can be appended to the URL in the ad. This field
     * can only be set when `path1` is also set. Optional.
     * 
* * string path2 = 14; * @param value The path2 to set. * @return This builder for chaining. */ public Builder setPath2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path2_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * Second part of text that can be appended to the URL in the ad. This field
     * can only be set when `path1` is also set. Optional.
     * 
* * string path2 = 14; * @return This builder for chaining. */ public Builder clearPath2() { path2_ = getDefaultInstance().getPath2(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** *
     * Second part of text that can be appended to the URL in the ad. This field
     * can only be set when `path1` is also set. Optional.
     * 
* * string path2 = 14; * @param value The bytes for path2 to set. * @return This builder for chaining. */ public Builder setPath2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path2_ = value; bitField0_ |= 0x00002000; 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.CallAdInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.CallAdInfo) private static final com.google.ads.googleads.v17.common.CallAdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.CallAdInfo(); } public static com.google.ads.googleads.v17.common.CallAdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallAdInfo 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.CallAdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy