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

com.google.ads.googleads.v10.resources.SmartCampaignSetting Maven / Gradle / Ivy

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

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

/**
 * 
 * Settings for configuring Smart campaigns.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.SmartCampaignSetting} */ public final class SmartCampaignSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.SmartCampaignSetting) SmartCampaignSettingOrBuilder { private static final long serialVersionUID = 0L; // Use SmartCampaignSetting.newBuilder() to construct. private SmartCampaignSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SmartCampaignSetting() { resourceName_ = ""; campaign_ = ""; finalUrl_ = ""; advertisingLanguageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SmartCampaignSetting(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.SmartCampaignSetting.class, com.google.ads.googleads.v10.resources.SmartCampaignSetting.Builder.class); } public interface PhoneNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) com.google.protobuf.MessageOrBuilder { /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @return The bytes for phoneNumber. */ com.google.protobuf.ByteString getPhoneNumberBytes(); /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @return Whether the countryCode field is set. */ boolean hasCountryCode(); /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @return The countryCode. */ java.lang.String getCountryCode(); /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @return The bytes for countryCode. */ com.google.protobuf.ByteString getCountryCodeBytes(); } /** *
   * Phone number and country code in smart campaign settings.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber} */ public static final class PhoneNumber extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) PhoneNumberOrBuilder { private static final long serialVersionUID = 0L; // Use PhoneNumber.newBuilder() to construct. private PhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhoneNumber() { phoneNumber_ = ""; countryCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PhoneNumber(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_PhoneNumber_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_PhoneNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.class, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder.class); } private int bitField0_; public static final int PHONE_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object phoneNumber_; /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @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; } } /** *
     * Phone number of the smart campaign.
     * 
* * optional string phone_number = 1; * @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 COUNTRY_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object countryCode_; /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @return Whether the countryCode field is set. */ @java.lang.Override public boolean hasCountryCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @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; } } /** *
     * Upper-case, two-letter country code as defined by ISO-3166.
     * 
* * optional string country_code = 2; * @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; } } 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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNumber_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, countryCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNumber_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, countryCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber other = (com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) obj; if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (hasCountryCode() != other.hasCountryCode()) return false; if (hasCountryCode()) { if (!getCountryCode() .equals(other.getCountryCode())) 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 (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } if (hasCountryCode()) { hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber 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; } /** *
     * Phone number and country code in smart campaign settings.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_PhoneNumber_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_PhoneNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.class, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); phoneNumber_ = ""; bitField0_ = (bitField0_ & ~0x00000001); countryCode_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_PhoneNumber_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber build() { com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber buildPartial() { com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber result = new com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.phoneNumber_ = phoneNumber_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.countryCode_ = countryCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) { return mergeFrom((com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber other) { if (other == com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.getDefaultInstance()) return this; if (other.hasPhoneNumber()) { bitField0_ |= 0x00000001; phoneNumber_ = other.phoneNumber_; onChanged(); } if (other.hasCountryCode()) { bitField0_ |= 0x00000002; countryCode_ = other.countryCode_; 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: { phoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { countryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 phoneNumber_ = ""; /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @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; } } /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @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; } } /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @param value The phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phoneNumber_ = value; onChanged(); return this; } /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @return This builder for chaining. */ public Builder clearPhoneNumber() { bitField0_ = (bitField0_ & ~0x00000001); phoneNumber_ = getDefaultInstance().getPhoneNumber(); onChanged(); return this; } /** *
       * Phone number of the smart campaign.
       * 
* * optional string phone_number = 1; * @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); bitField0_ |= 0x00000001; phoneNumber_ = value; onChanged(); return this; } private java.lang.Object countryCode_ = ""; /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @return Whether the countryCode field is set. */ public boolean hasCountryCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @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; } } /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @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; } } /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @param value The countryCode to set. * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; countryCode_ = value; onChanged(); return this; } /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @return This builder for chaining. */ public Builder clearCountryCode() { bitField0_ = (bitField0_ & ~0x00000002); countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** *
       * Upper-case, two-letter country code as defined by ISO-3166.
       * 
* * optional string country_code = 2; * @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); bitField0_ |= 0x00000002; countryCode_ = value; 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.v10.resources.SmartCampaignSetting.PhoneNumber) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber) private static final com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber(); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PhoneNumber parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int businessSettingCase_ = 0; private java.lang.Object businessSetting_; public enum BusinessSettingCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BUSINESS_NAME(5), BUSINESS_LOCATION_ID(6), BUSINESSSETTING_NOT_SET(0); private final int value; private BusinessSettingCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BusinessSettingCase valueOf(int value) { return forNumber(value); } public static BusinessSettingCase forNumber(int value) { switch (value) { case 5: return BUSINESS_NAME; case 6: return BUSINESS_LOCATION_ID; case 0: return BUSINESSSETTING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public BusinessSettingCase getBusinessSettingCase() { return BusinessSettingCase.forNumber( businessSettingCase_); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Immutable. The resource name of the Smart campaign setting.
   * Smart campaign setting resource names have the form:
   * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; 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(); resourceName_ = s; return s; } } /** *
   * Immutable. The resource name of the Smart campaign setting.
   * Smart campaign setting resource names have the form:
   * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_FIELD_NUMBER = 2; private volatile java.lang.Object campaign_; /** *
   * Output only. The campaign to which these settings apply.
   * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaign. */ @java.lang.Override public java.lang.String getCampaign() { java.lang.Object ref = campaign_; 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(); campaign_ = s; return s; } } /** *
   * Output only. The campaign to which these settings apply.
   * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHONE_NUMBER_FIELD_NUMBER = 3; private com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phoneNumber_; /** *
   * Phone number and country code.
   * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return phoneNumber_ != null; } /** *
   * Phone number and country code.
   * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; * @return The phoneNumber. */ @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber getPhoneNumber() { return phoneNumber_ == null ? com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.getDefaultInstance() : phoneNumber_; } /** *
   * Phone number and country code.
   * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { return getPhoneNumber(); } public static final int FINAL_URL_FIELD_NUMBER = 4; private volatile java.lang.Object finalUrl_; /** *
   * Landing page url given by user for this Campaign.
   * 
* * string final_url = 4; * @return The finalUrl. */ @java.lang.Override public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; 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(); finalUrl_ = s; return s; } } /** *
   * Landing page url given by user for this Campaign.
   * 
* * string final_url = 4; * @return The bytes for finalUrl. */ @java.lang.Override public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER = 7; private volatile java.lang.Object advertisingLanguageCode_; /** *
   * The ISO-639-1 language code to advertise in.
   * 
* * string advertising_language_code = 7; * @return The advertisingLanguageCode. */ @java.lang.Override public java.lang.String getAdvertisingLanguageCode() { java.lang.Object ref = advertisingLanguageCode_; 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(); advertisingLanguageCode_ = s; return s; } } /** *
   * The ISO-639-1 language code to advertise in.
   * 
* * string advertising_language_code = 7; * @return The bytes for advertisingLanguageCode. */ @java.lang.Override public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes() { java.lang.Object ref = advertisingLanguageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); advertisingLanguageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_NAME_FIELD_NUMBER = 5; /** *
   * The name of the business.
   * 
* * string business_name = 5; * @return Whether the businessName field is set. */ public boolean hasBusinessName() { return businessSettingCase_ == 5; } /** *
   * The name of the business.
   * 
* * string business_name = 5; * @return The businessName. */ public java.lang.String getBusinessName() { java.lang.Object ref = ""; if (businessSettingCase_ == 5) { ref = businessSetting_; } 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(); if (businessSettingCase_ == 5) { businessSetting_ = s; } return s; } } /** *
   * The name of the business.
   * 
* * string business_name = 5; * @return The bytes for businessName. */ public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = ""; if (businessSettingCase_ == 5) { ref = businessSetting_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (businessSettingCase_ == 5) { businessSetting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_LOCATION_ID_FIELD_NUMBER = 6; /** *
   * The ID of the Business Profile location.
   * The location ID can be fetched by Business Profile API with its form:
   * accounts/{accountId}/locations/{locationId}. The last {locationId}
   * component from the Business Profile API represents the
   * business_location_id. See the [Business Profile API]
   * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
   * 
* * int64 business_location_id = 6; * @return Whether the businessLocationId field is set. */ @java.lang.Override public boolean hasBusinessLocationId() { return businessSettingCase_ == 6; } /** *
   * The ID of the Business Profile location.
   * The location ID can be fetched by Business Profile API with its form:
   * accounts/{accountId}/locations/{locationId}. The last {locationId}
   * component from the Business Profile API represents the
   * business_location_id. See the [Business Profile API]
   * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
   * 
* * int64 business_location_id = 6; * @return The businessLocationId. */ @java.lang.Override public long getBusinessLocationId() { if (businessSettingCase_ == 6) { return (java.lang.Long) businessSetting_; } return 0L; } 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(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, campaign_); } if (phoneNumber_ != null) { output.writeMessage(3, getPhoneNumber()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finalUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, finalUrl_); } if (businessSettingCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, businessSetting_); } if (businessSettingCase_ == 6) { output.writeInt64( 6, (long)((java.lang.Long) businessSetting_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertisingLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, advertisingLanguageCode_); } 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(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, campaign_); } if (phoneNumber_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPhoneNumber()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finalUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, finalUrl_); } if (businessSettingCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, businessSetting_); } if (businessSettingCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 6, (long)((java.lang.Long) businessSetting_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertisingLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, advertisingLanguageCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.SmartCampaignSetting)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.SmartCampaignSetting other = (com.google.ads.googleads.v10.resources.SmartCampaignSetting) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (!getCampaign() .equals(other.getCampaign())) return false; if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (!getFinalUrl() .equals(other.getFinalUrl())) return false; if (!getAdvertisingLanguageCode() .equals(other.getAdvertisingLanguageCode())) return false; if (!getBusinessSettingCase().equals(other.getBusinessSettingCase())) return false; switch (businessSettingCase_) { case 5: if (!getBusinessName() .equals(other.getBusinessName())) return false; break; case 6: if (getBusinessLocationId() != other.getBusinessLocationId()) return false; break; case 0: default: } 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getCampaign().hashCode(); if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } hash = (37 * hash) + FINAL_URL_FIELD_NUMBER; hash = (53 * hash) + getFinalUrl().hashCode(); hash = (37 * hash) + ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getAdvertisingLanguageCode().hashCode(); switch (businessSettingCase_) { case 5: hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER; hash = (53 * hash) + getBusinessName().hashCode(); break; case 6: hash = (37 * hash) + BUSINESS_LOCATION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBusinessLocationId()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.SmartCampaignSetting 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; } /** *
   * Settings for configuring Smart campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.SmartCampaignSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.SmartCampaignSetting) com.google.ads.googleads.v10.resources.SmartCampaignSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.SmartCampaignSetting.class, com.google.ads.googleads.v10.resources.SmartCampaignSetting.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.SmartCampaignSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; campaign_ = ""; if (phoneNumberBuilder_ == null) { phoneNumber_ = null; } else { phoneNumber_ = null; phoneNumberBuilder_ = null; } finalUrl_ = ""; advertisingLanguageCode_ = ""; businessSettingCase_ = 0; businessSetting_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.SmartCampaignSettingProto.internal_static_google_ads_googleads_v10_resources_SmartCampaignSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.SmartCampaignSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting build() { com.google.ads.googleads.v10.resources.SmartCampaignSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting buildPartial() { com.google.ads.googleads.v10.resources.SmartCampaignSetting result = new com.google.ads.googleads.v10.resources.SmartCampaignSetting(this); result.resourceName_ = resourceName_; result.campaign_ = campaign_; if (phoneNumberBuilder_ == null) { result.phoneNumber_ = phoneNumber_; } else { result.phoneNumber_ = phoneNumberBuilder_.build(); } result.finalUrl_ = finalUrl_; result.advertisingLanguageCode_ = advertisingLanguageCode_; if (businessSettingCase_ == 5) { result.businessSetting_ = businessSetting_; } if (businessSettingCase_ == 6) { result.businessSetting_ = businessSetting_; } result.businessSettingCase_ = businessSettingCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.SmartCampaignSetting) { return mergeFrom((com.google.ads.googleads.v10.resources.SmartCampaignSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.SmartCampaignSetting other) { if (other == com.google.ads.googleads.v10.resources.SmartCampaignSetting.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (!other.getCampaign().isEmpty()) { campaign_ = other.campaign_; onChanged(); } if (other.hasPhoneNumber()) { mergePhoneNumber(other.getPhoneNumber()); } if (!other.getFinalUrl().isEmpty()) { finalUrl_ = other.finalUrl_; onChanged(); } if (!other.getAdvertisingLanguageCode().isEmpty()) { advertisingLanguageCode_ = other.advertisingLanguageCode_; onChanged(); } switch (other.getBusinessSettingCase()) { case BUSINESS_NAME: { businessSettingCase_ = 5; businessSetting_ = other.businessSetting_; onChanged(); break; } case BUSINESS_LOCATION_ID: { setBusinessLocationId(other.getBusinessLocationId()); break; } case BUSINESSSETTING_NOT_SET: { break; } } 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: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { campaign_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { input.readMessage( getPhoneNumberFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { finalUrl_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); businessSettingCase_ = 5; businessSetting_ = s; break; } // case 42 case 48: { businessSetting_ = input.readInt64(); businessSettingCase_ = 6; break; } // case 48 case 58: { advertisingLanguageCode_ = input.readStringRequireUtf8(); break; } // case 58 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 businessSettingCase_ = 0; private java.lang.Object businessSetting_; public BusinessSettingCase getBusinessSettingCase() { return BusinessSettingCase.forNumber( businessSettingCase_); } public Builder clearBusinessSetting() { businessSettingCase_ = 0; businessSetting_ = null; onChanged(); return this; } private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the Smart campaign setting.
     * Smart campaign setting resource names have the form:
     * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The resource name of the Smart campaign setting.
     * Smart campaign setting resource names have the form:
     * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The resource name of the Smart campaign setting.
     * Smart campaign setting resource names have the form:
     * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; onChanged(); return this; } /** *
     * Immutable. The resource name of the Smart campaign setting.
     * Smart campaign setting resource names have the form:
     * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Immutable. The resource name of the Smart campaign setting.
     * Smart campaign setting resource names have the form:
     * `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; onChanged(); return this; } private java.lang.Object campaign_ = ""; /** *
     * Output only. The campaign to which these settings apply.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaign. */ public java.lang.String getCampaign() { java.lang.Object ref = campaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The campaign to which these settings apply.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The campaign to which these settings apply.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The campaign to set. * @return This builder for chaining. */ public Builder setCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaign_ = value; onChanged(); return this; } /** *
     * Output only. The campaign to which these settings apply.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaign() { campaign_ = getDefaultInstance().getCampaign(); onChanged(); return this; } /** *
     * Output only. The campaign to which these settings apply.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for campaign to set. * @return This builder for chaining. */ public Builder setCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaign_ = value; onChanged(); return this; } private com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phoneNumber_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder> phoneNumberBuilder_; /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return phoneNumberBuilder_ != null || phoneNumber_ != null; } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; * @return The phoneNumber. */ public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber getPhoneNumber() { if (phoneNumberBuilder_ == null) { return phoneNumber_ == null ? com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.getDefaultInstance() : phoneNumber_; } else { return phoneNumberBuilder_.getMessage(); } } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public Builder setPhoneNumber(com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; onChanged(); } else { phoneNumberBuilder_.setMessage(value); } return this; } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public Builder setPhoneNumber( com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder builderForValue) { if (phoneNumberBuilder_ == null) { phoneNumber_ = builderForValue.build(); onChanged(); } else { phoneNumberBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public Builder mergePhoneNumber(com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (phoneNumber_ != null) { phoneNumber_ = com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.newBuilder(phoneNumber_).mergeFrom(value).buildPartial(); } else { phoneNumber_ = value; } onChanged(); } else { phoneNumberBuilder_.mergeFrom(value); } return this; } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public Builder clearPhoneNumber() { if (phoneNumberBuilder_ == null) { phoneNumber_ = null; onChanged(); } else { phoneNumber_ = null; phoneNumberBuilder_ = null; } return this; } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder getPhoneNumberBuilder() { onChanged(); return getPhoneNumberFieldBuilder().getBuilder(); } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ public com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { if (phoneNumberBuilder_ != null) { return phoneNumberBuilder_.getMessageOrBuilder(); } else { return phoneNumber_ == null ? com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.getDefaultInstance() : phoneNumber_; } } /** *
     * Phone number and country code.
     * 
* * .google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder> getPhoneNumberFieldBuilder() { if (phoneNumberBuilder_ == null) { phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber.Builder, com.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumberOrBuilder>( getPhoneNumber(), getParentForChildren(), isClean()); phoneNumber_ = null; } return phoneNumberBuilder_; } private java.lang.Object finalUrl_ = ""; /** *
     * Landing page url given by user for this Campaign.
     * 
* * string final_url = 4; * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Landing page url given by user for this Campaign.
     * 
* * string final_url = 4; * @return The bytes for finalUrl. */ public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Landing page url given by user for this Campaign.
     * 
* * string final_url = 4; * @param value The finalUrl to set. * @return This builder for chaining. */ public Builder setFinalUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } finalUrl_ = value; onChanged(); return this; } /** *
     * Landing page url given by user for this Campaign.
     * 
* * string final_url = 4; * @return This builder for chaining. */ public Builder clearFinalUrl() { finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** *
     * Landing page url given by user for this Campaign.
     * 
* * string final_url = 4; * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ public Builder setFinalUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finalUrl_ = value; onChanged(); return this; } private java.lang.Object advertisingLanguageCode_ = ""; /** *
     * The ISO-639-1 language code to advertise in.
     * 
* * string advertising_language_code = 7; * @return The advertisingLanguageCode. */ public java.lang.String getAdvertisingLanguageCode() { java.lang.Object ref = advertisingLanguageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); advertisingLanguageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The ISO-639-1 language code to advertise in.
     * 
* * string advertising_language_code = 7; * @return The bytes for advertisingLanguageCode. */ public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes() { java.lang.Object ref = advertisingLanguageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); advertisingLanguageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The ISO-639-1 language code to advertise in.
     * 
* * string advertising_language_code = 7; * @param value The advertisingLanguageCode to set. * @return This builder for chaining. */ public Builder setAdvertisingLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } advertisingLanguageCode_ = value; onChanged(); return this; } /** *
     * The ISO-639-1 language code to advertise in.
     * 
* * string advertising_language_code = 7; * @return This builder for chaining. */ public Builder clearAdvertisingLanguageCode() { advertisingLanguageCode_ = getDefaultInstance().getAdvertisingLanguageCode(); onChanged(); return this; } /** *
     * The ISO-639-1 language code to advertise in.
     * 
* * string advertising_language_code = 7; * @param value The bytes for advertisingLanguageCode to set. * @return This builder for chaining. */ public Builder setAdvertisingLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); advertisingLanguageCode_ = value; onChanged(); return this; } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @return Whether the businessName field is set. */ @java.lang.Override public boolean hasBusinessName() { return businessSettingCase_ == 5; } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @return The businessName. */ @java.lang.Override public java.lang.String getBusinessName() { java.lang.Object ref = ""; if (businessSettingCase_ == 5) { ref = businessSetting_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (businessSettingCase_ == 5) { businessSetting_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @return The bytes for businessName. */ @java.lang.Override public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = ""; if (businessSettingCase_ == 5) { ref = businessSetting_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (businessSettingCase_ == 5) { businessSetting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @param value The businessName to set. * @return This builder for chaining. */ public Builder setBusinessName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } businessSettingCase_ = 5; businessSetting_ = value; onChanged(); return this; } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @return This builder for chaining. */ public Builder clearBusinessName() { if (businessSettingCase_ == 5) { businessSettingCase_ = 0; businessSetting_ = null; onChanged(); } return this; } /** *
     * The name of the business.
     * 
* * string business_name = 5; * @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); businessSettingCase_ = 5; businessSetting_ = value; onChanged(); return this; } /** *
     * The ID of the Business Profile location.
     * The location ID can be fetched by Business Profile API with its form:
     * accounts/{accountId}/locations/{locationId}. The last {locationId}
     * component from the Business Profile API represents the
     * business_location_id. See the [Business Profile API]
     * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
     * 
* * int64 business_location_id = 6; * @return Whether the businessLocationId field is set. */ public boolean hasBusinessLocationId() { return businessSettingCase_ == 6; } /** *
     * The ID of the Business Profile location.
     * The location ID can be fetched by Business Profile API with its form:
     * accounts/{accountId}/locations/{locationId}. The last {locationId}
     * component from the Business Profile API represents the
     * business_location_id. See the [Business Profile API]
     * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
     * 
* * int64 business_location_id = 6; * @return The businessLocationId. */ public long getBusinessLocationId() { if (businessSettingCase_ == 6) { return (java.lang.Long) businessSetting_; } return 0L; } /** *
     * The ID of the Business Profile location.
     * The location ID can be fetched by Business Profile API with its form:
     * accounts/{accountId}/locations/{locationId}. The last {locationId}
     * component from the Business Profile API represents the
     * business_location_id. See the [Business Profile API]
     * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
     * 
* * int64 business_location_id = 6; * @param value The businessLocationId to set. * @return This builder for chaining. */ public Builder setBusinessLocationId(long value) { businessSettingCase_ = 6; businessSetting_ = value; onChanged(); return this; } /** *
     * The ID of the Business Profile location.
     * The location ID can be fetched by Business Profile API with its form:
     * accounts/{accountId}/locations/{locationId}. The last {locationId}
     * component from the Business Profile API represents the
     * business_location_id. See the [Business Profile API]
     * (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
     * 
* * int64 business_location_id = 6; * @return This builder for chaining. */ public Builder clearBusinessLocationId() { if (businessSettingCase_ == 6) { businessSettingCase_ = 0; businessSetting_ = null; 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.v10.resources.SmartCampaignSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.SmartCampaignSetting) private static final com.google.ads.googleads.v10.resources.SmartCampaignSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.SmartCampaignSetting(); } public static com.google.ads.googleads.v10.resources.SmartCampaignSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SmartCampaignSetting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.SmartCampaignSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy