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

com.google.ads.googleads.v16.resources.Campaign Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v16.resources;

/**
 * 
 * A campaign.
 * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign} */ public final class Campaign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign) CampaignOrBuilder { private static final long serialVersionUID = 0L; // Use Campaign.newBuilder() to construct. private Campaign(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Campaign() { resourceName_ = ""; name_ = ""; primaryStatus_ = 0; primaryStatusReasons_ = java.util.Collections.emptyList(); status_ = 0; servingStatus_ = 0; biddingStrategySystemStatus_ = 0; adServingOptimizationStatus_ = 0; advertisingChannelType_ = 0; advertisingChannelSubType_ = 0; trackingUrlTemplate_ = ""; urlCustomParameters_ = java.util.Collections.emptyList(); labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); experimentType_ = 0; baseCampaign_ = ""; campaignBudget_ = ""; biddingStrategyType_ = 0; accessibleBiddingStrategy_ = ""; startDate_ = ""; campaignGroup_ = ""; endDate_ = ""; finalUrlSuffix_ = ""; frequencyCaps_ = java.util.Collections.emptyList(); videoBrandSafetySuitability_ = 0; paymentMode_ = 0; excludedParentAssetFieldTypes_ = java.util.Collections.emptyList(); excludedParentAssetSetTypes_ = java.util.Collections.emptyList(); hotelPropertyAssetSet_ = ""; listingType_ = 0; assetAutomationSettings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Campaign(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.class, com.google.ads.googleads.v16.resources.Campaign.Builder.class); } public interface PerformanceMaxUpgradeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Indicates which Performance Max campaign the campaign is
     * upgraded to.
     * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The performanceMaxCampaign. */ java.lang.String getPerformanceMaxCampaign(); /** *
     * Output only. Indicates which Performance Max campaign the campaign is
     * upgraded to.
     * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for performanceMaxCampaign. */ com.google.protobuf.ByteString getPerformanceMaxCampaignBytes(); /** *
     * Output only. Indicates legacy campaign upgraded to Performance Max.
     * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The preUpgradeCampaign. */ java.lang.String getPreUpgradeCampaign(); /** *
     * Output only. Indicates legacy campaign upgraded to Performance Max.
     * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for preUpgradeCampaign. */ com.google.protobuf.ByteString getPreUpgradeCampaignBytes(); /** *
     * Output only. The upgrade status of a campaign requested to be upgraded to
     * Performance Max.
     * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Output only. The upgrade status of a campaign requested to be upgraded to
     * Performance Max.
     * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus getStatus(); } /** *
   * Information about a campaign being upgraded to Performance Max.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade} */ public static final class PerformanceMaxUpgrade extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade) PerformanceMaxUpgradeOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceMaxUpgrade.newBuilder() to construct. private PerformanceMaxUpgrade(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceMaxUpgrade() { performanceMaxCampaign_ = ""; preUpgradeCampaign_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceMaxUpgrade(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_PerformanceMaxUpgrade_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_PerformanceMaxUpgrade_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.class, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder.class); } public static final int PERFORMANCE_MAX_CAMPAIGN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object performanceMaxCampaign_ = ""; /** *
     * Output only. Indicates which Performance Max campaign the campaign is
     * upgraded to.
     * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The performanceMaxCampaign. */ @java.lang.Override public java.lang.String getPerformanceMaxCampaign() { java.lang.Object ref = performanceMaxCampaign_; 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(); performanceMaxCampaign_ = s; return s; } } /** *
     * Output only. Indicates which Performance Max campaign the campaign is
     * upgraded to.
     * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for performanceMaxCampaign. */ @java.lang.Override public com.google.protobuf.ByteString getPerformanceMaxCampaignBytes() { java.lang.Object ref = performanceMaxCampaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); performanceMaxCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRE_UPGRADE_CAMPAIGN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object preUpgradeCampaign_ = ""; /** *
     * Output only. Indicates legacy campaign upgraded to Performance Max.
     * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The preUpgradeCampaign. */ @java.lang.Override public java.lang.String getPreUpgradeCampaign() { java.lang.Object ref = preUpgradeCampaign_; 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(); preUpgradeCampaign_ = s; return s; } } /** *
     * Output only. Indicates legacy campaign upgraded to Performance Max.
     * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for preUpgradeCampaign. */ @java.lang.Override public com.google.protobuf.ByteString getPreUpgradeCampaignBytes() { java.lang.Object ref = preUpgradeCampaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preUpgradeCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 3; private int status_ = 0; /** *
     * Output only. The upgrade status of a campaign requested to be upgraded to
     * Performance Max.
     * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Output only. The upgrade status of a campaign requested to be upgraded to
     * Performance Max.
     * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus getStatus() { com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus result = com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.UNRECOGNIZED : result; } 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(performanceMaxCampaign_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, performanceMaxCampaign_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preUpgradeCampaign_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, preUpgradeCampaign_); } if (status_ != com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.UNSPECIFIED.getNumber()) { output.writeEnum(3, status_); } 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(performanceMaxCampaign_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, performanceMaxCampaign_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preUpgradeCampaign_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, preUpgradeCampaign_); } if (status_ != com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, status_); } 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.v16.resources.Campaign.PerformanceMaxUpgrade)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade other = (com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade) obj; if (!getPerformanceMaxCampaign() .equals(other.getPerformanceMaxCampaign())) return false; if (!getPreUpgradeCampaign() .equals(other.getPreUpgradeCampaign())) return false; if (status_ != other.status_) 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) + PERFORMANCE_MAX_CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getPerformanceMaxCampaign().hashCode(); hash = (37 * hash) + PRE_UPGRADE_CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getPreUpgradeCampaign().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade 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; } /** *
     * Information about a campaign being upgraded to Performance Max.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade) com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_PerformanceMaxUpgrade_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_PerformanceMaxUpgrade_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.class, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; performanceMaxCampaign_ = ""; preUpgradeCampaign_ = ""; status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_PerformanceMaxUpgrade_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade build() { com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade buildPartial() { com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade result = new com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.performanceMaxCampaign_ = performanceMaxCampaign_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.preUpgradeCampaign_ = preUpgradeCampaign_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.status_ = status_; } } @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.v16.resources.Campaign.PerformanceMaxUpgrade) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade other) { if (other == com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance()) return this; if (!other.getPerformanceMaxCampaign().isEmpty()) { performanceMaxCampaign_ = other.performanceMaxCampaign_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPreUpgradeCampaign().isEmpty()) { preUpgradeCampaign_ = other.preUpgradeCampaign_; bitField0_ |= 0x00000002; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } 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: { performanceMaxCampaign_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { preUpgradeCampaign_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { status_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 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 performanceMaxCampaign_ = ""; /** *
       * Output only. Indicates which Performance Max campaign the campaign is
       * upgraded to.
       * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The performanceMaxCampaign. */ public java.lang.String getPerformanceMaxCampaign() { java.lang.Object ref = performanceMaxCampaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); performanceMaxCampaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Indicates which Performance Max campaign the campaign is
       * upgraded to.
       * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for performanceMaxCampaign. */ public com.google.protobuf.ByteString getPerformanceMaxCampaignBytes() { java.lang.Object ref = performanceMaxCampaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); performanceMaxCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Indicates which Performance Max campaign the campaign is
       * upgraded to.
       * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The performanceMaxCampaign to set. * @return This builder for chaining. */ public Builder setPerformanceMaxCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } performanceMaxCampaign_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Indicates which Performance Max campaign the campaign is
       * upgraded to.
       * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPerformanceMaxCampaign() { performanceMaxCampaign_ = getDefaultInstance().getPerformanceMaxCampaign(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. Indicates which Performance Max campaign the campaign is
       * upgraded to.
       * 
* * string performance_max_campaign = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for performanceMaxCampaign to set. * @return This builder for chaining. */ public Builder setPerformanceMaxCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); performanceMaxCampaign_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object preUpgradeCampaign_ = ""; /** *
       * Output only. Indicates legacy campaign upgraded to Performance Max.
       * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The preUpgradeCampaign. */ public java.lang.String getPreUpgradeCampaign() { java.lang.Object ref = preUpgradeCampaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); preUpgradeCampaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Indicates legacy campaign upgraded to Performance Max.
       * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for preUpgradeCampaign. */ public com.google.protobuf.ByteString getPreUpgradeCampaignBytes() { java.lang.Object ref = preUpgradeCampaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preUpgradeCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Indicates legacy campaign upgraded to Performance Max.
       * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The preUpgradeCampaign to set. * @return This builder for chaining. */ public Builder setPreUpgradeCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } preUpgradeCampaign_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Indicates legacy campaign upgraded to Performance Max.
       * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPreUpgradeCampaign() { preUpgradeCampaign_ = getDefaultInstance().getPreUpgradeCampaign(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. Indicates legacy campaign upgraded to Performance Max.
       * 
* * string pre_upgrade_campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for preUpgradeCampaign to set. * @return This builder for chaining. */ public Builder setPreUpgradeCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); preUpgradeCampaign_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int status_ = 0; /** *
       * Output only. The upgrade status of a campaign requested to be upgraded to
       * Performance Max.
       * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Output only. The upgrade status of a campaign requested to be upgraded to
       * Performance Max.
       * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The upgrade status of a campaign requested to be upgraded to
       * Performance Max.
       * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus getStatus() { com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus result = com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus.UNRECOGNIZED : result; } /** *
       * Output only. The upgrade status of a campaign requested to be upgraded to
       * Performance Max.
       * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; status_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. The upgrade status of a campaign requested to be upgraded to
       * Performance Max.
       * 
* * .google.ads.googleads.v16.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = 0; 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.v16.resources.Campaign.PerformanceMaxUpgrade) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade) private static final com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade(); } public static com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceMaxUpgrade 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.v16.resources.Campaign.PerformanceMaxUpgrade getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.NetworkSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Whether ads will be served with google.com search results.
     * 
* * optional bool target_google_search = 5; * @return Whether the targetGoogleSearch field is set. */ boolean hasTargetGoogleSearch(); /** *
     * Whether ads will be served with google.com search results.
     * 
* * optional bool target_google_search = 5; * @return The targetGoogleSearch. */ boolean getTargetGoogleSearch(); /** *
     * Whether ads will be served on partner sites in the Google Search Network
     * (requires `target_google_search` to also be `true`).
     * 
* * optional bool target_search_network = 6; * @return Whether the targetSearchNetwork field is set. */ boolean hasTargetSearchNetwork(); /** *
     * Whether ads will be served on partner sites in the Google Search Network
     * (requires `target_google_search` to also be `true`).
     * 
* * optional bool target_search_network = 6; * @return The targetSearchNetwork. */ boolean getTargetSearchNetwork(); /** *
     * Whether ads will be served on specified placements in the Google Display
     * Network. Placements are specified using the Placement criterion.
     * 
* * optional bool target_content_network = 7; * @return Whether the targetContentNetwork field is set. */ boolean hasTargetContentNetwork(); /** *
     * Whether ads will be served on specified placements in the Google Display
     * Network. Placements are specified using the Placement criterion.
     * 
* * optional bool target_content_network = 7; * @return The targetContentNetwork. */ boolean getTargetContentNetwork(); /** *
     * Whether ads will be served on the Google Partner Network.
     * This is available only to some select Google partner accounts.
     * 
* * optional bool target_partner_search_network = 8; * @return Whether the targetPartnerSearchNetwork field is set. */ boolean hasTargetPartnerSearchNetwork(); /** *
     * Whether ads will be served on the Google Partner Network.
     * This is available only to some select Google partner accounts.
     * 
* * optional bool target_partner_search_network = 8; * @return The targetPartnerSearchNetwork. */ boolean getTargetPartnerSearchNetwork(); /** *
     * Whether ads will be served on YouTube.
     * 
* * optional bool target_youtube = 9; * @return Whether the targetYoutube field is set. */ boolean hasTargetYoutube(); /** *
     * Whether ads will be served on YouTube.
     * 
* * optional bool target_youtube = 9; * @return The targetYoutube. */ boolean getTargetYoutube(); /** *
     * Whether ads will be served on the Google TV network.
     * 
* * optional bool target_google_tv_network = 10; * @return Whether the targetGoogleTvNetwork field is set. */ boolean hasTargetGoogleTvNetwork(); /** *
     * Whether ads will be served on the Google TV network.
     * 
* * optional bool target_google_tv_network = 10; * @return The targetGoogleTvNetwork. */ boolean getTargetGoogleTvNetwork(); } /** *
   * The network settings for the campaign.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.NetworkSettings} */ public static final class NetworkSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.NetworkSettings) NetworkSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkSettings.newBuilder() to construct. private NetworkSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkSettings() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NetworkSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_NetworkSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_NetworkSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.class, com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder.class); } private int bitField0_; public static final int TARGET_GOOGLE_SEARCH_FIELD_NUMBER = 5; private boolean targetGoogleSearch_ = false; /** *
     * Whether ads will be served with google.com search results.
     * 
* * optional bool target_google_search = 5; * @return Whether the targetGoogleSearch field is set. */ @java.lang.Override public boolean hasTargetGoogleSearch() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Whether ads will be served with google.com search results.
     * 
* * optional bool target_google_search = 5; * @return The targetGoogleSearch. */ @java.lang.Override public boolean getTargetGoogleSearch() { return targetGoogleSearch_; } public static final int TARGET_SEARCH_NETWORK_FIELD_NUMBER = 6; private boolean targetSearchNetwork_ = false; /** *
     * Whether ads will be served on partner sites in the Google Search Network
     * (requires `target_google_search` to also be `true`).
     * 
* * optional bool target_search_network = 6; * @return Whether the targetSearchNetwork field is set. */ @java.lang.Override public boolean hasTargetSearchNetwork() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Whether ads will be served on partner sites in the Google Search Network
     * (requires `target_google_search` to also be `true`).
     * 
* * optional bool target_search_network = 6; * @return The targetSearchNetwork. */ @java.lang.Override public boolean getTargetSearchNetwork() { return targetSearchNetwork_; } public static final int TARGET_CONTENT_NETWORK_FIELD_NUMBER = 7; private boolean targetContentNetwork_ = false; /** *
     * Whether ads will be served on specified placements in the Google Display
     * Network. Placements are specified using the Placement criterion.
     * 
* * optional bool target_content_network = 7; * @return Whether the targetContentNetwork field is set. */ @java.lang.Override public boolean hasTargetContentNetwork() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Whether ads will be served on specified placements in the Google Display
     * Network. Placements are specified using the Placement criterion.
     * 
* * optional bool target_content_network = 7; * @return The targetContentNetwork. */ @java.lang.Override public boolean getTargetContentNetwork() { return targetContentNetwork_; } public static final int TARGET_PARTNER_SEARCH_NETWORK_FIELD_NUMBER = 8; private boolean targetPartnerSearchNetwork_ = false; /** *
     * Whether ads will be served on the Google Partner Network.
     * This is available only to some select Google partner accounts.
     * 
* * optional bool target_partner_search_network = 8; * @return Whether the targetPartnerSearchNetwork field is set. */ @java.lang.Override public boolean hasTargetPartnerSearchNetwork() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Whether ads will be served on the Google Partner Network.
     * This is available only to some select Google partner accounts.
     * 
* * optional bool target_partner_search_network = 8; * @return The targetPartnerSearchNetwork. */ @java.lang.Override public boolean getTargetPartnerSearchNetwork() { return targetPartnerSearchNetwork_; } public static final int TARGET_YOUTUBE_FIELD_NUMBER = 9; private boolean targetYoutube_ = false; /** *
     * Whether ads will be served on YouTube.
     * 
* * optional bool target_youtube = 9; * @return Whether the targetYoutube field is set. */ @java.lang.Override public boolean hasTargetYoutube() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Whether ads will be served on YouTube.
     * 
* * optional bool target_youtube = 9; * @return The targetYoutube. */ @java.lang.Override public boolean getTargetYoutube() { return targetYoutube_; } public static final int TARGET_GOOGLE_TV_NETWORK_FIELD_NUMBER = 10; private boolean targetGoogleTvNetwork_ = false; /** *
     * Whether ads will be served on the Google TV network.
     * 
* * optional bool target_google_tv_network = 10; * @return Whether the targetGoogleTvNetwork field is set. */ @java.lang.Override public boolean hasTargetGoogleTvNetwork() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Whether ads will be served on the Google TV network.
     * 
* * optional bool target_google_tv_network = 10; * @return The targetGoogleTvNetwork. */ @java.lang.Override public boolean getTargetGoogleTvNetwork() { return targetGoogleTvNetwork_; } 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)) { output.writeBool(5, targetGoogleSearch_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(6, targetSearchNetwork_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(7, targetContentNetwork_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(8, targetPartnerSearchNetwork_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(9, targetYoutube_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(10, targetGoogleTvNetwork_); } 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.CodedOutputStream .computeBoolSize(5, targetGoogleSearch_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, targetSearchNetwork_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, targetContentNetwork_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, targetPartnerSearchNetwork_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, targetYoutube_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, targetGoogleTvNetwork_); } 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.v16.resources.Campaign.NetworkSettings)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.NetworkSettings other = (com.google.ads.googleads.v16.resources.Campaign.NetworkSettings) obj; if (hasTargetGoogleSearch() != other.hasTargetGoogleSearch()) return false; if (hasTargetGoogleSearch()) { if (getTargetGoogleSearch() != other.getTargetGoogleSearch()) return false; } if (hasTargetSearchNetwork() != other.hasTargetSearchNetwork()) return false; if (hasTargetSearchNetwork()) { if (getTargetSearchNetwork() != other.getTargetSearchNetwork()) return false; } if (hasTargetContentNetwork() != other.hasTargetContentNetwork()) return false; if (hasTargetContentNetwork()) { if (getTargetContentNetwork() != other.getTargetContentNetwork()) return false; } if (hasTargetPartnerSearchNetwork() != other.hasTargetPartnerSearchNetwork()) return false; if (hasTargetPartnerSearchNetwork()) { if (getTargetPartnerSearchNetwork() != other.getTargetPartnerSearchNetwork()) return false; } if (hasTargetYoutube() != other.hasTargetYoutube()) return false; if (hasTargetYoutube()) { if (getTargetYoutube() != other.getTargetYoutube()) return false; } if (hasTargetGoogleTvNetwork() != other.hasTargetGoogleTvNetwork()) return false; if (hasTargetGoogleTvNetwork()) { if (getTargetGoogleTvNetwork() != other.getTargetGoogleTvNetwork()) 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 (hasTargetGoogleSearch()) { hash = (37 * hash) + TARGET_GOOGLE_SEARCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetGoogleSearch()); } if (hasTargetSearchNetwork()) { hash = (37 * hash) + TARGET_SEARCH_NETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetSearchNetwork()); } if (hasTargetContentNetwork()) { hash = (37 * hash) + TARGET_CONTENT_NETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetContentNetwork()); } if (hasTargetPartnerSearchNetwork()) { hash = (37 * hash) + TARGET_PARTNER_SEARCH_NETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetPartnerSearchNetwork()); } if (hasTargetYoutube()) { hash = (37 * hash) + TARGET_YOUTUBE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetYoutube()); } if (hasTargetGoogleTvNetwork()) { hash = (37 * hash) + TARGET_GOOGLE_TV_NETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTargetGoogleTvNetwork()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings 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.v16.resources.Campaign.NetworkSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings 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.v16.resources.Campaign.NetworkSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings 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.v16.resources.Campaign.NetworkSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings 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.v16.resources.Campaign.NetworkSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings 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.v16.resources.Campaign.NetworkSettings 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; } /** *
     * The network settings for the campaign.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.NetworkSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.NetworkSettings) com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_NetworkSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_NetworkSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.class, com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; targetGoogleSearch_ = false; targetSearchNetwork_ = false; targetContentNetwork_ = false; targetPartnerSearchNetwork_ = false; targetYoutube_ = false; targetGoogleTvNetwork_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_NetworkSettings_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings build() { com.google.ads.googleads.v16.resources.Campaign.NetworkSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings buildPartial() { com.google.ads.googleads.v16.resources.Campaign.NetworkSettings result = new com.google.ads.googleads.v16.resources.Campaign.NetworkSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.NetworkSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetGoogleSearch_ = targetGoogleSearch_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.targetSearchNetwork_ = targetSearchNetwork_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.targetContentNetwork_ = targetContentNetwork_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.targetPartnerSearchNetwork_ = targetPartnerSearchNetwork_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.targetYoutube_ = targetYoutube_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.targetGoogleTvNetwork_ = targetGoogleTvNetwork_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.NetworkSettings) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.NetworkSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.NetworkSettings other) { if (other == com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance()) return this; if (other.hasTargetGoogleSearch()) { setTargetGoogleSearch(other.getTargetGoogleSearch()); } if (other.hasTargetSearchNetwork()) { setTargetSearchNetwork(other.getTargetSearchNetwork()); } if (other.hasTargetContentNetwork()) { setTargetContentNetwork(other.getTargetContentNetwork()); } if (other.hasTargetPartnerSearchNetwork()) { setTargetPartnerSearchNetwork(other.getTargetPartnerSearchNetwork()); } if (other.hasTargetYoutube()) { setTargetYoutube(other.getTargetYoutube()); } if (other.hasTargetGoogleTvNetwork()) { setTargetGoogleTvNetwork(other.getTargetGoogleTvNetwork()); } 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 40: { targetGoogleSearch_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 40 case 48: { targetSearchNetwork_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 48 case 56: { targetContentNetwork_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 56 case 64: { targetPartnerSearchNetwork_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 64 case 72: { targetYoutube_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 72 case 80: { targetGoogleTvNetwork_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 80 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 boolean targetGoogleSearch_ ; /** *
       * Whether ads will be served with google.com search results.
       * 
* * optional bool target_google_search = 5; * @return Whether the targetGoogleSearch field is set. */ @java.lang.Override public boolean hasTargetGoogleSearch() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Whether ads will be served with google.com search results.
       * 
* * optional bool target_google_search = 5; * @return The targetGoogleSearch. */ @java.lang.Override public boolean getTargetGoogleSearch() { return targetGoogleSearch_; } /** *
       * Whether ads will be served with google.com search results.
       * 
* * optional bool target_google_search = 5; * @param value The targetGoogleSearch to set. * @return This builder for chaining. */ public Builder setTargetGoogleSearch(boolean value) { targetGoogleSearch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Whether ads will be served with google.com search results.
       * 
* * optional bool target_google_search = 5; * @return This builder for chaining. */ public Builder clearTargetGoogleSearch() { bitField0_ = (bitField0_ & ~0x00000001); targetGoogleSearch_ = false; onChanged(); return this; } private boolean targetSearchNetwork_ ; /** *
       * Whether ads will be served on partner sites in the Google Search Network
       * (requires `target_google_search` to also be `true`).
       * 
* * optional bool target_search_network = 6; * @return Whether the targetSearchNetwork field is set. */ @java.lang.Override public boolean hasTargetSearchNetwork() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Whether ads will be served on partner sites in the Google Search Network
       * (requires `target_google_search` to also be `true`).
       * 
* * optional bool target_search_network = 6; * @return The targetSearchNetwork. */ @java.lang.Override public boolean getTargetSearchNetwork() { return targetSearchNetwork_; } /** *
       * Whether ads will be served on partner sites in the Google Search Network
       * (requires `target_google_search` to also be `true`).
       * 
* * optional bool target_search_network = 6; * @param value The targetSearchNetwork to set. * @return This builder for chaining. */ public Builder setTargetSearchNetwork(boolean value) { targetSearchNetwork_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Whether ads will be served on partner sites in the Google Search Network
       * (requires `target_google_search` to also be `true`).
       * 
* * optional bool target_search_network = 6; * @return This builder for chaining. */ public Builder clearTargetSearchNetwork() { bitField0_ = (bitField0_ & ~0x00000002); targetSearchNetwork_ = false; onChanged(); return this; } private boolean targetContentNetwork_ ; /** *
       * Whether ads will be served on specified placements in the Google Display
       * Network. Placements are specified using the Placement criterion.
       * 
* * optional bool target_content_network = 7; * @return Whether the targetContentNetwork field is set. */ @java.lang.Override public boolean hasTargetContentNetwork() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Whether ads will be served on specified placements in the Google Display
       * Network. Placements are specified using the Placement criterion.
       * 
* * optional bool target_content_network = 7; * @return The targetContentNetwork. */ @java.lang.Override public boolean getTargetContentNetwork() { return targetContentNetwork_; } /** *
       * Whether ads will be served on specified placements in the Google Display
       * Network. Placements are specified using the Placement criterion.
       * 
* * optional bool target_content_network = 7; * @param value The targetContentNetwork to set. * @return This builder for chaining. */ public Builder setTargetContentNetwork(boolean value) { targetContentNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Whether ads will be served on specified placements in the Google Display
       * Network. Placements are specified using the Placement criterion.
       * 
* * optional bool target_content_network = 7; * @return This builder for chaining. */ public Builder clearTargetContentNetwork() { bitField0_ = (bitField0_ & ~0x00000004); targetContentNetwork_ = false; onChanged(); return this; } private boolean targetPartnerSearchNetwork_ ; /** *
       * Whether ads will be served on the Google Partner Network.
       * This is available only to some select Google partner accounts.
       * 
* * optional bool target_partner_search_network = 8; * @return Whether the targetPartnerSearchNetwork field is set. */ @java.lang.Override public boolean hasTargetPartnerSearchNetwork() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Whether ads will be served on the Google Partner Network.
       * This is available only to some select Google partner accounts.
       * 
* * optional bool target_partner_search_network = 8; * @return The targetPartnerSearchNetwork. */ @java.lang.Override public boolean getTargetPartnerSearchNetwork() { return targetPartnerSearchNetwork_; } /** *
       * Whether ads will be served on the Google Partner Network.
       * This is available only to some select Google partner accounts.
       * 
* * optional bool target_partner_search_network = 8; * @param value The targetPartnerSearchNetwork to set. * @return This builder for chaining. */ public Builder setTargetPartnerSearchNetwork(boolean value) { targetPartnerSearchNetwork_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Whether ads will be served on the Google Partner Network.
       * This is available only to some select Google partner accounts.
       * 
* * optional bool target_partner_search_network = 8; * @return This builder for chaining. */ public Builder clearTargetPartnerSearchNetwork() { bitField0_ = (bitField0_ & ~0x00000008); targetPartnerSearchNetwork_ = false; onChanged(); return this; } private boolean targetYoutube_ ; /** *
       * Whether ads will be served on YouTube.
       * 
* * optional bool target_youtube = 9; * @return Whether the targetYoutube field is set. */ @java.lang.Override public boolean hasTargetYoutube() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Whether ads will be served on YouTube.
       * 
* * optional bool target_youtube = 9; * @return The targetYoutube. */ @java.lang.Override public boolean getTargetYoutube() { return targetYoutube_; } /** *
       * Whether ads will be served on YouTube.
       * 
* * optional bool target_youtube = 9; * @param value The targetYoutube to set. * @return This builder for chaining. */ public Builder setTargetYoutube(boolean value) { targetYoutube_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Whether ads will be served on YouTube.
       * 
* * optional bool target_youtube = 9; * @return This builder for chaining. */ public Builder clearTargetYoutube() { bitField0_ = (bitField0_ & ~0x00000010); targetYoutube_ = false; onChanged(); return this; } private boolean targetGoogleTvNetwork_ ; /** *
       * Whether ads will be served on the Google TV network.
       * 
* * optional bool target_google_tv_network = 10; * @return Whether the targetGoogleTvNetwork field is set. */ @java.lang.Override public boolean hasTargetGoogleTvNetwork() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Whether ads will be served on the Google TV network.
       * 
* * optional bool target_google_tv_network = 10; * @return The targetGoogleTvNetwork. */ @java.lang.Override public boolean getTargetGoogleTvNetwork() { return targetGoogleTvNetwork_; } /** *
       * Whether ads will be served on the Google TV network.
       * 
* * optional bool target_google_tv_network = 10; * @param value The targetGoogleTvNetwork to set. * @return This builder for chaining. */ public Builder setTargetGoogleTvNetwork(boolean value) { targetGoogleTvNetwork_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Whether ads will be served on the Google TV network.
       * 
* * optional bool target_google_tv_network = 10; * @return This builder for chaining. */ public Builder clearTargetGoogleTvNetwork() { bitField0_ = (bitField0_ & ~0x00000020); targetGoogleTvNetwork_ = false; 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.v16.resources.Campaign.NetworkSettings) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.NetworkSettings) private static final com.google.ads.googleads.v16.resources.Campaign.NetworkSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.NetworkSettings(); } public static com.google.ads.googleads.v16.resources.Campaign.NetworkSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkSettings 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.v16.resources.Campaign.NetworkSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HotelSettingInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Immutable. The linked Hotel Center account.
     * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCenterId field is set. */ boolean hasHotelCenterId(); /** *
     * Immutable. The linked Hotel Center account.
     * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCenterId. */ long getHotelCenterId(); } /** *
   * Campaign-level settings for hotel ads.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.HotelSettingInfo} */ public static final class HotelSettingInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) HotelSettingInfoOrBuilder { private static final long serialVersionUID = 0L; // Use HotelSettingInfo.newBuilder() to construct. private HotelSettingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HotelSettingInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HotelSettingInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_HotelSettingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_HotelSettingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.class, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder.class); } private int bitField0_; public static final int HOTEL_CENTER_ID_FIELD_NUMBER = 2; private long hotelCenterId_ = 0L; /** *
     * Immutable. The linked Hotel Center account.
     * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCenterId field is set. */ @java.lang.Override public boolean hasHotelCenterId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Immutable. The linked Hotel Center account.
     * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCenterId. */ @java.lang.Override public long getHotelCenterId() { return hotelCenterId_; } 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)) { output.writeInt64(2, hotelCenterId_); } 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.CodedOutputStream .computeInt64Size(2, hotelCenterId_); } 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.v16.resources.Campaign.HotelSettingInfo)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo other = (com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) obj; if (hasHotelCenterId() != other.hasHotelCenterId()) return false; if (hasHotelCenterId()) { if (getHotelCenterId() != other.getHotelCenterId()) 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 (hasHotelCenterId()) { hash = (37 * hash) + HOTEL_CENTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHotelCenterId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo 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; } /** *
     * Campaign-level settings for hotel ads.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.HotelSettingInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_HotelSettingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_HotelSettingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.class, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hotelCenterId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_HotelSettingInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo build() { com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo buildPartial() { com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo result = new com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.hotelCenterId_ = hotelCenterId_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo other) { if (other == com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance()) return this; if (other.hasHotelCenterId()) { setHotelCenterId(other.getHotelCenterId()); } 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 16: { hotelCenterId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 16 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 long hotelCenterId_ ; /** *
       * Immutable. The linked Hotel Center account.
       * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCenterId field is set. */ @java.lang.Override public boolean hasHotelCenterId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Immutable. The linked Hotel Center account.
       * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCenterId. */ @java.lang.Override public long getHotelCenterId() { return hotelCenterId_; } /** *
       * Immutable. The linked Hotel Center account.
       * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The hotelCenterId to set. * @return This builder for chaining. */ public Builder setHotelCenterId(long value) { hotelCenterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Immutable. The linked Hotel Center account.
       * 
* * optional int64 hotel_center_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearHotelCenterId() { bitField0_ = (bitField0_ & ~0x00000001); hotelCenterId_ = 0L; 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.v16.resources.Campaign.HotelSettingInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.HotelSettingInfo) private static final com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo(); } public static com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HotelSettingInfo 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.v16.resources.Campaign.HotelSettingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicSearchAdsSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) com.google.protobuf.MessageOrBuilder { /** *
     * Required. The Internet domain name that this setting represents, for
     * example, "google.com" or "www.google.com".
     * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The domainName. */ java.lang.String getDomainName(); /** *
     * Required. The Internet domain name that this setting represents, for
     * example, "google.com" or "www.google.com".
     * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for domainName. */ com.google.protobuf.ByteString getDomainNameBytes(); /** *
     * Required. The language code specifying the language of the domain, for
     * example, "en".
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The languageCode. */ java.lang.String getLanguageCode(); /** *
     * Required. The language code specifying the language of the domain, for
     * example, "en".
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); /** *
     * Whether the campaign uses advertiser supplied URLs exclusively.
     * 
* * optional bool use_supplied_urls_only = 8; * @return Whether the useSuppliedUrlsOnly field is set. */ boolean hasUseSuppliedUrlsOnly(); /** *
     * Whether the campaign uses advertiser supplied URLs exclusively.
     * 
* * optional bool use_supplied_urls_only = 8; * @return The useSuppliedUrlsOnly. */ boolean getUseSuppliedUrlsOnly(); /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return A list containing the feeds. */ java.util.List getFeedsList(); /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return The count of feeds. */ int getFeedsCount(); /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The feeds at the given index. */ java.lang.String getFeeds(int index); /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the feeds at the given index. */ com.google.protobuf.ByteString getFeedsBytes(int index); } /** *
   * The setting for controlling Dynamic Search Ads (DSA).
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting} */ public static final class DynamicSearchAdsSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) DynamicSearchAdsSettingOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicSearchAdsSetting.newBuilder() to construct. private DynamicSearchAdsSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicSearchAdsSetting() { domainName_ = ""; languageCode_ = ""; feeds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicSearchAdsSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DynamicSearchAdsSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DynamicSearchAdsSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.class, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder.class); } private int bitField0_; public static final int DOMAIN_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object domainName_ = ""; /** *
     * Required. The Internet domain name that this setting represents, for
     * example, "google.com" or "www.google.com".
     * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The domainName. */ @java.lang.Override public java.lang.String getDomainName() { java.lang.Object ref = domainName_; 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(); domainName_ = s; return s; } } /** *
     * Required. The Internet domain name that this setting represents, for
     * example, "google.com" or "www.google.com".
     * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for domainName. */ @java.lang.Override public com.google.protobuf.ByteString getDomainNameBytes() { java.lang.Object ref = domainName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LANGUAGE_CODE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** *
     * Required. The language code specifying the language of the domain, for
     * example, "en".
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; } } /** *
     * Required. The language code specifying the language of the domain, for
     * example, "en".
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USE_SUPPLIED_URLS_ONLY_FIELD_NUMBER = 8; private boolean useSuppliedUrlsOnly_ = false; /** *
     * Whether the campaign uses advertiser supplied URLs exclusively.
     * 
* * optional bool use_supplied_urls_only = 8; * @return Whether the useSuppliedUrlsOnly field is set. */ @java.lang.Override public boolean hasUseSuppliedUrlsOnly() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Whether the campaign uses advertiser supplied URLs exclusively.
     * 
* * optional bool use_supplied_urls_only = 8; * @return The useSuppliedUrlsOnly. */ @java.lang.Override public boolean getUseSuppliedUrlsOnly() { return useSuppliedUrlsOnly_; } public static final int FEEDS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList feeds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return A list containing the feeds. */ public com.google.protobuf.ProtocolStringList getFeedsList() { return feeds_; } /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return The count of feeds. */ public int getFeedsCount() { return feeds_.size(); } /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The feeds at the given index. */ public java.lang.String getFeeds(int index) { return feeds_.get(index); } /** *
     * The list of page feeds associated with the campaign.
     * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the feeds at the given index. */ public com.google.protobuf.ByteString getFeedsBytes(int index) { return feeds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domainName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, languageCode_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(8, useSuppliedUrlsOnly_); } for (int i = 0; i < feeds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, feeds_.getRaw(i)); } 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(domainName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domainName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, languageCode_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, useSuppliedUrlsOnly_); } { int dataSize = 0; for (int i = 0; i < feeds_.size(); i++) { dataSize += computeStringSizeNoTag(feeds_.getRaw(i)); } size += dataSize; size += 1 * getFeedsList().size(); } 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.v16.resources.Campaign.DynamicSearchAdsSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting other = (com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) obj; if (!getDomainName() .equals(other.getDomainName())) return false; if (!getLanguageCode() .equals(other.getLanguageCode())) return false; if (hasUseSuppliedUrlsOnly() != other.hasUseSuppliedUrlsOnly()) return false; if (hasUseSuppliedUrlsOnly()) { if (getUseSuppliedUrlsOnly() != other.getUseSuppliedUrlsOnly()) return false; } if (!getFeedsList() .equals(other.getFeedsList())) 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) + DOMAIN_NAME_FIELD_NUMBER; hash = (53 * hash) + getDomainName().hashCode(); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (hasUseSuppliedUrlsOnly()) { hash = (37 * hash) + USE_SUPPLIED_URLS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseSuppliedUrlsOnly()); } if (getFeedsCount() > 0) { hash = (37 * hash) + FEEDS_FIELD_NUMBER; hash = (53 * hash) + getFeedsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting 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; } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DynamicSearchAdsSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DynamicSearchAdsSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.class, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; domainName_ = ""; languageCode_ = ""; useSuppliedUrlsOnly_ = false; feeds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DynamicSearchAdsSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting build() { com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting result = new com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.domainName_ = domainName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.languageCode_ = languageCode_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.useSuppliedUrlsOnly_ = useSuppliedUrlsOnly_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { feeds_.makeImmutable(); result.feeds_ = feeds_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance()) return this; if (!other.getDomainName().isEmpty()) { domainName_ = other.domainName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasUseSuppliedUrlsOnly()) { setUseSuppliedUrlsOnly(other.getUseSuppliedUrlsOnly()); } if (!other.feeds_.isEmpty()) { if (feeds_.isEmpty()) { feeds_ = other.feeds_; bitField0_ |= 0x00000008; } else { ensureFeedsIsMutable(); feeds_.addAll(other.feeds_); } 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 50: { domainName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 50 case 58: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 58 case 64: { useSuppliedUrlsOnly_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 64 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureFeedsIsMutable(); feeds_.add(s); break; } // case 74 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 domainName_ = ""; /** *
       * Required. The Internet domain name that this setting represents, for
       * example, "google.com" or "www.google.com".
       * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The domainName. */ public java.lang.String getDomainName() { java.lang.Object ref = domainName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domainName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The Internet domain name that this setting represents, for
       * example, "google.com" or "www.google.com".
       * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for domainName. */ public com.google.protobuf.ByteString getDomainNameBytes() { java.lang.Object ref = domainName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The Internet domain name that this setting represents, for
       * example, "google.com" or "www.google.com".
       * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The domainName to set. * @return This builder for chaining. */ public Builder setDomainName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } domainName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Required. The Internet domain name that this setting represents, for
       * example, "google.com" or "www.google.com".
       * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDomainName() { domainName_ = getDefaultInstance().getDomainName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Required. The Internet domain name that this setting represents, for
       * example, "google.com" or "www.google.com".
       * 
* * string domain_name = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for domainName to set. * @return This builder for chaining. */ public Builder setDomainNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domainName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object languageCode_ = ""; /** *
       * Required. The language code specifying the language of the domain, for
       * example, "en".
       * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The language code specifying the language of the domain, for
       * example, "en".
       * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The language code specifying the language of the domain, for
       * example, "en".
       * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Required. The language code specifying the language of the domain, for
       * example, "en".
       * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Required. The language code specifying the language of the domain, for
       * example, "en".
       * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean useSuppliedUrlsOnly_ ; /** *
       * Whether the campaign uses advertiser supplied URLs exclusively.
       * 
* * optional bool use_supplied_urls_only = 8; * @return Whether the useSuppliedUrlsOnly field is set. */ @java.lang.Override public boolean hasUseSuppliedUrlsOnly() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Whether the campaign uses advertiser supplied URLs exclusively.
       * 
* * optional bool use_supplied_urls_only = 8; * @return The useSuppliedUrlsOnly. */ @java.lang.Override public boolean getUseSuppliedUrlsOnly() { return useSuppliedUrlsOnly_; } /** *
       * Whether the campaign uses advertiser supplied URLs exclusively.
       * 
* * optional bool use_supplied_urls_only = 8; * @param value The useSuppliedUrlsOnly to set. * @return This builder for chaining. */ public Builder setUseSuppliedUrlsOnly(boolean value) { useSuppliedUrlsOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Whether the campaign uses advertiser supplied URLs exclusively.
       * 
* * optional bool use_supplied_urls_only = 8; * @return This builder for chaining. */ public Builder clearUseSuppliedUrlsOnly() { bitField0_ = (bitField0_ & ~0x00000004); useSuppliedUrlsOnly_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList feeds_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFeedsIsMutable() { if (!feeds_.isModifiable()) { feeds_ = new com.google.protobuf.LazyStringArrayList(feeds_); } bitField0_ |= 0x00000008; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return A list containing the feeds. */ public com.google.protobuf.ProtocolStringList getFeedsList() { feeds_.makeImmutable(); return feeds_; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return The count of feeds. */ public int getFeedsCount() { return feeds_.size(); } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The feeds at the given index. */ public java.lang.String getFeeds(int index) { return feeds_.get(index); } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the feeds at the given index. */ public com.google.protobuf.ByteString getFeedsBytes(int index) { return feeds_.getByteString(index); } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The feeds to set. * @return This builder for chaining. */ public Builder setFeeds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFeedsIsMutable(); feeds_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param value The feeds to add. * @return This builder for chaining. */ public Builder addFeeds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFeedsIsMutable(); feeds_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param values The feeds to add. * @return This builder for chaining. */ public Builder addAllFeeds( java.lang.Iterable values) { ensureFeedsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, feeds_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearFeeds() { feeds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
       * The list of page feeds associated with the campaign.
       * 
* * repeated string feeds = 9 [(.google.api.resource_reference) = { ... } * @param value The bytes of the feeds to add. * @return This builder for chaining. */ public Builder addFeedsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFeedsIsMutable(); feeds_.add(value); bitField0_ |= 0x00000008; 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.v16.resources.Campaign.DynamicSearchAdsSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting) private static final com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicSearchAdsSetting 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.v16.resources.Campaign.DynamicSearchAdsSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.ShoppingSetting) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the Merchant Center account.
     * This field is required for create operations. This field is immutable for
     * Shopping campaigns.
     * 
* * optional int64 merchant_id = 5; * @return Whether the merchantId field is set. */ boolean hasMerchantId(); /** *
     * ID of the Merchant Center account.
     * This field is required for create operations. This field is immutable for
     * Shopping campaigns.
     * 
* * optional int64 merchant_id = 5; * @return The merchantId. */ long getMerchantId(); /** *
     * Feed label of products to include in the campaign.
     * Only one of feed_label or sales_country can be set.
     * If used instead of sales_country, the feed_label field accepts country
     * codes in the same format for example: 'XX'.
     * Otherwise can be any string used for feed label in Google Merchant
     * Center.
     * 
* * string feed_label = 10; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Feed label of products to include in the campaign.
     * Only one of feed_label or sales_country can be set.
     * If used instead of sales_country, the feed_label field accepts country
     * codes in the same format for example: 'XX'.
     * Otherwise can be any string used for feed label in Google Merchant
     * Center.
     * 
* * string feed_label = 10; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); /** *
     * Priority of the campaign. Campaigns with numerically higher priorities
     * take precedence over those with lower priorities.
     * This field is required for Shopping campaigns, with values between 0 and
     * 2, inclusive.
     * This field is optional for Smart Shopping campaigns, but must be equal to
     * 3 if set.
     * 
* * optional int32 campaign_priority = 7; * @return Whether the campaignPriority field is set. */ boolean hasCampaignPriority(); /** *
     * Priority of the campaign. Campaigns with numerically higher priorities
     * take precedence over those with lower priorities.
     * This field is required for Shopping campaigns, with values between 0 and
     * 2, inclusive.
     * This field is optional for Smart Shopping campaigns, but must be equal to
     * 3 if set.
     * 
* * optional int32 campaign_priority = 7; * @return The campaignPriority. */ int getCampaignPriority(); /** *
     * Whether to include local products.
     * 
* * optional bool enable_local = 8; * @return Whether the enableLocal field is set. */ boolean hasEnableLocal(); /** *
     * Whether to include local products.
     * 
* * optional bool enable_local = 8; * @return The enableLocal. */ boolean getEnableLocal(); /** *
     * Immutable. Whether to target Vehicle Listing inventory. This field is
     * supported only in Smart Shopping Campaigns. For setting Vehicle Listing
     * inventory in Performance Max campaigns, use `listing_type` instead.
     * 
* * bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useVehicleInventory. */ boolean getUseVehicleInventory(); /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the advertisingPartnerIds. */ java.util.List getAdvertisingPartnerIdsList(); /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return The count of advertisingPartnerIds. */ int getAdvertisingPartnerIdsCount(); /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The advertisingPartnerIds at the given index. */ long getAdvertisingPartnerIds(int index); /** *
     * Disable the optional product feed. This field is currently supported
     * only for Demand Gen campaigns. See
     * https://support.google.com/google-ads/answer/13721750 to learn more about
     * this feature.
     * 
* * optional bool disable_product_feed = 12; * @return Whether the disableProductFeed field is set. */ boolean hasDisableProductFeed(); /** *
     * Disable the optional product feed. This field is currently supported
     * only for Demand Gen campaigns. See
     * https://support.google.com/google-ads/answer/13721750 to learn more about
     * this feature.
     * 
* * optional bool disable_product_feed = 12; * @return The disableProductFeed. */ boolean getDisableProductFeed(); } /** *
   * The setting for Shopping campaigns. Defines the universe of products that
   * can be advertised by the campaign, and how this campaign interacts with
   * other Shopping campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.ShoppingSetting} */ public static final class ShoppingSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.ShoppingSetting) ShoppingSettingOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingSetting.newBuilder() to construct. private ShoppingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingSetting() { feedLabel_ = ""; advertisingPartnerIds_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_ShoppingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_ShoppingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.class, com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder.class); } private int bitField0_; public static final int MERCHANT_ID_FIELD_NUMBER = 5; private long merchantId_ = 0L; /** *
     * ID of the Merchant Center account.
     * This field is required for create operations. This field is immutable for
     * Shopping campaigns.
     * 
* * optional int64 merchant_id = 5; * @return Whether the merchantId field is set. */ @java.lang.Override public boolean hasMerchantId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * ID of the Merchant Center account.
     * This field is required for create operations. This field is immutable for
     * Shopping campaigns.
     * 
* * optional int64 merchant_id = 5; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } public static final int FEED_LABEL_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Feed label of products to include in the campaign.
     * Only one of feed_label or sales_country can be set.
     * If used instead of sales_country, the feed_label field accepts country
     * codes in the same format for example: 'XX'.
     * Otherwise can be any string used for feed label in Google Merchant
     * Center.
     * 
* * string feed_label = 10; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Feed label of products to include in the campaign.
     * Only one of feed_label or sales_country can be set.
     * If used instead of sales_country, the feed_label field accepts country
     * codes in the same format for example: 'XX'.
     * Otherwise can be any string used for feed label in Google Merchant
     * Center.
     * 
* * string feed_label = 10; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_PRIORITY_FIELD_NUMBER = 7; private int campaignPriority_ = 0; /** *
     * Priority of the campaign. Campaigns with numerically higher priorities
     * take precedence over those with lower priorities.
     * This field is required for Shopping campaigns, with values between 0 and
     * 2, inclusive.
     * This field is optional for Smart Shopping campaigns, but must be equal to
     * 3 if set.
     * 
* * optional int32 campaign_priority = 7; * @return Whether the campaignPriority field is set. */ @java.lang.Override public boolean hasCampaignPriority() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Priority of the campaign. Campaigns with numerically higher priorities
     * take precedence over those with lower priorities.
     * This field is required for Shopping campaigns, with values between 0 and
     * 2, inclusive.
     * This field is optional for Smart Shopping campaigns, but must be equal to
     * 3 if set.
     * 
* * optional int32 campaign_priority = 7; * @return The campaignPriority. */ @java.lang.Override public int getCampaignPriority() { return campaignPriority_; } public static final int ENABLE_LOCAL_FIELD_NUMBER = 8; private boolean enableLocal_ = false; /** *
     * Whether to include local products.
     * 
* * optional bool enable_local = 8; * @return Whether the enableLocal field is set. */ @java.lang.Override public boolean hasEnableLocal() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Whether to include local products.
     * 
* * optional bool enable_local = 8; * @return The enableLocal. */ @java.lang.Override public boolean getEnableLocal() { return enableLocal_; } public static final int USE_VEHICLE_INVENTORY_FIELD_NUMBER = 9; private boolean useVehicleInventory_ = false; /** *
     * Immutable. Whether to target Vehicle Listing inventory. This field is
     * supported only in Smart Shopping Campaigns. For setting Vehicle Listing
     * inventory in Performance Max campaigns, use `listing_type` instead.
     * 
* * bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useVehicleInventory. */ @java.lang.Override public boolean getUseVehicleInventory() { return useVehicleInventory_; } public static final int ADVERTISING_PARTNER_IDS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList advertisingPartnerIds_ = emptyLongList(); /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the advertisingPartnerIds. */ @java.lang.Override public java.util.List getAdvertisingPartnerIdsList() { return advertisingPartnerIds_; } /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return The count of advertisingPartnerIds. */ public int getAdvertisingPartnerIdsCount() { return advertisingPartnerIds_.size(); } /** *
     * Immutable. The ads account IDs of advertising partners cooperating within
     * the campaign.
     * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The advertisingPartnerIds at the given index. */ public long getAdvertisingPartnerIds(int index) { return advertisingPartnerIds_.getLong(index); } private int advertisingPartnerIdsMemoizedSerializedSize = -1; public static final int DISABLE_PRODUCT_FEED_FIELD_NUMBER = 12; private boolean disableProductFeed_ = false; /** *
     * Disable the optional product feed. This field is currently supported
     * only for Demand Gen campaigns. See
     * https://support.google.com/google-ads/answer/13721750 to learn more about
     * this feature.
     * 
* * optional bool disable_product_feed = 12; * @return Whether the disableProductFeed field is set. */ @java.lang.Override public boolean hasDisableProductFeed() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Disable the optional product feed. This field is currently supported
     * only for Demand Gen campaigns. See
     * https://support.google.com/google-ads/answer/13721750 to learn more about
     * this feature.
     * 
* * optional bool disable_product_feed = 12; * @return The disableProductFeed. */ @java.lang.Override public boolean getDisableProductFeed() { return disableProductFeed_; } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(5, merchantId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(7, campaignPriority_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(8, enableLocal_); } if (useVehicleInventory_ != false) { output.writeBool(9, useVehicleInventory_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, feedLabel_); } if (getAdvertisingPartnerIdsList().size() > 0) { output.writeUInt32NoTag(90); output.writeUInt32NoTag(advertisingPartnerIdsMemoizedSerializedSize); } for (int i = 0; i < advertisingPartnerIds_.size(); i++) { output.writeInt64NoTag(advertisingPartnerIds_.getLong(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(12, disableProductFeed_); } 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.CodedOutputStream .computeInt64Size(5, merchantId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, campaignPriority_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, enableLocal_); } if (useVehicleInventory_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, useVehicleInventory_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, feedLabel_); } { int dataSize = 0; for (int i = 0; i < advertisingPartnerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(advertisingPartnerIds_.getLong(i)); } size += dataSize; if (!getAdvertisingPartnerIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } advertisingPartnerIdsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, disableProductFeed_); } 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.v16.resources.Campaign.ShoppingSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting other = (com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting) obj; if (hasMerchantId() != other.hasMerchantId()) return false; if (hasMerchantId()) { if (getMerchantId() != other.getMerchantId()) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) return false; if (hasCampaignPriority() != other.hasCampaignPriority()) return false; if (hasCampaignPriority()) { if (getCampaignPriority() != other.getCampaignPriority()) return false; } if (hasEnableLocal() != other.hasEnableLocal()) return false; if (hasEnableLocal()) { if (getEnableLocal() != other.getEnableLocal()) return false; } if (getUseVehicleInventory() != other.getUseVehicleInventory()) return false; if (!getAdvertisingPartnerIdsList() .equals(other.getAdvertisingPartnerIdsList())) return false; if (hasDisableProductFeed() != other.hasDisableProductFeed()) return false; if (hasDisableProductFeed()) { if (getDisableProductFeed() != other.getDisableProductFeed()) 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 (hasMerchantId()) { hash = (37 * hash) + MERCHANT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMerchantId()); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); if (hasCampaignPriority()) { hash = (37 * hash) + CAMPAIGN_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getCampaignPriority(); } if (hasEnableLocal()) { hash = (37 * hash) + ENABLE_LOCAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableLocal()); } hash = (37 * hash) + USE_VEHICLE_INVENTORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseVehicleInventory()); if (getAdvertisingPartnerIdsCount() > 0) { hash = (37 * hash) + ADVERTISING_PARTNER_IDS_FIELD_NUMBER; hash = (53 * hash) + getAdvertisingPartnerIdsList().hashCode(); } if (hasDisableProductFeed()) { hash = (37 * hash) + DISABLE_PRODUCT_FEED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableProductFeed()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting 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; } /** *
     * The setting for Shopping campaigns. Defines the universe of products that
     * can be advertised by the campaign, and how this campaign interacts with
     * other Shopping campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.ShoppingSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.ShoppingSetting) com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_ShoppingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_ShoppingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.class, com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchantId_ = 0L; feedLabel_ = ""; campaignPriority_ = 0; enableLocal_ = false; useVehicleInventory_ = false; advertisingPartnerIds_ = emptyLongList(); disableProductFeed_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_ShoppingSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting build() { com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting result = new com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchantId_ = merchantId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.campaignPriority_ = campaignPriority_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.enableLocal_ = enableLocal_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.useVehicleInventory_ = useVehicleInventory_; } if (((from_bitField0_ & 0x00000020) != 0)) { advertisingPartnerIds_.makeImmutable(); result.advertisingPartnerIds_ = advertisingPartnerIds_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.disableProductFeed_ = disableProductFeed_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance()) return this; if (other.hasMerchantId()) { setMerchantId(other.getMerchantId()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCampaignPriority()) { setCampaignPriority(other.getCampaignPriority()); } if (other.hasEnableLocal()) { setEnableLocal(other.getEnableLocal()); } if (other.getUseVehicleInventory() != false) { setUseVehicleInventory(other.getUseVehicleInventory()); } if (!other.advertisingPartnerIds_.isEmpty()) { if (advertisingPartnerIds_.isEmpty()) { advertisingPartnerIds_ = other.advertisingPartnerIds_; advertisingPartnerIds_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureAdvertisingPartnerIdsIsMutable(); advertisingPartnerIds_.addAll(other.advertisingPartnerIds_); } onChanged(); } if (other.hasDisableProductFeed()) { setDisableProductFeed(other.getDisableProductFeed()); } 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 40: { merchantId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 40 case 56: { campaignPriority_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 56 case 64: { enableLocal_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 64 case 72: { useVehicleInventory_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 72 case 82: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 82 case 88: { long v = input.readInt64(); ensureAdvertisingPartnerIdsIsMutable(); advertisingPartnerIds_.addLong(v); break; } // case 88 case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureAdvertisingPartnerIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { advertisingPartnerIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 90 case 96: { disableProductFeed_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 96 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 long merchantId_ ; /** *
       * ID of the Merchant Center account.
       * This field is required for create operations. This field is immutable for
       * Shopping campaigns.
       * 
* * optional int64 merchant_id = 5; * @return Whether the merchantId field is set. */ @java.lang.Override public boolean hasMerchantId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * ID of the Merchant Center account.
       * This field is required for create operations. This field is immutable for
       * Shopping campaigns.
       * 
* * optional int64 merchant_id = 5; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } /** *
       * ID of the Merchant Center account.
       * This field is required for create operations. This field is immutable for
       * Shopping campaigns.
       * 
* * optional int64 merchant_id = 5; * @param value The merchantId to set. * @return This builder for chaining. */ public Builder setMerchantId(long value) { merchantId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * ID of the Merchant Center account.
       * This field is required for create operations. This field is immutable for
       * Shopping campaigns.
       * 
* * optional int64 merchant_id = 5; * @return This builder for chaining. */ public Builder clearMerchantId() { bitField0_ = (bitField0_ & ~0x00000001); merchantId_ = 0L; onChanged(); return this; } private java.lang.Object feedLabel_ = ""; /** *
       * Feed label of products to include in the campaign.
       * Only one of feed_label or sales_country can be set.
       * If used instead of sales_country, the feed_label field accepts country
       * codes in the same format for example: 'XX'.
       * Otherwise can be any string used for feed label in Google Merchant
       * Center.
       * 
* * string feed_label = 10; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Feed label of products to include in the campaign.
       * Only one of feed_label or sales_country can be set.
       * If used instead of sales_country, the feed_label field accepts country
       * codes in the same format for example: 'XX'.
       * Otherwise can be any string used for feed label in Google Merchant
       * Center.
       * 
* * string feed_label = 10; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Feed label of products to include in the campaign.
       * Only one of feed_label or sales_country can be set.
       * If used instead of sales_country, the feed_label field accepts country
       * codes in the same format for example: 'XX'.
       * Otherwise can be any string used for feed label in Google Merchant
       * Center.
       * 
* * string feed_label = 10; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Feed label of products to include in the campaign.
       * Only one of feed_label or sales_country can be set.
       * If used instead of sales_country, the feed_label field accepts country
       * codes in the same format for example: 'XX'.
       * Otherwise can be any string used for feed label in Google Merchant
       * Center.
       * 
* * string feed_label = 10; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Feed label of products to include in the campaign.
       * Only one of feed_label or sales_country can be set.
       * If used instead of sales_country, the feed_label field accepts country
       * codes in the same format for example: 'XX'.
       * Otherwise can be any string used for feed label in Google Merchant
       * Center.
       * 
* * string feed_label = 10; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int campaignPriority_ ; /** *
       * Priority of the campaign. Campaigns with numerically higher priorities
       * take precedence over those with lower priorities.
       * This field is required for Shopping campaigns, with values between 0 and
       * 2, inclusive.
       * This field is optional for Smart Shopping campaigns, but must be equal to
       * 3 if set.
       * 
* * optional int32 campaign_priority = 7; * @return Whether the campaignPriority field is set. */ @java.lang.Override public boolean hasCampaignPriority() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Priority of the campaign. Campaigns with numerically higher priorities
       * take precedence over those with lower priorities.
       * This field is required for Shopping campaigns, with values between 0 and
       * 2, inclusive.
       * This field is optional for Smart Shopping campaigns, but must be equal to
       * 3 if set.
       * 
* * optional int32 campaign_priority = 7; * @return The campaignPriority. */ @java.lang.Override public int getCampaignPriority() { return campaignPriority_; } /** *
       * Priority of the campaign. Campaigns with numerically higher priorities
       * take precedence over those with lower priorities.
       * This field is required for Shopping campaigns, with values between 0 and
       * 2, inclusive.
       * This field is optional for Smart Shopping campaigns, but must be equal to
       * 3 if set.
       * 
* * optional int32 campaign_priority = 7; * @param value The campaignPriority to set. * @return This builder for chaining. */ public Builder setCampaignPriority(int value) { campaignPriority_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Priority of the campaign. Campaigns with numerically higher priorities
       * take precedence over those with lower priorities.
       * This field is required for Shopping campaigns, with values between 0 and
       * 2, inclusive.
       * This field is optional for Smart Shopping campaigns, but must be equal to
       * 3 if set.
       * 
* * optional int32 campaign_priority = 7; * @return This builder for chaining. */ public Builder clearCampaignPriority() { bitField0_ = (bitField0_ & ~0x00000004); campaignPriority_ = 0; onChanged(); return this; } private boolean enableLocal_ ; /** *
       * Whether to include local products.
       * 
* * optional bool enable_local = 8; * @return Whether the enableLocal field is set. */ @java.lang.Override public boolean hasEnableLocal() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Whether to include local products.
       * 
* * optional bool enable_local = 8; * @return The enableLocal. */ @java.lang.Override public boolean getEnableLocal() { return enableLocal_; } /** *
       * Whether to include local products.
       * 
* * optional bool enable_local = 8; * @param value The enableLocal to set. * @return This builder for chaining. */ public Builder setEnableLocal(boolean value) { enableLocal_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Whether to include local products.
       * 
* * optional bool enable_local = 8; * @return This builder for chaining. */ public Builder clearEnableLocal() { bitField0_ = (bitField0_ & ~0x00000008); enableLocal_ = false; onChanged(); return this; } private boolean useVehicleInventory_ ; /** *
       * Immutable. Whether to target Vehicle Listing inventory. This field is
       * supported only in Smart Shopping Campaigns. For setting Vehicle Listing
       * inventory in Performance Max campaigns, use `listing_type` instead.
       * 
* * bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useVehicleInventory. */ @java.lang.Override public boolean getUseVehicleInventory() { return useVehicleInventory_; } /** *
       * Immutable. Whether to target Vehicle Listing inventory. This field is
       * supported only in Smart Shopping Campaigns. For setting Vehicle Listing
       * inventory in Performance Max campaigns, use `listing_type` instead.
       * 
* * bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The useVehicleInventory to set. * @return This builder for chaining. */ public Builder setUseVehicleInventory(boolean value) { useVehicleInventory_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Immutable. Whether to target Vehicle Listing inventory. This field is
       * supported only in Smart Shopping Campaigns. For setting Vehicle Listing
       * inventory in Performance Max campaigns, use `listing_type` instead.
       * 
* * bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearUseVehicleInventory() { bitField0_ = (bitField0_ & ~0x00000010); useVehicleInventory_ = false; onChanged(); return this; } private com.google.protobuf.Internal.LongList advertisingPartnerIds_ = emptyLongList(); private void ensureAdvertisingPartnerIdsIsMutable() { if (!advertisingPartnerIds_.isModifiable()) { advertisingPartnerIds_ = makeMutableCopy(advertisingPartnerIds_); } bitField0_ |= 0x00000020; } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the advertisingPartnerIds. */ public java.util.List getAdvertisingPartnerIdsList() { advertisingPartnerIds_.makeImmutable(); return advertisingPartnerIds_; } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return The count of advertisingPartnerIds. */ public int getAdvertisingPartnerIdsCount() { return advertisingPartnerIds_.size(); } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The advertisingPartnerIds at the given index. */ public long getAdvertisingPartnerIds(int index) { return advertisingPartnerIds_.getLong(index); } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param index The index to set the value at. * @param value The advertisingPartnerIds to set. * @return This builder for chaining. */ public Builder setAdvertisingPartnerIds( int index, long value) { ensureAdvertisingPartnerIdsIsMutable(); advertisingPartnerIds_.setLong(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The advertisingPartnerIds to add. * @return This builder for chaining. */ public Builder addAdvertisingPartnerIds(long value) { ensureAdvertisingPartnerIdsIsMutable(); advertisingPartnerIds_.addLong(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @param values The advertisingPartnerIds to add. * @return This builder for chaining. */ public Builder addAllAdvertisingPartnerIds( java.lang.Iterable values) { ensureAdvertisingPartnerIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, advertisingPartnerIds_); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Immutable. The ads account IDs of advertising partners cooperating within
       * the campaign.
       * 
* * repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearAdvertisingPartnerIds() { advertisingPartnerIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private boolean disableProductFeed_ ; /** *
       * Disable the optional product feed. This field is currently supported
       * only for Demand Gen campaigns. See
       * https://support.google.com/google-ads/answer/13721750 to learn more about
       * this feature.
       * 
* * optional bool disable_product_feed = 12; * @return Whether the disableProductFeed field is set. */ @java.lang.Override public boolean hasDisableProductFeed() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Disable the optional product feed. This field is currently supported
       * only for Demand Gen campaigns. See
       * https://support.google.com/google-ads/answer/13721750 to learn more about
       * this feature.
       * 
* * optional bool disable_product_feed = 12; * @return The disableProductFeed. */ @java.lang.Override public boolean getDisableProductFeed() { return disableProductFeed_; } /** *
       * Disable the optional product feed. This field is currently supported
       * only for Demand Gen campaigns. See
       * https://support.google.com/google-ads/answer/13721750 to learn more about
       * this feature.
       * 
* * optional bool disable_product_feed = 12; * @param value The disableProductFeed to set. * @return This builder for chaining. */ public Builder setDisableProductFeed(boolean value) { disableProductFeed_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Disable the optional product feed. This field is currently supported
       * only for Demand Gen campaigns. See
       * https://support.google.com/google-ads/answer/13721750 to learn more about
       * this feature.
       * 
* * optional bool disable_product_feed = 12; * @return This builder for chaining. */ public Builder clearDisableProductFeed() { bitField0_ = (bitField0_ & ~0x00000040); disableProductFeed_ = false; 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.v16.resources.Campaign.ShoppingSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.ShoppingSetting) private static final com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingSetting 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.v16.resources.Campaign.ShoppingSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TrackingSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.TrackingSetting) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the trackingUrl field is set. */ boolean hasTrackingUrl(); /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The trackingUrl. */ java.lang.String getTrackingUrl(); /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for trackingUrl. */ com.google.protobuf.ByteString getTrackingUrlBytes(); } /** *
   * Campaign-level settings for tracking information.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.TrackingSetting} */ public static final class TrackingSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.TrackingSetting) TrackingSettingOrBuilder { private static final long serialVersionUID = 0L; // Use TrackingSetting.newBuilder() to construct. private TrackingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TrackingSetting() { trackingUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TrackingSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TrackingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TrackingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder.class); } private int bitField0_; public static final int TRACKING_URL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object trackingUrl_ = ""; /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the trackingUrl field is set. */ @java.lang.Override public boolean hasTrackingUrl() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The trackingUrl. */ @java.lang.Override public java.lang.String getTrackingUrl() { java.lang.Object ref = trackingUrl_; 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(); trackingUrl_ = s; return s; } } /** *
     * Output only. The url used for dynamic tracking.
     * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for trackingUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrl_ = 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, 2, trackingUrl_); } 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(2, trackingUrl_); } 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.v16.resources.Campaign.TrackingSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.TrackingSetting other = (com.google.ads.googleads.v16.resources.Campaign.TrackingSetting) obj; if (hasTrackingUrl() != other.hasTrackingUrl()) return false; if (hasTrackingUrl()) { if (!getTrackingUrl() .equals(other.getTrackingUrl())) 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 (hasTrackingUrl()) { hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrl().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting 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.v16.resources.Campaign.TrackingSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting 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.v16.resources.Campaign.TrackingSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting 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.v16.resources.Campaign.TrackingSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting 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.v16.resources.Campaign.TrackingSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting 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.v16.resources.Campaign.TrackingSetting 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; } /** *
     * Campaign-level settings for tracking information.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.TrackingSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.TrackingSetting) com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TrackingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TrackingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; trackingUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TrackingSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting build() { com.google.ads.googleads.v16.resources.Campaign.TrackingSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.TrackingSetting result = new com.google.ads.googleads.v16.resources.Campaign.TrackingSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.TrackingSetting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.trackingUrl_ = trackingUrl_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.TrackingSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.TrackingSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.TrackingSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance()) return this; if (other.hasTrackingUrl()) { trackingUrl_ = other.trackingUrl_; bitField0_ |= 0x00000001; 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 18: { trackingUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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 trackingUrl_ = ""; /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the trackingUrl field is set. */ public boolean hasTrackingUrl() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The trackingUrl. */ public java.lang.String getTrackingUrl() { java.lang.Object ref = trackingUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for trackingUrl. */ public com.google.protobuf.ByteString getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The trackingUrl to set. * @return This builder for chaining. */ public Builder setTrackingUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } trackingUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTrackingUrl() { trackingUrl_ = getDefaultInstance().getTrackingUrl(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The url used for dynamic tracking.
       * 
* * optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for trackingUrl to set. * @return This builder for chaining. */ public Builder setTrackingUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingUrl_ = value; bitField0_ |= 0x00000001; 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.v16.resources.Campaign.TrackingSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.TrackingSetting) private static final com.google.ads.googleads.v16.resources.Campaign.TrackingSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.TrackingSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.TrackingSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TrackingSetting 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.v16.resources.Campaign.TrackingSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GeoTargetTypeSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting) com.google.protobuf.MessageOrBuilder { /** *
     * The setting used for positive geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The enum numeric value on the wire for positiveGeoTargetType. */ int getPositiveGeoTargetTypeValue(); /** *
     * The setting used for positive geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The positiveGeoTargetType. */ com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType(); /** *
     * The setting used for negative geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The enum numeric value on the wire for negativeGeoTargetType. */ int getNegativeGeoTargetTypeValue(); /** *
     * The setting used for negative geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The negativeGeoTargetType. */ com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType(); } /** *
   * Represents a collection of settings related to ads geotargeting.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting} */ public static final class GeoTargetTypeSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting) GeoTargetTypeSettingOrBuilder { private static final long serialVersionUID = 0L; // Use GeoTargetTypeSetting.newBuilder() to construct. private GeoTargetTypeSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GeoTargetTypeSetting() { positiveGeoTargetType_ = 0; negativeGeoTargetType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GeoTargetTypeSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_GeoTargetTypeSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_GeoTargetTypeSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.class, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder.class); } public static final int POSITIVE_GEO_TARGET_TYPE_FIELD_NUMBER = 1; private int positiveGeoTargetType_ = 0; /** *
     * The setting used for positive geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The enum numeric value on the wire for positiveGeoTargetType. */ @java.lang.Override public int getPositiveGeoTargetTypeValue() { return positiveGeoTargetType_; } /** *
     * The setting used for positive geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The positiveGeoTargetType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType() { com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType result = com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.forNumber(positiveGeoTargetType_); return result == null ? com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNRECOGNIZED : result; } public static final int NEGATIVE_GEO_TARGET_TYPE_FIELD_NUMBER = 2; private int negativeGeoTargetType_ = 0; /** *
     * The setting used for negative geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The enum numeric value on the wire for negativeGeoTargetType. */ @java.lang.Override public int getNegativeGeoTargetTypeValue() { return negativeGeoTargetType_; } /** *
     * The setting used for negative geotargeting in this particular campaign.
     * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The negativeGeoTargetType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType() { com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType result = com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.forNumber(negativeGeoTargetType_); return result == null ? com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.UNRECOGNIZED : result; } 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 (positiveGeoTargetType_ != com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNSPECIFIED.getNumber()) { output.writeEnum(1, positiveGeoTargetType_); } if (negativeGeoTargetType_ != com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.UNSPECIFIED.getNumber()) { output.writeEnum(2, negativeGeoTargetType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (positiveGeoTargetType_ != com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, positiveGeoTargetType_); } if (negativeGeoTargetType_ != com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, negativeGeoTargetType_); } 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.v16.resources.Campaign.GeoTargetTypeSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting other = (com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting) obj; if (positiveGeoTargetType_ != other.positiveGeoTargetType_) return false; if (negativeGeoTargetType_ != other.negativeGeoTargetType_) 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) + POSITIVE_GEO_TARGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + positiveGeoTargetType_; hash = (37 * hash) + NEGATIVE_GEO_TARGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + negativeGeoTargetType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting 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; } /** *
     * Represents a collection of settings related to ads geotargeting.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting) com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_GeoTargetTypeSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_GeoTargetTypeSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.class, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; positiveGeoTargetType_ = 0; negativeGeoTargetType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_GeoTargetTypeSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting build() { com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting result = new com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.positiveGeoTargetType_ = positiveGeoTargetType_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.negativeGeoTargetType_ = negativeGeoTargetType_; } } @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.v16.resources.Campaign.GeoTargetTypeSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance()) return this; if (other.positiveGeoTargetType_ != 0) { setPositiveGeoTargetTypeValue(other.getPositiveGeoTargetTypeValue()); } if (other.negativeGeoTargetType_ != 0) { setNegativeGeoTargetTypeValue(other.getNegativeGeoTargetTypeValue()); } 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 8: { positiveGeoTargetType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { negativeGeoTargetType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 int positiveGeoTargetType_ = 0; /** *
       * The setting used for positive geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The enum numeric value on the wire for positiveGeoTargetType. */ @java.lang.Override public int getPositiveGeoTargetTypeValue() { return positiveGeoTargetType_; } /** *
       * The setting used for positive geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @param value The enum numeric value on the wire for positiveGeoTargetType to set. * @return This builder for chaining. */ public Builder setPositiveGeoTargetTypeValue(int value) { positiveGeoTargetType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The setting used for positive geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return The positiveGeoTargetType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType() { com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType result = com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.forNumber(positiveGeoTargetType_); return result == null ? com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNRECOGNIZED : result; } /** *
       * The setting used for positive geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @param value The positiveGeoTargetType to set. * @return This builder for chaining. */ public Builder setPositiveGeoTargetType(com.google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; positiveGeoTargetType_ = value.getNumber(); onChanged(); return this; } /** *
       * The setting used for positive geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; * @return This builder for chaining. */ public Builder clearPositiveGeoTargetType() { bitField0_ = (bitField0_ & ~0x00000001); positiveGeoTargetType_ = 0; onChanged(); return this; } private int negativeGeoTargetType_ = 0; /** *
       * The setting used for negative geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The enum numeric value on the wire for negativeGeoTargetType. */ @java.lang.Override public int getNegativeGeoTargetTypeValue() { return negativeGeoTargetType_; } /** *
       * The setting used for negative geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @param value The enum numeric value on the wire for negativeGeoTargetType to set. * @return This builder for chaining. */ public Builder setNegativeGeoTargetTypeValue(int value) { negativeGeoTargetType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The setting used for negative geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return The negativeGeoTargetType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType() { com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType result = com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.forNumber(negativeGeoTargetType_); return result == null ? com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.UNRECOGNIZED : result; } /** *
       * The setting used for negative geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @param value The negativeGeoTargetType to set. * @return This builder for chaining. */ public Builder setNegativeGeoTargetType(com.google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; negativeGeoTargetType_ = value.getNumber(); onChanged(); return this; } /** *
       * The setting used for negative geotargeting in this particular campaign.
       * 
* * .google.ads.googleads.v16.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; * @return This builder for chaining. */ public Builder clearNegativeGeoTargetType() { bitField0_ = (bitField0_ & ~0x00000002); negativeGeoTargetType_ = 0; 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.v16.resources.Campaign.GeoTargetTypeSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting) private static final com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GeoTargetTypeSetting 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.v16.resources.Campaign.GeoTargetTypeSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalCampaignSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting) com.google.protobuf.MessageOrBuilder { /** *
     * The location source type for this local campaign.
     * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The enum numeric value on the wire for locationSourceType. */ int getLocationSourceTypeValue(); /** *
     * The location source type for this local campaign.
     * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The locationSourceType. */ com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType(); } /** *
   * Campaign setting for local campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting} */ public static final class LocalCampaignSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting) LocalCampaignSettingOrBuilder { private static final long serialVersionUID = 0L; // Use LocalCampaignSetting.newBuilder() to construct. private LocalCampaignSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalCampaignSetting() { locationSourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocalCampaignSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.class, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder.class); } public static final int LOCATION_SOURCE_TYPE_FIELD_NUMBER = 1; private int locationSourceType_ = 0; /** *
     * The location source type for this local campaign.
     * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The enum numeric value on the wire for locationSourceType. */ @java.lang.Override public int getLocationSourceTypeValue() { return locationSourceType_; } /** *
     * The location source type for this local campaign.
     * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The locationSourceType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType() { com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType result = com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.forNumber(locationSourceType_); return result == null ? com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.UNRECOGNIZED : result; } 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 (locationSourceType_ != com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.UNSPECIFIED.getNumber()) { output.writeEnum(1, locationSourceType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (locationSourceType_ != com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, locationSourceType_); } 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.v16.resources.Campaign.LocalCampaignSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting other = (com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting) obj; if (locationSourceType_ != other.locationSourceType_) 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) + LOCATION_SOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + locationSourceType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting 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; } /** *
     * Campaign setting for local campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting) com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.class, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; locationSourceType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalCampaignSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting build() { com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting result = new com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.locationSourceType_ = locationSourceType_; } } @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.v16.resources.Campaign.LocalCampaignSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance()) return this; if (other.locationSourceType_ != 0) { setLocationSourceTypeValue(other.getLocationSourceTypeValue()); } 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 8: { locationSourceType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 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 int locationSourceType_ = 0; /** *
       * The location source type for this local campaign.
       * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The enum numeric value on the wire for locationSourceType. */ @java.lang.Override public int getLocationSourceTypeValue() { return locationSourceType_; } /** *
       * The location source type for this local campaign.
       * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @param value The enum numeric value on the wire for locationSourceType to set. * @return This builder for chaining. */ public Builder setLocationSourceTypeValue(int value) { locationSourceType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The location source type for this local campaign.
       * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return The locationSourceType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType() { com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType result = com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.forNumber(locationSourceType_); return result == null ? com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType.UNRECOGNIZED : result; } /** *
       * The location source type for this local campaign.
       * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @param value The locationSourceType to set. * @return This builder for chaining. */ public Builder setLocationSourceType(com.google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; locationSourceType_ = value.getNumber(); onChanged(); return this; } /** *
       * The location source type for this local campaign.
       * 
* * .google.ads.googleads.v16.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; * @return This builder for chaining. */ public Builder clearLocationSourceType() { bitField0_ = (bitField0_ & ~0x00000001); locationSourceType_ = 0; 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.v16.resources.Campaign.LocalCampaignSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting) private static final com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocalCampaignSetting 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.v16.resources.Campaign.LocalCampaignSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppCampaignSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) com.google.protobuf.MessageOrBuilder { /** *
     * Represents the goal which the bidding strategy of this app campaign
     * should optimize towards.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The enum numeric value on the wire for biddingStrategyGoalType. */ int getBiddingStrategyGoalTypeValue(); /** *
     * Represents the goal which the bidding strategy of this app campaign
     * should optimize towards.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The biddingStrategyGoalType. */ com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType getBiddingStrategyGoalType(); /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appId. */ java.lang.String getAppId(); /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for appId. */ com.google.protobuf.ByteString getAppIdBytes(); /** *
     * Immutable. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for appStore. */ int getAppStoreValue(); /** *
     * Immutable. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appStore. */ com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore(); } /** *
   * Campaign-level settings for App Campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AppCampaignSetting} */ public static final class AppCampaignSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) AppCampaignSettingOrBuilder { private static final long serialVersionUID = 0L; // Use AppCampaignSetting.newBuilder() to construct. private AppCampaignSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppCampaignSetting() { biddingStrategyGoalType_ = 0; appId_ = ""; appStore_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppCampaignSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AppCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AppCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.class, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder.class); } private int bitField0_; public static final int BIDDING_STRATEGY_GOAL_TYPE_FIELD_NUMBER = 1; private int biddingStrategyGoalType_ = 0; /** *
     * Represents the goal which the bidding strategy of this app campaign
     * should optimize towards.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The enum numeric value on the wire for biddingStrategyGoalType. */ @java.lang.Override public int getBiddingStrategyGoalTypeValue() { return biddingStrategyGoalType_; } /** *
     * Represents the goal which the bidding strategy of this app campaign
     * should optimize towards.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The biddingStrategyGoalType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType getBiddingStrategyGoalType() { com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType result = com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.forNumber(biddingStrategyGoalType_); return result == null ? com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNRECOGNIZED : result; } public static final int APP_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object appId_ = ""; /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; 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(); appId_ = s; return s; } } /** *
     * Immutable. A string that uniquely identifies a mobile application.
     * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_STORE_FIELD_NUMBER = 3; private int appStore_ = 0; /** *
     * Immutable. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for appStore. */ @java.lang.Override public int getAppStoreValue() { return appStore_; } /** *
     * Immutable. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appStore. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore() { com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore result = com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.forNumber(appStore_); return result == null ? com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.UNRECOGNIZED : result; } 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 (biddingStrategyGoalType_ != com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNSPECIFIED.getNumber()) { output.writeEnum(1, biddingStrategyGoalType_); } if (appStore_ != com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.UNSPECIFIED.getNumber()) { output.writeEnum(3, appStore_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (biddingStrategyGoalType_ != com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, biddingStrategyGoalType_); } if (appStore_ != com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, appStore_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appId_); } 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.v16.resources.Campaign.AppCampaignSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting other = (com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) obj; if (biddingStrategyGoalType_ != other.biddingStrategyGoalType_) return false; if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) return false; } if (appStore_ != other.appStore_) 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) + BIDDING_STRATEGY_GOAL_TYPE_FIELD_NUMBER; hash = (53 * hash) + biddingStrategyGoalType_; if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (37 * hash) + APP_STORE_FIELD_NUMBER; hash = (53 * hash) + appStore_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting 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; } /** *
     * Campaign-level settings for App Campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AppCampaignSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AppCampaignSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AppCampaignSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.class, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; biddingStrategyGoalType_ = 0; appId_ = ""; appStore_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AppCampaignSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting build() { com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting result = new com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.biddingStrategyGoalType_ = biddingStrategyGoalType_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.appStore_ = appStore_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance()) return this; if (other.biddingStrategyGoalType_ != 0) { setBiddingStrategyGoalTypeValue(other.getBiddingStrategyGoalTypeValue()); } if (other.hasAppId()) { appId_ = other.appId_; bitField0_ |= 0x00000002; onChanged(); } if (other.appStore_ != 0) { setAppStoreValue(other.getAppStoreValue()); } 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 8: { biddingStrategyGoalType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 24: { appStore_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { appId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 34 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 int biddingStrategyGoalType_ = 0; /** *
       * Represents the goal which the bidding strategy of this app campaign
       * should optimize towards.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The enum numeric value on the wire for biddingStrategyGoalType. */ @java.lang.Override public int getBiddingStrategyGoalTypeValue() { return biddingStrategyGoalType_; } /** *
       * Represents the goal which the bidding strategy of this app campaign
       * should optimize towards.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @param value The enum numeric value on the wire for biddingStrategyGoalType to set. * @return This builder for chaining. */ public Builder setBiddingStrategyGoalTypeValue(int value) { biddingStrategyGoalType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Represents the goal which the bidding strategy of this app campaign
       * should optimize towards.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return The biddingStrategyGoalType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType getBiddingStrategyGoalType() { com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType result = com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.forNumber(biddingStrategyGoalType_); return result == null ? com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNRECOGNIZED : result; } /** *
       * Represents the goal which the bidding strategy of this app campaign
       * should optimize towards.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @param value The biddingStrategyGoalType to set. * @return This builder for chaining. */ public Builder setBiddingStrategyGoalType(com.google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; biddingStrategyGoalType_ = value.getNumber(); onChanged(); return this; } /** *
       * Represents the goal which the bidding strategy of this app campaign
       * should optimize towards.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; * @return This builder for chaining. */ public Builder clearBiddingStrategyGoalType() { bitField0_ = (bitField0_ & ~0x00000001); biddingStrategyGoalType_ = 0; onChanged(); return this; } private java.lang.Object appId_ = ""; /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the appId field is set. */ public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Immutable. A string that uniquely identifies a mobile application.
       * 
* * optional string app_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int appStore_ = 0; /** *
       * Immutable. The application store that distributes this specific app.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for appStore. */ @java.lang.Override public int getAppStoreValue() { return appStore_; } /** *
       * Immutable. The application store that distributes this specific app.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for appStore to set. * @return This builder for chaining. */ public Builder setAppStoreValue(int value) { appStore_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Immutable. The application store that distributes this specific app.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The appStore. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore() { com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore result = com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.forNumber(appStore_); return result == null ? com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.UNRECOGNIZED : result; } /** *
       * Immutable. The application store that distributes this specific app.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The appStore to set. * @return This builder for chaining. */ public Builder setAppStore(com.google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; appStore_ = value.getNumber(); onChanged(); return this; } /** *
       * Immutable. The application store that distributes this specific app.
       * 
* * .google.ads.googleads.v16.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearAppStore() { bitField0_ = (bitField0_ & ~0x00000004); appStore_ = 0; 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.v16.resources.Campaign.AppCampaignSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.AppCampaignSetting) private static final com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppCampaignSetting 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.v16.resources.Campaign.AppCampaignSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VanityPharmaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.VanityPharma) com.google.protobuf.MessageOrBuilder { /** *
     * The display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The enum numeric value on the wire for vanityPharmaDisplayUrlMode. */ int getVanityPharmaDisplayUrlModeValue(); /** *
     * The display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The vanityPharmaDisplayUrlMode. */ com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode(); /** *
     * The text that will be displayed in display URL of the text ad when
     * website description is the selected display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The enum numeric value on the wire for vanityPharmaText. */ int getVanityPharmaTextValue(); /** *
     * The text that will be displayed in display URL of the text ad when
     * website description is the selected display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The vanityPharmaText. */ com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText(); } /** *
   * Describes how unbranded pharma ads will be displayed.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.VanityPharma} */ public static final class VanityPharma extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.VanityPharma) VanityPharmaOrBuilder { private static final long serialVersionUID = 0L; // Use VanityPharma.newBuilder() to construct. private VanityPharma(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VanityPharma() { vanityPharmaDisplayUrlMode_ = 0; vanityPharmaText_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VanityPharma(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_VanityPharma_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_VanityPharma_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder.class); } public static final int VANITY_PHARMA_DISPLAY_URL_MODE_FIELD_NUMBER = 1; private int vanityPharmaDisplayUrlMode_ = 0; /** *
     * The display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The enum numeric value on the wire for vanityPharmaDisplayUrlMode. */ @java.lang.Override public int getVanityPharmaDisplayUrlModeValue() { return vanityPharmaDisplayUrlMode_; } /** *
     * The display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The vanityPharmaDisplayUrlMode. */ @java.lang.Override public com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() { com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.forNumber(vanityPharmaDisplayUrlMode_); return result == null ? com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result; } public static final int VANITY_PHARMA_TEXT_FIELD_NUMBER = 2; private int vanityPharmaText_ = 0; /** *
     * The text that will be displayed in display URL of the text ad when
     * website description is the selected display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The enum numeric value on the wire for vanityPharmaText. */ @java.lang.Override public int getVanityPharmaTextValue() { return vanityPharmaText_; } /** *
     * The text that will be displayed in display URL of the text ad when
     * website description is the selected display mode for vanity pharma URLs.
     * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The vanityPharmaText. */ @java.lang.Override public com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() { com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.forNumber(vanityPharmaText_); return result == null ? com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.UNRECOGNIZED : result; } 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 (vanityPharmaDisplayUrlMode_ != com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) { output.writeEnum(1, vanityPharmaDisplayUrlMode_); } if (vanityPharmaText_ != com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.UNSPECIFIED.getNumber()) { output.writeEnum(2, vanityPharmaText_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (vanityPharmaDisplayUrlMode_ != com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, vanityPharmaDisplayUrlMode_); } if (vanityPharmaText_ != com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, vanityPharmaText_); } 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.v16.resources.Campaign.VanityPharma)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.VanityPharma other = (com.google.ads.googleads.v16.resources.Campaign.VanityPharma) obj; if (vanityPharmaDisplayUrlMode_ != other.vanityPharmaDisplayUrlMode_) return false; if (vanityPharmaText_ != other.vanityPharmaText_) 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) + VANITY_PHARMA_DISPLAY_URL_MODE_FIELD_NUMBER; hash = (53 * hash) + vanityPharmaDisplayUrlMode_; hash = (37 * hash) + VANITY_PHARMA_TEXT_FIELD_NUMBER; hash = (53 * hash) + vanityPharmaText_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma 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.v16.resources.Campaign.VanityPharma parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma 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.v16.resources.Campaign.VanityPharma parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma 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.v16.resources.Campaign.VanityPharma parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma 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.v16.resources.Campaign.VanityPharma parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma 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.v16.resources.Campaign.VanityPharma 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; } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.VanityPharma} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.VanityPharma) com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_VanityPharma_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_VanityPharma_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.VanityPharma.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; vanityPharmaDisplayUrlMode_ = 0; vanityPharmaText_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_VanityPharma_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.VanityPharma getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.VanityPharma build() { com.google.ads.googleads.v16.resources.Campaign.VanityPharma result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.VanityPharma buildPartial() { com.google.ads.googleads.v16.resources.Campaign.VanityPharma result = new com.google.ads.googleads.v16.resources.Campaign.VanityPharma(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.VanityPharma result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.vanityPharmaDisplayUrlMode_ = vanityPharmaDisplayUrlMode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.vanityPharmaText_ = vanityPharmaText_; } } @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.v16.resources.Campaign.VanityPharma) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.VanityPharma)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.VanityPharma other) { if (other == com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance()) return this; if (other.vanityPharmaDisplayUrlMode_ != 0) { setVanityPharmaDisplayUrlModeValue(other.getVanityPharmaDisplayUrlModeValue()); } if (other.vanityPharmaText_ != 0) { setVanityPharmaTextValue(other.getVanityPharmaTextValue()); } 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 8: { vanityPharmaDisplayUrlMode_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { vanityPharmaText_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 int vanityPharmaDisplayUrlMode_ = 0; /** *
       * The display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The enum numeric value on the wire for vanityPharmaDisplayUrlMode. */ @java.lang.Override public int getVanityPharmaDisplayUrlModeValue() { return vanityPharmaDisplayUrlMode_; } /** *
       * The display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @param value The enum numeric value on the wire for vanityPharmaDisplayUrlMode to set. * @return This builder for chaining. */ public Builder setVanityPharmaDisplayUrlModeValue(int value) { vanityPharmaDisplayUrlMode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return The vanityPharmaDisplayUrlMode. */ @java.lang.Override public com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() { com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.forNumber(vanityPharmaDisplayUrlMode_); return result == null ? com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result; } /** *
       * The display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @param value The vanityPharmaDisplayUrlMode to set. * @return This builder for chaining. */ public Builder setVanityPharmaDisplayUrlMode(com.google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; vanityPharmaDisplayUrlMode_ = value.getNumber(); onChanged(); return this; } /** *
       * The display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; * @return This builder for chaining. */ public Builder clearVanityPharmaDisplayUrlMode() { bitField0_ = (bitField0_ & ~0x00000001); vanityPharmaDisplayUrlMode_ = 0; onChanged(); return this; } private int vanityPharmaText_ = 0; /** *
       * The text that will be displayed in display URL of the text ad when
       * website description is the selected display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The enum numeric value on the wire for vanityPharmaText. */ @java.lang.Override public int getVanityPharmaTextValue() { return vanityPharmaText_; } /** *
       * The text that will be displayed in display URL of the text ad when
       * website description is the selected display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @param value The enum numeric value on the wire for vanityPharmaText to set. * @return This builder for chaining. */ public Builder setVanityPharmaTextValue(int value) { vanityPharmaText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The text that will be displayed in display URL of the text ad when
       * website description is the selected display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return The vanityPharmaText. */ @java.lang.Override public com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() { com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.forNumber(vanityPharmaText_); return result == null ? com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText.UNRECOGNIZED : result; } /** *
       * The text that will be displayed in display URL of the text ad when
       * website description is the selected display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @param value The vanityPharmaText to set. * @return This builder for chaining. */ public Builder setVanityPharmaText(com.google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; vanityPharmaText_ = value.getNumber(); onChanged(); return this; } /** *
       * The text that will be displayed in display URL of the text ad when
       * website description is the selected display mode for vanity pharma URLs.
       * 
* * .google.ads.googleads.v16.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; * @return This builder for chaining. */ public Builder clearVanityPharmaText() { bitField0_ = (bitField0_ & ~0x00000002); vanityPharmaText_ = 0; 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.v16.resources.Campaign.VanityPharma) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.VanityPharma) private static final com.google.ads.googleads.v16.resources.Campaign.VanityPharma DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.VanityPharma(); } public static com.google.ads.googleads.v16.resources.Campaign.VanityPharma getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VanityPharma 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.v16.resources.Campaign.VanityPharma getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SelectiveOptimizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.SelectiveOptimization) com.google.protobuf.MessageOrBuilder { /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the conversionActions. */ java.util.List getConversionActionsList(); /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return The count of conversionActions. */ int getConversionActionsCount(); /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The conversionActions at the given index. */ java.lang.String getConversionActions(int index); /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the conversionActions at the given index. */ com.google.protobuf.ByteString getConversionActionsBytes(int index); } /** *
   * Selective optimization setting for this campaign, which includes a set of
   * conversion actions to optimize this campaign towards.
   * This feature only applies to app campaigns that use MULTI_CHANNEL as
   * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
   * AdvertisingChannelSubType.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.SelectiveOptimization} */ public static final class SelectiveOptimization extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.SelectiveOptimization) SelectiveOptimizationOrBuilder { private static final long serialVersionUID = 0L; // Use SelectiveOptimization.newBuilder() to construct. private SelectiveOptimization(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SelectiveOptimization() { conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SelectiveOptimization(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_SelectiveOptimization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_SelectiveOptimization_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder.class); } public static final int CONVERSION_ACTIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the conversionActions. */ public com.google.protobuf.ProtocolStringList getConversionActionsList() { return conversionActions_; } /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return The count of conversionActions. */ public int getConversionActionsCount() { return conversionActions_.size(); } /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The conversionActions at the given index. */ public java.lang.String getConversionActions(int index) { return conversionActions_.get(index); } /** *
     * The selected set of conversion actions for optimizing this campaign.
     * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the conversionActions at the given index. */ public com.google.protobuf.ByteString getConversionActionsBytes(int index) { return conversionActions_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < conversionActions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conversionActions_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < conversionActions_.size(); i++) { dataSize += computeStringSizeNoTag(conversionActions_.getRaw(i)); } size += dataSize; size += 1 * getConversionActionsList().size(); } 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.v16.resources.Campaign.SelectiveOptimization)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization other = (com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization) obj; if (!getConversionActionsList() .equals(other.getConversionActionsList())) 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 (getConversionActionsCount() > 0) { hash = (37 * hash) + CONVERSION_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getConversionActionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization 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; } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.SelectiveOptimization} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.SelectiveOptimization) com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_SelectiveOptimization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_SelectiveOptimization_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_SelectiveOptimization_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization build() { com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization buildPartial() { com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization result = new com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { conversionActions_.makeImmutable(); result.conversionActions_ = conversionActions_; } } @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.v16.resources.Campaign.SelectiveOptimization) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization other) { if (other == com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance()) return this; if (!other.conversionActions_.isEmpty()) { if (conversionActions_.isEmpty()) { conversionActions_ = other.conversionActions_; bitField0_ |= 0x00000001; } else { ensureConversionActionsIsMutable(); conversionActions_.addAll(other.conversionActions_); } 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 18: { java.lang.String s = input.readStringRequireUtf8(); ensureConversionActionsIsMutable(); conversionActions_.add(s); 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 com.google.protobuf.LazyStringArrayList conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureConversionActionsIsMutable() { if (!conversionActions_.isModifiable()) { conversionActions_ = new com.google.protobuf.LazyStringArrayList(conversionActions_); } bitField0_ |= 0x00000001; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the conversionActions. */ public com.google.protobuf.ProtocolStringList getConversionActionsList() { conversionActions_.makeImmutable(); return conversionActions_; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return The count of conversionActions. */ public int getConversionActionsCount() { return conversionActions_.size(); } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The conversionActions at the given index. */ public java.lang.String getConversionActions(int index) { return conversionActions_.get(index); } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the conversionActions at the given index. */ public com.google.protobuf.ByteString getConversionActionsBytes(int index) { return conversionActions_.getByteString(index); } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The conversionActions to set. * @return This builder for chaining. */ public Builder setConversionActions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionActionsIsMutable(); conversionActions_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param value The conversionActions to add. * @return This builder for chaining. */ public Builder addConversionActions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionActionsIsMutable(); conversionActions_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param values The conversionActions to add. * @return This builder for chaining. */ public Builder addAllConversionActions( java.lang.Iterable values) { ensureConversionActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, conversionActions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearConversionActions() { conversionActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
       * The selected set of conversion actions for optimizing this campaign.
       * 
* * repeated string conversion_actions = 2 [(.google.api.resource_reference) = { ... } * @param value The bytes of the conversionActions to add. * @return This builder for chaining. */ public Builder addConversionActionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureConversionActionsIsMutable(); conversionActions_.add(value); bitField0_ |= 0x00000001; 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.v16.resources.Campaign.SelectiveOptimization) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.SelectiveOptimization) private static final com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization(); } public static com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SelectiveOptimization 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.v16.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptimizationGoalSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) com.google.protobuf.MessageOrBuilder { /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the optimizationGoalTypes. */ java.util.List getOptimizationGoalTypesList(); /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return The count of optimizationGoalTypes. */ int getOptimizationGoalTypesCount(); /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the element to return. * @return The optimizationGoalTypes at the given index. */ com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index); /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the enum numeric values on the wire for optimizationGoalTypes. */ java.util.List getOptimizationGoalTypesValueList(); /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of optimizationGoalTypes at the given index. */ int getOptimizationGoalTypesValue(int index); } /** *
   * Optimization goal setting for this campaign, which includes a set of
   * optimization goal types.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting} */ public static final class OptimizationGoalSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) OptimizationGoalSettingOrBuilder { private static final long serialVersionUID = 0L; // Use OptimizationGoalSetting.newBuilder() to construct. private OptimizationGoalSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptimizationGoalSetting() { optimizationGoalTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptimizationGoalSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_OptimizationGoalSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_OptimizationGoalSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.class, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder.class); } public static final int OPTIMIZATION_GOAL_TYPES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List optimizationGoalTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType> optimizationGoalTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType>() { public com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType convert(java.lang.Integer from) { com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType result = com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType.forNumber(from); return result == null ? com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType.UNRECOGNIZED : result; } }; /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the optimizationGoalTypes. */ @java.lang.Override public java.util.List getOptimizationGoalTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType>(optimizationGoalTypes_, optimizationGoalTypes_converter_); } /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return The count of optimizationGoalTypes. */ @java.lang.Override public int getOptimizationGoalTypesCount() { return optimizationGoalTypes_.size(); } /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the element to return. * @return The optimizationGoalTypes at the given index. */ @java.lang.Override public com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index) { return optimizationGoalTypes_converter_.convert(optimizationGoalTypes_.get(index)); } /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the enum numeric values on the wire for optimizationGoalTypes. */ @java.lang.Override public java.util.List getOptimizationGoalTypesValueList() { return optimizationGoalTypes_; } /** *
     * The list of optimization goal types.
     * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of optimizationGoalTypes at the given index. */ @java.lang.Override public int getOptimizationGoalTypesValue(int index) { return optimizationGoalTypes_.get(index); } private int optimizationGoalTypesMemoizedSerializedSize; 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 { getSerializedSize(); if (getOptimizationGoalTypesList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(optimizationGoalTypesMemoizedSerializedSize); } for (int i = 0; i < optimizationGoalTypes_.size(); i++) { output.writeEnumNoTag(optimizationGoalTypes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < optimizationGoalTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(optimizationGoalTypes_.get(i)); } size += dataSize; if (!getOptimizationGoalTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }optimizationGoalTypesMemoizedSerializedSize = dataSize; } 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.v16.resources.Campaign.OptimizationGoalSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting other = (com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) obj; if (!optimizationGoalTypes_.equals(other.optimizationGoalTypes_)) 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 (getOptimizationGoalTypesCount() > 0) { hash = (37 * hash) + OPTIMIZATION_GOAL_TYPES_FIELD_NUMBER; hash = (53 * hash) + optimizationGoalTypes_.hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting 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; } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_OptimizationGoalSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_OptimizationGoalSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.class, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; optimizationGoalTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_OptimizationGoalSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting build() { com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting result = new com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting result) { if (((bitField0_ & 0x00000001) != 0)) { optimizationGoalTypes_ = java.util.Collections.unmodifiableList(optimizationGoalTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.optimizationGoalTypes_ = optimizationGoalTypes_; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance()) return this; if (!other.optimizationGoalTypes_.isEmpty()) { if (optimizationGoalTypes_.isEmpty()) { optimizationGoalTypes_ = other.optimizationGoalTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.addAll(other.optimizationGoalTypes_); } 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 8: { int tmpRaw = input.readEnum(); ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.add(tmpRaw); break; } // case 8 case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 10 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.util.List optimizationGoalTypes_ = java.util.Collections.emptyList(); private void ensureOptimizationGoalTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { optimizationGoalTypes_ = new java.util.ArrayList(optimizationGoalTypes_); bitField0_ |= 0x00000001; } } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the optimizationGoalTypes. */ public java.util.List getOptimizationGoalTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType>(optimizationGoalTypes_, optimizationGoalTypes_converter_); } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return The count of optimizationGoalTypes. */ public int getOptimizationGoalTypesCount() { return optimizationGoalTypes_.size(); } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the element to return. * @return The optimizationGoalTypes at the given index. */ public com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index) { return optimizationGoalTypes_converter_.convert(optimizationGoalTypes_.get(index)); } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index to set the value at. * @param value The optimizationGoalTypes to set. * @return This builder for chaining. */ public Builder setOptimizationGoalTypes( int index, com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType value) { if (value == null) { throw new NullPointerException(); } ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param value The optimizationGoalTypes to add. * @return This builder for chaining. */ public Builder addOptimizationGoalTypes(com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType value) { if (value == null) { throw new NullPointerException(); } ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.add(value.getNumber()); onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param values The optimizationGoalTypes to add. * @return This builder for chaining. */ public Builder addAllOptimizationGoalTypes( java.lang.Iterable values) { ensureOptimizationGoalTypesIsMutable(); for (com.google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType value : values) { optimizationGoalTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return This builder for chaining. */ public Builder clearOptimizationGoalTypes() { optimizationGoalTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @return A list containing the enum numeric values on the wire for optimizationGoalTypes. */ public java.util.List getOptimizationGoalTypesValueList() { return java.util.Collections.unmodifiableList(optimizationGoalTypes_); } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of optimizationGoalTypes at the given index. */ public int getOptimizationGoalTypesValue(int index) { return optimizationGoalTypes_.get(index); } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for optimizationGoalTypes to set. * @return This builder for chaining. */ public Builder setOptimizationGoalTypesValue( int index, int value) { ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.set(index, value); onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param value The enum numeric value on the wire for optimizationGoalTypes to add. * @return This builder for chaining. */ public Builder addOptimizationGoalTypesValue(int value) { ensureOptimizationGoalTypesIsMutable(); optimizationGoalTypes_.add(value); onChanged(); return this; } /** *
       * The list of optimization goal types.
       * 
* * repeated .google.ads.googleads.v16.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; * @param values The enum numeric values on the wire for optimizationGoalTypes to add. * @return This builder for chaining. */ public Builder addAllOptimizationGoalTypesValue( java.lang.Iterable values) { ensureOptimizationGoalTypesIsMutable(); for (int value : values) { optimizationGoalTypes_.add(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.v16.resources.Campaign.OptimizationGoalSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting) private static final com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptimizationGoalSetting 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.v16.resources.Campaign.OptimizationGoalSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AudienceSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.AudienceSetting) com.google.protobuf.MessageOrBuilder { /** *
     * Immutable. If true, this campaign uses an Audience resource for audience
     * targeting. If false, this campaign may use audience segment criteria
     * instead.
     * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the useAudienceGrouped field is set. */ boolean hasUseAudienceGrouped(); /** *
     * Immutable. If true, this campaign uses an Audience resource for audience
     * targeting. If false, this campaign may use audience segment criteria
     * instead.
     * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useAudienceGrouped. */ boolean getUseAudienceGrouped(); } /** *
   * Settings for the audience targeting.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AudienceSetting} */ public static final class AudienceSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.AudienceSetting) AudienceSettingOrBuilder { private static final long serialVersionUID = 0L; // Use AudienceSetting.newBuilder() to construct. private AudienceSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudienceSetting() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudienceSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AudienceSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AudienceSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.class, com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder.class); } private int bitField0_; public static final int USE_AUDIENCE_GROUPED_FIELD_NUMBER = 1; private boolean useAudienceGrouped_ = false; /** *
     * Immutable. If true, this campaign uses an Audience resource for audience
     * targeting. If false, this campaign may use audience segment criteria
     * instead.
     * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the useAudienceGrouped field is set. */ @java.lang.Override public boolean hasUseAudienceGrouped() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Immutable. If true, this campaign uses an Audience resource for audience
     * targeting. If false, this campaign may use audience segment criteria
     * instead.
     * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useAudienceGrouped. */ @java.lang.Override public boolean getUseAudienceGrouped() { return useAudienceGrouped_; } 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)) { output.writeBool(1, useAudienceGrouped_); } 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.CodedOutputStream .computeBoolSize(1, useAudienceGrouped_); } 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.v16.resources.Campaign.AudienceSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.AudienceSetting other = (com.google.ads.googleads.v16.resources.Campaign.AudienceSetting) obj; if (hasUseAudienceGrouped() != other.hasUseAudienceGrouped()) return false; if (hasUseAudienceGrouped()) { if (getUseAudienceGrouped() != other.getUseAudienceGrouped()) 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 (hasUseAudienceGrouped()) { hash = (37 * hash) + USE_AUDIENCE_GROUPED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseAudienceGrouped()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting 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.v16.resources.Campaign.AudienceSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting 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.v16.resources.Campaign.AudienceSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting 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.v16.resources.Campaign.AudienceSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting 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.v16.resources.Campaign.AudienceSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting 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.v16.resources.Campaign.AudienceSetting 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 the audience targeting.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AudienceSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.AudienceSetting) com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AudienceSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AudienceSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.class, com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; useAudienceGrouped_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AudienceSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting build() { com.google.ads.googleads.v16.resources.Campaign.AudienceSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.AudienceSetting result = new com.google.ads.googleads.v16.resources.Campaign.AudienceSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.AudienceSetting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.useAudienceGrouped_ = useAudienceGrouped_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.AudienceSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.AudienceSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.AudienceSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance()) return this; if (other.hasUseAudienceGrouped()) { setUseAudienceGrouped(other.getUseAudienceGrouped()); } 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 8: { useAudienceGrouped_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 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 boolean useAudienceGrouped_ ; /** *
       * Immutable. If true, this campaign uses an Audience resource for audience
       * targeting. If false, this campaign may use audience segment criteria
       * instead.
       * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the useAudienceGrouped field is set. */ @java.lang.Override public boolean hasUseAudienceGrouped() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Immutable. If true, this campaign uses an Audience resource for audience
       * targeting. If false, this campaign may use audience segment criteria
       * instead.
       * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The useAudienceGrouped. */ @java.lang.Override public boolean getUseAudienceGrouped() { return useAudienceGrouped_; } /** *
       * Immutable. If true, this campaign uses an Audience resource for audience
       * targeting. If false, this campaign may use audience segment criteria
       * instead.
       * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The useAudienceGrouped to set. * @return This builder for chaining. */ public Builder setUseAudienceGrouped(boolean value) { useAudienceGrouped_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Immutable. If true, this campaign uses an Audience resource for audience
       * targeting. If false, this campaign may use audience segment criteria
       * instead.
       * 
* * optional bool use_audience_grouped = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearUseAudienceGrouped() { bitField0_ = (bitField0_ & ~0x00000001); useAudienceGrouped_ = false; 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.v16.resources.Campaign.AudienceSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.AudienceSetting) private static final com.google.ads.googleads.v16.resources.Campaign.AudienceSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.AudienceSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.AudienceSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudienceSetting 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.v16.resources.Campaign.AudienceSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalServicesCampaignSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ java.util.List getCategoryBidsList(); /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ com.google.ads.googleads.v16.resources.Campaign.CategoryBid getCategoryBids(int index); /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ int getCategoryBidsCount(); /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ java.util.List getCategoryBidsOrBuilderList(); /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder getCategoryBidsOrBuilder( int index); } /** *
   * Settings for LocalServicesCampaign subresource.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings} */ public static final class LocalServicesCampaignSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) LocalServicesCampaignSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use LocalServicesCampaignSettings.newBuilder() to construct. private LocalServicesCampaignSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalServicesCampaignSettings() { categoryBids_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocalServicesCampaignSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalServicesCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalServicesCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder.class); } public static final int CATEGORY_BIDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List categoryBids_; /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ @java.lang.Override public java.util.List getCategoryBidsList() { return categoryBids_; } /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ @java.lang.Override public java.util.List getCategoryBidsOrBuilderList() { return categoryBids_; } /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ @java.lang.Override public int getCategoryBidsCount() { return categoryBids_.size(); } /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.CategoryBid getCategoryBids(int index) { return categoryBids_.get(index); } /** *
     * Categorical level bids associated with MANUAL_CPA bidding strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder getCategoryBidsOrBuilder( int index) { return categoryBids_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < categoryBids_.size(); i++) { output.writeMessage(1, categoryBids_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < categoryBids_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, categoryBids_.get(i)); } 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.v16.resources.Campaign.LocalServicesCampaignSettings)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings other = (com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) obj; if (!getCategoryBidsList() .equals(other.getCategoryBidsList())) 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 (getCategoryBidsCount() > 0) { hash = (37 * hash) + CATEGORY_BIDS_FIELD_NUMBER; hash = (53 * hash) + getCategoryBidsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings 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 LocalServicesCampaign subresource.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalServicesCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalServicesCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (categoryBidsBuilder_ == null) { categoryBids_ = java.util.Collections.emptyList(); } else { categoryBids_ = null; categoryBidsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_LocalServicesCampaignSettings_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings build() { com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings buildPartial() { com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings result = new com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings result) { if (categoryBidsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { categoryBids_ = java.util.Collections.unmodifiableList(categoryBids_); bitField0_ = (bitField0_ & ~0x00000001); } result.categoryBids_ = categoryBids_; } else { result.categoryBids_ = categoryBidsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings other) { if (other == com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance()) return this; if (categoryBidsBuilder_ == null) { if (!other.categoryBids_.isEmpty()) { if (categoryBids_.isEmpty()) { categoryBids_ = other.categoryBids_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryBidsIsMutable(); categoryBids_.addAll(other.categoryBids_); } onChanged(); } } else { if (!other.categoryBids_.isEmpty()) { if (categoryBidsBuilder_.isEmpty()) { categoryBidsBuilder_.dispose(); categoryBidsBuilder_ = null; categoryBids_ = other.categoryBids_; bitField0_ = (bitField0_ & ~0x00000001); categoryBidsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryBidsFieldBuilder() : null; } else { categoryBidsBuilder_.addAllMessages(other.categoryBids_); } } } 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: { com.google.ads.googleads.v16.resources.Campaign.CategoryBid m = input.readMessage( com.google.ads.googleads.v16.resources.Campaign.CategoryBid.parser(), extensionRegistry); if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); categoryBids_.add(m); } else { categoryBidsBuilder_.addMessage(m); } break; } // case 10 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.util.List categoryBids_ = java.util.Collections.emptyList(); private void ensureCategoryBidsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { categoryBids_ = new java.util.ArrayList(categoryBids_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.CategoryBid, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder, com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder> categoryBidsBuilder_; /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public java.util.List getCategoryBidsList() { if (categoryBidsBuilder_ == null) { return java.util.Collections.unmodifiableList(categoryBids_); } else { return categoryBidsBuilder_.getMessageList(); } } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public int getCategoryBidsCount() { if (categoryBidsBuilder_ == null) { return categoryBids_.size(); } else { return categoryBidsBuilder_.getCount(); } } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public com.google.ads.googleads.v16.resources.Campaign.CategoryBid getCategoryBids(int index) { if (categoryBidsBuilder_ == null) { return categoryBids_.get(index); } else { return categoryBidsBuilder_.getMessage(index); } } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder setCategoryBids( int index, com.google.ads.googleads.v16.resources.Campaign.CategoryBid value) { if (categoryBidsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoryBidsIsMutable(); categoryBids_.set(index, value); onChanged(); } else { categoryBidsBuilder_.setMessage(index, value); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder setCategoryBids( int index, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder builderForValue) { if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); categoryBids_.set(index, builderForValue.build()); onChanged(); } else { categoryBidsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder addCategoryBids(com.google.ads.googleads.v16.resources.Campaign.CategoryBid value) { if (categoryBidsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoryBidsIsMutable(); categoryBids_.add(value); onChanged(); } else { categoryBidsBuilder_.addMessage(value); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder addCategoryBids( int index, com.google.ads.googleads.v16.resources.Campaign.CategoryBid value) { if (categoryBidsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoryBidsIsMutable(); categoryBids_.add(index, value); onChanged(); } else { categoryBidsBuilder_.addMessage(index, value); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder addCategoryBids( com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder builderForValue) { if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); categoryBids_.add(builderForValue.build()); onChanged(); } else { categoryBidsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder addCategoryBids( int index, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder builderForValue) { if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); categoryBids_.add(index, builderForValue.build()); onChanged(); } else { categoryBidsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder addAllCategoryBids( java.lang.Iterable values) { if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, categoryBids_); onChanged(); } else { categoryBidsBuilder_.addAllMessages(values); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder clearCategoryBids() { if (categoryBidsBuilder_ == null) { categoryBids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryBidsBuilder_.clear(); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public Builder removeCategoryBids(int index) { if (categoryBidsBuilder_ == null) { ensureCategoryBidsIsMutable(); categoryBids_.remove(index); onChanged(); } else { categoryBidsBuilder_.remove(index); } return this; } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder getCategoryBidsBuilder( int index) { return getCategoryBidsFieldBuilder().getBuilder(index); } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder getCategoryBidsOrBuilder( int index) { if (categoryBidsBuilder_ == null) { return categoryBids_.get(index); } else { return categoryBidsBuilder_.getMessageOrBuilder(index); } } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public java.util.List getCategoryBidsOrBuilderList() { if (categoryBidsBuilder_ != null) { return categoryBidsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(categoryBids_); } } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder addCategoryBidsBuilder() { return getCategoryBidsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Campaign.CategoryBid.getDefaultInstance()); } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder addCategoryBidsBuilder( int index) { return getCategoryBidsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.getDefaultInstance()); } /** *
       * Categorical level bids associated with MANUAL_CPA bidding strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Campaign.CategoryBid category_bids = 1; */ public java.util.List getCategoryBidsBuilderList() { return getCategoryBidsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.CategoryBid, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder, com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder> getCategoryBidsFieldBuilder() { if (categoryBidsBuilder_ == null) { categoryBidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.CategoryBid, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder, com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder>( categoryBids_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryBids_ = null; } return categoryBidsBuilder_; } @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.v16.resources.Campaign.LocalServicesCampaignSettings) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings) private static final com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings(); } public static com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocalServicesCampaignSettings 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.v16.resources.Campaign.LocalServicesCampaignSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CategoryBidOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.CategoryBid) com.google.protobuf.MessageOrBuilder { /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return Whether the categoryId field is set. */ boolean hasCategoryId(); /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return The categoryId. */ java.lang.String getCategoryId(); /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return The bytes for categoryId. */ com.google.protobuf.ByteString getCategoryIdBytes(); /** *
     * Manual CPA bid for the category. Bid must be greater than the
     * reserve price associated for that category. Value is in micros
     * and in the advertiser's currency.
     * 
* * optional int64 manual_cpa_bid_micros = 2; * @return Whether the manualCpaBidMicros field is set. */ boolean hasManualCpaBidMicros(); /** *
     * Manual CPA bid for the category. Bid must be greater than the
     * reserve price associated for that category. Value is in micros
     * and in the advertiser's currency.
     * 
* * optional int64 manual_cpa_bid_micros = 2; * @return The manualCpaBidMicros. */ long getManualCpaBidMicros(); } /** *
   * Category bids in LocalServicesReportingCampaignSettings.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.CategoryBid} */ public static final class CategoryBid extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.CategoryBid) CategoryBidOrBuilder { private static final long serialVersionUID = 0L; // Use CategoryBid.newBuilder() to construct. private CategoryBid(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CategoryBid() { categoryId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CategoryBid(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_CategoryBid_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_CategoryBid_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.CategoryBid.class, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder.class); } private int bitField0_; public static final int CATEGORY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object categoryId_ = ""; /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return Whether the categoryId field is set. */ @java.lang.Override public boolean hasCategoryId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return The categoryId. */ @java.lang.Override public java.lang.String getCategoryId() { java.lang.Object ref = categoryId_; 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(); categoryId_ = s; return s; } } /** *
     * Category for which the bid will be associated with. For example,
     * xcat:service_area_business_plumber.
     * 
* * optional string category_id = 1; * @return The bytes for categoryId. */ @java.lang.Override public com.google.protobuf.ByteString getCategoryIdBytes() { java.lang.Object ref = categoryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); categoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANUAL_CPA_BID_MICROS_FIELD_NUMBER = 2; private long manualCpaBidMicros_ = 0L; /** *
     * Manual CPA bid for the category. Bid must be greater than the
     * reserve price associated for that category. Value is in micros
     * and in the advertiser's currency.
     * 
* * optional int64 manual_cpa_bid_micros = 2; * @return Whether the manualCpaBidMicros field is set. */ @java.lang.Override public boolean hasManualCpaBidMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Manual CPA bid for the category. Bid must be greater than the
     * reserve price associated for that category. Value is in micros
     * and in the advertiser's currency.
     * 
* * optional int64 manual_cpa_bid_micros = 2; * @return The manualCpaBidMicros. */ @java.lang.Override public long getManualCpaBidMicros() { return manualCpaBidMicros_; } 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, categoryId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, manualCpaBidMicros_); } 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, categoryId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, manualCpaBidMicros_); } 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.v16.resources.Campaign.CategoryBid)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.CategoryBid other = (com.google.ads.googleads.v16.resources.Campaign.CategoryBid) obj; if (hasCategoryId() != other.hasCategoryId()) return false; if (hasCategoryId()) { if (!getCategoryId() .equals(other.getCategoryId())) return false; } if (hasManualCpaBidMicros() != other.hasManualCpaBidMicros()) return false; if (hasManualCpaBidMicros()) { if (getManualCpaBidMicros() != other.getManualCpaBidMicros()) 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 (hasCategoryId()) { hash = (37 * hash) + CATEGORY_ID_FIELD_NUMBER; hash = (53 * hash) + getCategoryId().hashCode(); } if (hasManualCpaBidMicros()) { hash = (37 * hash) + MANUAL_CPA_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getManualCpaBidMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid 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.v16.resources.Campaign.CategoryBid parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid 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.v16.resources.Campaign.CategoryBid parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid 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.v16.resources.Campaign.CategoryBid parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid 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.v16.resources.Campaign.CategoryBid parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid 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.v16.resources.Campaign.CategoryBid 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; } /** *
     * Category bids in LocalServicesReportingCampaignSettings.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.CategoryBid} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.CategoryBid) com.google.ads.googleads.v16.resources.Campaign.CategoryBidOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_CategoryBid_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_CategoryBid_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.CategoryBid.class, com.google.ads.googleads.v16.resources.Campaign.CategoryBid.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.CategoryBid.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; categoryId_ = ""; manualCpaBidMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_CategoryBid_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.CategoryBid getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.CategoryBid.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.CategoryBid build() { com.google.ads.googleads.v16.resources.Campaign.CategoryBid result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.CategoryBid buildPartial() { com.google.ads.googleads.v16.resources.Campaign.CategoryBid result = new com.google.ads.googleads.v16.resources.Campaign.CategoryBid(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.CategoryBid result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.categoryId_ = categoryId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.manualCpaBidMicros_ = manualCpaBidMicros_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.CategoryBid) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.CategoryBid)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.CategoryBid other) { if (other == com.google.ads.googleads.v16.resources.Campaign.CategoryBid.getDefaultInstance()) return this; if (other.hasCategoryId()) { categoryId_ = other.categoryId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasManualCpaBidMicros()) { setManualCpaBidMicros(other.getManualCpaBidMicros()); } 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: { categoryId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { manualCpaBidMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 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 categoryId_ = ""; /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @return Whether the categoryId field is set. */ public boolean hasCategoryId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @return The categoryId. */ public java.lang.String getCategoryId() { java.lang.Object ref = categoryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); categoryId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @return The bytes for categoryId. */ public com.google.protobuf.ByteString getCategoryIdBytes() { java.lang.Object ref = categoryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); categoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @param value The categoryId to set. * @return This builder for chaining. */ public Builder setCategoryId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } categoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @return This builder for chaining. */ public Builder clearCategoryId() { categoryId_ = getDefaultInstance().getCategoryId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Category for which the bid will be associated with. For example,
       * xcat:service_area_business_plumber.
       * 
* * optional string category_id = 1; * @param value The bytes for categoryId to set. * @return This builder for chaining. */ public Builder setCategoryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); categoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long manualCpaBidMicros_ ; /** *
       * Manual CPA bid for the category. Bid must be greater than the
       * reserve price associated for that category. Value is in micros
       * and in the advertiser's currency.
       * 
* * optional int64 manual_cpa_bid_micros = 2; * @return Whether the manualCpaBidMicros field is set. */ @java.lang.Override public boolean hasManualCpaBidMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Manual CPA bid for the category. Bid must be greater than the
       * reserve price associated for that category. Value is in micros
       * and in the advertiser's currency.
       * 
* * optional int64 manual_cpa_bid_micros = 2; * @return The manualCpaBidMicros. */ @java.lang.Override public long getManualCpaBidMicros() { return manualCpaBidMicros_; } /** *
       * Manual CPA bid for the category. Bid must be greater than the
       * reserve price associated for that category. Value is in micros
       * and in the advertiser's currency.
       * 
* * optional int64 manual_cpa_bid_micros = 2; * @param value The manualCpaBidMicros to set. * @return This builder for chaining. */ public Builder setManualCpaBidMicros(long value) { manualCpaBidMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Manual CPA bid for the category. Bid must be greater than the
       * reserve price associated for that category. Value is in micros
       * and in the advertiser's currency.
       * 
* * optional int64 manual_cpa_bid_micros = 2; * @return This builder for chaining. */ public Builder clearManualCpaBidMicros() { bitField0_ = (bitField0_ & ~0x00000002); manualCpaBidMicros_ = 0L; 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.v16.resources.Campaign.CategoryBid) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.CategoryBid) private static final com.google.ads.googleads.v16.resources.Campaign.CategoryBid DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.CategoryBid(); } public static com.google.ads.googleads.v16.resources.Campaign.CategoryBid getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CategoryBid 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.v16.resources.Campaign.CategoryBid getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TravelCampaignSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Immutable. The Travel account ID associated with the Travel campaign.
     * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the travelAccountId field is set. */ boolean hasTravelAccountId(); /** *
     * Immutable. The Travel account ID associated with the Travel campaign.
     * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The travelAccountId. */ long getTravelAccountId(); } /** *
   * Settings for Travel campaign.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings} */ public static final class TravelCampaignSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) TravelCampaignSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use TravelCampaignSettings.newBuilder() to construct. private TravelCampaignSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TravelCampaignSettings() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TravelCampaignSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TravelCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TravelCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder.class); } private int bitField0_; public static final int TRAVEL_ACCOUNT_ID_FIELD_NUMBER = 1; private long travelAccountId_ = 0L; /** *
     * Immutable. The Travel account ID associated with the Travel campaign.
     * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the travelAccountId field is set. */ @java.lang.Override public boolean hasTravelAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Immutable. The Travel account ID associated with the Travel campaign.
     * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The travelAccountId. */ @java.lang.Override public long getTravelAccountId() { return travelAccountId_; } 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)) { output.writeInt64(1, travelAccountId_); } 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.CodedOutputStream .computeInt64Size(1, travelAccountId_); } 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.v16.resources.Campaign.TravelCampaignSettings)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings other = (com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) obj; if (hasTravelAccountId() != other.hasTravelAccountId()) return false; if (hasTravelAccountId()) { if (getTravelAccountId() != other.getTravelAccountId()) 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 (hasTravelAccountId()) { hash = (37 * hash) + TRAVEL_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTravelAccountId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings 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 Travel campaign.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TravelCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TravelCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; travelAccountId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_TravelCampaignSettings_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings build() { com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings buildPartial() { com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings result = new com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.travelAccountId_ = travelAccountId_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings other) { if (other == com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance()) return this; if (other.hasTravelAccountId()) { setTravelAccountId(other.getTravelAccountId()); } 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 8: { travelAccountId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 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 long travelAccountId_ ; /** *
       * Immutable. The Travel account ID associated with the Travel campaign.
       * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the travelAccountId field is set. */ @java.lang.Override public boolean hasTravelAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Immutable. The Travel account ID associated with the Travel campaign.
       * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The travelAccountId. */ @java.lang.Override public long getTravelAccountId() { return travelAccountId_; } /** *
       * Immutable. The Travel account ID associated with the Travel campaign.
       * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The travelAccountId to set. * @return This builder for chaining. */ public Builder setTravelAccountId(long value) { travelAccountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Immutable. The Travel account ID associated with the Travel campaign.
       * 
* * optional int64 travel_account_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearTravelAccountId() { bitField0_ = (bitField0_ & ~0x00000001); travelAccountId_ = 0L; 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.v16.resources.Campaign.TravelCampaignSettings) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings) private static final com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings(); } public static com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TravelCampaignSettings 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.v16.resources.Campaign.TravelCampaignSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscoveryCampaignSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Immutable. Specifies whether this campaign uses upgraded targeting
     * options. When this field is set to `true`, you can use location and
     * language targeting at the ad group level as opposed to the standard
     * campaign-level targeting. This field defaults to `false`, and can only be
     * set when creating a campaign.
     * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the upgradedTargeting field is set. */ boolean hasUpgradedTargeting(); /** *
     * Immutable. Specifies whether this campaign uses upgraded targeting
     * options. When this field is set to `true`, you can use location and
     * language targeting at the ad group level as opposed to the standard
     * campaign-level targeting. This field defaults to `false`, and can only be
     * set when creating a campaign.
     * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The upgradedTargeting. */ boolean getUpgradedTargeting(); } /** *
   * Settings for Discovery campaign.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings} */ public static final class DiscoveryCampaignSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) DiscoveryCampaignSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoveryCampaignSettings.newBuilder() to construct. private DiscoveryCampaignSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoveryCampaignSettings() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscoveryCampaignSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DiscoveryCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DiscoveryCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder.class); } private int bitField0_; public static final int UPGRADED_TARGETING_FIELD_NUMBER = 1; private boolean upgradedTargeting_ = false; /** *
     * Immutable. Specifies whether this campaign uses upgraded targeting
     * options. When this field is set to `true`, you can use location and
     * language targeting at the ad group level as opposed to the standard
     * campaign-level targeting. This field defaults to `false`, and can only be
     * set when creating a campaign.
     * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the upgradedTargeting field is set. */ @java.lang.Override public boolean hasUpgradedTargeting() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Immutable. Specifies whether this campaign uses upgraded targeting
     * options. When this field is set to `true`, you can use location and
     * language targeting at the ad group level as opposed to the standard
     * campaign-level targeting. This field defaults to `false`, and can only be
     * set when creating a campaign.
     * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The upgradedTargeting. */ @java.lang.Override public boolean getUpgradedTargeting() { return upgradedTargeting_; } 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)) { output.writeBool(1, upgradedTargeting_); } 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.CodedOutputStream .computeBoolSize(1, upgradedTargeting_); } 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.v16.resources.Campaign.DiscoveryCampaignSettings)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings other = (com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) obj; if (hasUpgradedTargeting() != other.hasUpgradedTargeting()) return false; if (hasUpgradedTargeting()) { if (getUpgradedTargeting() != other.getUpgradedTargeting()) 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 (hasUpgradedTargeting()) { hash = (37 * hash) + UPGRADED_TARGETING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUpgradedTargeting()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings 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 Discovery campaign.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DiscoveryCampaignSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DiscoveryCampaignSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.class, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; upgradedTargeting_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_DiscoveryCampaignSettings_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings build() { com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings buildPartial() { com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings result = new com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.upgradedTargeting_ = upgradedTargeting_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings other) { if (other == com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance()) return this; if (other.hasUpgradedTargeting()) { setUpgradedTargeting(other.getUpgradedTargeting()); } 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 8: { upgradedTargeting_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 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 boolean upgradedTargeting_ ; /** *
       * Immutable. Specifies whether this campaign uses upgraded targeting
       * options. When this field is set to `true`, you can use location and
       * language targeting at the ad group level as opposed to the standard
       * campaign-level targeting. This field defaults to `false`, and can only be
       * set when creating a campaign.
       * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the upgradedTargeting field is set. */ @java.lang.Override public boolean hasUpgradedTargeting() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Immutable. Specifies whether this campaign uses upgraded targeting
       * options. When this field is set to `true`, you can use location and
       * language targeting at the ad group level as opposed to the standard
       * campaign-level targeting. This field defaults to `false`, and can only be
       * set when creating a campaign.
       * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return The upgradedTargeting. */ @java.lang.Override public boolean getUpgradedTargeting() { return upgradedTargeting_; } /** *
       * Immutable. Specifies whether this campaign uses upgraded targeting
       * options. When this field is set to `true`, you can use location and
       * language targeting at the ad group level as opposed to the standard
       * campaign-level targeting. This field defaults to `false`, and can only be
       * set when creating a campaign.
       * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The upgradedTargeting to set. * @return This builder for chaining. */ public Builder setUpgradedTargeting(boolean value) { upgradedTargeting_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Immutable. Specifies whether this campaign uses upgraded targeting
       * options. When this field is set to `true`, you can use location and
       * language targeting at the ad group level as opposed to the standard
       * campaign-level targeting. This field defaults to `false`, and can only be
       * set when creating a campaign.
       * 
* * optional bool upgraded_targeting = 1 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearUpgradedTargeting() { bitField0_ = (bitField0_ & ~0x00000001); upgradedTargeting_ = false; 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.v16.resources.Campaign.DiscoveryCampaignSettings) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings) private static final com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings(); } public static com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoveryCampaignSettings 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.v16.resources.Campaign.DiscoveryCampaignSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssetAutomationSettingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) com.google.protobuf.MessageOrBuilder { /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return Whether the assetAutomationType field is set. */ boolean hasAssetAutomationType(); /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The enum numeric value on the wire for assetAutomationType. */ int getAssetAutomationTypeValue(); /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The assetAutomationType. */ com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType getAssetAutomationType(); /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return Whether the assetAutomationStatus field is set. */ boolean hasAssetAutomationStatus(); /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The enum numeric value on the wire for assetAutomationStatus. */ int getAssetAutomationStatusValue(); /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The assetAutomationStatus. */ com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus getAssetAutomationStatus(); } /** *
   * Asset automation setting contains pair of AssetAutomationType and the
   * asset automation opt-in/out status
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting} */ public static final class AssetAutomationSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) AssetAutomationSettingOrBuilder { private static final long serialVersionUID = 0L; // Use AssetAutomationSetting.newBuilder() to construct. private AssetAutomationSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetAutomationSetting() { assetAutomationType_ = 0; assetAutomationStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetAutomationSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AssetAutomationSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AssetAutomationSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.class, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder.class); } private int bitField0_; public static final int ASSET_AUTOMATION_TYPE_FIELD_NUMBER = 1; private int assetAutomationType_ = 0; /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return Whether the assetAutomationType field is set. */ @java.lang.Override public boolean hasAssetAutomationType() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The enum numeric value on the wire for assetAutomationType. */ @java.lang.Override public int getAssetAutomationTypeValue() { return assetAutomationType_; } /** *
     * The asset automation type advertiser would like to opt-in/out.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The assetAutomationType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType getAssetAutomationType() { com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType result = com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType.forNumber(assetAutomationType_); return result == null ? com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType.UNRECOGNIZED : result; } public static final int ASSET_AUTOMATION_STATUS_FIELD_NUMBER = 2; private int assetAutomationStatus_ = 0; /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return Whether the assetAutomationStatus field is set. */ @java.lang.Override public boolean hasAssetAutomationStatus() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The enum numeric value on the wire for assetAutomationStatus. */ @java.lang.Override public int getAssetAutomationStatusValue() { return assetAutomationStatus_; } /** *
     * The opt-in/out status of asset automation type.
     * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The assetAutomationStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus getAssetAutomationStatus() { com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus result = com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus.forNumber(assetAutomationStatus_); return result == null ? com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus.UNRECOGNIZED : result; } 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)) { output.writeEnum(1, assetAutomationType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, assetAutomationStatus_); } 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.CodedOutputStream .computeEnumSize(1, assetAutomationType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, assetAutomationStatus_); } 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.v16.resources.Campaign.AssetAutomationSetting)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting other = (com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) obj; if (hasAssetAutomationType() != other.hasAssetAutomationType()) return false; if (hasAssetAutomationType()) { if (assetAutomationType_ != other.assetAutomationType_) return false; } if (hasAssetAutomationStatus() != other.hasAssetAutomationStatus()) return false; if (hasAssetAutomationStatus()) { if (assetAutomationStatus_ != other.assetAutomationStatus_) 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 (hasAssetAutomationType()) { hash = (37 * hash) + ASSET_AUTOMATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + assetAutomationType_; } if (hasAssetAutomationStatus()) { hash = (37 * hash) + ASSET_AUTOMATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + assetAutomationStatus_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting 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; } /** *
     * Asset automation setting contains pair of AssetAutomationType and the
     * asset automation opt-in/out status
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AssetAutomationSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AssetAutomationSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.class, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; assetAutomationType_ = 0; assetAutomationStatus_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_AssetAutomationSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting build() { com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting buildPartial() { com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting result = new com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.assetAutomationType_ = assetAutomationType_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.assetAutomationStatus_ = assetAutomationStatus_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting other) { if (other == com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.getDefaultInstance()) return this; if (other.hasAssetAutomationType()) { setAssetAutomationType(other.getAssetAutomationType()); } if (other.hasAssetAutomationStatus()) { setAssetAutomationStatus(other.getAssetAutomationStatus()); } 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 8: { assetAutomationType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { assetAutomationStatus_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 int assetAutomationType_ = 0; /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return Whether the assetAutomationType field is set. */ @java.lang.Override public boolean hasAssetAutomationType() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The enum numeric value on the wire for assetAutomationType. */ @java.lang.Override public int getAssetAutomationTypeValue() { return assetAutomationType_; } /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @param value The enum numeric value on the wire for assetAutomationType to set. * @return This builder for chaining. */ public Builder setAssetAutomationTypeValue(int value) { assetAutomationType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return The assetAutomationType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType getAssetAutomationType() { com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType result = com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType.forNumber(assetAutomationType_); return result == null ? com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType.UNRECOGNIZED : result; } /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @param value The assetAutomationType to set. * @return This builder for chaining. */ public Builder setAssetAutomationType(com.google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; assetAutomationType_ = value.getNumber(); onChanged(); return this; } /** *
       * The asset automation type advertiser would like to opt-in/out.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1; * @return This builder for chaining. */ public Builder clearAssetAutomationType() { bitField0_ = (bitField0_ & ~0x00000001); assetAutomationType_ = 0; onChanged(); return this; } private int assetAutomationStatus_ = 0; /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return Whether the assetAutomationStatus field is set. */ @java.lang.Override public boolean hasAssetAutomationStatus() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The enum numeric value on the wire for assetAutomationStatus. */ @java.lang.Override public int getAssetAutomationStatusValue() { return assetAutomationStatus_; } /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @param value The enum numeric value on the wire for assetAutomationStatus to set. * @return This builder for chaining. */ public Builder setAssetAutomationStatusValue(int value) { assetAutomationStatus_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return The assetAutomationStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus getAssetAutomationStatus() { com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus result = com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus.forNumber(assetAutomationStatus_); return result == null ? com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus.UNRECOGNIZED : result; } /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @param value The assetAutomationStatus to set. * @return This builder for chaining. */ public Builder setAssetAutomationStatus(com.google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; assetAutomationStatus_ = value.getNumber(); onChanged(); return this; } /** *
       * The opt-in/out status of asset automation type.
       * 
* * optional .google.ads.googleads.v16.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2; * @return This builder for chaining. */ public Builder clearAssetAutomationStatus() { bitField0_ = (bitField0_ & ~0x00000002); assetAutomationStatus_ = 0; 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.v16.resources.Campaign.AssetAutomationSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting) private static final com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting(); } public static com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetAutomationSetting 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.v16.resources.Campaign.AssetAutomationSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int campaignBiddingStrategyCase_ = 0; @SuppressWarnings("serial") private java.lang.Object campaignBiddingStrategy_; public enum CampaignBiddingStrategyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIDDING_STRATEGY(67), COMMISSION(49), MANUAL_CPA(74), MANUAL_CPC(24), MANUAL_CPM(25), MANUAL_CPV(37), MAXIMIZE_CONVERSIONS(30), MAXIMIZE_CONVERSION_VALUE(31), TARGET_CPA(26), TARGET_IMPRESSION_SHARE(48), TARGET_ROAS(29), TARGET_SPEND(27), PERCENT_CPC(34), TARGET_CPM(41), CAMPAIGNBIDDINGSTRATEGY_NOT_SET(0); private final int value; private CampaignBiddingStrategyCase(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 CampaignBiddingStrategyCase valueOf(int value) { return forNumber(value); } public static CampaignBiddingStrategyCase forNumber(int value) { switch (value) { case 67: return BIDDING_STRATEGY; case 49: return COMMISSION; case 74: return MANUAL_CPA; case 24: return MANUAL_CPC; case 25: return MANUAL_CPM; case 37: return MANUAL_CPV; case 30: return MAXIMIZE_CONVERSIONS; case 31: return MAXIMIZE_CONVERSION_VALUE; case 26: return TARGET_CPA; case 48: return TARGET_IMPRESSION_SHARE; case 29: return TARGET_ROAS; case 27: return TARGET_SPEND; case 34: return PERCENT_CPC; case 41: return TARGET_CPM; case 0: return CAMPAIGNBIDDINGSTRATEGY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CampaignBiddingStrategyCase getCampaignBiddingStrategyCase() { return CampaignBiddingStrategyCase.forNumber( campaignBiddingStrategyCase_); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Immutable. The resource name of the campaign.
   * Campaign resource names have the form:
   *
   * `customers/{customer_id}/campaigns/{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 campaign.
   * Campaign resource names have the form:
   *
   * `customers/{customer_id}/campaigns/{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 ID_FIELD_NUMBER = 59; private long id_ = 0L; /** *
   * Output only. The ID of the campaign.
   * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The ID of the campaign.
   * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 58; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * The name of the campaign.
   *
   * This field is required and should not be empty when creating new
   * campaigns.
   *
   * It must not contain any null (code point 0x0), NL line feed
   * (code point 0xA) or carriage return (code point 0xD) characters.
   * 
* * optional string name = 58; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The name of the campaign.
   *
   * This field is required and should not be empty when creating new
   * campaigns.
   *
   * It must not contain any null (code point 0x0), NL line feed
   * (code point 0xA) or carriage return (code point 0xD) characters.
   * 
* * optional string name = 58; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * The name of the campaign.
   *
   * This field is required and should not be empty when creating new
   * campaigns.
   *
   * It must not contain any null (code point 0x0), NL line feed
   * (code point 0xA) or carriage return (code point 0xD) characters.
   * 
* * optional string name = 58; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIMARY_STATUS_FIELD_NUMBER = 81; private int primaryStatus_ = 0; /** *
   * Output only. The primary status of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. Modification to the campaign and its related entities might take
   * a while to be reflected in this status.
   * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for primaryStatus. */ @java.lang.Override public int getPrimaryStatusValue() { return primaryStatus_; } /** *
   * Output only. The primary status of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. Modification to the campaign and its related entities might take
   * a while to be reflected in this status.
   * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The primaryStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus getPrimaryStatus() { com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus result = com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.forNumber(primaryStatus_); return result == null ? com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.UNRECOGNIZED : result; } public static final int PRIMARY_STATUS_REASONS_FIELD_NUMBER = 82; @SuppressWarnings("serial") private java.util.List primaryStatusReasons_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason> primaryStatusReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason>() { public com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason convert(java.lang.Integer from) { com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason result = com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason.forNumber(from); return result == null ? com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason.UNRECOGNIZED : result; } }; /** *
   * Output only. The primary status reasons of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. These reasons are aggregated to determine an overall
   * CampaignPrimaryStatus.
   * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the primaryStatusReasons. */ @java.lang.Override public java.util.List getPrimaryStatusReasonsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason>(primaryStatusReasons_, primaryStatusReasons_converter_); } /** *
   * Output only. The primary status reasons of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. These reasons are aggregated to determine an overall
   * CampaignPrimaryStatus.
   * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of primaryStatusReasons. */ @java.lang.Override public int getPrimaryStatusReasonsCount() { return primaryStatusReasons_.size(); } /** *
   * Output only. The primary status reasons of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. These reasons are aggregated to determine an overall
   * CampaignPrimaryStatus.
   * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The primaryStatusReasons at the given index. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason getPrimaryStatusReasons(int index) { return primaryStatusReasons_converter_.convert(primaryStatusReasons_.get(index)); } /** *
   * Output only. The primary status reasons of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. These reasons are aggregated to determine an overall
   * CampaignPrimaryStatus.
   * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for primaryStatusReasons. */ @java.lang.Override public java.util.List getPrimaryStatusReasonsValueList() { return primaryStatusReasons_; } /** *
   * Output only. The primary status reasons of the campaign.
   *
   * Provides insight into why a campaign is not serving or not serving
   * optimally. These reasons are aggregated to determine an overall
   * CampaignPrimaryStatus.
   * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryStatusReasons at the given index. */ @java.lang.Override public int getPrimaryStatusReasonsValue(int index) { return primaryStatusReasons_.get(index); } private int primaryStatusReasonsMemoizedSerializedSize; public static final int STATUS_FIELD_NUMBER = 5; private int status_ = 0; /** *
   * The status of the campaign.
   *
   * When a new campaign is added, the status defaults to ENABLED.
   * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
   * The status of the campaign.
   *
   * When a new campaign is added, the status defaults to ENABLED.
   * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus getStatus() { com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result; } public static final int SERVING_STATUS_FIELD_NUMBER = 21; private int servingStatus_ = 0; /** *
   * Output only. The ad serving status of the campaign.
   * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for servingStatus. */ @java.lang.Override public int getServingStatusValue() { return servingStatus_; } /** *
   * Output only. The ad serving status of the campaign.
   * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The servingStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() { com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.forNumber(servingStatus_); return result == null ? com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result; } public static final int BIDDING_STRATEGY_SYSTEM_STATUS_FIELD_NUMBER = 78; private int biddingStrategySystemStatus_ = 0; /** *
   * Output only. The system status of the campaign's bidding strategy.
   * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for biddingStrategySystemStatus. */ @java.lang.Override public int getBiddingStrategySystemStatusValue() { return biddingStrategySystemStatus_; } /** *
   * Output only. The system status of the campaign's bidding strategy.
   * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The biddingStrategySystemStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus getBiddingStrategySystemStatus() { com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus result = com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.forNumber(biddingStrategySystemStatus_); return result == null ? com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.UNRECOGNIZED : result; } public static final int AD_SERVING_OPTIMIZATION_STATUS_FIELD_NUMBER = 8; private int adServingOptimizationStatus_ = 0; /** *
   * The ad serving optimization status of the campaign.
   * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @return The enum numeric value on the wire for adServingOptimizationStatus. */ @java.lang.Override public int getAdServingOptimizationStatusValue() { return adServingOptimizationStatus_; } /** *
   * The ad serving optimization status of the campaign.
   * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @return The adServingOptimizationStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() { com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.forNumber(adServingOptimizationStatus_); return result == null ? com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result; } public static final int ADVERTISING_CHANNEL_TYPE_FIELD_NUMBER = 9; private int advertisingChannelType_ = 0; /** *
   * Immutable. The primary serving target for ads within the campaign.
   * The targeting options can be refined in `network_settings`.
   *
   * This field is required and should not be empty when creating new
   * campaigns.
   *
   * Can be set only when creating campaigns.
   * After the campaign is created, the field can not be changed.
   * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for advertisingChannelType. */ @java.lang.Override public int getAdvertisingChannelTypeValue() { return advertisingChannelType_; } /** *
   * Immutable. The primary serving target for ads within the campaign.
   * The targeting options can be refined in `network_settings`.
   *
   * This field is required and should not be empty when creating new
   * campaigns.
   *
   * Can be set only when creating campaigns.
   * After the campaign is created, the field can not be changed.
   * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The advertisingChannelType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() { com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.forNumber(advertisingChannelType_); return result == null ? com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNRECOGNIZED : result; } public static final int ADVERTISING_CHANNEL_SUB_TYPE_FIELD_NUMBER = 10; private int advertisingChannelSubType_ = 0; /** *
   * Immutable. Optional refinement to `advertising_channel_type`.
   * Must be a valid sub-type of the parent channel type.
   *
   * Can be set only when creating campaigns.
   * After campaign is created, the field can not be changed.
   * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for advertisingChannelSubType. */ @java.lang.Override public int getAdvertisingChannelSubTypeValue() { return advertisingChannelSubType_; } /** *
   * Immutable. Optional refinement to `advertising_channel_type`.
   * Must be a valid sub-type of the parent channel type.
   *
   * Can be set only when creating campaigns.
   * After campaign is created, the field can not be changed.
   * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The advertisingChannelSubType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() { com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.forNumber(advertisingChannelSubType_); return result == null ? com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNRECOGNIZED : result; } public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 60; @SuppressWarnings("serial") private volatile java.lang.Object trackingUrlTemplate_ = ""; /** *
   * The URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 60; * @return Whether the trackingUrlTemplate field is set. */ @java.lang.Override public boolean hasTrackingUrlTemplate() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 60; * @return The trackingUrlTemplate. */ @java.lang.Override public java.lang.String getTrackingUrlTemplate() { java.lang.Object ref = trackingUrlTemplate_; 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(); trackingUrlTemplate_ = s; return s; } } /** *
   * The URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 60; * @return The bytes for trackingUrlTemplate. */ @java.lang.Override public com.google.protobuf.ByteString getTrackingUrlTemplateBytes() { java.lang.Object ref = trackingUrlTemplate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrlTemplate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List urlCustomParameters_; /** *
   * The list of mappings used to substitute custom parameter tags in a
   * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
   * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ @java.lang.Override public java.util.List getUrlCustomParametersList() { return urlCustomParameters_; } /** *
   * The list of mappings used to substitute custom parameter tags in a
   * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
   * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ @java.lang.Override public java.util.List getUrlCustomParametersOrBuilderList() { return urlCustomParameters_; } /** *
   * The list of mappings used to substitute custom parameter tags in a
   * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
   * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ @java.lang.Override public int getUrlCustomParametersCount() { return urlCustomParameters_.size(); } /** *
   * The list of mappings used to substitute custom parameter tags in a
   * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
   * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ @java.lang.Override public com.google.ads.googleads.v16.common.CustomParameter getUrlCustomParameters(int index) { return urlCustomParameters_.get(index); } /** *
   * The list of mappings used to substitute custom parameter tags in a
   * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
   * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ @java.lang.Override public com.google.ads.googleads.v16.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder( int index) { return urlCustomParameters_.get(index); } public static final int LOCAL_SERVICES_CAMPAIGN_SETTINGS_FIELD_NUMBER = 75; private com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings localServicesCampaignSettings_; /** *
   * The Local Services Campaign related settings.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; * @return Whether the localServicesCampaignSettings field is set. */ @java.lang.Override public boolean hasLocalServicesCampaignSettings() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The Local Services Campaign related settings.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; * @return The localServicesCampaignSettings. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings getLocalServicesCampaignSettings() { return localServicesCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance() : localServicesCampaignSettings_; } /** *
   * The Local Services Campaign related settings.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder getLocalServicesCampaignSettingsOrBuilder() { return localServicesCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance() : localServicesCampaignSettings_; } public static final int TRAVEL_CAMPAIGN_SETTINGS_FIELD_NUMBER = 85; private com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travelCampaignSettings_; /** *
   * Settings for Travel campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; * @return Whether the travelCampaignSettings field is set. */ @java.lang.Override public boolean hasTravelCampaignSettings() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Settings for Travel campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; * @return The travelCampaignSettings. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings getTravelCampaignSettings() { return travelCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance() : travelCampaignSettings_; } /** *
   * Settings for Travel campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder getTravelCampaignSettingsOrBuilder() { return travelCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance() : travelCampaignSettings_; } public static final int DISCOVERY_CAMPAIGN_SETTINGS_FIELD_NUMBER = 87; private com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discoveryCampaignSettings_; /** *
   * Settings for Discovery campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; * @return Whether the discoveryCampaignSettings field is set. */ @java.lang.Override public boolean hasDiscoveryCampaignSettings() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Settings for Discovery campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; * @return The discoveryCampaignSettings. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings getDiscoveryCampaignSettings() { return discoveryCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance() : discoveryCampaignSettings_; } /** *
   * Settings for Discovery campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder getDiscoveryCampaignSettingsOrBuilder() { return discoveryCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance() : discoveryCampaignSettings_; } public static final int REAL_TIME_BIDDING_SETTING_FIELD_NUMBER = 39; private com.google.ads.googleads.v16.common.RealTimeBiddingSetting realTimeBiddingSetting_; /** *
   * Settings for Real-Time Bidding, a feature only available for campaigns
   * targeting the Ad Exchange network.
   * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; * @return Whether the realTimeBiddingSetting field is set. */ @java.lang.Override public boolean hasRealTimeBiddingSetting() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Settings for Real-Time Bidding, a feature only available for campaigns
   * targeting the Ad Exchange network.
   * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; * @return The realTimeBiddingSetting. */ @java.lang.Override public com.google.ads.googleads.v16.common.RealTimeBiddingSetting getRealTimeBiddingSetting() { return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v16.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } /** *
   * Settings for Real-Time Bidding, a feature only available for campaigns
   * targeting the Ad Exchange network.
   * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ @java.lang.Override public com.google.ads.googleads.v16.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() { return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v16.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } public static final int NETWORK_SETTINGS_FIELD_NUMBER = 14; private com.google.ads.googleads.v16.resources.Campaign.NetworkSettings networkSettings_; /** *
   * The network settings for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; * @return Whether the networkSettings field is set. */ @java.lang.Override public boolean hasNetworkSettings() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * The network settings for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; * @return The networkSettings. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings getNetworkSettings() { return networkSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } /** *
   * The network settings for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { return networkSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } public static final int HOTEL_SETTING_FIELD_NUMBER = 32; private com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotelSetting_; /** *
   * Immutable. The hotel setting for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelSetting field is set. */ @java.lang.Override public boolean hasHotelSetting() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Immutable. The hotel setting for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo getHotelSetting() { return hotelSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; } /** *
   * Immutable. The hotel setting for the campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() { return hotelSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; } public static final int DYNAMIC_SEARCH_ADS_SETTING_FIELD_NUMBER = 33; private com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_; /** *
   * The setting for controlling Dynamic Search Ads (DSA).
   * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; * @return Whether the dynamicSearchAdsSetting field is set. */ @java.lang.Override public boolean hasDynamicSearchAdsSetting() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * The setting for controlling Dynamic Search Ads (DSA).
   * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; * @return The dynamicSearchAdsSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() { return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } /** *
   * The setting for controlling Dynamic Search Ads (DSA).
   * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() { return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } public static final int SHOPPING_SETTING_FIELD_NUMBER = 36; private com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting shoppingSetting_; /** *
   * The setting for controlling Shopping campaigns.
   * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; * @return Whether the shoppingSetting field is set. */ @java.lang.Override public boolean hasShoppingSetting() { return ((bitField0_ & 0x00000400) != 0); } /** *
   * The setting for controlling Shopping campaigns.
   * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; * @return The shoppingSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting getShoppingSetting() { return shoppingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } /** *
   * The setting for controlling Shopping campaigns.
   * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() { return shoppingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } public static final int TARGETING_SETTING_FIELD_NUMBER = 43; private com.google.ads.googleads.v16.common.TargetingSetting targetingSetting_; /** *
   * Setting for targeting related features.
   * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; * @return Whether the targetingSetting field is set. */ @java.lang.Override public boolean hasTargetingSetting() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * Setting for targeting related features.
   * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; * @return The targetingSetting. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetingSetting getTargetingSetting() { return targetingSetting_ == null ? com.google.ads.googleads.v16.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } /** *
   * Setting for targeting related features.
   * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { return targetingSetting_ == null ? com.google.ads.googleads.v16.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } public static final int AUDIENCE_SETTING_FIELD_NUMBER = 73; private com.google.ads.googleads.v16.resources.Campaign.AudienceSetting audienceSetting_; /** *
   * Immutable. Setting for audience related features.
   * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the audienceSetting field is set. */ @java.lang.Override public boolean hasAudienceSetting() { return ((bitField0_ & 0x00001000) != 0); } /** *
   * Immutable. Setting for audience related features.
   * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; * @return The audienceSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting getAudienceSetting() { return audienceSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_; } /** *
   * Immutable. Setting for audience related features.
   * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder getAudienceSettingOrBuilder() { return audienceSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_; } public static final int GEO_TARGET_TYPE_SETTING_FIELD_NUMBER = 47; private com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geoTargetTypeSetting_; /** *
   * The setting for ads geotargeting.
   * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; * @return Whether the geoTargetTypeSetting field is set. */ @java.lang.Override public boolean hasGeoTargetTypeSetting() { return ((bitField0_ & 0x00002000) != 0); } /** *
   * The setting for ads geotargeting.
   * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; * @return The geoTargetTypeSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting getGeoTargetTypeSetting() { return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_; } /** *
   * The setting for ads geotargeting.
   * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder getGeoTargetTypeSettingOrBuilder() { return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_; } public static final int LOCAL_CAMPAIGN_SETTING_FIELD_NUMBER = 50; private com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting localCampaignSetting_; /** *
   * The setting for local campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; * @return Whether the localCampaignSetting field is set. */ @java.lang.Override public boolean hasLocalCampaignSetting() { return ((bitField0_ & 0x00004000) != 0); } /** *
   * The setting for local campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; * @return The localCampaignSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting getLocalCampaignSetting() { return localCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_; } /** *
   * The setting for local campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder getLocalCampaignSettingOrBuilder() { return localCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_; } public static final int APP_CAMPAIGN_SETTING_FIELD_NUMBER = 51; private com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting appCampaignSetting_; /** *
   * The setting related to App Campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; * @return Whether the appCampaignSetting field is set. */ @java.lang.Override public boolean hasAppCampaignSetting() { return ((bitField0_ & 0x00008000) != 0); } /** *
   * The setting related to App Campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; * @return The appCampaignSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting getAppCampaignSetting() { return appCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_; } /** *
   * The setting related to App Campaign.
   * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder getAppCampaignSettingOrBuilder() { return appCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_; } public static final int LABELS_FIELD_NUMBER = 61; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Output only. The resource names of labels attached to this campaign.
   * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the labels. */ public com.google.protobuf.ProtocolStringList getLabelsList() { return labels_; } /** *
   * Output only. The resource names of labels attached to this campaign.
   * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** *
   * Output only. The resource names of labels attached to this campaign.
   * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The labels at the given index. */ public java.lang.String getLabels(int index) { return labels_.get(index); } /** *
   * Output only. The resource names of labels attached to this campaign.
   * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the labels at the given index. */ public com.google.protobuf.ByteString getLabelsBytes(int index) { return labels_.getByteString(index); } public static final int EXPERIMENT_TYPE_FIELD_NUMBER = 17; private int experimentType_ = 0; /** *
   * Output only. The type of campaign: normal, draft, or experiment.
   * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for experimentType. */ @java.lang.Override public int getExperimentTypeValue() { return experimentType_; } /** *
   * Output only. The type of campaign: normal, draft, or experiment.
   * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The experimentType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType getExperimentType() { com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType result = com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.forNumber(experimentType_); return result == null ? com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNRECOGNIZED : result; } public static final int BASE_CAMPAIGN_FIELD_NUMBER = 56; @SuppressWarnings("serial") private volatile java.lang.Object baseCampaign_ = ""; /** *
   * Output only. The resource name of the base campaign of a draft or
   * experiment campaign. For base campaigns, this is equal to `resource_name`.
   *
   * This field is read-only.
   * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the baseCampaign field is set. */ @java.lang.Override public boolean hasBaseCampaign() { return ((bitField0_ & 0x00010000) != 0); } /** *
   * Output only. The resource name of the base campaign of a draft or
   * experiment campaign. For base campaigns, this is equal to `resource_name`.
   *
   * This field is read-only.
   * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The baseCampaign. */ @java.lang.Override public java.lang.String getBaseCampaign() { java.lang.Object ref = baseCampaign_; 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(); baseCampaign_ = s; return s; } } /** *
   * Output only. The resource name of the base campaign of a draft or
   * experiment campaign. For base campaigns, this is equal to `resource_name`.
   *
   * This field is read-only.
   * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for baseCampaign. */ @java.lang.Override public com.google.protobuf.ByteString getBaseCampaignBytes() { java.lang.Object ref = baseCampaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 62; @SuppressWarnings("serial") private volatile java.lang.Object campaignBudget_ = ""; /** *
   * The budget of the campaign.
   * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return Whether the campaignBudget field is set. */ @java.lang.Override public boolean hasCampaignBudget() { return ((bitField0_ & 0x00020000) != 0); } /** *
   * The budget of the campaign.
   * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return The campaignBudget. */ @java.lang.Override public java.lang.String getCampaignBudget() { java.lang.Object ref = campaignBudget_; 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(); campaignBudget_ = s; return s; } } /** *
   * The budget of the campaign.
   * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return The bytes for campaignBudget. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignBudgetBytes() { java.lang.Object ref = campaignBudget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BIDDING_STRATEGY_TYPE_FIELD_NUMBER = 22; private int biddingStrategyType_ = 0; /** *
   * Output only. The type of bidding strategy.
   *
   * A bidding strategy can be created by setting either the bidding scheme to
   * create a standard bidding strategy or the `bidding_strategy` field to
   * create a portfolio bidding strategy.
   *
   * This field is read-only.
   * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for biddingStrategyType. */ @java.lang.Override public int getBiddingStrategyTypeValue() { return biddingStrategyType_; } /** *
   * Output only. The type of bidding strategy.
   *
   * A bidding strategy can be created by setting either the bidding scheme to
   * create a standard bidding strategy or the `bidding_strategy` field to
   * create a portfolio bidding strategy.
   *
   * This field is read-only.
   * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The biddingStrategyType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() { com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.forNumber(biddingStrategyType_); return result == null ? com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNRECOGNIZED : result; } public static final int ACCESSIBLE_BIDDING_STRATEGY_FIELD_NUMBER = 71; @SuppressWarnings("serial") private volatile java.lang.Object accessibleBiddingStrategy_ = ""; /** *
   * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
   * of the unrestricted attributes of the attached portfolio bidding strategy
   * identified by 'bidding_strategy'. Empty, if the campaign does not use a
   * portfolio strategy. Unrestricted strategy attributes are available to all
   * customers with whom the strategy is shared and are read from the
   * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
   * only available to the owner customer of the strategy and their managers.
   * Restricted attributes can only be read from the BiddingStrategy resource.
   * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The accessibleBiddingStrategy. */ @java.lang.Override public java.lang.String getAccessibleBiddingStrategy() { java.lang.Object ref = accessibleBiddingStrategy_; 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(); accessibleBiddingStrategy_ = s; return s; } } /** *
   * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
   * of the unrestricted attributes of the attached portfolio bidding strategy
   * identified by 'bidding_strategy'. Empty, if the campaign does not use a
   * portfolio strategy. Unrestricted strategy attributes are available to all
   * customers with whom the strategy is shared and are read from the
   * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
   * only available to the owner customer of the strategy and their managers.
   * Restricted attributes can only be read from the BiddingStrategy resource.
   * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for accessibleBiddingStrategy. */ @java.lang.Override public com.google.protobuf.ByteString getAccessibleBiddingStrategyBytes() { java.lang.Object ref = accessibleBiddingStrategy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessibleBiddingStrategy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_DATE_FIELD_NUMBER = 63; @SuppressWarnings("serial") private volatile java.lang.Object startDate_ = ""; /** *
   * The date when campaign started in serving customer's timezone in YYYY-MM-DD
   * format.
   * 
* * optional string start_date = 63; * @return Whether the startDate field is set. */ @java.lang.Override public boolean hasStartDate() { return ((bitField0_ & 0x00040000) != 0); } /** *
   * The date when campaign started in serving customer's timezone in YYYY-MM-DD
   * format.
   * 
* * optional string start_date = 63; * @return The startDate. */ @java.lang.Override public java.lang.String getStartDate() { java.lang.Object ref = startDate_; 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(); startDate_ = s; return s; } } /** *
   * The date when campaign started in serving customer's timezone in YYYY-MM-DD
   * format.
   * 
* * optional string start_date = 63; * @return The bytes for startDate. */ @java.lang.Override public com.google.protobuf.ByteString getStartDateBytes() { java.lang.Object ref = startDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_GROUP_FIELD_NUMBER = 76; @SuppressWarnings("serial") private volatile java.lang.Object campaignGroup_ = ""; /** *
   * The campaign group this campaign belongs to.
   * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return Whether the campaignGroup field is set. */ @java.lang.Override public boolean hasCampaignGroup() { return ((bitField0_ & 0x00080000) != 0); } /** *
   * The campaign group this campaign belongs to.
   * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return The campaignGroup. */ @java.lang.Override public java.lang.String getCampaignGroup() { java.lang.Object ref = campaignGroup_; 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(); campaignGroup_ = s; return s; } } /** *
   * The campaign group this campaign belongs to.
   * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return The bytes for campaignGroup. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignGroupBytes() { java.lang.Object ref = campaignGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int END_DATE_FIELD_NUMBER = 64; @SuppressWarnings("serial") private volatile java.lang.Object endDate_ = ""; /** *
   * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
   * format. On create, defaults to 2037-12-30, which means the campaign will
   * run indefinitely. To set an existing campaign to run indefinitely, set this
   * field to 2037-12-30.
   * 
* * optional string end_date = 64; * @return Whether the endDate field is set. */ @java.lang.Override public boolean hasEndDate() { return ((bitField0_ & 0x00100000) != 0); } /** *
   * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
   * format. On create, defaults to 2037-12-30, which means the campaign will
   * run indefinitely. To set an existing campaign to run indefinitely, set this
   * field to 2037-12-30.
   * 
* * optional string end_date = 64; * @return The endDate. */ @java.lang.Override public java.lang.String getEndDate() { java.lang.Object ref = endDate_; 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(); endDate_ = s; return s; } } /** *
   * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
   * format. On create, defaults to 2037-12-30, which means the campaign will
   * run indefinitely. To set an existing campaign to run indefinitely, set this
   * field to 2037-12-30.
   * 
* * optional string end_date = 64; * @return The bytes for endDate. */ @java.lang.Override public com.google.protobuf.ByteString getEndDateBytes() { java.lang.Object ref = endDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINAL_URL_SUFFIX_FIELD_NUMBER = 65; @SuppressWarnings("serial") private volatile java.lang.Object finalUrlSuffix_ = ""; /** *
   * Suffix used to append query parameters to landing pages that are served
   * with parallel tracking.
   * 
* * optional string final_url_suffix = 65; * @return Whether the finalUrlSuffix field is set. */ @java.lang.Override public boolean hasFinalUrlSuffix() { return ((bitField0_ & 0x00200000) != 0); } /** *
   * Suffix used to append query parameters to landing pages that are served
   * with parallel tracking.
   * 
* * optional string final_url_suffix = 65; * @return The finalUrlSuffix. */ @java.lang.Override public java.lang.String getFinalUrlSuffix() { java.lang.Object ref = finalUrlSuffix_; 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(); finalUrlSuffix_ = s; return s; } } /** *
   * Suffix used to append query parameters to landing pages that are served
   * with parallel tracking.
   * 
* * optional string final_url_suffix = 65; * @return The bytes for finalUrlSuffix. */ @java.lang.Override public com.google.protobuf.ByteString getFinalUrlSuffixBytes() { java.lang.Object ref = finalUrlSuffix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalUrlSuffix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FREQUENCY_CAPS_FIELD_NUMBER = 40; @SuppressWarnings("serial") private java.util.List frequencyCaps_; /** *
   * A list that limits how often each user will see this campaign's ads.
   * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ @java.lang.Override public java.util.List getFrequencyCapsList() { return frequencyCaps_; } /** *
   * A list that limits how often each user will see this campaign's ads.
   * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ @java.lang.Override public java.util.List getFrequencyCapsOrBuilderList() { return frequencyCaps_; } /** *
   * A list that limits how often each user will see this campaign's ads.
   * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ @java.lang.Override public int getFrequencyCapsCount() { return frequencyCaps_.size(); } /** *
   * A list that limits how often each user will see this campaign's ads.
   * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ @java.lang.Override public com.google.ads.googleads.v16.common.FrequencyCapEntry getFrequencyCaps(int index) { return frequencyCaps_.get(index); } /** *
   * A list that limits how often each user will see this campaign's ads.
   * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ @java.lang.Override public com.google.ads.googleads.v16.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder( int index) { return frequencyCaps_.get(index); } public static final int VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER = 42; private int videoBrandSafetySuitability_ = 0; /** *
   * Output only. Brand Safety setting at the individual campaign level. Allows
   * for selecting an inventory type to show your ads on content that is the
   * right fit for your brand. See
   * https://support.google.com/google-ads/answer/7515513.
   * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for videoBrandSafetySuitability. */ @java.lang.Override public int getVideoBrandSafetySuitabilityValue() { return videoBrandSafetySuitability_; } /** *
   * Output only. Brand Safety setting at the individual campaign level. Allows
   * for selecting an inventory type to show your ads on content that is the
   * right fit for your brand. See
   * https://support.google.com/google-ads/answer/7515513.
   * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The videoBrandSafetySuitability. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() { com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.forNumber(videoBrandSafetySuitability_); return result == null ? com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result; } public static final int VANITY_PHARMA_FIELD_NUMBER = 44; private com.google.ads.googleads.v16.resources.Campaign.VanityPharma vanityPharma_; /** *
   * Describes how unbranded pharma ads will be displayed.
   * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; * @return Whether the vanityPharma field is set. */ @java.lang.Override public boolean hasVanityPharma() { return ((bitField0_ & 0x00400000) != 0); } /** *
   * Describes how unbranded pharma ads will be displayed.
   * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; * @return The vanityPharma. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.VanityPharma getVanityPharma() { return vanityPharma_ == null ? com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } /** *
   * Describes how unbranded pharma ads will be displayed.
   * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() { return vanityPharma_ == null ? com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } public static final int SELECTIVE_OPTIMIZATION_FIELD_NUMBER = 45; private com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selectiveOptimization_; /** *
   * Selective optimization setting for this campaign, which includes a set of
   * conversion actions to optimize this campaign towards.
   * This feature only applies to app campaigns that use MULTI_CHANNEL as
   * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
   * AdvertisingChannelSubType.
   * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; * @return Whether the selectiveOptimization field is set. */ @java.lang.Override public boolean hasSelectiveOptimization() { return ((bitField0_ & 0x00800000) != 0); } /** *
   * Selective optimization setting for this campaign, which includes a set of
   * conversion actions to optimize this campaign towards.
   * This feature only applies to app campaigns that use MULTI_CHANNEL as
   * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
   * AdvertisingChannelSubType.
   * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; * @return The selectiveOptimization. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization getSelectiveOptimization() { return selectiveOptimization_ == null ? com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } /** *
   * Selective optimization setting for this campaign, which includes a set of
   * conversion actions to optimize this campaign towards.
   * This feature only applies to app campaigns that use MULTI_CHANNEL as
   * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
   * AdvertisingChannelSubType.
   * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() { return selectiveOptimization_ == null ? com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } public static final int OPTIMIZATION_GOAL_SETTING_FIELD_NUMBER = 54; private com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimizationGoalSetting_; /** *
   * Optimization goal setting for this campaign, which includes a set of
   * optimization goal types.
   * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; * @return Whether the optimizationGoalSetting field is set. */ @java.lang.Override public boolean hasOptimizationGoalSetting() { return ((bitField0_ & 0x01000000) != 0); } /** *
   * Optimization goal setting for this campaign, which includes a set of
   * optimization goal types.
   * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; * @return The optimizationGoalSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting getOptimizationGoalSetting() { return optimizationGoalSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_; } /** *
   * Optimization goal setting for this campaign, which includes a set of
   * optimization goal types.
   * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder getOptimizationGoalSettingOrBuilder() { return optimizationGoalSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_; } public static final int TRACKING_SETTING_FIELD_NUMBER = 46; private com.google.ads.googleads.v16.resources.Campaign.TrackingSetting trackingSetting_; /** *
   * Output only. Campaign-level settings for tracking information.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the trackingSetting field is set. */ @java.lang.Override public boolean hasTrackingSetting() { return ((bitField0_ & 0x02000000) != 0); } /** *
   * Output only. Campaign-level settings for tracking information.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The trackingSetting. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting getTrackingSetting() { return trackingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; } /** *
   * Output only. Campaign-level settings for tracking information.
   * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() { return trackingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; } public static final int PAYMENT_MODE_FIELD_NUMBER = 52; private int paymentMode_ = 0; /** *
   * Payment mode for the campaign.
   * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @return The enum numeric value on the wire for paymentMode. */ @java.lang.Override public int getPaymentModeValue() { return paymentMode_; } /** *
   * Payment mode for the campaign.
   * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @return The paymentMode. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode getPaymentMode() { com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode result = com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.forNumber(paymentMode_); return result == null ? com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.UNRECOGNIZED : result; } public static final int OPTIMIZATION_SCORE_FIELD_NUMBER = 66; private double optimizationScore_ = 0D; /** *
   * Output only. Optimization score of the campaign.
   *
   * Optimization score is an estimate of how well a campaign is set to perform.
   * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
   * campaign is performing at full potential. This field is null for unscored
   * campaigns.
   *
   * See "About optimization score" at
   * https://support.google.com/google-ads/answer/9061546.
   *
   * This field is read-only.
   * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the optimizationScore field is set. */ @java.lang.Override public boolean hasOptimizationScore() { return ((bitField0_ & 0x04000000) != 0); } /** *
   * Output only. Optimization score of the campaign.
   *
   * Optimization score is an estimate of how well a campaign is set to perform.
   * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
   * campaign is performing at full potential. This field is null for unscored
   * campaigns.
   *
   * See "About optimization score" at
   * https://support.google.com/google-ads/answer/9061546.
   *
   * This field is read-only.
   * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The optimizationScore. */ @java.lang.Override public double getOptimizationScore() { return optimizationScore_; } public static final int EXCLUDED_PARENT_ASSET_FIELD_TYPES_FIELD_NUMBER = 69; @SuppressWarnings("serial") private java.util.List excludedParentAssetFieldTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType> excludedParentAssetFieldTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType>() { public com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType convert(java.lang.Integer from) { com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType result = com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType.forNumber(from); return result == null ? com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType.UNRECOGNIZED : result; } }; /** *
   * The asset field types that should be excluded from this campaign. Asset
   * links with these field types will not be inherited by this campaign from
   * the upper level.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return A list containing the excludedParentAssetFieldTypes. */ @java.lang.Override public java.util.List getExcludedParentAssetFieldTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType>(excludedParentAssetFieldTypes_, excludedParentAssetFieldTypes_converter_); } /** *
   * The asset field types that should be excluded from this campaign. Asset
   * links with these field types will not be inherited by this campaign from
   * the upper level.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return The count of excludedParentAssetFieldTypes. */ @java.lang.Override public int getExcludedParentAssetFieldTypesCount() { return excludedParentAssetFieldTypes_.size(); } /** *
   * The asset field types that should be excluded from this campaign. Asset
   * links with these field types will not be inherited by this campaign from
   * the upper level.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index of the element to return. * @return The excludedParentAssetFieldTypes at the given index. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType getExcludedParentAssetFieldTypes(int index) { return excludedParentAssetFieldTypes_converter_.convert(excludedParentAssetFieldTypes_.get(index)); } /** *
   * The asset field types that should be excluded from this campaign. Asset
   * links with these field types will not be inherited by this campaign from
   * the upper level.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return A list containing the enum numeric values on the wire for excludedParentAssetFieldTypes. */ @java.lang.Override public java.util.List getExcludedParentAssetFieldTypesValueList() { return excludedParentAssetFieldTypes_; } /** *
   * The asset field types that should be excluded from this campaign. Asset
   * links with these field types will not be inherited by this campaign from
   * the upper level.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index of the value to return. * @return The enum numeric value on the wire of excludedParentAssetFieldTypes at the given index. */ @java.lang.Override public int getExcludedParentAssetFieldTypesValue(int index) { return excludedParentAssetFieldTypes_.get(index); } private int excludedParentAssetFieldTypesMemoizedSerializedSize; public static final int EXCLUDED_PARENT_ASSET_SET_TYPES_FIELD_NUMBER = 80; @SuppressWarnings("serial") private java.util.List excludedParentAssetSetTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType> excludedParentAssetSetTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType>() { public com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType convert(java.lang.Integer from) { com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType result = com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType.forNumber(from); return result == null ? com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType.UNRECOGNIZED : result; } }; /** *
   * The asset set types that should be excluded from this campaign. Asset set
   * links with these types will not be inherited by this campaign from
   * the upper level.
   * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
   * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
   * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
   * location group asset sets are not allowed to be linked to this campaign,
   * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
   * will not be served under this campaign.
   * Only LOCATION_SYNC is currently supported.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return A list containing the excludedParentAssetSetTypes. */ @java.lang.Override public java.util.List getExcludedParentAssetSetTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType>(excludedParentAssetSetTypes_, excludedParentAssetSetTypes_converter_); } /** *
   * The asset set types that should be excluded from this campaign. Asset set
   * links with these types will not be inherited by this campaign from
   * the upper level.
   * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
   * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
   * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
   * location group asset sets are not allowed to be linked to this campaign,
   * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
   * will not be served under this campaign.
   * Only LOCATION_SYNC is currently supported.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return The count of excludedParentAssetSetTypes. */ @java.lang.Override public int getExcludedParentAssetSetTypesCount() { return excludedParentAssetSetTypes_.size(); } /** *
   * The asset set types that should be excluded from this campaign. Asset set
   * links with these types will not be inherited by this campaign from
   * the upper level.
   * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
   * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
   * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
   * location group asset sets are not allowed to be linked to this campaign,
   * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
   * will not be served under this campaign.
   * Only LOCATION_SYNC is currently supported.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index of the element to return. * @return The excludedParentAssetSetTypes at the given index. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType getExcludedParentAssetSetTypes(int index) { return excludedParentAssetSetTypes_converter_.convert(excludedParentAssetSetTypes_.get(index)); } /** *
   * The asset set types that should be excluded from this campaign. Asset set
   * links with these types will not be inherited by this campaign from
   * the upper level.
   * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
   * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
   * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
   * location group asset sets are not allowed to be linked to this campaign,
   * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
   * will not be served under this campaign.
   * Only LOCATION_SYNC is currently supported.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return A list containing the enum numeric values on the wire for excludedParentAssetSetTypes. */ @java.lang.Override public java.util.List getExcludedParentAssetSetTypesValueList() { return excludedParentAssetSetTypes_; } /** *
   * The asset set types that should be excluded from this campaign. Asset set
   * links with these types will not be inherited by this campaign from
   * the upper level.
   * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
   * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
   * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
   * location group asset sets are not allowed to be linked to this campaign,
   * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
   * will not be served under this campaign.
   * Only LOCATION_SYNC is currently supported.
   * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index of the value to return. * @return The enum numeric value on the wire of excludedParentAssetSetTypes at the given index. */ @java.lang.Override public int getExcludedParentAssetSetTypesValue(int index) { return excludedParentAssetSetTypes_.get(index); } private int excludedParentAssetSetTypesMemoizedSerializedSize; public static final int URL_EXPANSION_OPT_OUT_FIELD_NUMBER = 72; private boolean urlExpansionOptOut_ = false; /** *
   * Represents opting out of URL expansion to more targeted URLs. If opted out
   * (true), only the final URLs in the asset group or URLs specified in the
   * advertiser's Google Merchant Center or business data feeds are targeted.
   * If opted in (false), the entire domain will be targeted. This field can
   * only be set for Performance Max campaigns, where the default value is
   * false.
   * 
* * optional bool url_expansion_opt_out = 72; * @return Whether the urlExpansionOptOut field is set. */ @java.lang.Override public boolean hasUrlExpansionOptOut() { return ((bitField0_ & 0x08000000) != 0); } /** *
   * Represents opting out of URL expansion to more targeted URLs. If opted out
   * (true), only the final URLs in the asset group or URLs specified in the
   * advertiser's Google Merchant Center or business data feeds are targeted.
   * If opted in (false), the entire domain will be targeted. This field can
   * only be set for Performance Max campaigns, where the default value is
   * false.
   * 
* * optional bool url_expansion_opt_out = 72; * @return The urlExpansionOptOut. */ @java.lang.Override public boolean getUrlExpansionOptOut() { return urlExpansionOptOut_; } public static final int PERFORMANCE_MAX_UPGRADE_FIELD_NUMBER = 77; private com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performanceMaxUpgrade_; /** *
   * Output only. Information about campaigns being upgraded to Performance Max.
   * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxUpgrade field is set. */ @java.lang.Override public boolean hasPerformanceMaxUpgrade() { return ((bitField0_ & 0x10000000) != 0); } /** *
   * Output only. Information about campaigns being upgraded to Performance Max.
   * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxUpgrade. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade getPerformanceMaxUpgrade() { return performanceMaxUpgrade_ == null ? com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance() : performanceMaxUpgrade_; } /** *
   * Output only. Information about campaigns being upgraded to Performance Max.
   * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder getPerformanceMaxUpgradeOrBuilder() { return performanceMaxUpgrade_ == null ? com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance() : performanceMaxUpgrade_; } public static final int HOTEL_PROPERTY_ASSET_SET_FIELD_NUMBER = 83; @SuppressWarnings("serial") private volatile java.lang.Object hotelPropertyAssetSet_ = ""; /** *
   * Immutable. The set of hotel properties for Performance Max for travel goals
   * campaigns.
   * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return Whether the hotelPropertyAssetSet field is set. */ @java.lang.Override public boolean hasHotelPropertyAssetSet() { return ((bitField0_ & 0x20000000) != 0); } /** *
   * Immutable. The set of hotel properties for Performance Max for travel goals
   * campaigns.
   * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hotelPropertyAssetSet. */ @java.lang.Override public java.lang.String getHotelPropertyAssetSet() { java.lang.Object ref = hotelPropertyAssetSet_; 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(); hotelPropertyAssetSet_ = s; return s; } } /** *
   * Immutable. The set of hotel properties for Performance Max for travel goals
   * campaigns.
   * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hotelPropertyAssetSet. */ @java.lang.Override public com.google.protobuf.ByteString getHotelPropertyAssetSetBytes() { java.lang.Object ref = hotelPropertyAssetSet_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hotelPropertyAssetSet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LISTING_TYPE_FIELD_NUMBER = 86; private int listingType_ = 0; /** *
   * Immutable. Listing type of ads served for this campaign.
   * Field is restricted for usage with Performance Max campaigns.
   * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the listingType field is set. */ @java.lang.Override public boolean hasListingType() { return ((bitField0_ & 0x40000000) != 0); } /** *
   * Immutable. Listing type of ads served for this campaign.
   * Field is restricted for usage with Performance Max campaigns.
   * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for listingType. */ @java.lang.Override public int getListingTypeValue() { return listingType_; } /** *
   * Immutable. Listing type of ads served for this campaign.
   * Field is restricted for usage with Performance Max campaigns.
   * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return The listingType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType getListingType() { com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType result = com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType.forNumber(listingType_); return result == null ? com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType.UNRECOGNIZED : result; } public static final int ASSET_AUTOMATION_SETTINGS_FIELD_NUMBER = 88; @SuppressWarnings("serial") private java.util.List assetAutomationSettings_; /** *
   * Contains the opt-in/out status of each AssetAutomationType.
   * See documentation of each asset automation type enum for default
   * opt in/out behavior.
   * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ @java.lang.Override public java.util.List getAssetAutomationSettingsList() { return assetAutomationSettings_; } /** *
   * Contains the opt-in/out status of each AssetAutomationType.
   * See documentation of each asset automation type enum for default
   * opt in/out behavior.
   * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ @java.lang.Override public java.util.List getAssetAutomationSettingsOrBuilderList() { return assetAutomationSettings_; } /** *
   * Contains the opt-in/out status of each AssetAutomationType.
   * See documentation of each asset automation type enum for default
   * opt in/out behavior.
   * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ @java.lang.Override public int getAssetAutomationSettingsCount() { return assetAutomationSettings_.size(); } /** *
   * Contains the opt-in/out status of each AssetAutomationType.
   * See documentation of each asset automation type enum for default
   * opt in/out behavior.
   * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting getAssetAutomationSettings(int index) { return assetAutomationSettings_.get(index); } /** *
   * Contains the opt-in/out status of each AssetAutomationType.
   * See documentation of each asset automation type enum for default
   * opt in/out behavior.
   * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder getAssetAutomationSettingsOrBuilder( int index) { return assetAutomationSettings_.get(index); } public static final int BIDDING_STRATEGY_FIELD_NUMBER = 67; /** *
   * Portfolio bidding strategy used by campaign.
   * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return Whether the biddingStrategy field is set. */ public boolean hasBiddingStrategy() { return campaignBiddingStrategyCase_ == 67; } /** *
   * Portfolio bidding strategy used by campaign.
   * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return The biddingStrategy. */ public java.lang.String getBiddingStrategy() { java.lang.Object ref = ""; if (campaignBiddingStrategyCase_ == 67) { ref = campaignBiddingStrategy_; } 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 (campaignBiddingStrategyCase_ == 67) { campaignBiddingStrategy_ = s; } return s; } } /** *
   * Portfolio bidding strategy used by campaign.
   * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return The bytes for biddingStrategy. */ public com.google.protobuf.ByteString getBiddingStrategyBytes() { java.lang.Object ref = ""; if (campaignBiddingStrategyCase_ == 67) { ref = campaignBiddingStrategy_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (campaignBiddingStrategyCase_ == 67) { campaignBiddingStrategy_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMISSION_FIELD_NUMBER = 49; /** *
   * Commission is an automatic bidding strategy in which the advertiser pays
   * a certain portion of the conversion value.
   * 
* * .google.ads.googleads.v16.common.Commission commission = 49; * @return Whether the commission field is set. */ @java.lang.Override public boolean hasCommission() { return campaignBiddingStrategyCase_ == 49; } /** *
   * Commission is an automatic bidding strategy in which the advertiser pays
   * a certain portion of the conversion value.
   * 
* * .google.ads.googleads.v16.common.Commission commission = 49; * @return The commission. */ @java.lang.Override public com.google.ads.googleads.v16.common.Commission getCommission() { if (campaignBiddingStrategyCase_ == 49) { return (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } /** *
   * Commission is an automatic bidding strategy in which the advertiser pays
   * a certain portion of the conversion value.
   * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ @java.lang.Override public com.google.ads.googleads.v16.common.CommissionOrBuilder getCommissionOrBuilder() { if (campaignBiddingStrategyCase_ == 49) { return (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } public static final int MANUAL_CPA_FIELD_NUMBER = 74; /** *
   * Standard Manual CPA bidding strategy.
   * Manual bidding strategy that allows advertiser to set the bid per
   * advertiser-specified action. Supported only for Local Services campaigns.
   * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; * @return Whether the manualCpa field is set. */ @java.lang.Override public boolean hasManualCpa() { return campaignBiddingStrategyCase_ == 74; } /** *
   * Standard Manual CPA bidding strategy.
   * Manual bidding strategy that allows advertiser to set the bid per
   * advertiser-specified action. Supported only for Local Services campaigns.
   * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; * @return The manualCpa. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpa getManualCpa() { if (campaignBiddingStrategyCase_ == 74) { return (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } /** *
   * Standard Manual CPA bidding strategy.
   * Manual bidding strategy that allows advertiser to set the bid per
   * advertiser-specified action. Supported only for Local Services campaigns.
   * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpaOrBuilder getManualCpaOrBuilder() { if (campaignBiddingStrategyCase_ == 74) { return (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } public static final int MANUAL_CPC_FIELD_NUMBER = 24; /** *
   * Standard Manual CPC bidding strategy.
   * Manual click-based bidding where user pays per click.
   * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; * @return Whether the manualCpc field is set. */ @java.lang.Override public boolean hasManualCpc() { return campaignBiddingStrategyCase_ == 24; } /** *
   * Standard Manual CPC bidding strategy.
   * Manual click-based bidding where user pays per click.
   * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; * @return The manualCpc. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpc getManualCpc() { if (campaignBiddingStrategyCase_ == 24) { return (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } /** *
   * Standard Manual CPC bidding strategy.
   * Manual click-based bidding where user pays per click.
   * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpcOrBuilder getManualCpcOrBuilder() { if (campaignBiddingStrategyCase_ == 24) { return (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } public static final int MANUAL_CPM_FIELD_NUMBER = 25; /** *
   * Standard Manual CPM bidding strategy.
   * Manual impression-based bidding where user pays per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; * @return Whether the manualCpm field is set. */ @java.lang.Override public boolean hasManualCpm() { return campaignBiddingStrategyCase_ == 25; } /** *
   * Standard Manual CPM bidding strategy.
   * Manual impression-based bidding where user pays per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; * @return The manualCpm. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpm getManualCpm() { if (campaignBiddingStrategyCase_ == 25) { return (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } /** *
   * Standard Manual CPM bidding strategy.
   * Manual impression-based bidding where user pays per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpmOrBuilder getManualCpmOrBuilder() { if (campaignBiddingStrategyCase_ == 25) { return (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } public static final int MANUAL_CPV_FIELD_NUMBER = 37; /** *
   * A bidding strategy that pays a configurable amount per video view.
   * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; * @return Whether the manualCpv field is set. */ @java.lang.Override public boolean hasManualCpv() { return campaignBiddingStrategyCase_ == 37; } /** *
   * A bidding strategy that pays a configurable amount per video view.
   * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; * @return The manualCpv. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpv getManualCpv() { if (campaignBiddingStrategyCase_ == 37) { return (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } /** *
   * A bidding strategy that pays a configurable amount per video view.
   * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpvOrBuilder getManualCpvOrBuilder() { if (campaignBiddingStrategyCase_ == 37) { return (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } public static final int MAXIMIZE_CONVERSIONS_FIELD_NUMBER = 30; /** *
   * Standard Maximize Conversions bidding strategy that automatically
   * maximizes number of conversions while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; * @return Whether the maximizeConversions field is set. */ @java.lang.Override public boolean hasMaximizeConversions() { return campaignBiddingStrategyCase_ == 30; } /** *
   * Standard Maximize Conversions bidding strategy that automatically
   * maximizes number of conversions while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; * @return The maximizeConversions. */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversions getMaximizeConversions() { if (campaignBiddingStrategyCase_ == 30) { return (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } /** *
   * Standard Maximize Conversions bidding strategy that automatically
   * maximizes number of conversions while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionsOrBuilder getMaximizeConversionsOrBuilder() { if (campaignBiddingStrategyCase_ == 30) { return (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } public static final int MAXIMIZE_CONVERSION_VALUE_FIELD_NUMBER = 31; /** *
   * Standard Maximize Conversion Value bidding strategy that automatically
   * sets bids to maximize revenue while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; * @return Whether the maximizeConversionValue field is set. */ @java.lang.Override public boolean hasMaximizeConversionValue() { return campaignBiddingStrategyCase_ == 31; } /** *
   * Standard Maximize Conversion Value bidding strategy that automatically
   * sets bids to maximize revenue while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; * @return The maximizeConversionValue. */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionValue getMaximizeConversionValue() { if (campaignBiddingStrategyCase_ == 31) { return (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } /** *
   * Standard Maximize Conversion Value bidding strategy that automatically
   * sets bids to maximize revenue while spending your budget.
   * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionValueOrBuilder getMaximizeConversionValueOrBuilder() { if (campaignBiddingStrategyCase_ == 31) { return (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } public static final int TARGET_CPA_FIELD_NUMBER = 26; /** *
   * Standard Target CPA bidding strategy that automatically sets bids to
   * help get as many conversions as possible at the target
   * cost-per-acquisition (CPA) you set.
   * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; * @return Whether the targetCpa field is set. */ @java.lang.Override public boolean hasTargetCpa() { return campaignBiddingStrategyCase_ == 26; } /** *
   * Standard Target CPA bidding strategy that automatically sets bids to
   * help get as many conversions as possible at the target
   * cost-per-acquisition (CPA) you set.
   * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; * @return The targetCpa. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpa getTargetCpa() { if (campaignBiddingStrategyCase_ == 26) { return (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } /** *
   * Standard Target CPA bidding strategy that automatically sets bids to
   * help get as many conversions as possible at the target
   * cost-per-acquisition (CPA) you set.
   * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpaOrBuilder getTargetCpaOrBuilder() { if (campaignBiddingStrategyCase_ == 26) { return (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } public static final int TARGET_IMPRESSION_SHARE_FIELD_NUMBER = 48; /** *
   * Target Impression Share bidding strategy. An automated bidding strategy
   * that sets bids to achieve a chosen percentage of impressions.
   * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; * @return Whether the targetImpressionShare field is set. */ @java.lang.Override public boolean hasTargetImpressionShare() { return campaignBiddingStrategyCase_ == 48; } /** *
   * Target Impression Share bidding strategy. An automated bidding strategy
   * that sets bids to achieve a chosen percentage of impressions.
   * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; * @return The targetImpressionShare. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetImpressionShare getTargetImpressionShare() { if (campaignBiddingStrategyCase_ == 48) { return (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } /** *
   * Target Impression Share bidding strategy. An automated bidding strategy
   * that sets bids to achieve a chosen percentage of impressions.
   * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetImpressionShareOrBuilder getTargetImpressionShareOrBuilder() { if (campaignBiddingStrategyCase_ == 48) { return (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } public static final int TARGET_ROAS_FIELD_NUMBER = 29; /** *
   * Standard Target ROAS bidding strategy that automatically maximizes
   * revenue while averaging a specific target return on ad spend (ROAS).
   * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; * @return Whether the targetRoas field is set. */ @java.lang.Override public boolean hasTargetRoas() { return campaignBiddingStrategyCase_ == 29; } /** *
   * Standard Target ROAS bidding strategy that automatically maximizes
   * revenue while averaging a specific target return on ad spend (ROAS).
   * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; * @return The targetRoas. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetRoas getTargetRoas() { if (campaignBiddingStrategyCase_ == 29) { return (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } /** *
   * Standard Target ROAS bidding strategy that automatically maximizes
   * revenue while averaging a specific target return on ad spend (ROAS).
   * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetRoasOrBuilder getTargetRoasOrBuilder() { if (campaignBiddingStrategyCase_ == 29) { return (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } public static final int TARGET_SPEND_FIELD_NUMBER = 27; /** *
   * Standard Target Spend bidding strategy that automatically sets your bids
   * to help get as many clicks as possible within your budget.
   * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; * @return Whether the targetSpend field is set. */ @java.lang.Override public boolean hasTargetSpend() { return campaignBiddingStrategyCase_ == 27; } /** *
   * Standard Target Spend bidding strategy that automatically sets your bids
   * to help get as many clicks as possible within your budget.
   * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; * @return The targetSpend. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetSpend getTargetSpend() { if (campaignBiddingStrategyCase_ == 27) { return (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } /** *
   * Standard Target Spend bidding strategy that automatically sets your bids
   * to help get as many clicks as possible within your budget.
   * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetSpendOrBuilder getTargetSpendOrBuilder() { if (campaignBiddingStrategyCase_ == 27) { return (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } public static final int PERCENT_CPC_FIELD_NUMBER = 34; /** *
   * Standard Percent Cpc bidding strategy where bids are a fraction of the
   * advertised price for some good or service.
   * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; * @return Whether the percentCpc field is set. */ @java.lang.Override public boolean hasPercentCpc() { return campaignBiddingStrategyCase_ == 34; } /** *
   * Standard Percent Cpc bidding strategy where bids are a fraction of the
   * advertised price for some good or service.
   * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; * @return The percentCpc. */ @java.lang.Override public com.google.ads.googleads.v16.common.PercentCpc getPercentCpc() { if (campaignBiddingStrategyCase_ == 34) { return (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } /** *
   * Standard Percent Cpc bidding strategy where bids are a fraction of the
   * advertised price for some good or service.
   * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ @java.lang.Override public com.google.ads.googleads.v16.common.PercentCpcOrBuilder getPercentCpcOrBuilder() { if (campaignBiddingStrategyCase_ == 34) { return (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } public static final int TARGET_CPM_FIELD_NUMBER = 41; /** *
   * A bidding strategy that automatically optimizes cost per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; * @return Whether the targetCpm field is set. */ @java.lang.Override public boolean hasTargetCpm() { return campaignBiddingStrategyCase_ == 41; } /** *
   * A bidding strategy that automatically optimizes cost per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; * @return The targetCpm. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpm getTargetCpm() { if (campaignBiddingStrategyCase_ == 41) { return (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } /** *
   * A bidding strategy that automatically optimizes cost per thousand
   * impressions.
   * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpmOrBuilder getTargetCpmOrBuilder() { if (campaignBiddingStrategyCase_ == 41) { return (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (status_ != com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.UNSPECIFIED.getNumber()) { output.writeEnum(5, status_); } if (adServingOptimizationStatus_ != com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNSPECIFIED.getNumber()) { output.writeEnum(8, adServingOptimizationStatus_); } if (advertisingChannelType_ != com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNSPECIFIED.getNumber()) { output.writeEnum(9, advertisingChannelType_); } if (advertisingChannelSubType_ != com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNSPECIFIED.getNumber()) { output.writeEnum(10, advertisingChannelSubType_); } for (int i = 0; i < urlCustomParameters_.size(); i++) { output.writeMessage(12, urlCustomParameters_.get(i)); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(14, getNetworkSettings()); } if (experimentType_ != com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNSPECIFIED.getNumber()) { output.writeEnum(17, experimentType_); } if (servingStatus_ != com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.UNSPECIFIED.getNumber()) { output.writeEnum(21, servingStatus_); } if (biddingStrategyType_ != com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNSPECIFIED.getNumber()) { output.writeEnum(22, biddingStrategyType_); } if (campaignBiddingStrategyCase_ == 24) { output.writeMessage(24, (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 25) { output.writeMessage(25, (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 26) { output.writeMessage(26, (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 27) { output.writeMessage(27, (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 29) { output.writeMessage(29, (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 30) { output.writeMessage(30, (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 31) { output.writeMessage(31, (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(32, getHotelSetting()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(33, getDynamicSearchAdsSetting()); } if (campaignBiddingStrategyCase_ == 34) { output.writeMessage(34, (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(36, getShoppingSetting()); } if (campaignBiddingStrategyCase_ == 37) { output.writeMessage(37, (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(39, getRealTimeBiddingSetting()); } for (int i = 0; i < frequencyCaps_.size(); i++) { output.writeMessage(40, frequencyCaps_.get(i)); } if (campaignBiddingStrategyCase_ == 41) { output.writeMessage(41, (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_); } if (videoBrandSafetySuitability_ != com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) { output.writeEnum(42, videoBrandSafetySuitability_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(43, getTargetingSetting()); } if (((bitField0_ & 0x00400000) != 0)) { output.writeMessage(44, getVanityPharma()); } if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(45, getSelectiveOptimization()); } if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(46, getTrackingSetting()); } if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(47, getGeoTargetTypeSetting()); } if (campaignBiddingStrategyCase_ == 48) { output.writeMessage(48, (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 49) { output.writeMessage(49, (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(50, getLocalCampaignSetting()); } if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(51, getAppCampaignSetting()); } if (paymentMode_ != com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.UNSPECIFIED.getNumber()) { output.writeEnum(52, paymentMode_); } if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(54, getOptimizationGoalSetting()); } if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 56, baseCampaign_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 58, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(59, id_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 60, trackingUrlTemplate_); } for (int i = 0; i < labels_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 61, labels_.getRaw(i)); } if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 62, campaignBudget_); } if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 63, startDate_); } if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 64, endDate_); } if (((bitField0_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 65, finalUrlSuffix_); } if (((bitField0_ & 0x04000000) != 0)) { output.writeDouble(66, optimizationScore_); } if (campaignBiddingStrategyCase_ == 67) { com.google.protobuf.GeneratedMessageV3.writeString(output, 67, campaignBiddingStrategy_); } if (getExcludedParentAssetFieldTypesList().size() > 0) { output.writeUInt32NoTag(554); output.writeUInt32NoTag(excludedParentAssetFieldTypesMemoizedSerializedSize); } for (int i = 0; i < excludedParentAssetFieldTypes_.size(); i++) { output.writeEnumNoTag(excludedParentAssetFieldTypes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessibleBiddingStrategy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 71, accessibleBiddingStrategy_); } if (((bitField0_ & 0x08000000) != 0)) { output.writeBool(72, urlExpansionOptOut_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(73, getAudienceSetting()); } if (campaignBiddingStrategyCase_ == 74) { output.writeMessage(74, (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(75, getLocalServicesCampaignSettings()); } if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 76, campaignGroup_); } if (((bitField0_ & 0x10000000) != 0)) { output.writeMessage(77, getPerformanceMaxUpgrade()); } if (biddingStrategySystemStatus_ != com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.UNSPECIFIED.getNumber()) { output.writeEnum(78, biddingStrategySystemStatus_); } if (getExcludedParentAssetSetTypesList().size() > 0) { output.writeUInt32NoTag(642); output.writeUInt32NoTag(excludedParentAssetSetTypesMemoizedSerializedSize); } for (int i = 0; i < excludedParentAssetSetTypes_.size(); i++) { output.writeEnumNoTag(excludedParentAssetSetTypes_.get(i)); } if (primaryStatus_ != com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.UNSPECIFIED.getNumber()) { output.writeEnum(81, primaryStatus_); } if (getPrimaryStatusReasonsList().size() > 0) { output.writeUInt32NoTag(658); output.writeUInt32NoTag(primaryStatusReasonsMemoizedSerializedSize); } for (int i = 0; i < primaryStatusReasons_.size(); i++) { output.writeEnumNoTag(primaryStatusReasons_.get(i)); } if (((bitField0_ & 0x20000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 83, hotelPropertyAssetSet_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(85, getTravelCampaignSettings()); } if (((bitField0_ & 0x40000000) != 0)) { output.writeEnum(86, listingType_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(87, getDiscoveryCampaignSettings()); } for (int i = 0; i < assetAutomationSettings_.size(); i++) { output.writeMessage(88, assetAutomationSettings_.get(i)); } 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 (status_ != com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, status_); } if (adServingOptimizationStatus_ != com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, adServingOptimizationStatus_); } if (advertisingChannelType_ != com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, advertisingChannelType_); } if (advertisingChannelSubType_ != com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, advertisingChannelSubType_); } for (int i = 0; i < urlCustomParameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, urlCustomParameters_.get(i)); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getNetworkSettings()); } if (experimentType_ != com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, experimentType_); } if (servingStatus_ != com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(21, servingStatus_); } if (biddingStrategyType_ != com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, biddingStrategyType_); } if (campaignBiddingStrategyCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getHotelSetting()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, getDynamicSearchAdsSetting()); } if (campaignBiddingStrategyCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, getShoppingSetting()); } if (campaignBiddingStrategyCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, getRealTimeBiddingSetting()); } for (int i = 0; i < frequencyCaps_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, frequencyCaps_.get(i)); } if (campaignBiddingStrategyCase_ == 41) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_); } if (videoBrandSafetySuitability_ != com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(42, videoBrandSafetySuitability_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, getTargetingSetting()); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, getVanityPharma()); } if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, getSelectiveOptimization()); } if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(46, getTrackingSetting()); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, getGeoTargetTypeSetting()); } if (campaignBiddingStrategyCase_ == 48) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_); } if (campaignBiddingStrategyCase_ == 49) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(49, (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, getLocalCampaignSetting()); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(51, getAppCampaignSetting()); } if (paymentMode_ != com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(52, paymentMode_); } if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(54, getOptimizationGoalSetting()); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(56, baseCampaign_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(58, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(59, id_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(60, trackingUrlTemplate_); } { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { dataSize += computeStringSizeNoTag(labels_.getRaw(i)); } size += dataSize; size += 2 * getLabelsList().size(); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(62, campaignBudget_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(63, startDate_); } if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(64, endDate_); } if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, finalUrlSuffix_); } if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(66, optimizationScore_); } if (campaignBiddingStrategyCase_ == 67) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(67, campaignBiddingStrategy_); } { int dataSize = 0; for (int i = 0; i < excludedParentAssetFieldTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(excludedParentAssetFieldTypes_.get(i)); } size += dataSize; if (!getExcludedParentAssetFieldTypesList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }excludedParentAssetFieldTypesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessibleBiddingStrategy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(71, accessibleBiddingStrategy_); } if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(72, urlExpansionOptOut_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(73, getAudienceSetting()); } if (campaignBiddingStrategyCase_ == 74) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(74, (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(75, getLocalServicesCampaignSettings()); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(76, campaignGroup_); } if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(77, getPerformanceMaxUpgrade()); } if (biddingStrategySystemStatus_ != com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(78, biddingStrategySystemStatus_); } { int dataSize = 0; for (int i = 0; i < excludedParentAssetSetTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(excludedParentAssetSetTypes_.get(i)); } size += dataSize; if (!getExcludedParentAssetSetTypesList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }excludedParentAssetSetTypesMemoizedSerializedSize = dataSize; } if (primaryStatus_ != com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(81, primaryStatus_); } { int dataSize = 0; for (int i = 0; i < primaryStatusReasons_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(primaryStatusReasons_.get(i)); } size += dataSize; if (!getPrimaryStatusReasonsList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }primaryStatusReasonsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(83, hotelPropertyAssetSet_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(85, getTravelCampaignSettings()); } if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(86, listingType_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(87, getDiscoveryCampaignSettings()); } for (int i = 0; i < assetAutomationSettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(88, assetAutomationSettings_.get(i)); } 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.v16.resources.Campaign)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Campaign other = (com.google.ads.googleads.v16.resources.Campaign) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (primaryStatus_ != other.primaryStatus_) return false; if (!primaryStatusReasons_.equals(other.primaryStatusReasons_)) return false; if (status_ != other.status_) return false; if (servingStatus_ != other.servingStatus_) return false; if (biddingStrategySystemStatus_ != other.biddingStrategySystemStatus_) return false; if (adServingOptimizationStatus_ != other.adServingOptimizationStatus_) return false; if (advertisingChannelType_ != other.advertisingChannelType_) return false; if (advertisingChannelSubType_ != other.advertisingChannelSubType_) return false; if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false; if (hasTrackingUrlTemplate()) { if (!getTrackingUrlTemplate() .equals(other.getTrackingUrlTemplate())) return false; } if (!getUrlCustomParametersList() .equals(other.getUrlCustomParametersList())) return false; if (hasLocalServicesCampaignSettings() != other.hasLocalServicesCampaignSettings()) return false; if (hasLocalServicesCampaignSettings()) { if (!getLocalServicesCampaignSettings() .equals(other.getLocalServicesCampaignSettings())) return false; } if (hasTravelCampaignSettings() != other.hasTravelCampaignSettings()) return false; if (hasTravelCampaignSettings()) { if (!getTravelCampaignSettings() .equals(other.getTravelCampaignSettings())) return false; } if (hasDiscoveryCampaignSettings() != other.hasDiscoveryCampaignSettings()) return false; if (hasDiscoveryCampaignSettings()) { if (!getDiscoveryCampaignSettings() .equals(other.getDiscoveryCampaignSettings())) return false; } if (hasRealTimeBiddingSetting() != other.hasRealTimeBiddingSetting()) return false; if (hasRealTimeBiddingSetting()) { if (!getRealTimeBiddingSetting() .equals(other.getRealTimeBiddingSetting())) return false; } if (hasNetworkSettings() != other.hasNetworkSettings()) return false; if (hasNetworkSettings()) { if (!getNetworkSettings() .equals(other.getNetworkSettings())) return false; } if (hasHotelSetting() != other.hasHotelSetting()) return false; if (hasHotelSetting()) { if (!getHotelSetting() .equals(other.getHotelSetting())) return false; } if (hasDynamicSearchAdsSetting() != other.hasDynamicSearchAdsSetting()) return false; if (hasDynamicSearchAdsSetting()) { if (!getDynamicSearchAdsSetting() .equals(other.getDynamicSearchAdsSetting())) return false; } if (hasShoppingSetting() != other.hasShoppingSetting()) return false; if (hasShoppingSetting()) { if (!getShoppingSetting() .equals(other.getShoppingSetting())) return false; } if (hasTargetingSetting() != other.hasTargetingSetting()) return false; if (hasTargetingSetting()) { if (!getTargetingSetting() .equals(other.getTargetingSetting())) return false; } if (hasAudienceSetting() != other.hasAudienceSetting()) return false; if (hasAudienceSetting()) { if (!getAudienceSetting() .equals(other.getAudienceSetting())) return false; } if (hasGeoTargetTypeSetting() != other.hasGeoTargetTypeSetting()) return false; if (hasGeoTargetTypeSetting()) { if (!getGeoTargetTypeSetting() .equals(other.getGeoTargetTypeSetting())) return false; } if (hasLocalCampaignSetting() != other.hasLocalCampaignSetting()) return false; if (hasLocalCampaignSetting()) { if (!getLocalCampaignSetting() .equals(other.getLocalCampaignSetting())) return false; } if (hasAppCampaignSetting() != other.hasAppCampaignSetting()) return false; if (hasAppCampaignSetting()) { if (!getAppCampaignSetting() .equals(other.getAppCampaignSetting())) return false; } if (!getLabelsList() .equals(other.getLabelsList())) return false; if (experimentType_ != other.experimentType_) return false; if (hasBaseCampaign() != other.hasBaseCampaign()) return false; if (hasBaseCampaign()) { if (!getBaseCampaign() .equals(other.getBaseCampaign())) return false; } if (hasCampaignBudget() != other.hasCampaignBudget()) return false; if (hasCampaignBudget()) { if (!getCampaignBudget() .equals(other.getCampaignBudget())) return false; } if (biddingStrategyType_ != other.biddingStrategyType_) return false; if (!getAccessibleBiddingStrategy() .equals(other.getAccessibleBiddingStrategy())) return false; if (hasStartDate() != other.hasStartDate()) return false; if (hasStartDate()) { if (!getStartDate() .equals(other.getStartDate())) return false; } if (hasCampaignGroup() != other.hasCampaignGroup()) return false; if (hasCampaignGroup()) { if (!getCampaignGroup() .equals(other.getCampaignGroup())) return false; } if (hasEndDate() != other.hasEndDate()) return false; if (hasEndDate()) { if (!getEndDate() .equals(other.getEndDate())) return false; } if (hasFinalUrlSuffix() != other.hasFinalUrlSuffix()) return false; if (hasFinalUrlSuffix()) { if (!getFinalUrlSuffix() .equals(other.getFinalUrlSuffix())) return false; } if (!getFrequencyCapsList() .equals(other.getFrequencyCapsList())) return false; if (videoBrandSafetySuitability_ != other.videoBrandSafetySuitability_) return false; if (hasVanityPharma() != other.hasVanityPharma()) return false; if (hasVanityPharma()) { if (!getVanityPharma() .equals(other.getVanityPharma())) return false; } if (hasSelectiveOptimization() != other.hasSelectiveOptimization()) return false; if (hasSelectiveOptimization()) { if (!getSelectiveOptimization() .equals(other.getSelectiveOptimization())) return false; } if (hasOptimizationGoalSetting() != other.hasOptimizationGoalSetting()) return false; if (hasOptimizationGoalSetting()) { if (!getOptimizationGoalSetting() .equals(other.getOptimizationGoalSetting())) return false; } if (hasTrackingSetting() != other.hasTrackingSetting()) return false; if (hasTrackingSetting()) { if (!getTrackingSetting() .equals(other.getTrackingSetting())) return false; } if (paymentMode_ != other.paymentMode_) return false; if (hasOptimizationScore() != other.hasOptimizationScore()) return false; if (hasOptimizationScore()) { if (java.lang.Double.doubleToLongBits(getOptimizationScore()) != java.lang.Double.doubleToLongBits( other.getOptimizationScore())) return false; } if (!excludedParentAssetFieldTypes_.equals(other.excludedParentAssetFieldTypes_)) return false; if (!excludedParentAssetSetTypes_.equals(other.excludedParentAssetSetTypes_)) return false; if (hasUrlExpansionOptOut() != other.hasUrlExpansionOptOut()) return false; if (hasUrlExpansionOptOut()) { if (getUrlExpansionOptOut() != other.getUrlExpansionOptOut()) return false; } if (hasPerformanceMaxUpgrade() != other.hasPerformanceMaxUpgrade()) return false; if (hasPerformanceMaxUpgrade()) { if (!getPerformanceMaxUpgrade() .equals(other.getPerformanceMaxUpgrade())) return false; } if (hasHotelPropertyAssetSet() != other.hasHotelPropertyAssetSet()) return false; if (hasHotelPropertyAssetSet()) { if (!getHotelPropertyAssetSet() .equals(other.getHotelPropertyAssetSet())) return false; } if (hasListingType() != other.hasListingType()) return false; if (hasListingType()) { if (listingType_ != other.listingType_) return false; } if (!getAssetAutomationSettingsList() .equals(other.getAssetAutomationSettingsList())) return false; if (!getCampaignBiddingStrategyCase().equals(other.getCampaignBiddingStrategyCase())) return false; switch (campaignBiddingStrategyCase_) { case 67: if (!getBiddingStrategy() .equals(other.getBiddingStrategy())) return false; break; case 49: if (!getCommission() .equals(other.getCommission())) return false; break; case 74: if (!getManualCpa() .equals(other.getManualCpa())) return false; break; case 24: if (!getManualCpc() .equals(other.getManualCpc())) return false; break; case 25: if (!getManualCpm() .equals(other.getManualCpm())) return false; break; case 37: if (!getManualCpv() .equals(other.getManualCpv())) return false; break; case 30: if (!getMaximizeConversions() .equals(other.getMaximizeConversions())) return false; break; case 31: if (!getMaximizeConversionValue() .equals(other.getMaximizeConversionValue())) return false; break; case 26: if (!getTargetCpa() .equals(other.getTargetCpa())) return false; break; case 48: if (!getTargetImpressionShare() .equals(other.getTargetImpressionShare())) return false; break; case 29: if (!getTargetRoas() .equals(other.getTargetRoas())) return false; break; case 27: if (!getTargetSpend() .equals(other.getTargetSpend())) return false; break; case 34: if (!getPercentCpc() .equals(other.getPercentCpc())) return false; break; case 41: if (!getTargetCpm() .equals(other.getTargetCpm())) 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (37 * hash) + PRIMARY_STATUS_FIELD_NUMBER; hash = (53 * hash) + primaryStatus_; if (getPrimaryStatusReasonsCount() > 0) { hash = (37 * hash) + PRIMARY_STATUS_REASONS_FIELD_NUMBER; hash = (53 * hash) + primaryStatusReasons_.hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + SERVING_STATUS_FIELD_NUMBER; hash = (53 * hash) + servingStatus_; hash = (37 * hash) + BIDDING_STRATEGY_SYSTEM_STATUS_FIELD_NUMBER; hash = (53 * hash) + biddingStrategySystemStatus_; hash = (37 * hash) + AD_SERVING_OPTIMIZATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + adServingOptimizationStatus_; hash = (37 * hash) + ADVERTISING_CHANNEL_TYPE_FIELD_NUMBER; hash = (53 * hash) + advertisingChannelType_; hash = (37 * hash) + ADVERTISING_CHANNEL_SUB_TYPE_FIELD_NUMBER; hash = (53 * hash) + advertisingChannelSubType_; if (hasTrackingUrlTemplate()) { hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrlTemplate().hashCode(); } if (getUrlCustomParametersCount() > 0) { hash = (37 * hash) + URL_CUSTOM_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getUrlCustomParametersList().hashCode(); } if (hasLocalServicesCampaignSettings()) { hash = (37 * hash) + LOCAL_SERVICES_CAMPAIGN_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLocalServicesCampaignSettings().hashCode(); } if (hasTravelCampaignSettings()) { hash = (37 * hash) + TRAVEL_CAMPAIGN_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getTravelCampaignSettings().hashCode(); } if (hasDiscoveryCampaignSettings()) { hash = (37 * hash) + DISCOVERY_CAMPAIGN_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getDiscoveryCampaignSettings().hashCode(); } if (hasRealTimeBiddingSetting()) { hash = (37 * hash) + REAL_TIME_BIDDING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getRealTimeBiddingSetting().hashCode(); } if (hasNetworkSettings()) { hash = (37 * hash) + NETWORK_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkSettings().hashCode(); } if (hasHotelSetting()) { hash = (37 * hash) + HOTEL_SETTING_FIELD_NUMBER; hash = (53 * hash) + getHotelSetting().hashCode(); } if (hasDynamicSearchAdsSetting()) { hash = (37 * hash) + DYNAMIC_SEARCH_ADS_SETTING_FIELD_NUMBER; hash = (53 * hash) + getDynamicSearchAdsSetting().hashCode(); } if (hasShoppingSetting()) { hash = (37 * hash) + SHOPPING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getShoppingSetting().hashCode(); } if (hasTargetingSetting()) { hash = (37 * hash) + TARGETING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getTargetingSetting().hashCode(); } if (hasAudienceSetting()) { hash = (37 * hash) + AUDIENCE_SETTING_FIELD_NUMBER; hash = (53 * hash) + getAudienceSetting().hashCode(); } if (hasGeoTargetTypeSetting()) { hash = (37 * hash) + GEO_TARGET_TYPE_SETTING_FIELD_NUMBER; hash = (53 * hash) + getGeoTargetTypeSetting().hashCode(); } if (hasLocalCampaignSetting()) { hash = (37 * hash) + LOCAL_CAMPAIGN_SETTING_FIELD_NUMBER; hash = (53 * hash) + getLocalCampaignSetting().hashCode(); } if (hasAppCampaignSetting()) { hash = (37 * hash) + APP_CAMPAIGN_SETTING_FIELD_NUMBER; hash = (53 * hash) + getAppCampaignSetting().hashCode(); } if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } hash = (37 * hash) + EXPERIMENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + experimentType_; if (hasBaseCampaign()) { hash = (37 * hash) + BASE_CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getBaseCampaign().hashCode(); } if (hasCampaignBudget()) { hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudget().hashCode(); } hash = (37 * hash) + BIDDING_STRATEGY_TYPE_FIELD_NUMBER; hash = (53 * hash) + biddingStrategyType_; hash = (37 * hash) + ACCESSIBLE_BIDDING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getAccessibleBiddingStrategy().hashCode(); if (hasStartDate()) { hash = (37 * hash) + START_DATE_FIELD_NUMBER; hash = (53 * hash) + getStartDate().hashCode(); } if (hasCampaignGroup()) { hash = (37 * hash) + CAMPAIGN_GROUP_FIELD_NUMBER; hash = (53 * hash) + getCampaignGroup().hashCode(); } if (hasEndDate()) { hash = (37 * hash) + END_DATE_FIELD_NUMBER; hash = (53 * hash) + getEndDate().hashCode(); } if (hasFinalUrlSuffix()) { hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getFinalUrlSuffix().hashCode(); } if (getFrequencyCapsCount() > 0) { hash = (37 * hash) + FREQUENCY_CAPS_FIELD_NUMBER; hash = (53 * hash) + getFrequencyCapsList().hashCode(); } hash = (37 * hash) + VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER; hash = (53 * hash) + videoBrandSafetySuitability_; if (hasVanityPharma()) { hash = (37 * hash) + VANITY_PHARMA_FIELD_NUMBER; hash = (53 * hash) + getVanityPharma().hashCode(); } if (hasSelectiveOptimization()) { hash = (37 * hash) + SELECTIVE_OPTIMIZATION_FIELD_NUMBER; hash = (53 * hash) + getSelectiveOptimization().hashCode(); } if (hasOptimizationGoalSetting()) { hash = (37 * hash) + OPTIMIZATION_GOAL_SETTING_FIELD_NUMBER; hash = (53 * hash) + getOptimizationGoalSetting().hashCode(); } if (hasTrackingSetting()) { hash = (37 * hash) + TRACKING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getTrackingSetting().hashCode(); } hash = (37 * hash) + PAYMENT_MODE_FIELD_NUMBER; hash = (53 * hash) + paymentMode_; if (hasOptimizationScore()) { hash = (37 * hash) + OPTIMIZATION_SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getOptimizationScore())); } if (getExcludedParentAssetFieldTypesCount() > 0) { hash = (37 * hash) + EXCLUDED_PARENT_ASSET_FIELD_TYPES_FIELD_NUMBER; hash = (53 * hash) + excludedParentAssetFieldTypes_.hashCode(); } if (getExcludedParentAssetSetTypesCount() > 0) { hash = (37 * hash) + EXCLUDED_PARENT_ASSET_SET_TYPES_FIELD_NUMBER; hash = (53 * hash) + excludedParentAssetSetTypes_.hashCode(); } if (hasUrlExpansionOptOut()) { hash = (37 * hash) + URL_EXPANSION_OPT_OUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUrlExpansionOptOut()); } if (hasPerformanceMaxUpgrade()) { hash = (37 * hash) + PERFORMANCE_MAX_UPGRADE_FIELD_NUMBER; hash = (53 * hash) + getPerformanceMaxUpgrade().hashCode(); } if (hasHotelPropertyAssetSet()) { hash = (37 * hash) + HOTEL_PROPERTY_ASSET_SET_FIELD_NUMBER; hash = (53 * hash) + getHotelPropertyAssetSet().hashCode(); } if (hasListingType()) { hash = (37 * hash) + LISTING_TYPE_FIELD_NUMBER; hash = (53 * hash) + listingType_; } if (getAssetAutomationSettingsCount() > 0) { hash = (37 * hash) + ASSET_AUTOMATION_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAssetAutomationSettingsList().hashCode(); } switch (campaignBiddingStrategyCase_) { case 67: hash = (37 * hash) + BIDDING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getBiddingStrategy().hashCode(); break; case 49: hash = (37 * hash) + COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getCommission().hashCode(); break; case 74: hash = (37 * hash) + MANUAL_CPA_FIELD_NUMBER; hash = (53 * hash) + getManualCpa().hashCode(); break; case 24: hash = (37 * hash) + MANUAL_CPC_FIELD_NUMBER; hash = (53 * hash) + getManualCpc().hashCode(); break; case 25: hash = (37 * hash) + MANUAL_CPM_FIELD_NUMBER; hash = (53 * hash) + getManualCpm().hashCode(); break; case 37: hash = (37 * hash) + MANUAL_CPV_FIELD_NUMBER; hash = (53 * hash) + getManualCpv().hashCode(); break; case 30: hash = (37 * hash) + MAXIMIZE_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getMaximizeConversions().hashCode(); break; case 31: hash = (37 * hash) + MAXIMIZE_CONVERSION_VALUE_FIELD_NUMBER; hash = (53 * hash) + getMaximizeConversionValue().hashCode(); break; case 26: hash = (37 * hash) + TARGET_CPA_FIELD_NUMBER; hash = (53 * hash) + getTargetCpa().hashCode(); break; case 48: hash = (37 * hash) + TARGET_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getTargetImpressionShare().hashCode(); break; case 29: hash = (37 * hash) + TARGET_ROAS_FIELD_NUMBER; hash = (53 * hash) + getTargetRoas().hashCode(); break; case 27: hash = (37 * hash) + TARGET_SPEND_FIELD_NUMBER; hash = (53 * hash) + getTargetSpend().hashCode(); break; case 34: hash = (37 * hash) + PERCENT_CPC_FIELD_NUMBER; hash = (53 * hash) + getPercentCpc().hashCode(); break; case 41: hash = (37 * hash) + TARGET_CPM_FIELD_NUMBER; hash = (53 * hash) + getTargetCpm().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Campaign parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign 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.v16.resources.Campaign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign 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.v16.resources.Campaign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Campaign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Campaign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign 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.v16.resources.Campaign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign 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.v16.resources.Campaign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Campaign 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.v16.resources.Campaign 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 campaign.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Campaign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Campaign) com.google.ads.googleads.v16.resources.CampaignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Campaign.class, com.google.ads.googleads.v16.resources.Campaign.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Campaign.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUrlCustomParametersFieldBuilder(); getLocalServicesCampaignSettingsFieldBuilder(); getTravelCampaignSettingsFieldBuilder(); getDiscoveryCampaignSettingsFieldBuilder(); getRealTimeBiddingSettingFieldBuilder(); getNetworkSettingsFieldBuilder(); getHotelSettingFieldBuilder(); getDynamicSearchAdsSettingFieldBuilder(); getShoppingSettingFieldBuilder(); getTargetingSettingFieldBuilder(); getAudienceSettingFieldBuilder(); getGeoTargetTypeSettingFieldBuilder(); getLocalCampaignSettingFieldBuilder(); getAppCampaignSettingFieldBuilder(); getFrequencyCapsFieldBuilder(); getVanityPharmaFieldBuilder(); getSelectiveOptimizationFieldBuilder(); getOptimizationGoalSettingFieldBuilder(); getTrackingSettingFieldBuilder(); getPerformanceMaxUpgradeFieldBuilder(); getAssetAutomationSettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; bitField2_ = 0; resourceName_ = ""; id_ = 0L; name_ = ""; primaryStatus_ = 0; primaryStatusReasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; servingStatus_ = 0; biddingStrategySystemStatus_ = 0; adServingOptimizationStatus_ = 0; advertisingChannelType_ = 0; advertisingChannelSubType_ = 0; trackingUrlTemplate_ = ""; if (urlCustomParametersBuilder_ == null) { urlCustomParameters_ = java.util.Collections.emptyList(); } else { urlCustomParameters_ = null; urlCustomParametersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); localServicesCampaignSettings_ = null; if (localServicesCampaignSettingsBuilder_ != null) { localServicesCampaignSettingsBuilder_.dispose(); localServicesCampaignSettingsBuilder_ = null; } travelCampaignSettings_ = null; if (travelCampaignSettingsBuilder_ != null) { travelCampaignSettingsBuilder_.dispose(); travelCampaignSettingsBuilder_ = null; } discoveryCampaignSettings_ = null; if (discoveryCampaignSettingsBuilder_ != null) { discoveryCampaignSettingsBuilder_.dispose(); discoveryCampaignSettingsBuilder_ = null; } realTimeBiddingSetting_ = null; if (realTimeBiddingSettingBuilder_ != null) { realTimeBiddingSettingBuilder_.dispose(); realTimeBiddingSettingBuilder_ = null; } networkSettings_ = null; if (networkSettingsBuilder_ != null) { networkSettingsBuilder_.dispose(); networkSettingsBuilder_ = null; } hotelSetting_ = null; if (hotelSettingBuilder_ != null) { hotelSettingBuilder_.dispose(); hotelSettingBuilder_ = null; } dynamicSearchAdsSetting_ = null; if (dynamicSearchAdsSettingBuilder_ != null) { dynamicSearchAdsSettingBuilder_.dispose(); dynamicSearchAdsSettingBuilder_ = null; } shoppingSetting_ = null; if (shoppingSettingBuilder_ != null) { shoppingSettingBuilder_.dispose(); shoppingSettingBuilder_ = null; } targetingSetting_ = null; if (targetingSettingBuilder_ != null) { targetingSettingBuilder_.dispose(); targetingSettingBuilder_ = null; } audienceSetting_ = null; if (audienceSettingBuilder_ != null) { audienceSettingBuilder_.dispose(); audienceSettingBuilder_ = null; } geoTargetTypeSetting_ = null; if (geoTargetTypeSettingBuilder_ != null) { geoTargetTypeSettingBuilder_.dispose(); geoTargetTypeSettingBuilder_ = null; } localCampaignSetting_ = null; if (localCampaignSettingBuilder_ != null) { localCampaignSettingBuilder_.dispose(); localCampaignSettingBuilder_ = null; } appCampaignSetting_ = null; if (appCampaignSettingBuilder_ != null) { appCampaignSettingBuilder_.dispose(); appCampaignSettingBuilder_ = null; } labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); experimentType_ = 0; baseCampaign_ = ""; campaignBudget_ = ""; biddingStrategyType_ = 0; accessibleBiddingStrategy_ = ""; startDate_ = ""; campaignGroup_ = ""; endDate_ = ""; finalUrlSuffix_ = ""; if (frequencyCapsBuilder_ == null) { frequencyCaps_ = java.util.Collections.emptyList(); } else { frequencyCaps_ = null; frequencyCapsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000010); videoBrandSafetySuitability_ = 0; vanityPharma_ = null; if (vanityPharmaBuilder_ != null) { vanityPharmaBuilder_.dispose(); vanityPharmaBuilder_ = null; } selectiveOptimization_ = null; if (selectiveOptimizationBuilder_ != null) { selectiveOptimizationBuilder_.dispose(); selectiveOptimizationBuilder_ = null; } optimizationGoalSetting_ = null; if (optimizationGoalSettingBuilder_ != null) { optimizationGoalSettingBuilder_.dispose(); optimizationGoalSettingBuilder_ = null; } trackingSetting_ = null; if (trackingSettingBuilder_ != null) { trackingSettingBuilder_.dispose(); trackingSettingBuilder_ = null; } paymentMode_ = 0; optimizationScore_ = 0D; excludedParentAssetFieldTypes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); excludedParentAssetSetTypes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00002000); urlExpansionOptOut_ = false; performanceMaxUpgrade_ = null; if (performanceMaxUpgradeBuilder_ != null) { performanceMaxUpgradeBuilder_.dispose(); performanceMaxUpgradeBuilder_ = null; } hotelPropertyAssetSet_ = ""; listingType_ = 0; if (assetAutomationSettingsBuilder_ == null) { assetAutomationSettings_ = java.util.Collections.emptyList(); } else { assetAutomationSettings_ = null; assetAutomationSettingsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00040000); if (commissionBuilder_ != null) { commissionBuilder_.clear(); } if (manualCpaBuilder_ != null) { manualCpaBuilder_.clear(); } if (manualCpcBuilder_ != null) { manualCpcBuilder_.clear(); } if (manualCpmBuilder_ != null) { manualCpmBuilder_.clear(); } if (manualCpvBuilder_ != null) { manualCpvBuilder_.clear(); } if (maximizeConversionsBuilder_ != null) { maximizeConversionsBuilder_.clear(); } if (maximizeConversionValueBuilder_ != null) { maximizeConversionValueBuilder_.clear(); } if (targetCpaBuilder_ != null) { targetCpaBuilder_.clear(); } if (targetImpressionShareBuilder_ != null) { targetImpressionShareBuilder_.clear(); } if (targetRoasBuilder_ != null) { targetRoasBuilder_.clear(); } if (targetSpendBuilder_ != null) { targetSpendBuilder_.clear(); } if (percentCpcBuilder_ != null) { percentCpcBuilder_.clear(); } if (targetCpmBuilder_ != null) { targetCpmBuilder_.clear(); } campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.CampaignProto.internal_static_google_ads_googleads_v16_resources_Campaign_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Campaign.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign build() { com.google.ads.googleads.v16.resources.Campaign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Campaign buildPartial() { com.google.ads.googleads.v16.resources.Campaign result = new com.google.ads.googleads.v16.resources.Campaign(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } if (bitField2_ != 0) { buildPartial2(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Campaign result) { if (((bitField0_ & 0x00000010) != 0)) { primaryStatusReasons_ = java.util.Collections.unmodifiableList(primaryStatusReasons_); bitField0_ = (bitField0_ & ~0x00000010); } result.primaryStatusReasons_ = primaryStatusReasons_; if (urlCustomParametersBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_); bitField0_ = (bitField0_ & ~0x00001000); } result.urlCustomParameters_ = urlCustomParameters_; } else { result.urlCustomParameters_ = urlCustomParametersBuilder_.build(); } if (frequencyCapsBuilder_ == null) { if (((bitField1_ & 0x00000010) != 0)) { frequencyCaps_ = java.util.Collections.unmodifiableList(frequencyCaps_); bitField1_ = (bitField1_ & ~0x00000010); } result.frequencyCaps_ = frequencyCaps_; } else { result.frequencyCaps_ = frequencyCapsBuilder_.build(); } if (((bitField1_ & 0x00001000) != 0)) { excludedParentAssetFieldTypes_ = java.util.Collections.unmodifiableList(excludedParentAssetFieldTypes_); bitField1_ = (bitField1_ & ~0x00001000); } result.excludedParentAssetFieldTypes_ = excludedParentAssetFieldTypes_; if (((bitField1_ & 0x00002000) != 0)) { excludedParentAssetSetTypes_ = java.util.Collections.unmodifiableList(excludedParentAssetSetTypes_); bitField1_ = (bitField1_ & ~0x00002000); } result.excludedParentAssetSetTypes_ = excludedParentAssetSetTypes_; if (assetAutomationSettingsBuilder_ == null) { if (((bitField1_ & 0x00040000) != 0)) { assetAutomationSettings_ = java.util.Collections.unmodifiableList(assetAutomationSettings_); bitField1_ = (bitField1_ & ~0x00040000); } result.assetAutomationSettings_ = assetAutomationSettings_; } else { result.assetAutomationSettings_ = assetAutomationSettingsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Campaign result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.primaryStatus_ = primaryStatus_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.servingStatus_ = servingStatus_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.biddingStrategySystemStatus_ = biddingStrategySystemStatus_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.adServingOptimizationStatus_ = adServingOptimizationStatus_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.advertisingChannelType_ = advertisingChannelType_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.advertisingChannelSubType_ = advertisingChannelSubType_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.trackingUrlTemplate_ = trackingUrlTemplate_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00002000) != 0)) { result.localServicesCampaignSettings_ = localServicesCampaignSettingsBuilder_ == null ? localServicesCampaignSettings_ : localServicesCampaignSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00004000) != 0)) { result.travelCampaignSettings_ = travelCampaignSettingsBuilder_ == null ? travelCampaignSettings_ : travelCampaignSettingsBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00008000) != 0)) { result.discoveryCampaignSettings_ = discoveryCampaignSettingsBuilder_ == null ? discoveryCampaignSettings_ : discoveryCampaignSettingsBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { result.realTimeBiddingSetting_ = realTimeBiddingSettingBuilder_ == null ? realTimeBiddingSetting_ : realTimeBiddingSettingBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00020000) != 0)) { result.networkSettings_ = networkSettingsBuilder_ == null ? networkSettings_ : networkSettingsBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00040000) != 0)) { result.hotelSetting_ = hotelSettingBuilder_ == null ? hotelSetting_ : hotelSettingBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00080000) != 0)) { result.dynamicSearchAdsSetting_ = dynamicSearchAdsSettingBuilder_ == null ? dynamicSearchAdsSetting_ : dynamicSearchAdsSettingBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00100000) != 0)) { result.shoppingSetting_ = shoppingSettingBuilder_ == null ? shoppingSetting_ : shoppingSettingBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00200000) != 0)) { result.targetingSetting_ = targetingSettingBuilder_ == null ? targetingSetting_ : targetingSettingBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00400000) != 0)) { result.audienceSetting_ = audienceSettingBuilder_ == null ? audienceSetting_ : audienceSettingBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.geoTargetTypeSetting_ = geoTargetTypeSettingBuilder_ == null ? geoTargetTypeSetting_ : geoTargetTypeSettingBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.localCampaignSetting_ = localCampaignSettingBuilder_ == null ? localCampaignSetting_ : localCampaignSettingBuilder_.build(); to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.appCampaignSetting_ = appCampaignSettingBuilder_ == null ? appCampaignSetting_ : appCampaignSettingBuilder_.build(); to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x04000000) != 0)) { labels_.makeImmutable(); result.labels_ = labels_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.experimentType_ = experimentType_; } if (((from_bitField0_ & 0x10000000) != 0)) { result.baseCampaign_ = baseCampaign_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x20000000) != 0)) { result.campaignBudget_ = campaignBudget_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x40000000) != 0)) { result.biddingStrategyType_ = biddingStrategyType_; } if (((from_bitField0_ & 0x80000000) != 0)) { result.accessibleBiddingStrategy_ = accessibleBiddingStrategy_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.ads.googleads.v16.resources.Campaign result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { result.startDate_ = startDate_; to_bitField0_ |= 0x00040000; } if (((from_bitField1_ & 0x00000002) != 0)) { result.campaignGroup_ = campaignGroup_; to_bitField0_ |= 0x00080000; } if (((from_bitField1_ & 0x00000004) != 0)) { result.endDate_ = endDate_; to_bitField0_ |= 0x00100000; } if (((from_bitField1_ & 0x00000008) != 0)) { result.finalUrlSuffix_ = finalUrlSuffix_; to_bitField0_ |= 0x00200000; } if (((from_bitField1_ & 0x00000020) != 0)) { result.videoBrandSafetySuitability_ = videoBrandSafetySuitability_; } if (((from_bitField1_ & 0x00000040) != 0)) { result.vanityPharma_ = vanityPharmaBuilder_ == null ? vanityPharma_ : vanityPharmaBuilder_.build(); to_bitField0_ |= 0x00400000; } if (((from_bitField1_ & 0x00000080) != 0)) { result.selectiveOptimization_ = selectiveOptimizationBuilder_ == null ? selectiveOptimization_ : selectiveOptimizationBuilder_.build(); to_bitField0_ |= 0x00800000; } if (((from_bitField1_ & 0x00000100) != 0)) { result.optimizationGoalSetting_ = optimizationGoalSettingBuilder_ == null ? optimizationGoalSetting_ : optimizationGoalSettingBuilder_.build(); to_bitField0_ |= 0x01000000; } if (((from_bitField1_ & 0x00000200) != 0)) { result.trackingSetting_ = trackingSettingBuilder_ == null ? trackingSetting_ : trackingSettingBuilder_.build(); to_bitField0_ |= 0x02000000; } if (((from_bitField1_ & 0x00000400) != 0)) { result.paymentMode_ = paymentMode_; } if (((from_bitField1_ & 0x00000800) != 0)) { result.optimizationScore_ = optimizationScore_; to_bitField0_ |= 0x04000000; } if (((from_bitField1_ & 0x00004000) != 0)) { result.urlExpansionOptOut_ = urlExpansionOptOut_; to_bitField0_ |= 0x08000000; } if (((from_bitField1_ & 0x00008000) != 0)) { result.performanceMaxUpgrade_ = performanceMaxUpgradeBuilder_ == null ? performanceMaxUpgrade_ : performanceMaxUpgradeBuilder_.build(); to_bitField0_ |= 0x10000000; } if (((from_bitField1_ & 0x00010000) != 0)) { result.hotelPropertyAssetSet_ = hotelPropertyAssetSet_; to_bitField0_ |= 0x20000000; } if (((from_bitField1_ & 0x00020000) != 0)) { result.listingType_ = listingType_; to_bitField0_ |= 0x40000000; } result.bitField0_ |= to_bitField0_; } private void buildPartial2(com.google.ads.googleads.v16.resources.Campaign result) { int from_bitField2_ = bitField2_; } private void buildPartialOneofs(com.google.ads.googleads.v16.resources.Campaign result) { result.campaignBiddingStrategyCase_ = campaignBiddingStrategyCase_; result.campaignBiddingStrategy_ = this.campaignBiddingStrategy_; if (campaignBiddingStrategyCase_ == 49 && commissionBuilder_ != null) { result.campaignBiddingStrategy_ = commissionBuilder_.build(); } if (campaignBiddingStrategyCase_ == 74 && manualCpaBuilder_ != null) { result.campaignBiddingStrategy_ = manualCpaBuilder_.build(); } if (campaignBiddingStrategyCase_ == 24 && manualCpcBuilder_ != null) { result.campaignBiddingStrategy_ = manualCpcBuilder_.build(); } if (campaignBiddingStrategyCase_ == 25 && manualCpmBuilder_ != null) { result.campaignBiddingStrategy_ = manualCpmBuilder_.build(); } if (campaignBiddingStrategyCase_ == 37 && manualCpvBuilder_ != null) { result.campaignBiddingStrategy_ = manualCpvBuilder_.build(); } if (campaignBiddingStrategyCase_ == 30 && maximizeConversionsBuilder_ != null) { result.campaignBiddingStrategy_ = maximizeConversionsBuilder_.build(); } if (campaignBiddingStrategyCase_ == 31 && maximizeConversionValueBuilder_ != null) { result.campaignBiddingStrategy_ = maximizeConversionValueBuilder_.build(); } if (campaignBiddingStrategyCase_ == 26 && targetCpaBuilder_ != null) { result.campaignBiddingStrategy_ = targetCpaBuilder_.build(); } if (campaignBiddingStrategyCase_ == 48 && targetImpressionShareBuilder_ != null) { result.campaignBiddingStrategy_ = targetImpressionShareBuilder_.build(); } if (campaignBiddingStrategyCase_ == 29 && targetRoasBuilder_ != null) { result.campaignBiddingStrategy_ = targetRoasBuilder_.build(); } if (campaignBiddingStrategyCase_ == 27 && targetSpendBuilder_ != null) { result.campaignBiddingStrategy_ = targetSpendBuilder_.build(); } if (campaignBiddingStrategyCase_ == 34 && percentCpcBuilder_ != null) { result.campaignBiddingStrategy_ = percentCpcBuilder_.build(); } if (campaignBiddingStrategyCase_ == 41 && targetCpmBuilder_ != null) { result.campaignBiddingStrategy_ = targetCpmBuilder_.build(); } } @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.v16.resources.Campaign) { return mergeFrom((com.google.ads.googleads.v16.resources.Campaign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Campaign other) { if (other == com.google.ads.googleads.v16.resources.Campaign.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000004; onChanged(); } if (other.primaryStatus_ != 0) { setPrimaryStatusValue(other.getPrimaryStatusValue()); } if (!other.primaryStatusReasons_.isEmpty()) { if (primaryStatusReasons_.isEmpty()) { primaryStatusReasons_ = other.primaryStatusReasons_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.addAll(other.primaryStatusReasons_); } onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.servingStatus_ != 0) { setServingStatusValue(other.getServingStatusValue()); } if (other.biddingStrategySystemStatus_ != 0) { setBiddingStrategySystemStatusValue(other.getBiddingStrategySystemStatusValue()); } if (other.adServingOptimizationStatus_ != 0) { setAdServingOptimizationStatusValue(other.getAdServingOptimizationStatusValue()); } if (other.advertisingChannelType_ != 0) { setAdvertisingChannelTypeValue(other.getAdvertisingChannelTypeValue()); } if (other.advertisingChannelSubType_ != 0) { setAdvertisingChannelSubTypeValue(other.getAdvertisingChannelSubTypeValue()); } if (other.hasTrackingUrlTemplate()) { trackingUrlTemplate_ = other.trackingUrlTemplate_; bitField0_ |= 0x00000800; onChanged(); } if (urlCustomParametersBuilder_ == null) { if (!other.urlCustomParameters_.isEmpty()) { if (urlCustomParameters_.isEmpty()) { urlCustomParameters_ = other.urlCustomParameters_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.addAll(other.urlCustomParameters_); } onChanged(); } } else { if (!other.urlCustomParameters_.isEmpty()) { if (urlCustomParametersBuilder_.isEmpty()) { urlCustomParametersBuilder_.dispose(); urlCustomParametersBuilder_ = null; urlCustomParameters_ = other.urlCustomParameters_; bitField0_ = (bitField0_ & ~0x00001000); urlCustomParametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUrlCustomParametersFieldBuilder() : null; } else { urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_); } } } if (other.hasLocalServicesCampaignSettings()) { mergeLocalServicesCampaignSettings(other.getLocalServicesCampaignSettings()); } if (other.hasTravelCampaignSettings()) { mergeTravelCampaignSettings(other.getTravelCampaignSettings()); } if (other.hasDiscoveryCampaignSettings()) { mergeDiscoveryCampaignSettings(other.getDiscoveryCampaignSettings()); } if (other.hasRealTimeBiddingSetting()) { mergeRealTimeBiddingSetting(other.getRealTimeBiddingSetting()); } if (other.hasNetworkSettings()) { mergeNetworkSettings(other.getNetworkSettings()); } if (other.hasHotelSetting()) { mergeHotelSetting(other.getHotelSetting()); } if (other.hasDynamicSearchAdsSetting()) { mergeDynamicSearchAdsSetting(other.getDynamicSearchAdsSetting()); } if (other.hasShoppingSetting()) { mergeShoppingSetting(other.getShoppingSetting()); } if (other.hasTargetingSetting()) { mergeTargetingSetting(other.getTargetingSetting()); } if (other.hasAudienceSetting()) { mergeAudienceSetting(other.getAudienceSetting()); } if (other.hasGeoTargetTypeSetting()) { mergeGeoTargetTypeSetting(other.getGeoTargetTypeSetting()); } if (other.hasLocalCampaignSetting()) { mergeLocalCampaignSetting(other.getLocalCampaignSetting()); } if (other.hasAppCampaignSetting()) { mergeAppCampaignSetting(other.getAppCampaignSetting()); } if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ |= 0x04000000; } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } if (other.experimentType_ != 0) { setExperimentTypeValue(other.getExperimentTypeValue()); } if (other.hasBaseCampaign()) { baseCampaign_ = other.baseCampaign_; bitField0_ |= 0x10000000; onChanged(); } if (other.hasCampaignBudget()) { campaignBudget_ = other.campaignBudget_; bitField0_ |= 0x20000000; onChanged(); } if (other.biddingStrategyType_ != 0) { setBiddingStrategyTypeValue(other.getBiddingStrategyTypeValue()); } if (!other.getAccessibleBiddingStrategy().isEmpty()) { accessibleBiddingStrategy_ = other.accessibleBiddingStrategy_; bitField0_ |= 0x80000000; onChanged(); } if (other.hasStartDate()) { startDate_ = other.startDate_; bitField1_ |= 0x00000001; onChanged(); } if (other.hasCampaignGroup()) { campaignGroup_ = other.campaignGroup_; bitField1_ |= 0x00000002; onChanged(); } if (other.hasEndDate()) { endDate_ = other.endDate_; bitField1_ |= 0x00000004; onChanged(); } if (other.hasFinalUrlSuffix()) { finalUrlSuffix_ = other.finalUrlSuffix_; bitField1_ |= 0x00000008; onChanged(); } if (frequencyCapsBuilder_ == null) { if (!other.frequencyCaps_.isEmpty()) { if (frequencyCaps_.isEmpty()) { frequencyCaps_ = other.frequencyCaps_; bitField1_ = (bitField1_ & ~0x00000010); } else { ensureFrequencyCapsIsMutable(); frequencyCaps_.addAll(other.frequencyCaps_); } onChanged(); } } else { if (!other.frequencyCaps_.isEmpty()) { if (frequencyCapsBuilder_.isEmpty()) { frequencyCapsBuilder_.dispose(); frequencyCapsBuilder_ = null; frequencyCaps_ = other.frequencyCaps_; bitField1_ = (bitField1_ & ~0x00000010); frequencyCapsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrequencyCapsFieldBuilder() : null; } else { frequencyCapsBuilder_.addAllMessages(other.frequencyCaps_); } } } if (other.videoBrandSafetySuitability_ != 0) { setVideoBrandSafetySuitabilityValue(other.getVideoBrandSafetySuitabilityValue()); } if (other.hasVanityPharma()) { mergeVanityPharma(other.getVanityPharma()); } if (other.hasSelectiveOptimization()) { mergeSelectiveOptimization(other.getSelectiveOptimization()); } if (other.hasOptimizationGoalSetting()) { mergeOptimizationGoalSetting(other.getOptimizationGoalSetting()); } if (other.hasTrackingSetting()) { mergeTrackingSetting(other.getTrackingSetting()); } if (other.paymentMode_ != 0) { setPaymentModeValue(other.getPaymentModeValue()); } if (other.hasOptimizationScore()) { setOptimizationScore(other.getOptimizationScore()); } if (!other.excludedParentAssetFieldTypes_.isEmpty()) { if (excludedParentAssetFieldTypes_.isEmpty()) { excludedParentAssetFieldTypes_ = other.excludedParentAssetFieldTypes_; bitField1_ = (bitField1_ & ~0x00001000); } else { ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.addAll(other.excludedParentAssetFieldTypes_); } onChanged(); } if (!other.excludedParentAssetSetTypes_.isEmpty()) { if (excludedParentAssetSetTypes_.isEmpty()) { excludedParentAssetSetTypes_ = other.excludedParentAssetSetTypes_; bitField1_ = (bitField1_ & ~0x00002000); } else { ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.addAll(other.excludedParentAssetSetTypes_); } onChanged(); } if (other.hasUrlExpansionOptOut()) { setUrlExpansionOptOut(other.getUrlExpansionOptOut()); } if (other.hasPerformanceMaxUpgrade()) { mergePerformanceMaxUpgrade(other.getPerformanceMaxUpgrade()); } if (other.hasHotelPropertyAssetSet()) { hotelPropertyAssetSet_ = other.hotelPropertyAssetSet_; bitField1_ |= 0x00010000; onChanged(); } if (other.hasListingType()) { setListingType(other.getListingType()); } if (assetAutomationSettingsBuilder_ == null) { if (!other.assetAutomationSettings_.isEmpty()) { if (assetAutomationSettings_.isEmpty()) { assetAutomationSettings_ = other.assetAutomationSettings_; bitField1_ = (bitField1_ & ~0x00040000); } else { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.addAll(other.assetAutomationSettings_); } onChanged(); } } else { if (!other.assetAutomationSettings_.isEmpty()) { if (assetAutomationSettingsBuilder_.isEmpty()) { assetAutomationSettingsBuilder_.dispose(); assetAutomationSettingsBuilder_ = null; assetAutomationSettings_ = other.assetAutomationSettings_; bitField1_ = (bitField1_ & ~0x00040000); assetAutomationSettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetAutomationSettingsFieldBuilder() : null; } else { assetAutomationSettingsBuilder_.addAllMessages(other.assetAutomationSettings_); } } } switch (other.getCampaignBiddingStrategyCase()) { case BIDDING_STRATEGY: { campaignBiddingStrategyCase_ = 67; campaignBiddingStrategy_ = other.campaignBiddingStrategy_; onChanged(); break; } case COMMISSION: { mergeCommission(other.getCommission()); break; } case MANUAL_CPA: { mergeManualCpa(other.getManualCpa()); break; } case MANUAL_CPC: { mergeManualCpc(other.getManualCpc()); break; } case MANUAL_CPM: { mergeManualCpm(other.getManualCpm()); break; } case MANUAL_CPV: { mergeManualCpv(other.getManualCpv()); break; } case MAXIMIZE_CONVERSIONS: { mergeMaximizeConversions(other.getMaximizeConversions()); break; } case MAXIMIZE_CONVERSION_VALUE: { mergeMaximizeConversionValue(other.getMaximizeConversionValue()); break; } case TARGET_CPA: { mergeTargetCpa(other.getTargetCpa()); break; } case TARGET_IMPRESSION_SHARE: { mergeTargetImpressionShare(other.getTargetImpressionShare()); break; } case TARGET_ROAS: { mergeTargetRoas(other.getTargetRoas()); break; } case TARGET_SPEND: { mergeTargetSpend(other.getTargetSpend()); break; } case PERCENT_CPC: { mergePercentCpc(other.getPercentCpc()); break; } case TARGET_CPM: { mergeTargetCpm(other.getTargetCpm()); break; } case CAMPAIGNBIDDINGSTRATEGY_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(); bitField0_ |= 0x00000001; break; } // case 10 case 40: { status_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 40 case 64: { adServingOptimizationStatus_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 64 case 72: { advertisingChannelType_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 72 case 80: { advertisingChannelSubType_ = input.readEnum(); bitField0_ |= 0x00000400; break; } // case 80 case 98: { com.google.ads.googleads.v16.common.CustomParameter m = input.readMessage( com.google.ads.googleads.v16.common.CustomParameter.parser(), extensionRegistry); if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.add(m); } else { urlCustomParametersBuilder_.addMessage(m); } break; } // case 98 case 114: { input.readMessage( getNetworkSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 114 case 136: { experimentType_ = input.readEnum(); bitField0_ |= 0x08000000; break; } // case 136 case 168: { servingStatus_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 168 case 176: { biddingStrategyType_ = input.readEnum(); bitField0_ |= 0x40000000; break; } // case 176 case 194: { input.readMessage( getManualCpcFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 24; break; } // case 194 case 202: { input.readMessage( getManualCpmFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 25; break; } // case 202 case 210: { input.readMessage( getTargetCpaFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 26; break; } // case 210 case 218: { input.readMessage( getTargetSpendFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 27; break; } // case 218 case 234: { input.readMessage( getTargetRoasFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 29; break; } // case 234 case 242: { input.readMessage( getMaximizeConversionsFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 30; break; } // case 242 case 250: { input.readMessage( getMaximizeConversionValueFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 31; break; } // case 250 case 258: { input.readMessage( getHotelSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 258 case 266: { input.readMessage( getDynamicSearchAdsSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00080000; break; } // case 266 case 274: { input.readMessage( getPercentCpcFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 34; break; } // case 274 case 290: { input.readMessage( getShoppingSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00100000; break; } // case 290 case 298: { input.readMessage( getManualCpvFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 37; break; } // case 298 case 314: { input.readMessage( getRealTimeBiddingSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 314 case 322: { com.google.ads.googleads.v16.common.FrequencyCapEntry m = input.readMessage( com.google.ads.googleads.v16.common.FrequencyCapEntry.parser(), extensionRegistry); if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); frequencyCaps_.add(m); } else { frequencyCapsBuilder_.addMessage(m); } break; } // case 322 case 330: { input.readMessage( getTargetCpmFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 41; break; } // case 330 case 336: { videoBrandSafetySuitability_ = input.readEnum(); bitField1_ |= 0x00000020; break; } // case 336 case 346: { input.readMessage( getTargetingSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00200000; break; } // case 346 case 354: { input.readMessage( getVanityPharmaFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000040; break; } // case 354 case 362: { input.readMessage( getSelectiveOptimizationFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000080; break; } // case 362 case 370: { input.readMessage( getTrackingSettingFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000200; break; } // case 370 case 378: { input.readMessage( getGeoTargetTypeSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00800000; break; } // case 378 case 386: { input.readMessage( getTargetImpressionShareFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 48; break; } // case 386 case 394: { input.readMessage( getCommissionFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 49; break; } // case 394 case 402: { input.readMessage( getLocalCampaignSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x01000000; break; } // case 402 case 410: { input.readMessage( getAppCampaignSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x02000000; break; } // case 410 case 416: { paymentMode_ = input.readEnum(); bitField1_ |= 0x00000400; break; } // case 416 case 434: { input.readMessage( getOptimizationGoalSettingFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000100; break; } // case 434 case 450: { baseCampaign_ = input.readStringRequireUtf8(); bitField0_ |= 0x10000000; break; } // case 450 case 466: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 466 case 472: { id_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 472 case 482: { trackingUrlTemplate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 482 case 490: { java.lang.String s = input.readStringRequireUtf8(); ensureLabelsIsMutable(); labels_.add(s); break; } // case 490 case 498: { campaignBudget_ = input.readStringRequireUtf8(); bitField0_ |= 0x20000000; break; } // case 498 case 506: { startDate_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000001; break; } // case 506 case 514: { endDate_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000004; break; } // case 514 case 522: { finalUrlSuffix_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000008; break; } // case 522 case 529: { optimizationScore_ = input.readDouble(); bitField1_ |= 0x00000800; break; } // case 529 case 538: { java.lang.String s = input.readStringRequireUtf8(); campaignBiddingStrategyCase_ = 67; campaignBiddingStrategy_ = s; break; } // case 538 case 552: { int tmpRaw = input.readEnum(); ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.add(tmpRaw); break; } // case 552 case 554: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 554 case 570: { accessibleBiddingStrategy_ = input.readStringRequireUtf8(); bitField0_ |= 0x80000000; break; } // case 570 case 576: { urlExpansionOptOut_ = input.readBool(); bitField1_ |= 0x00004000; break; } // case 576 case 586: { input.readMessage( getAudienceSettingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00400000; break; } // case 586 case 594: { input.readMessage( getManualCpaFieldBuilder().getBuilder(), extensionRegistry); campaignBiddingStrategyCase_ = 74; break; } // case 594 case 602: { input.readMessage( getLocalServicesCampaignSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 602 case 610: { campaignGroup_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000002; break; } // case 610 case 618: { input.readMessage( getPerformanceMaxUpgradeFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00008000; break; } // case 618 case 624: { biddingStrategySystemStatus_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 624 case 640: { int tmpRaw = input.readEnum(); ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.add(tmpRaw); break; } // case 640 case 642: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 642 case 648: { primaryStatus_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 648 case 656: { int tmpRaw = input.readEnum(); ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.add(tmpRaw); break; } // case 656 case 658: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 658 case 666: { hotelPropertyAssetSet_ = input.readStringRequireUtf8(); bitField1_ |= 0x00010000; break; } // case 666 case 682: { input.readMessage( getTravelCampaignSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 682 case 688: { listingType_ = input.readEnum(); bitField1_ |= 0x00020000; break; } // case 688 case 698: { input.readMessage( getDiscoveryCampaignSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 698 case 706: { com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting m = input.readMessage( com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.parser(), extensionRegistry); if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.add(m); } else { assetAutomationSettingsBuilder_.addMessage(m); } break; } // case 706 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 campaignBiddingStrategyCase_ = 0; private java.lang.Object campaignBiddingStrategy_; public CampaignBiddingStrategyCase getCampaignBiddingStrategyCase() { return CampaignBiddingStrategyCase.forNumber( campaignBiddingStrategyCase_); } public Builder clearCampaignBiddingStrategy() { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); return this; } private int bitField0_; private int bitField1_; private int bitField2_; private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the campaign.
     * Campaign resource names have the form:
     *
     * `customers/{customer_id}/campaigns/{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 campaign.
     * Campaign resource names have the form:
     *
     * `customers/{customer_id}/campaigns/{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 campaign.
     * Campaign resource names have the form:
     *
     * `customers/{customer_id}/campaigns/{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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Immutable. The resource name of the campaign.
     * Campaign resource names have the form:
     *
     * `customers/{customer_id}/campaigns/{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(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Immutable. The resource name of the campaign.
     * Campaign resource names have the form:
     *
     * `customers/{customer_id}/campaigns/{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; bitField0_ |= 0x00000001; onChanged(); return this; } private long id_ ; /** *
     * Output only. The ID of the campaign.
     * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The ID of the campaign.
     * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of the campaign.
     * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Output only. The ID of the campaign.
     * 
* * optional int64 id = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The name of the campaign.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * It must not contain any null (code point 0x0), NL line feed
     * (code point 0xA) or carriage return (code point 0xD) characters.
     * 
* * optional string name = 58; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int primaryStatus_ = 0; /** *
     * Output only. The primary status of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. Modification to the campaign and its related entities might take
     * a while to be reflected in this status.
     * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for primaryStatus. */ @java.lang.Override public int getPrimaryStatusValue() { return primaryStatus_; } /** *
     * Output only. The primary status of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. Modification to the campaign and its related entities might take
     * a while to be reflected in this status.
     * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for primaryStatus to set. * @return This builder for chaining. */ public Builder setPrimaryStatusValue(int value) { primaryStatus_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Output only. The primary status of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. Modification to the campaign and its related entities might take
     * a while to be reflected in this status.
     * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The primaryStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus getPrimaryStatus() { com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus result = com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.forNumber(primaryStatus_); return result == null ? com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus.UNRECOGNIZED : result; } /** *
     * Output only. The primary status of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. Modification to the campaign and its related entities might take
     * a while to be reflected in this status.
     * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The primaryStatus to set. * @return This builder for chaining. */ public Builder setPrimaryStatus(com.google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; primaryStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The primary status of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. Modification to the campaign and its related entities might take
     * a while to be reflected in this status.
     * 
* * .google.ads.googleads.v16.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus primary_status = 81 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPrimaryStatus() { bitField0_ = (bitField0_ & ~0x00000008); primaryStatus_ = 0; onChanged(); return this; } private java.util.List primaryStatusReasons_ = java.util.Collections.emptyList(); private void ensurePrimaryStatusReasonsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { primaryStatusReasons_ = new java.util.ArrayList(primaryStatusReasons_); bitField0_ |= 0x00000010; } } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the primaryStatusReasons. */ public java.util.List getPrimaryStatusReasonsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason>(primaryStatusReasons_, primaryStatusReasons_converter_); } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of primaryStatusReasons. */ public int getPrimaryStatusReasonsCount() { return primaryStatusReasons_.size(); } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The primaryStatusReasons at the given index. */ public com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason getPrimaryStatusReasons(int index) { return primaryStatusReasons_converter_.convert(primaryStatusReasons_.get(index)); } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The primaryStatusReasons to set. * @return This builder for chaining. */ public Builder setPrimaryStatusReasons( int index, com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason value) { if (value == null) { throw new NullPointerException(); } ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The primaryStatusReasons to add. * @return This builder for chaining. */ public Builder addPrimaryStatusReasons(com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason value) { if (value == null) { throw new NullPointerException(); } ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.add(value.getNumber()); onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The primaryStatusReasons to add. * @return This builder for chaining. */ public Builder addAllPrimaryStatusReasons( java.lang.Iterable values) { ensurePrimaryStatusReasonsIsMutable(); for (com.google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason value : values) { primaryStatusReasons_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPrimaryStatusReasons() { primaryStatusReasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for primaryStatusReasons. */ public java.util.List getPrimaryStatusReasonsValueList() { return java.util.Collections.unmodifiableList(primaryStatusReasons_); } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryStatusReasons at the given index. */ public int getPrimaryStatusReasonsValue(int index) { return primaryStatusReasons_.get(index); } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for primaryStatusReasons to set. * @return This builder for chaining. */ public Builder setPrimaryStatusReasonsValue( int index, int value) { ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.set(index, value); onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for primaryStatusReasons to add. * @return This builder for chaining. */ public Builder addPrimaryStatusReasonsValue(int value) { ensurePrimaryStatusReasonsIsMutable(); primaryStatusReasons_.add(value); onChanged(); return this; } /** *
     * Output only. The primary status reasons of the campaign.
     *
     * Provides insight into why a campaign is not serving or not serving
     * optimally. These reasons are aggregated to determine an overall
     * CampaignPrimaryStatus.
     * 
* * repeated .google.ads.googleads.v16.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason primary_status_reasons = 82 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enum numeric values on the wire for primaryStatusReasons to add. * @return This builder for chaining. */ public Builder addAllPrimaryStatusReasonsValue( java.lang.Iterable values) { ensurePrimaryStatusReasonsIsMutable(); for (int value : values) { primaryStatusReasons_.add(value); } onChanged(); return this; } private int status_ = 0; /** *
     * The status of the campaign.
     *
     * When a new campaign is added, the status defaults to ENABLED.
     * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * The status of the campaign.
     *
     * When a new campaign is added, the status defaults to ENABLED.
     * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The status of the campaign.
     *
     * When a new campaign is added, the status defaults to ENABLED.
     * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus getStatus() { com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result; } /** *
     * The status of the campaign.
     *
     * When a new campaign is added, the status defaults to ENABLED.
     * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; status_ = value.getNumber(); onChanged(); return this; } /** *
     * The status of the campaign.
     *
     * When a new campaign is added, the status defaults to ENABLED.
     * 
* * .google.ads.googleads.v16.enums.CampaignStatusEnum.CampaignStatus status = 5; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000020); status_ = 0; onChanged(); return this; } private int servingStatus_ = 0; /** *
     * Output only. The ad serving status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for servingStatus. */ @java.lang.Override public int getServingStatusValue() { return servingStatus_; } /** *
     * Output only. The ad serving status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for servingStatus to set. * @return This builder for chaining. */ public Builder setServingStatusValue(int value) { servingStatus_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Output only. The ad serving status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The servingStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() { com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.forNumber(servingStatus_); return result == null ? com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result; } /** *
     * Output only. The ad serving status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The servingStatus to set. * @return This builder for chaining. */ public Builder setServingStatus(com.google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; servingStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The ad serving status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearServingStatus() { bitField0_ = (bitField0_ & ~0x00000040); servingStatus_ = 0; onChanged(); return this; } private int biddingStrategySystemStatus_ = 0; /** *
     * Output only. The system status of the campaign's bidding strategy.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for biddingStrategySystemStatus. */ @java.lang.Override public int getBiddingStrategySystemStatusValue() { return biddingStrategySystemStatus_; } /** *
     * Output only. The system status of the campaign's bidding strategy.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for biddingStrategySystemStatus to set. * @return This builder for chaining. */ public Builder setBiddingStrategySystemStatusValue(int value) { biddingStrategySystemStatus_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The system status of the campaign's bidding strategy.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The biddingStrategySystemStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus getBiddingStrategySystemStatus() { com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus result = com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.forNumber(biddingStrategySystemStatus_); return result == null ? com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus.UNRECOGNIZED : result; } /** *
     * Output only. The system status of the campaign's bidding strategy.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The biddingStrategySystemStatus to set. * @return This builder for chaining. */ public Builder setBiddingStrategySystemStatus(com.google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; biddingStrategySystemStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The system status of the campaign's bidding strategy.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus bidding_strategy_system_status = 78 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBiddingStrategySystemStatus() { bitField0_ = (bitField0_ & ~0x00000080); biddingStrategySystemStatus_ = 0; onChanged(); return this; } private int adServingOptimizationStatus_ = 0; /** *
     * The ad serving optimization status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @return The enum numeric value on the wire for adServingOptimizationStatus. */ @java.lang.Override public int getAdServingOptimizationStatusValue() { return adServingOptimizationStatus_; } /** *
     * The ad serving optimization status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @param value The enum numeric value on the wire for adServingOptimizationStatus to set. * @return This builder for chaining. */ public Builder setAdServingOptimizationStatusValue(int value) { adServingOptimizationStatus_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * The ad serving optimization status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @return The adServingOptimizationStatus. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() { com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.forNumber(adServingOptimizationStatus_); return result == null ? com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result; } /** *
     * The ad serving optimization status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @param value The adServingOptimizationStatus to set. * @return This builder for chaining. */ public Builder setAdServingOptimizationStatus(com.google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; adServingOptimizationStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * The ad serving optimization status of the campaign.
     * 
* * .google.ads.googleads.v16.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; * @return This builder for chaining. */ public Builder clearAdServingOptimizationStatus() { bitField0_ = (bitField0_ & ~0x00000100); adServingOptimizationStatus_ = 0; onChanged(); return this; } private int advertisingChannelType_ = 0; /** *
     * Immutable. The primary serving target for ads within the campaign.
     * The targeting options can be refined in `network_settings`.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * Can be set only when creating campaigns.
     * After the campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for advertisingChannelType. */ @java.lang.Override public int getAdvertisingChannelTypeValue() { return advertisingChannelType_; } /** *
     * Immutable. The primary serving target for ads within the campaign.
     * The targeting options can be refined in `network_settings`.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * Can be set only when creating campaigns.
     * After the campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for advertisingChannelType to set. * @return This builder for chaining. */ public Builder setAdvertisingChannelTypeValue(int value) { advertisingChannelType_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Immutable. The primary serving target for ads within the campaign.
     * The targeting options can be refined in `network_settings`.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * Can be set only when creating campaigns.
     * After the campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return The advertisingChannelType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() { com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.forNumber(advertisingChannelType_); return result == null ? com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNRECOGNIZED : result; } /** *
     * Immutable. The primary serving target for ads within the campaign.
     * The targeting options can be refined in `network_settings`.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * Can be set only when creating campaigns.
     * After the campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The advertisingChannelType to set. * @return This builder for chaining. */ public Builder setAdvertisingChannelType(com.google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; advertisingChannelType_ = value.getNumber(); onChanged(); return this; } /** *
     * Immutable. The primary serving target for ads within the campaign.
     * The targeting options can be refined in `network_settings`.
     *
     * This field is required and should not be empty when creating new
     * campaigns.
     *
     * Can be set only when creating campaigns.
     * After the campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearAdvertisingChannelType() { bitField0_ = (bitField0_ & ~0x00000200); advertisingChannelType_ = 0; onChanged(); return this; } private int advertisingChannelSubType_ = 0; /** *
     * Immutable. Optional refinement to `advertising_channel_type`.
     * Must be a valid sub-type of the parent channel type.
     *
     * Can be set only when creating campaigns.
     * After campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for advertisingChannelSubType. */ @java.lang.Override public int getAdvertisingChannelSubTypeValue() { return advertisingChannelSubType_; } /** *
     * Immutable. Optional refinement to `advertising_channel_type`.
     * Must be a valid sub-type of the parent channel type.
     *
     * Can be set only when creating campaigns.
     * After campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for advertisingChannelSubType to set. * @return This builder for chaining. */ public Builder setAdvertisingChannelSubTypeValue(int value) { advertisingChannelSubType_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Immutable. Optional refinement to `advertising_channel_type`.
     * Must be a valid sub-type of the parent channel type.
     *
     * Can be set only when creating campaigns.
     * After campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The advertisingChannelSubType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() { com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.forNumber(advertisingChannelSubType_); return result == null ? com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNRECOGNIZED : result; } /** *
     * Immutable. Optional refinement to `advertising_channel_type`.
     * Must be a valid sub-type of the parent channel type.
     *
     * Can be set only when creating campaigns.
     * After campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The advertisingChannelSubType to set. * @return This builder for chaining. */ public Builder setAdvertisingChannelSubType(com.google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; advertisingChannelSubType_ = value.getNumber(); onChanged(); return this; } /** *
     * Immutable. Optional refinement to `advertising_channel_type`.
     * Must be a valid sub-type of the parent channel type.
     *
     * Can be set only when creating campaigns.
     * After campaign is created, the field can not be changed.
     * 
* * .google.ads.googleads.v16.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearAdvertisingChannelSubType() { bitField0_ = (bitField0_ & ~0x00000400); advertisingChannelSubType_ = 0; onChanged(); return this; } private java.lang.Object trackingUrlTemplate_ = ""; /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @return Whether the trackingUrlTemplate field is set. */ public boolean hasTrackingUrlTemplate() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @return The trackingUrlTemplate. */ public java.lang.String getTrackingUrlTemplate() { java.lang.Object ref = trackingUrlTemplate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrlTemplate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @return The bytes for trackingUrlTemplate. */ public com.google.protobuf.ByteString getTrackingUrlTemplateBytes() { java.lang.Object ref = trackingUrlTemplate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrlTemplate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @param value The trackingUrlTemplate to set. * @return This builder for chaining. */ public Builder setTrackingUrlTemplate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } trackingUrlTemplate_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @return This builder for chaining. */ public Builder clearTrackingUrlTemplate() { trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     * The URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 60; * @param value The bytes for trackingUrlTemplate to set. * @return This builder for chaining. */ public Builder setTrackingUrlTemplateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingUrlTemplate_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.util.List urlCustomParameters_ = java.util.Collections.emptyList(); private void ensureUrlCustomParametersIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.CustomParameter, com.google.ads.googleads.v16.common.CustomParameter.Builder, com.google.ads.googleads.v16.common.CustomParameterOrBuilder> urlCustomParametersBuilder_; /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public java.util.List getUrlCustomParametersList() { if (urlCustomParametersBuilder_ == null) { return java.util.Collections.unmodifiableList(urlCustomParameters_); } else { return urlCustomParametersBuilder_.getMessageList(); } } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public int getUrlCustomParametersCount() { if (urlCustomParametersBuilder_ == null) { return urlCustomParameters_.size(); } else { return urlCustomParametersBuilder_.getCount(); } } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public com.google.ads.googleads.v16.common.CustomParameter getUrlCustomParameters(int index) { if (urlCustomParametersBuilder_ == null) { return urlCustomParameters_.get(index); } else { return urlCustomParametersBuilder_.getMessage(index); } } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder setUrlCustomParameters( int index, com.google.ads.googleads.v16.common.CustomParameter value) { if (urlCustomParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrlCustomParametersIsMutable(); urlCustomParameters_.set(index, value); onChanged(); } else { urlCustomParametersBuilder_.setMessage(index, value); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder setUrlCustomParameters( int index, com.google.ads.googleads.v16.common.CustomParameter.Builder builderForValue) { if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.set(index, builderForValue.build()); onChanged(); } else { urlCustomParametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder addUrlCustomParameters(com.google.ads.googleads.v16.common.CustomParameter value) { if (urlCustomParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrlCustomParametersIsMutable(); urlCustomParameters_.add(value); onChanged(); } else { urlCustomParametersBuilder_.addMessage(value); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder addUrlCustomParameters( int index, com.google.ads.googleads.v16.common.CustomParameter value) { if (urlCustomParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrlCustomParametersIsMutable(); urlCustomParameters_.add(index, value); onChanged(); } else { urlCustomParametersBuilder_.addMessage(index, value); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder addUrlCustomParameters( com.google.ads.googleads.v16.common.CustomParameter.Builder builderForValue) { if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.add(builderForValue.build()); onChanged(); } else { urlCustomParametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder addUrlCustomParameters( int index, com.google.ads.googleads.v16.common.CustomParameter.Builder builderForValue) { if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.add(index, builderForValue.build()); onChanged(); } else { urlCustomParametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder addAllUrlCustomParameters( java.lang.Iterable values) { if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, urlCustomParameters_); onChanged(); } else { urlCustomParametersBuilder_.addAllMessages(values); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder clearUrlCustomParameters() { if (urlCustomParametersBuilder_ == null) { urlCustomParameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { urlCustomParametersBuilder_.clear(); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public Builder removeUrlCustomParameters(int index) { if (urlCustomParametersBuilder_ == null) { ensureUrlCustomParametersIsMutable(); urlCustomParameters_.remove(index); onChanged(); } else { urlCustomParametersBuilder_.remove(index); } return this; } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public com.google.ads.googleads.v16.common.CustomParameter.Builder getUrlCustomParametersBuilder( int index) { return getUrlCustomParametersFieldBuilder().getBuilder(index); } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public com.google.ads.googleads.v16.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder( int index) { if (urlCustomParametersBuilder_ == null) { return urlCustomParameters_.get(index); } else { return urlCustomParametersBuilder_.getMessageOrBuilder(index); } } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public java.util.List getUrlCustomParametersOrBuilderList() { if (urlCustomParametersBuilder_ != null) { return urlCustomParametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(urlCustomParameters_); } } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public com.google.ads.googleads.v16.common.CustomParameter.Builder addUrlCustomParametersBuilder() { return getUrlCustomParametersFieldBuilder().addBuilder( com.google.ads.googleads.v16.common.CustomParameter.getDefaultInstance()); } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public com.google.ads.googleads.v16.common.CustomParameter.Builder addUrlCustomParametersBuilder( int index) { return getUrlCustomParametersFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.common.CustomParameter.getDefaultInstance()); } /** *
     * The list of mappings used to substitute custom parameter tags in a
     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
     * 
* * repeated .google.ads.googleads.v16.common.CustomParameter url_custom_parameters = 12; */ public java.util.List getUrlCustomParametersBuilderList() { return getUrlCustomParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.CustomParameter, com.google.ads.googleads.v16.common.CustomParameter.Builder, com.google.ads.googleads.v16.common.CustomParameterOrBuilder> getUrlCustomParametersFieldBuilder() { if (urlCustomParametersBuilder_ == null) { urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.CustomParameter, com.google.ads.googleads.v16.common.CustomParameter.Builder, com.google.ads.googleads.v16.common.CustomParameterOrBuilder>( urlCustomParameters_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); urlCustomParameters_ = null; } return urlCustomParametersBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings localServicesCampaignSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder> localServicesCampaignSettingsBuilder_; /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; * @return Whether the localServicesCampaignSettings field is set. */ public boolean hasLocalServicesCampaignSettings() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; * @return The localServicesCampaignSettings. */ public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings getLocalServicesCampaignSettings() { if (localServicesCampaignSettingsBuilder_ == null) { return localServicesCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance() : localServicesCampaignSettings_; } else { return localServicesCampaignSettingsBuilder_.getMessage(); } } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public Builder setLocalServicesCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings value) { if (localServicesCampaignSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localServicesCampaignSettings_ = value; } else { localServicesCampaignSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public Builder setLocalServicesCampaignSettings( com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder builderForValue) { if (localServicesCampaignSettingsBuilder_ == null) { localServicesCampaignSettings_ = builderForValue.build(); } else { localServicesCampaignSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public Builder mergeLocalServicesCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings value) { if (localServicesCampaignSettingsBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && localServicesCampaignSettings_ != null && localServicesCampaignSettings_ != com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance()) { getLocalServicesCampaignSettingsBuilder().mergeFrom(value); } else { localServicesCampaignSettings_ = value; } } else { localServicesCampaignSettingsBuilder_.mergeFrom(value); } if (localServicesCampaignSettings_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public Builder clearLocalServicesCampaignSettings() { bitField0_ = (bitField0_ & ~0x00002000); localServicesCampaignSettings_ = null; if (localServicesCampaignSettingsBuilder_ != null) { localServicesCampaignSettingsBuilder_.dispose(); localServicesCampaignSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder getLocalServicesCampaignSettingsBuilder() { bitField0_ |= 0x00002000; onChanged(); return getLocalServicesCampaignSettingsFieldBuilder().getBuilder(); } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ public com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder getLocalServicesCampaignSettingsOrBuilder() { if (localServicesCampaignSettingsBuilder_ != null) { return localServicesCampaignSettingsBuilder_.getMessageOrBuilder(); } else { return localServicesCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.getDefaultInstance() : localServicesCampaignSettings_; } } /** *
     * The Local Services Campaign related settings.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings local_services_campaign_settings = 75; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder> getLocalServicesCampaignSettingsFieldBuilder() { if (localServicesCampaignSettingsBuilder_ == null) { localServicesCampaignSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalServicesCampaignSettingsOrBuilder>( getLocalServicesCampaignSettings(), getParentForChildren(), isClean()); localServicesCampaignSettings_ = null; } return localServicesCampaignSettingsBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travelCampaignSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder> travelCampaignSettingsBuilder_; /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; * @return Whether the travelCampaignSettings field is set. */ public boolean hasTravelCampaignSettings() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; * @return The travelCampaignSettings. */ public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings getTravelCampaignSettings() { if (travelCampaignSettingsBuilder_ == null) { return travelCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance() : travelCampaignSettings_; } else { return travelCampaignSettingsBuilder_.getMessage(); } } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public Builder setTravelCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings value) { if (travelCampaignSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } travelCampaignSettings_ = value; } else { travelCampaignSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public Builder setTravelCampaignSettings( com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder builderForValue) { if (travelCampaignSettingsBuilder_ == null) { travelCampaignSettings_ = builderForValue.build(); } else { travelCampaignSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public Builder mergeTravelCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings value) { if (travelCampaignSettingsBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && travelCampaignSettings_ != null && travelCampaignSettings_ != com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance()) { getTravelCampaignSettingsBuilder().mergeFrom(value); } else { travelCampaignSettings_ = value; } } else { travelCampaignSettingsBuilder_.mergeFrom(value); } if (travelCampaignSettings_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public Builder clearTravelCampaignSettings() { bitField0_ = (bitField0_ & ~0x00004000); travelCampaignSettings_ = null; if (travelCampaignSettingsBuilder_ != null) { travelCampaignSettingsBuilder_.dispose(); travelCampaignSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder getTravelCampaignSettingsBuilder() { bitField0_ |= 0x00004000; onChanged(); return getTravelCampaignSettingsFieldBuilder().getBuilder(); } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ public com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder getTravelCampaignSettingsOrBuilder() { if (travelCampaignSettingsBuilder_ != null) { return travelCampaignSettingsBuilder_.getMessageOrBuilder(); } else { return travelCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.getDefaultInstance() : travelCampaignSettings_; } } /** *
     * Settings for Travel campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings travel_campaign_settings = 85; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder> getTravelCampaignSettingsFieldBuilder() { if (travelCampaignSettingsBuilder_ == null) { travelCampaignSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.TravelCampaignSettingsOrBuilder>( getTravelCampaignSettings(), getParentForChildren(), isClean()); travelCampaignSettings_ = null; } return travelCampaignSettingsBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discoveryCampaignSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder> discoveryCampaignSettingsBuilder_; /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; * @return Whether the discoveryCampaignSettings field is set. */ public boolean hasDiscoveryCampaignSettings() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; * @return The discoveryCampaignSettings. */ public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings getDiscoveryCampaignSettings() { if (discoveryCampaignSettingsBuilder_ == null) { return discoveryCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance() : discoveryCampaignSettings_; } else { return discoveryCampaignSettingsBuilder_.getMessage(); } } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public Builder setDiscoveryCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings value) { if (discoveryCampaignSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } discoveryCampaignSettings_ = value; } else { discoveryCampaignSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public Builder setDiscoveryCampaignSettings( com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder builderForValue) { if (discoveryCampaignSettingsBuilder_ == null) { discoveryCampaignSettings_ = builderForValue.build(); } else { discoveryCampaignSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public Builder mergeDiscoveryCampaignSettings(com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings value) { if (discoveryCampaignSettingsBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && discoveryCampaignSettings_ != null && discoveryCampaignSettings_ != com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance()) { getDiscoveryCampaignSettingsBuilder().mergeFrom(value); } else { discoveryCampaignSettings_ = value; } } else { discoveryCampaignSettingsBuilder_.mergeFrom(value); } if (discoveryCampaignSettings_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public Builder clearDiscoveryCampaignSettings() { bitField0_ = (bitField0_ & ~0x00008000); discoveryCampaignSettings_ = null; if (discoveryCampaignSettingsBuilder_ != null) { discoveryCampaignSettingsBuilder_.dispose(); discoveryCampaignSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder getDiscoveryCampaignSettingsBuilder() { bitField0_ |= 0x00008000; onChanged(); return getDiscoveryCampaignSettingsFieldBuilder().getBuilder(); } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ public com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder getDiscoveryCampaignSettingsOrBuilder() { if (discoveryCampaignSettingsBuilder_ != null) { return discoveryCampaignSettingsBuilder_.getMessageOrBuilder(); } else { return discoveryCampaignSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.getDefaultInstance() : discoveryCampaignSettings_; } } /** *
     * Settings for Discovery campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings discovery_campaign_settings = 87; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder> getDiscoveryCampaignSettingsFieldBuilder() { if (discoveryCampaignSettingsBuilder_ == null) { discoveryCampaignSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.DiscoveryCampaignSettingsOrBuilder>( getDiscoveryCampaignSettings(), getParentForChildren(), isClean()); discoveryCampaignSettings_ = null; } return discoveryCampaignSettingsBuilder_; } private com.google.ads.googleads.v16.common.RealTimeBiddingSetting realTimeBiddingSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.RealTimeBiddingSetting, com.google.ads.googleads.v16.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v16.common.RealTimeBiddingSettingOrBuilder> realTimeBiddingSettingBuilder_; /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; * @return Whether the realTimeBiddingSetting field is set. */ public boolean hasRealTimeBiddingSetting() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; * @return The realTimeBiddingSetting. */ public com.google.ads.googleads.v16.common.RealTimeBiddingSetting getRealTimeBiddingSetting() { if (realTimeBiddingSettingBuilder_ == null) { return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v16.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } else { return realTimeBiddingSettingBuilder_.getMessage(); } } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public Builder setRealTimeBiddingSetting(com.google.ads.googleads.v16.common.RealTimeBiddingSetting value) { if (realTimeBiddingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } realTimeBiddingSetting_ = value; } else { realTimeBiddingSettingBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public Builder setRealTimeBiddingSetting( com.google.ads.googleads.v16.common.RealTimeBiddingSetting.Builder builderForValue) { if (realTimeBiddingSettingBuilder_ == null) { realTimeBiddingSetting_ = builderForValue.build(); } else { realTimeBiddingSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public Builder mergeRealTimeBiddingSetting(com.google.ads.googleads.v16.common.RealTimeBiddingSetting value) { if (realTimeBiddingSettingBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && realTimeBiddingSetting_ != null && realTimeBiddingSetting_ != com.google.ads.googleads.v16.common.RealTimeBiddingSetting.getDefaultInstance()) { getRealTimeBiddingSettingBuilder().mergeFrom(value); } else { realTimeBiddingSetting_ = value; } } else { realTimeBiddingSettingBuilder_.mergeFrom(value); } if (realTimeBiddingSetting_ != null) { bitField0_ |= 0x00010000; onChanged(); } return this; } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public Builder clearRealTimeBiddingSetting() { bitField0_ = (bitField0_ & ~0x00010000); realTimeBiddingSetting_ = null; if (realTimeBiddingSettingBuilder_ != null) { realTimeBiddingSettingBuilder_.dispose(); realTimeBiddingSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public com.google.ads.googleads.v16.common.RealTimeBiddingSetting.Builder getRealTimeBiddingSettingBuilder() { bitField0_ |= 0x00010000; onChanged(); return getRealTimeBiddingSettingFieldBuilder().getBuilder(); } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ public com.google.ads.googleads.v16.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() { if (realTimeBiddingSettingBuilder_ != null) { return realTimeBiddingSettingBuilder_.getMessageOrBuilder(); } else { return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v16.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } } /** *
     * Settings for Real-Time Bidding, a feature only available for campaigns
     * targeting the Ad Exchange network.
     * 
* * .google.ads.googleads.v16.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.RealTimeBiddingSetting, com.google.ads.googleads.v16.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v16.common.RealTimeBiddingSettingOrBuilder> getRealTimeBiddingSettingFieldBuilder() { if (realTimeBiddingSettingBuilder_ == null) { realTimeBiddingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.RealTimeBiddingSetting, com.google.ads.googleads.v16.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v16.common.RealTimeBiddingSettingOrBuilder>( getRealTimeBiddingSetting(), getParentForChildren(), isClean()); realTimeBiddingSetting_ = null; } return realTimeBiddingSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.NetworkSettings networkSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.NetworkSettings, com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder> networkSettingsBuilder_; /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; * @return Whether the networkSettings field is set. */ public boolean hasNetworkSettings() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; * @return The networkSettings. */ public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings getNetworkSettings() { if (networkSettingsBuilder_ == null) { return networkSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } else { return networkSettingsBuilder_.getMessage(); } } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public Builder setNetworkSettings(com.google.ads.googleads.v16.resources.Campaign.NetworkSettings value) { if (networkSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } networkSettings_ = value; } else { networkSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public Builder setNetworkSettings( com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder builderForValue) { if (networkSettingsBuilder_ == null) { networkSettings_ = builderForValue.build(); } else { networkSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public Builder mergeNetworkSettings(com.google.ads.googleads.v16.resources.Campaign.NetworkSettings value) { if (networkSettingsBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && networkSettings_ != null && networkSettings_ != com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance()) { getNetworkSettingsBuilder().mergeFrom(value); } else { networkSettings_ = value; } } else { networkSettingsBuilder_.mergeFrom(value); } if (networkSettings_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public Builder clearNetworkSettings() { bitField0_ = (bitField0_ & ~0x00020000); networkSettings_ = null; if (networkSettingsBuilder_ != null) { networkSettingsBuilder_.dispose(); networkSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder getNetworkSettingsBuilder() { bitField0_ |= 0x00020000; onChanged(); return getNetworkSettingsFieldBuilder().getBuilder(); } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ public com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { if (networkSettingsBuilder_ != null) { return networkSettingsBuilder_.getMessageOrBuilder(); } else { return networkSettings_ == null ? com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } } /** *
     * The network settings for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.NetworkSettings network_settings = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.NetworkSettings, com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder> getNetworkSettingsFieldBuilder() { if (networkSettingsBuilder_ == null) { networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.NetworkSettings, com.google.ads.googleads.v16.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v16.resources.Campaign.NetworkSettingsOrBuilder>( getNetworkSettings(), getParentForChildren(), isClean()); networkSettings_ = null; } return networkSettingsBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotelSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder> hotelSettingBuilder_; /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelSetting field is set. */ public boolean hasHotelSetting() { return ((bitField0_ & 0x00040000) != 0); } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelSetting. */ public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo getHotelSetting() { if (hotelSettingBuilder_ == null) { return hotelSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; } else { return hotelSettingBuilder_.getMessage(); } } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelSetting(com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo value) { if (hotelSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hotelSetting_ = value; } else { hotelSettingBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelSetting( com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder builderForValue) { if (hotelSettingBuilder_ == null) { hotelSetting_ = builderForValue.build(); } else { hotelSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelSetting(com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo value) { if (hotelSettingBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && hotelSetting_ != null && hotelSetting_ != com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance()) { getHotelSettingBuilder().mergeFrom(value); } else { hotelSetting_ = value; } } else { hotelSettingBuilder_.mergeFrom(value); } if (hotelSetting_ != null) { bitField0_ |= 0x00040000; onChanged(); } return this; } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelSetting() { bitField0_ = (bitField0_ & ~0x00040000); hotelSetting_ = null; if (hotelSettingBuilder_ != null) { hotelSettingBuilder_.dispose(); hotelSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder getHotelSettingBuilder() { bitField0_ |= 0x00040000; onChanged(); return getHotelSettingFieldBuilder().getBuilder(); } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() { if (hotelSettingBuilder_ != null) { return hotelSettingBuilder_.getMessageOrBuilder(); } else { return hotelSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; } } /** *
     * Immutable. The hotel setting for the campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder> getHotelSettingFieldBuilder() { if (hotelSettingBuilder_ == null) { hotelSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v16.resources.Campaign.HotelSettingInfoOrBuilder>( getHotelSetting(), getParentForChildren(), isClean()); hotelSetting_ = null; } return hotelSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder> dynamicSearchAdsSettingBuilder_; /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; * @return Whether the dynamicSearchAdsSetting field is set. */ public boolean hasDynamicSearchAdsSetting() { return ((bitField0_ & 0x00080000) != 0); } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; * @return The dynamicSearchAdsSetting. */ public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() { if (dynamicSearchAdsSettingBuilder_ == null) { return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } else { return dynamicSearchAdsSettingBuilder_.getMessage(); } } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public Builder setDynamicSearchAdsSetting(com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting value) { if (dynamicSearchAdsSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dynamicSearchAdsSetting_ = value; } else { dynamicSearchAdsSettingBuilder_.setMessage(value); } bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public Builder setDynamicSearchAdsSetting( com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder builderForValue) { if (dynamicSearchAdsSettingBuilder_ == null) { dynamicSearchAdsSetting_ = builderForValue.build(); } else { dynamicSearchAdsSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public Builder mergeDynamicSearchAdsSetting(com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting value) { if (dynamicSearchAdsSettingBuilder_ == null) { if (((bitField0_ & 0x00080000) != 0) && dynamicSearchAdsSetting_ != null && dynamicSearchAdsSetting_ != com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance()) { getDynamicSearchAdsSettingBuilder().mergeFrom(value); } else { dynamicSearchAdsSetting_ = value; } } else { dynamicSearchAdsSettingBuilder_.mergeFrom(value); } if (dynamicSearchAdsSetting_ != null) { bitField0_ |= 0x00080000; onChanged(); } return this; } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public Builder clearDynamicSearchAdsSetting() { bitField0_ = (bitField0_ & ~0x00080000); dynamicSearchAdsSetting_ = null; if (dynamicSearchAdsSettingBuilder_ != null) { dynamicSearchAdsSettingBuilder_.dispose(); dynamicSearchAdsSettingBuilder_ = null; } onChanged(); return this; } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder getDynamicSearchAdsSettingBuilder() { bitField0_ |= 0x00080000; onChanged(); return getDynamicSearchAdsSettingFieldBuilder().getBuilder(); } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ public com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() { if (dynamicSearchAdsSettingBuilder_ != null) { return dynamicSearchAdsSettingBuilder_.getMessageOrBuilder(); } else { return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } } /** *
     * The setting for controlling Dynamic Search Ads (DSA).
     * 
* * .google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder> getDynamicSearchAdsSettingFieldBuilder() { if (dynamicSearchAdsSettingBuilder_ == null) { dynamicSearchAdsSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.DynamicSearchAdsSettingOrBuilder>( getDynamicSearchAdsSetting(), getParentForChildren(), isClean()); dynamicSearchAdsSetting_ = null; } return dynamicSearchAdsSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting shoppingSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder> shoppingSettingBuilder_; /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; * @return Whether the shoppingSetting field is set. */ public boolean hasShoppingSetting() { return ((bitField0_ & 0x00100000) != 0); } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; * @return The shoppingSetting. */ public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting getShoppingSetting() { if (shoppingSettingBuilder_ == null) { return shoppingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } else { return shoppingSettingBuilder_.getMessage(); } } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public Builder setShoppingSetting(com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting value) { if (shoppingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shoppingSetting_ = value; } else { shoppingSettingBuilder_.setMessage(value); } bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public Builder setShoppingSetting( com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder builderForValue) { if (shoppingSettingBuilder_ == null) { shoppingSetting_ = builderForValue.build(); } else { shoppingSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public Builder mergeShoppingSetting(com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting value) { if (shoppingSettingBuilder_ == null) { if (((bitField0_ & 0x00100000) != 0) && shoppingSetting_ != null && shoppingSetting_ != com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance()) { getShoppingSettingBuilder().mergeFrom(value); } else { shoppingSetting_ = value; } } else { shoppingSettingBuilder_.mergeFrom(value); } if (shoppingSetting_ != null) { bitField0_ |= 0x00100000; onChanged(); } return this; } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public Builder clearShoppingSetting() { bitField0_ = (bitField0_ & ~0x00100000); shoppingSetting_ = null; if (shoppingSettingBuilder_ != null) { shoppingSettingBuilder_.dispose(); shoppingSettingBuilder_ = null; } onChanged(); return this; } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder getShoppingSettingBuilder() { bitField0_ |= 0x00100000; onChanged(); return getShoppingSettingFieldBuilder().getBuilder(); } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ public com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() { if (shoppingSettingBuilder_ != null) { return shoppingSettingBuilder_.getMessageOrBuilder(); } else { return shoppingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } } /** *
     * The setting for controlling Shopping campaigns.
     * 
* * .google.ads.googleads.v16.resources.Campaign.ShoppingSetting shopping_setting = 36; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder> getShoppingSettingFieldBuilder() { if (shoppingSettingBuilder_ == null) { shoppingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v16.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.ShoppingSettingOrBuilder>( getShoppingSetting(), getParentForChildren(), isClean()); shoppingSetting_ = null; } return shoppingSettingBuilder_; } private com.google.ads.googleads.v16.common.TargetingSetting targetingSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetingSetting, com.google.ads.googleads.v16.common.TargetingSetting.Builder, com.google.ads.googleads.v16.common.TargetingSettingOrBuilder> targetingSettingBuilder_; /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; * @return Whether the targetingSetting field is set. */ public boolean hasTargetingSetting() { return ((bitField0_ & 0x00200000) != 0); } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; * @return The targetingSetting. */ public com.google.ads.googleads.v16.common.TargetingSetting getTargetingSetting() { if (targetingSettingBuilder_ == null) { return targetingSetting_ == null ? com.google.ads.googleads.v16.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } else { return targetingSettingBuilder_.getMessage(); } } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public Builder setTargetingSetting(com.google.ads.googleads.v16.common.TargetingSetting value) { if (targetingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetingSetting_ = value; } else { targetingSettingBuilder_.setMessage(value); } bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public Builder setTargetingSetting( com.google.ads.googleads.v16.common.TargetingSetting.Builder builderForValue) { if (targetingSettingBuilder_ == null) { targetingSetting_ = builderForValue.build(); } else { targetingSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public Builder mergeTargetingSetting(com.google.ads.googleads.v16.common.TargetingSetting value) { if (targetingSettingBuilder_ == null) { if (((bitField0_ & 0x00200000) != 0) && targetingSetting_ != null && targetingSetting_ != com.google.ads.googleads.v16.common.TargetingSetting.getDefaultInstance()) { getTargetingSettingBuilder().mergeFrom(value); } else { targetingSetting_ = value; } } else { targetingSettingBuilder_.mergeFrom(value); } if (targetingSetting_ != null) { bitField0_ |= 0x00200000; onChanged(); } return this; } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public Builder clearTargetingSetting() { bitField0_ = (bitField0_ & ~0x00200000); targetingSetting_ = null; if (targetingSettingBuilder_ != null) { targetingSettingBuilder_.dispose(); targetingSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public com.google.ads.googleads.v16.common.TargetingSetting.Builder getTargetingSettingBuilder() { bitField0_ |= 0x00200000; onChanged(); return getTargetingSettingFieldBuilder().getBuilder(); } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ public com.google.ads.googleads.v16.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { if (targetingSettingBuilder_ != null) { return targetingSettingBuilder_.getMessageOrBuilder(); } else { return targetingSetting_ == null ? com.google.ads.googleads.v16.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } } /** *
     * Setting for targeting related features.
     * 
* * .google.ads.googleads.v16.common.TargetingSetting targeting_setting = 43; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetingSetting, com.google.ads.googleads.v16.common.TargetingSetting.Builder, com.google.ads.googleads.v16.common.TargetingSettingOrBuilder> getTargetingSettingFieldBuilder() { if (targetingSettingBuilder_ == null) { targetingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetingSetting, com.google.ads.googleads.v16.common.TargetingSetting.Builder, com.google.ads.googleads.v16.common.TargetingSettingOrBuilder>( getTargetingSetting(), getParentForChildren(), isClean()); targetingSetting_ = null; } return targetingSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.AudienceSetting audienceSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AudienceSetting, com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder> audienceSettingBuilder_; /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the audienceSetting field is set. */ public boolean hasAudienceSetting() { return ((bitField0_ & 0x00400000) != 0); } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; * @return The audienceSetting. */ public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting getAudienceSetting() { if (audienceSettingBuilder_ == null) { return audienceSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_; } else { return audienceSettingBuilder_.getMessage(); } } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setAudienceSetting(com.google.ads.googleads.v16.resources.Campaign.AudienceSetting value) { if (audienceSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audienceSetting_ = value; } else { audienceSettingBuilder_.setMessage(value); } bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setAudienceSetting( com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder builderForValue) { if (audienceSettingBuilder_ == null) { audienceSetting_ = builderForValue.build(); } else { audienceSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeAudienceSetting(com.google.ads.googleads.v16.resources.Campaign.AudienceSetting value) { if (audienceSettingBuilder_ == null) { if (((bitField0_ & 0x00400000) != 0) && audienceSetting_ != null && audienceSetting_ != com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance()) { getAudienceSettingBuilder().mergeFrom(value); } else { audienceSetting_ = value; } } else { audienceSettingBuilder_.mergeFrom(value); } if (audienceSetting_ != null) { bitField0_ |= 0x00400000; onChanged(); } return this; } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearAudienceSetting() { bitField0_ = (bitField0_ & ~0x00400000); audienceSetting_ = null; if (audienceSettingBuilder_ != null) { audienceSettingBuilder_.dispose(); audienceSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder getAudienceSettingBuilder() { bitField0_ |= 0x00400000; onChanged(); return getAudienceSettingFieldBuilder().getBuilder(); } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder getAudienceSettingOrBuilder() { if (audienceSettingBuilder_ != null) { return audienceSettingBuilder_.getMessageOrBuilder(); } else { return audienceSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_; } } /** *
     * Immutable. Setting for audience related features.
     * 
* * optional .google.ads.googleads.v16.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AudienceSetting, com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder> getAudienceSettingFieldBuilder() { if (audienceSettingBuilder_ == null) { audienceSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AudienceSetting, com.google.ads.googleads.v16.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AudienceSettingOrBuilder>( getAudienceSetting(), getParentForChildren(), isClean()); audienceSetting_ = null; } return audienceSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geoTargetTypeSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder> geoTargetTypeSettingBuilder_; /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; * @return Whether the geoTargetTypeSetting field is set. */ public boolean hasGeoTargetTypeSetting() { return ((bitField0_ & 0x00800000) != 0); } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; * @return The geoTargetTypeSetting. */ public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting getGeoTargetTypeSetting() { if (geoTargetTypeSettingBuilder_ == null) { return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_; } else { return geoTargetTypeSettingBuilder_.getMessage(); } } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public Builder setGeoTargetTypeSetting(com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting value) { if (geoTargetTypeSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } geoTargetTypeSetting_ = value; } else { geoTargetTypeSettingBuilder_.setMessage(value); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public Builder setGeoTargetTypeSetting( com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder builderForValue) { if (geoTargetTypeSettingBuilder_ == null) { geoTargetTypeSetting_ = builderForValue.build(); } else { geoTargetTypeSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public Builder mergeGeoTargetTypeSetting(com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting value) { if (geoTargetTypeSettingBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) && geoTargetTypeSetting_ != null && geoTargetTypeSetting_ != com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance()) { getGeoTargetTypeSettingBuilder().mergeFrom(value); } else { geoTargetTypeSetting_ = value; } } else { geoTargetTypeSettingBuilder_.mergeFrom(value); } if (geoTargetTypeSetting_ != null) { bitField0_ |= 0x00800000; onChanged(); } return this; } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public Builder clearGeoTargetTypeSetting() { bitField0_ = (bitField0_ & ~0x00800000); geoTargetTypeSetting_ = null; if (geoTargetTypeSettingBuilder_ != null) { geoTargetTypeSettingBuilder_.dispose(); geoTargetTypeSettingBuilder_ = null; } onChanged(); return this; } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder getGeoTargetTypeSettingBuilder() { bitField0_ |= 0x00800000; onChanged(); return getGeoTargetTypeSettingFieldBuilder().getBuilder(); } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ public com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder getGeoTargetTypeSettingOrBuilder() { if (geoTargetTypeSettingBuilder_ != null) { return geoTargetTypeSettingBuilder_.getMessageOrBuilder(); } else { return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_; } } /** *
     * The setting for ads geotargeting.
     * 
* * .google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder> getGeoTargetTypeSettingFieldBuilder() { if (geoTargetTypeSettingBuilder_ == null) { geoTargetTypeSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.GeoTargetTypeSettingOrBuilder>( getGeoTargetTypeSetting(), getParentForChildren(), isClean()); geoTargetTypeSetting_ = null; } return geoTargetTypeSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting localCampaignSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder> localCampaignSettingBuilder_; /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; * @return Whether the localCampaignSetting field is set. */ public boolean hasLocalCampaignSetting() { return ((bitField0_ & 0x01000000) != 0); } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; * @return The localCampaignSetting. */ public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting getLocalCampaignSetting() { if (localCampaignSettingBuilder_ == null) { return localCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_; } else { return localCampaignSettingBuilder_.getMessage(); } } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public Builder setLocalCampaignSetting(com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting value) { if (localCampaignSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localCampaignSetting_ = value; } else { localCampaignSettingBuilder_.setMessage(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public Builder setLocalCampaignSetting( com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder builderForValue) { if (localCampaignSettingBuilder_ == null) { localCampaignSetting_ = builderForValue.build(); } else { localCampaignSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public Builder mergeLocalCampaignSetting(com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting value) { if (localCampaignSettingBuilder_ == null) { if (((bitField0_ & 0x01000000) != 0) && localCampaignSetting_ != null && localCampaignSetting_ != com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance()) { getLocalCampaignSettingBuilder().mergeFrom(value); } else { localCampaignSetting_ = value; } } else { localCampaignSettingBuilder_.mergeFrom(value); } if (localCampaignSetting_ != null) { bitField0_ |= 0x01000000; onChanged(); } return this; } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public Builder clearLocalCampaignSetting() { bitField0_ = (bitField0_ & ~0x01000000); localCampaignSetting_ = null; if (localCampaignSettingBuilder_ != null) { localCampaignSettingBuilder_.dispose(); localCampaignSettingBuilder_ = null; } onChanged(); return this; } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder getLocalCampaignSettingBuilder() { bitField0_ |= 0x01000000; onChanged(); return getLocalCampaignSettingFieldBuilder().getBuilder(); } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ public com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder getLocalCampaignSettingOrBuilder() { if (localCampaignSettingBuilder_ != null) { return localCampaignSettingBuilder_.getMessageOrBuilder(); } else { return localCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_; } } /** *
     * The setting for local campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder> getLocalCampaignSettingFieldBuilder() { if (localCampaignSettingBuilder_ == null) { localCampaignSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.LocalCampaignSettingOrBuilder>( getLocalCampaignSetting(), getParentForChildren(), isClean()); localCampaignSetting_ = null; } return localCampaignSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting appCampaignSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder> appCampaignSettingBuilder_; /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; * @return Whether the appCampaignSetting field is set. */ public boolean hasAppCampaignSetting() { return ((bitField0_ & 0x02000000) != 0); } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; * @return The appCampaignSetting. */ public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting getAppCampaignSetting() { if (appCampaignSettingBuilder_ == null) { return appCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_; } else { return appCampaignSettingBuilder_.getMessage(); } } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public Builder setAppCampaignSetting(com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting value) { if (appCampaignSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appCampaignSetting_ = value; } else { appCampaignSettingBuilder_.setMessage(value); } bitField0_ |= 0x02000000; onChanged(); return this; } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public Builder setAppCampaignSetting( com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder builderForValue) { if (appCampaignSettingBuilder_ == null) { appCampaignSetting_ = builderForValue.build(); } else { appCampaignSettingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; onChanged(); return this; } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public Builder mergeAppCampaignSetting(com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting value) { if (appCampaignSettingBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0) && appCampaignSetting_ != null && appCampaignSetting_ != com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance()) { getAppCampaignSettingBuilder().mergeFrom(value); } else { appCampaignSetting_ = value; } } else { appCampaignSettingBuilder_.mergeFrom(value); } if (appCampaignSetting_ != null) { bitField0_ |= 0x02000000; onChanged(); } return this; } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public Builder clearAppCampaignSetting() { bitField0_ = (bitField0_ & ~0x02000000); appCampaignSetting_ = null; if (appCampaignSettingBuilder_ != null) { appCampaignSettingBuilder_.dispose(); appCampaignSettingBuilder_ = null; } onChanged(); return this; } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder getAppCampaignSettingBuilder() { bitField0_ |= 0x02000000; onChanged(); return getAppCampaignSettingFieldBuilder().getBuilder(); } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ public com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder getAppCampaignSettingOrBuilder() { if (appCampaignSettingBuilder_ != null) { return appCampaignSettingBuilder_.getMessageOrBuilder(); } else { return appCampaignSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_; } } /** *
     * The setting related to App Campaign.
     * 
* * .google.ads.googleads.v16.resources.Campaign.AppCampaignSetting app_campaign_setting = 51; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder> getAppCampaignSettingFieldBuilder() { if (appCampaignSettingBuilder_ == null) { appCampaignSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AppCampaignSettingOrBuilder>( getAppCampaignSetting(), getParentForChildren(), isClean()); appCampaignSetting_ = null; } return appCampaignSettingBuilder_; } private com.google.protobuf.LazyStringArrayList labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLabelsIsMutable() { if (!labels_.isModifiable()) { labels_ = new com.google.protobuf.LazyStringArrayList(labels_); } bitField0_ |= 0x04000000; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the labels. */ public com.google.protobuf.ProtocolStringList getLabelsList() { labels_.makeImmutable(); return labels_; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The labels at the given index. */ public java.lang.String getLabels(int index) { return labels_.get(index); } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the labels at the given index. */ public com.google.protobuf.ByteString getLabelsBytes(int index) { return labels_.getByteString(index); } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The labels to add. * @return This builder for chaining. */ public Builder addLabels( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( java.lang.Iterable values) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labels_); bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLabels() { labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x04000000);; onChanged(); return this; } /** *
     * Output only. The resource names of labels attached to this campaign.
     * 
* * repeated string labels = 61 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the labels to add. * @return This builder for chaining. */ public Builder addLabelsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLabelsIsMutable(); labels_.add(value); bitField0_ |= 0x04000000; onChanged(); return this; } private int experimentType_ = 0; /** *
     * Output only. The type of campaign: normal, draft, or experiment.
     * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for experimentType. */ @java.lang.Override public int getExperimentTypeValue() { return experimentType_; } /** *
     * Output only. The type of campaign: normal, draft, or experiment.
     * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for experimentType to set. * @return This builder for chaining. */ public Builder setExperimentTypeValue(int value) { experimentType_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } /** *
     * Output only. The type of campaign: normal, draft, or experiment.
     * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The experimentType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType getExperimentType() { com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType result = com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.forNumber(experimentType_); return result == null ? com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNRECOGNIZED : result; } /** *
     * Output only. The type of campaign: normal, draft, or experiment.
     * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The experimentType to set. * @return This builder for chaining. */ public Builder setExperimentType(com.google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x08000000; experimentType_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of campaign: normal, draft, or experiment.
     * 
* * .google.ads.googleads.v16.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExperimentType() { bitField0_ = (bitField0_ & ~0x08000000); experimentType_ = 0; onChanged(); return this; } private java.lang.Object baseCampaign_ = ""; /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the baseCampaign field is set. */ public boolean hasBaseCampaign() { return ((bitField0_ & 0x10000000) != 0); } /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The baseCampaign. */ public java.lang.String getBaseCampaign() { java.lang.Object ref = baseCampaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseCampaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for baseCampaign. */ public com.google.protobuf.ByteString getBaseCampaignBytes() { java.lang.Object ref = baseCampaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseCampaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The baseCampaign to set. * @return This builder for chaining. */ public Builder setBaseCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } baseCampaign_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBaseCampaign() { baseCampaign_ = getDefaultInstance().getBaseCampaign(); bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } /** *
     * Output only. The resource name of the base campaign of a draft or
     * experiment campaign. For base campaigns, this is equal to `resource_name`.
     *
     * This field is read-only.
     * 
* * optional string base_campaign = 56 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for baseCampaign to set. * @return This builder for chaining. */ public Builder setBaseCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseCampaign_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } private java.lang.Object campaignBudget_ = ""; /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return Whether the campaignBudget field is set. */ public boolean hasCampaignBudget() { return ((bitField0_ & 0x20000000) != 0); } /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return The campaignBudget. */ public java.lang.String getCampaignBudget() { java.lang.Object ref = campaignBudget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaignBudget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return The bytes for campaignBudget. */ public com.google.protobuf.ByteString getCampaignBudgetBytes() { java.lang.Object ref = campaignBudget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @param value The campaignBudget to set. * @return This builder for chaining. */ public Builder setCampaignBudget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaignBudget_ = value; bitField0_ |= 0x20000000; onChanged(); return this; } /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaignBudget() { campaignBudget_ = getDefaultInstance().getCampaignBudget(); bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } /** *
     * The budget of the campaign.
     * 
* * optional string campaign_budget = 62 [(.google.api.resource_reference) = { ... } * @param value The bytes for campaignBudget to set. * @return This builder for chaining. */ public Builder setCampaignBudgetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaignBudget_ = value; bitField0_ |= 0x20000000; onChanged(); return this; } private int biddingStrategyType_ = 0; /** *
     * Output only. The type of bidding strategy.
     *
     * A bidding strategy can be created by setting either the bidding scheme to
     * create a standard bidding strategy or the `bidding_strategy` field to
     * create a portfolio bidding strategy.
     *
     * This field is read-only.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for biddingStrategyType. */ @java.lang.Override public int getBiddingStrategyTypeValue() { return biddingStrategyType_; } /** *
     * Output only. The type of bidding strategy.
     *
     * A bidding strategy can be created by setting either the bidding scheme to
     * create a standard bidding strategy or the `bidding_strategy` field to
     * create a portfolio bidding strategy.
     *
     * This field is read-only.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for biddingStrategyType to set. * @return This builder for chaining. */ public Builder setBiddingStrategyTypeValue(int value) { biddingStrategyType_ = value; bitField0_ |= 0x40000000; onChanged(); return this; } /** *
     * Output only. The type of bidding strategy.
     *
     * A bidding strategy can be created by setting either the bidding scheme to
     * create a standard bidding strategy or the `bidding_strategy` field to
     * create a portfolio bidding strategy.
     *
     * This field is read-only.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The biddingStrategyType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() { com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.forNumber(biddingStrategyType_); return result == null ? com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNRECOGNIZED : result; } /** *
     * Output only. The type of bidding strategy.
     *
     * A bidding strategy can be created by setting either the bidding scheme to
     * create a standard bidding strategy or the `bidding_strategy` field to
     * create a portfolio bidding strategy.
     *
     * This field is read-only.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The biddingStrategyType to set. * @return This builder for chaining. */ public Builder setBiddingStrategyType(com.google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x40000000; biddingStrategyType_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of bidding strategy.
     *
     * A bidding strategy can be created by setting either the bidding scheme to
     * create a standard bidding strategy or the `bidding_strategy` field to
     * create a portfolio bidding strategy.
     *
     * This field is read-only.
     * 
* * .google.ads.googleads.v16.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBiddingStrategyType() { bitField0_ = (bitField0_ & ~0x40000000); biddingStrategyType_ = 0; onChanged(); return this; } private java.lang.Object accessibleBiddingStrategy_ = ""; /** *
     * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
     * of the unrestricted attributes of the attached portfolio bidding strategy
     * identified by 'bidding_strategy'. Empty, if the campaign does not use a
     * portfolio strategy. Unrestricted strategy attributes are available to all
     * customers with whom the strategy is shared and are read from the
     * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
     * only available to the owner customer of the strategy and their managers.
     * Restricted attributes can only be read from the BiddingStrategy resource.
     * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The accessibleBiddingStrategy. */ public java.lang.String getAccessibleBiddingStrategy() { java.lang.Object ref = accessibleBiddingStrategy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessibleBiddingStrategy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
     * of the unrestricted attributes of the attached portfolio bidding strategy
     * identified by 'bidding_strategy'. Empty, if the campaign does not use a
     * portfolio strategy. Unrestricted strategy attributes are available to all
     * customers with whom the strategy is shared and are read from the
     * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
     * only available to the owner customer of the strategy and their managers.
     * Restricted attributes can only be read from the BiddingStrategy resource.
     * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for accessibleBiddingStrategy. */ public com.google.protobuf.ByteString getAccessibleBiddingStrategyBytes() { java.lang.Object ref = accessibleBiddingStrategy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessibleBiddingStrategy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
     * of the unrestricted attributes of the attached portfolio bidding strategy
     * identified by 'bidding_strategy'. Empty, if the campaign does not use a
     * portfolio strategy. Unrestricted strategy attributes are available to all
     * customers with whom the strategy is shared and are read from the
     * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
     * only available to the owner customer of the strategy and their managers.
     * Restricted attributes can only be read from the BiddingStrategy resource.
     * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The accessibleBiddingStrategy to set. * @return This builder for chaining. */ public Builder setAccessibleBiddingStrategy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accessibleBiddingStrategy_ = value; bitField0_ |= 0x80000000; onChanged(); return this; } /** *
     * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
     * of the unrestricted attributes of the attached portfolio bidding strategy
     * identified by 'bidding_strategy'. Empty, if the campaign does not use a
     * portfolio strategy. Unrestricted strategy attributes are available to all
     * customers with whom the strategy is shared and are read from the
     * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
     * only available to the owner customer of the strategy and their managers.
     * Restricted attributes can only be read from the BiddingStrategy resource.
     * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAccessibleBiddingStrategy() { accessibleBiddingStrategy_ = getDefaultInstance().getAccessibleBiddingStrategy(); bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } /** *
     * Output only. Resource name of AccessibleBiddingStrategy, a read-only view
     * of the unrestricted attributes of the attached portfolio bidding strategy
     * identified by 'bidding_strategy'. Empty, if the campaign does not use a
     * portfolio strategy. Unrestricted strategy attributes are available to all
     * customers with whom the strategy is shared and are read from the
     * AccessibleBiddingStrategy resource. In contrast, restricted attributes are
     * only available to the owner customer of the strategy and their managers.
     * Restricted attributes can only be read from the BiddingStrategy resource.
     * 
* * string accessible_bidding_strategy = 71 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for accessibleBiddingStrategy to set. * @return This builder for chaining. */ public Builder setAccessibleBiddingStrategyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessibleBiddingStrategy_ = value; bitField0_ |= 0x80000000; onChanged(); return this; } private java.lang.Object startDate_ = ""; /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @return Whether the startDate field is set. */ public boolean hasStartDate() { return ((bitField1_ & 0x00000001) != 0); } /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @return The startDate. */ public java.lang.String getStartDate() { java.lang.Object ref = startDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @return The bytes for startDate. */ public com.google.protobuf.ByteString getStartDateBytes() { java.lang.Object ref = startDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @param value The startDate to set. * @return This builder for chaining. */ public Builder setStartDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startDate_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @return This builder for chaining. */ public Builder clearStartDate() { startDate_ = getDefaultInstance().getStartDate(); bitField1_ = (bitField1_ & ~0x00000001); onChanged(); return this; } /** *
     * The date when campaign started in serving customer's timezone in YYYY-MM-DD
     * format.
     * 
* * optional string start_date = 63; * @param value The bytes for startDate to set. * @return This builder for chaining. */ public Builder setStartDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); startDate_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } private java.lang.Object campaignGroup_ = ""; /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return Whether the campaignGroup field is set. */ public boolean hasCampaignGroup() { return ((bitField1_ & 0x00000002) != 0); } /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return The campaignGroup. */ public java.lang.String getCampaignGroup() { java.lang.Object ref = campaignGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaignGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return The bytes for campaignGroup. */ public com.google.protobuf.ByteString getCampaignGroupBytes() { java.lang.Object ref = campaignGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @param value The campaignGroup to set. * @return This builder for chaining. */ public Builder setCampaignGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaignGroup_ = value; bitField1_ |= 0x00000002; onChanged(); return this; } /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaignGroup() { campaignGroup_ = getDefaultInstance().getCampaignGroup(); bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } /** *
     * The campaign group this campaign belongs to.
     * 
* * optional string campaign_group = 76 [(.google.api.resource_reference) = { ... } * @param value The bytes for campaignGroup to set. * @return This builder for chaining. */ public Builder setCampaignGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaignGroup_ = value; bitField1_ |= 0x00000002; onChanged(); return this; } private java.lang.Object endDate_ = ""; /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @return Whether the endDate field is set. */ public boolean hasEndDate() { return ((bitField1_ & 0x00000004) != 0); } /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @return The endDate. */ public java.lang.String getEndDate() { java.lang.Object ref = endDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @return The bytes for endDate. */ public com.google.protobuf.ByteString getEndDateBytes() { java.lang.Object ref = endDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @param value The endDate to set. * @return This builder for chaining. */ public Builder setEndDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endDate_ = value; bitField1_ |= 0x00000004; onChanged(); return this; } /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @return This builder for chaining. */ public Builder clearEndDate() { endDate_ = getDefaultInstance().getEndDate(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } /** *
     * The last day of the campaign in serving customer's timezone in YYYY-MM-DD
     * format. On create, defaults to 2037-12-30, which means the campaign will
     * run indefinitely. To set an existing campaign to run indefinitely, set this
     * field to 2037-12-30.
     * 
* * optional string end_date = 64; * @param value The bytes for endDate to set. * @return This builder for chaining. */ public Builder setEndDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endDate_ = value; bitField1_ |= 0x00000004; onChanged(); return this; } private java.lang.Object finalUrlSuffix_ = ""; /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @return Whether the finalUrlSuffix field is set. */ public boolean hasFinalUrlSuffix() { return ((bitField1_ & 0x00000008) != 0); } /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @return The finalUrlSuffix. */ public java.lang.String getFinalUrlSuffix() { java.lang.Object ref = finalUrlSuffix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrlSuffix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @return The bytes for finalUrlSuffix. */ public com.google.protobuf.ByteString getFinalUrlSuffixBytes() { java.lang.Object ref = finalUrlSuffix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalUrlSuffix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @param value The finalUrlSuffix to set. * @return This builder for chaining. */ public Builder setFinalUrlSuffix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } finalUrlSuffix_ = value; bitField1_ |= 0x00000008; onChanged(); return this; } /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @return This builder for chaining. */ public Builder clearFinalUrlSuffix() { finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix(); bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } /** *
     * Suffix used to append query parameters to landing pages that are served
     * with parallel tracking.
     * 
* * optional string final_url_suffix = 65; * @param value The bytes for finalUrlSuffix to set. * @return This builder for chaining. */ public Builder setFinalUrlSuffixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finalUrlSuffix_ = value; bitField1_ |= 0x00000008; onChanged(); return this; } private java.util.List frequencyCaps_ = java.util.Collections.emptyList(); private void ensureFrequencyCapsIsMutable() { if (!((bitField1_ & 0x00000010) != 0)) { frequencyCaps_ = new java.util.ArrayList(frequencyCaps_); bitField1_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.FrequencyCapEntry, com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v16.common.FrequencyCapEntryOrBuilder> frequencyCapsBuilder_; /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public java.util.List getFrequencyCapsList() { if (frequencyCapsBuilder_ == null) { return java.util.Collections.unmodifiableList(frequencyCaps_); } else { return frequencyCapsBuilder_.getMessageList(); } } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public int getFrequencyCapsCount() { if (frequencyCapsBuilder_ == null) { return frequencyCaps_.size(); } else { return frequencyCapsBuilder_.getCount(); } } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public com.google.ads.googleads.v16.common.FrequencyCapEntry getFrequencyCaps(int index) { if (frequencyCapsBuilder_ == null) { return frequencyCaps_.get(index); } else { return frequencyCapsBuilder_.getMessage(index); } } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder setFrequencyCaps( int index, com.google.ads.googleads.v16.common.FrequencyCapEntry value) { if (frequencyCapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrequencyCapsIsMutable(); frequencyCaps_.set(index, value); onChanged(); } else { frequencyCapsBuilder_.setMessage(index, value); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder setFrequencyCaps( int index, com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder builderForValue) { if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); frequencyCaps_.set(index, builderForValue.build()); onChanged(); } else { frequencyCapsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder addFrequencyCaps(com.google.ads.googleads.v16.common.FrequencyCapEntry value) { if (frequencyCapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrequencyCapsIsMutable(); frequencyCaps_.add(value); onChanged(); } else { frequencyCapsBuilder_.addMessage(value); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder addFrequencyCaps( int index, com.google.ads.googleads.v16.common.FrequencyCapEntry value) { if (frequencyCapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrequencyCapsIsMutable(); frequencyCaps_.add(index, value); onChanged(); } else { frequencyCapsBuilder_.addMessage(index, value); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder addFrequencyCaps( com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder builderForValue) { if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); frequencyCaps_.add(builderForValue.build()); onChanged(); } else { frequencyCapsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder addFrequencyCaps( int index, com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder builderForValue) { if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); frequencyCaps_.add(index, builderForValue.build()); onChanged(); } else { frequencyCapsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder addAllFrequencyCaps( java.lang.Iterable values) { if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frequencyCaps_); onChanged(); } else { frequencyCapsBuilder_.addAllMessages(values); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder clearFrequencyCaps() { if (frequencyCapsBuilder_ == null) { frequencyCaps_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000010); onChanged(); } else { frequencyCapsBuilder_.clear(); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public Builder removeFrequencyCaps(int index) { if (frequencyCapsBuilder_ == null) { ensureFrequencyCapsIsMutable(); frequencyCaps_.remove(index); onChanged(); } else { frequencyCapsBuilder_.remove(index); } return this; } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder getFrequencyCapsBuilder( int index) { return getFrequencyCapsFieldBuilder().getBuilder(index); } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public com.google.ads.googleads.v16.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder( int index) { if (frequencyCapsBuilder_ == null) { return frequencyCaps_.get(index); } else { return frequencyCapsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public java.util.List getFrequencyCapsOrBuilderList() { if (frequencyCapsBuilder_ != null) { return frequencyCapsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frequencyCaps_); } } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder() { return getFrequencyCapsFieldBuilder().addBuilder( com.google.ads.googleads.v16.common.FrequencyCapEntry.getDefaultInstance()); } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder( int index) { return getFrequencyCapsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.common.FrequencyCapEntry.getDefaultInstance()); } /** *
     * A list that limits how often each user will see this campaign's ads.
     * 
* * repeated .google.ads.googleads.v16.common.FrequencyCapEntry frequency_caps = 40; */ public java.util.List getFrequencyCapsBuilderList() { return getFrequencyCapsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.FrequencyCapEntry, com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v16.common.FrequencyCapEntryOrBuilder> getFrequencyCapsFieldBuilder() { if (frequencyCapsBuilder_ == null) { frequencyCapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.FrequencyCapEntry, com.google.ads.googleads.v16.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v16.common.FrequencyCapEntryOrBuilder>( frequencyCaps_, ((bitField1_ & 0x00000010) != 0), getParentForChildren(), isClean()); frequencyCaps_ = null; } return frequencyCapsBuilder_; } private int videoBrandSafetySuitability_ = 0; /** *
     * Output only. Brand Safety setting at the individual campaign level. Allows
     * for selecting an inventory type to show your ads on content that is the
     * right fit for your brand. See
     * https://support.google.com/google-ads/answer/7515513.
     * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for videoBrandSafetySuitability. */ @java.lang.Override public int getVideoBrandSafetySuitabilityValue() { return videoBrandSafetySuitability_; } /** *
     * Output only. Brand Safety setting at the individual campaign level. Allows
     * for selecting an inventory type to show your ads on content that is the
     * right fit for your brand. See
     * https://support.google.com/google-ads/answer/7515513.
     * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for videoBrandSafetySuitability to set. * @return This builder for chaining. */ public Builder setVideoBrandSafetySuitabilityValue(int value) { videoBrandSafetySuitability_ = value; bitField1_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. Brand Safety setting at the individual campaign level. Allows
     * for selecting an inventory type to show your ads on content that is the
     * right fit for your brand. See
     * https://support.google.com/google-ads/answer/7515513.
     * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The videoBrandSafetySuitability. */ @java.lang.Override public com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() { com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.forNumber(videoBrandSafetySuitability_); return result == null ? com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result; } /** *
     * Output only. Brand Safety setting at the individual campaign level. Allows
     * for selecting an inventory type to show your ads on content that is the
     * right fit for your brand. See
     * https://support.google.com/google-ads/answer/7515513.
     * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The videoBrandSafetySuitability to set. * @return This builder for chaining. */ public Builder setVideoBrandSafetySuitability(com.google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000020; videoBrandSafetySuitability_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Brand Safety setting at the individual campaign level. Allows
     * for selecting an inventory type to show your ads on content that is the
     * right fit for your brand. See
     * https://support.google.com/google-ads/answer/7515513.
     * 
* * .google.ads.googleads.v16.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearVideoBrandSafetySuitability() { bitField1_ = (bitField1_ & ~0x00000020); videoBrandSafetySuitability_ = 0; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Campaign.VanityPharma vanityPharma_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.VanityPharma, com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder> vanityPharmaBuilder_; /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; * @return Whether the vanityPharma field is set. */ public boolean hasVanityPharma() { return ((bitField1_ & 0x00000040) != 0); } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; * @return The vanityPharma. */ public com.google.ads.googleads.v16.resources.Campaign.VanityPharma getVanityPharma() { if (vanityPharmaBuilder_ == null) { return vanityPharma_ == null ? com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } else { return vanityPharmaBuilder_.getMessage(); } } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public Builder setVanityPharma(com.google.ads.googleads.v16.resources.Campaign.VanityPharma value) { if (vanityPharmaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } vanityPharma_ = value; } else { vanityPharmaBuilder_.setMessage(value); } bitField1_ |= 0x00000040; onChanged(); return this; } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public Builder setVanityPharma( com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder builderForValue) { if (vanityPharmaBuilder_ == null) { vanityPharma_ = builderForValue.build(); } else { vanityPharmaBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000040; onChanged(); return this; } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public Builder mergeVanityPharma(com.google.ads.googleads.v16.resources.Campaign.VanityPharma value) { if (vanityPharmaBuilder_ == null) { if (((bitField1_ & 0x00000040) != 0) && vanityPharma_ != null && vanityPharma_ != com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance()) { getVanityPharmaBuilder().mergeFrom(value); } else { vanityPharma_ = value; } } else { vanityPharmaBuilder_.mergeFrom(value); } if (vanityPharma_ != null) { bitField1_ |= 0x00000040; onChanged(); } return this; } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public Builder clearVanityPharma() { bitField1_ = (bitField1_ & ~0x00000040); vanityPharma_ = null; if (vanityPharmaBuilder_ != null) { vanityPharmaBuilder_.dispose(); vanityPharmaBuilder_ = null; } onChanged(); return this; } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder getVanityPharmaBuilder() { bitField1_ |= 0x00000040; onChanged(); return getVanityPharmaFieldBuilder().getBuilder(); } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ public com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() { if (vanityPharmaBuilder_ != null) { return vanityPharmaBuilder_.getMessageOrBuilder(); } else { return vanityPharma_ == null ? com.google.ads.googleads.v16.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } } /** *
     * Describes how unbranded pharma ads will be displayed.
     * 
* * .google.ads.googleads.v16.resources.Campaign.VanityPharma vanity_pharma = 44; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.VanityPharma, com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder> getVanityPharmaFieldBuilder() { if (vanityPharmaBuilder_ == null) { vanityPharmaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.VanityPharma, com.google.ads.googleads.v16.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v16.resources.Campaign.VanityPharmaOrBuilder>( getVanityPharma(), getParentForChildren(), isClean()); vanityPharma_ = null; } return vanityPharmaBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selectiveOptimization_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder> selectiveOptimizationBuilder_; /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; * @return Whether the selectiveOptimization field is set. */ public boolean hasSelectiveOptimization() { return ((bitField1_ & 0x00000080) != 0); } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; * @return The selectiveOptimization. */ public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization getSelectiveOptimization() { if (selectiveOptimizationBuilder_ == null) { return selectiveOptimization_ == null ? com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } else { return selectiveOptimizationBuilder_.getMessage(); } } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public Builder setSelectiveOptimization(com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization value) { if (selectiveOptimizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selectiveOptimization_ = value; } else { selectiveOptimizationBuilder_.setMessage(value); } bitField1_ |= 0x00000080; onChanged(); return this; } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public Builder setSelectiveOptimization( com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder builderForValue) { if (selectiveOptimizationBuilder_ == null) { selectiveOptimization_ = builderForValue.build(); } else { selectiveOptimizationBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000080; onChanged(); return this; } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public Builder mergeSelectiveOptimization(com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization value) { if (selectiveOptimizationBuilder_ == null) { if (((bitField1_ & 0x00000080) != 0) && selectiveOptimization_ != null && selectiveOptimization_ != com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance()) { getSelectiveOptimizationBuilder().mergeFrom(value); } else { selectiveOptimization_ = value; } } else { selectiveOptimizationBuilder_.mergeFrom(value); } if (selectiveOptimization_ != null) { bitField1_ |= 0x00000080; onChanged(); } return this; } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public Builder clearSelectiveOptimization() { bitField1_ = (bitField1_ & ~0x00000080); selectiveOptimization_ = null; if (selectiveOptimizationBuilder_ != null) { selectiveOptimizationBuilder_.dispose(); selectiveOptimizationBuilder_ = null; } onChanged(); return this; } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder getSelectiveOptimizationBuilder() { bitField1_ |= 0x00000080; onChanged(); return getSelectiveOptimizationFieldBuilder().getBuilder(); } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ public com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() { if (selectiveOptimizationBuilder_ != null) { return selectiveOptimizationBuilder_.getMessageOrBuilder(); } else { return selectiveOptimization_ == null ? com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } } /** *
     * Selective optimization setting for this campaign, which includes a set of
     * conversion actions to optimize this campaign towards.
     * This feature only applies to app campaigns that use MULTI_CHANNEL as
     * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
     * AdvertisingChannelSubType.
     * 
* * .google.ads.googleads.v16.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder> getSelectiveOptimizationFieldBuilder() { if (selectiveOptimizationBuilder_ == null) { selectiveOptimizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v16.resources.Campaign.SelectiveOptimizationOrBuilder>( getSelectiveOptimization(), getParentForChildren(), isClean()); selectiveOptimization_ = null; } return selectiveOptimizationBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimizationGoalSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder> optimizationGoalSettingBuilder_; /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; * @return Whether the optimizationGoalSetting field is set. */ public boolean hasOptimizationGoalSetting() { return ((bitField1_ & 0x00000100) != 0); } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; * @return The optimizationGoalSetting. */ public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting getOptimizationGoalSetting() { if (optimizationGoalSettingBuilder_ == null) { return optimizationGoalSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_; } else { return optimizationGoalSettingBuilder_.getMessage(); } } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public Builder setOptimizationGoalSetting(com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting value) { if (optimizationGoalSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optimizationGoalSetting_ = value; } else { optimizationGoalSettingBuilder_.setMessage(value); } bitField1_ |= 0x00000100; onChanged(); return this; } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public Builder setOptimizationGoalSetting( com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder builderForValue) { if (optimizationGoalSettingBuilder_ == null) { optimizationGoalSetting_ = builderForValue.build(); } else { optimizationGoalSettingBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000100; onChanged(); return this; } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public Builder mergeOptimizationGoalSetting(com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting value) { if (optimizationGoalSettingBuilder_ == null) { if (((bitField1_ & 0x00000100) != 0) && optimizationGoalSetting_ != null && optimizationGoalSetting_ != com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance()) { getOptimizationGoalSettingBuilder().mergeFrom(value); } else { optimizationGoalSetting_ = value; } } else { optimizationGoalSettingBuilder_.mergeFrom(value); } if (optimizationGoalSetting_ != null) { bitField1_ |= 0x00000100; onChanged(); } return this; } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public Builder clearOptimizationGoalSetting() { bitField1_ = (bitField1_ & ~0x00000100); optimizationGoalSetting_ = null; if (optimizationGoalSettingBuilder_ != null) { optimizationGoalSettingBuilder_.dispose(); optimizationGoalSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder getOptimizationGoalSettingBuilder() { bitField1_ |= 0x00000100; onChanged(); return getOptimizationGoalSettingFieldBuilder().getBuilder(); } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ public com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder getOptimizationGoalSettingOrBuilder() { if (optimizationGoalSettingBuilder_ != null) { return optimizationGoalSettingBuilder_.getMessageOrBuilder(); } else { return optimizationGoalSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_; } } /** *
     * Optimization goal setting for this campaign, which includes a set of
     * optimization goal types.
     * 
* * .google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder> getOptimizationGoalSettingFieldBuilder() { if (optimizationGoalSettingBuilder_ == null) { optimizationGoalSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.OptimizationGoalSettingOrBuilder>( getOptimizationGoalSetting(), getParentForChildren(), isClean()); optimizationGoalSetting_ = null; } return optimizationGoalSettingBuilder_; } private com.google.ads.googleads.v16.resources.Campaign.TrackingSetting trackingSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TrackingSetting, com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder> trackingSettingBuilder_; /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the trackingSetting field is set. */ public boolean hasTrackingSetting() { return ((bitField1_ & 0x00000200) != 0); } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The trackingSetting. */ public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting getTrackingSetting() { if (trackingSettingBuilder_ == null) { return trackingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; } else { return trackingSettingBuilder_.getMessage(); } } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTrackingSetting(com.google.ads.googleads.v16.resources.Campaign.TrackingSetting value) { if (trackingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trackingSetting_ = value; } else { trackingSettingBuilder_.setMessage(value); } bitField1_ |= 0x00000200; onChanged(); return this; } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTrackingSetting( com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder builderForValue) { if (trackingSettingBuilder_ == null) { trackingSetting_ = builderForValue.build(); } else { trackingSettingBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000200; onChanged(); return this; } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTrackingSetting(com.google.ads.googleads.v16.resources.Campaign.TrackingSetting value) { if (trackingSettingBuilder_ == null) { if (((bitField1_ & 0x00000200) != 0) && trackingSetting_ != null && trackingSetting_ != com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance()) { getTrackingSettingBuilder().mergeFrom(value); } else { trackingSetting_ = value; } } else { trackingSettingBuilder_.mergeFrom(value); } if (trackingSetting_ != null) { bitField1_ |= 0x00000200; onChanged(); } return this; } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTrackingSetting() { bitField1_ = (bitField1_ & ~0x00000200); trackingSetting_ = null; if (trackingSettingBuilder_ != null) { trackingSettingBuilder_.dispose(); trackingSettingBuilder_ = null; } onChanged(); return this; } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder getTrackingSettingBuilder() { bitField1_ |= 0x00000200; onChanged(); return getTrackingSettingFieldBuilder().getBuilder(); } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() { if (trackingSettingBuilder_ != null) { return trackingSettingBuilder_.getMessageOrBuilder(); } else { return trackingSetting_ == null ? com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; } } /** *
     * Output only. Campaign-level settings for tracking information.
     * 
* * .google.ads.googleads.v16.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TrackingSetting, com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder> getTrackingSettingFieldBuilder() { if (trackingSettingBuilder_ == null) { trackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.TrackingSetting, com.google.ads.googleads.v16.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.TrackingSettingOrBuilder>( getTrackingSetting(), getParentForChildren(), isClean()); trackingSetting_ = null; } return trackingSettingBuilder_; } private int paymentMode_ = 0; /** *
     * Payment mode for the campaign.
     * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @return The enum numeric value on the wire for paymentMode. */ @java.lang.Override public int getPaymentModeValue() { return paymentMode_; } /** *
     * Payment mode for the campaign.
     * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @param value The enum numeric value on the wire for paymentMode to set. * @return This builder for chaining. */ public Builder setPaymentModeValue(int value) { paymentMode_ = value; bitField1_ |= 0x00000400; onChanged(); return this; } /** *
     * Payment mode for the campaign.
     * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @return The paymentMode. */ @java.lang.Override public com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode getPaymentMode() { com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode result = com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.forNumber(paymentMode_); return result == null ? com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode.UNRECOGNIZED : result; } /** *
     * Payment mode for the campaign.
     * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @param value The paymentMode to set. * @return This builder for chaining. */ public Builder setPaymentMode(com.google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000400; paymentMode_ = value.getNumber(); onChanged(); return this; } /** *
     * Payment mode for the campaign.
     * 
* * .google.ads.googleads.v16.enums.PaymentModeEnum.PaymentMode payment_mode = 52; * @return This builder for chaining. */ public Builder clearPaymentMode() { bitField1_ = (bitField1_ & ~0x00000400); paymentMode_ = 0; onChanged(); return this; } private double optimizationScore_ ; /** *
     * Output only. Optimization score of the campaign.
     *
     * Optimization score is an estimate of how well a campaign is set to perform.
     * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
     * campaign is performing at full potential. This field is null for unscored
     * campaigns.
     *
     * See "About optimization score" at
     * https://support.google.com/google-ads/answer/9061546.
     *
     * This field is read-only.
     * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the optimizationScore field is set. */ @java.lang.Override public boolean hasOptimizationScore() { return ((bitField1_ & 0x00000800) != 0); } /** *
     * Output only. Optimization score of the campaign.
     *
     * Optimization score is an estimate of how well a campaign is set to perform.
     * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
     * campaign is performing at full potential. This field is null for unscored
     * campaigns.
     *
     * See "About optimization score" at
     * https://support.google.com/google-ads/answer/9061546.
     *
     * This field is read-only.
     * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The optimizationScore. */ @java.lang.Override public double getOptimizationScore() { return optimizationScore_; } /** *
     * Output only. Optimization score of the campaign.
     *
     * Optimization score is an estimate of how well a campaign is set to perform.
     * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
     * campaign is performing at full potential. This field is null for unscored
     * campaigns.
     *
     * See "About optimization score" at
     * https://support.google.com/google-ads/answer/9061546.
     *
     * This field is read-only.
     * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The optimizationScore to set. * @return This builder for chaining. */ public Builder setOptimizationScore(double value) { optimizationScore_ = value; bitField1_ |= 0x00000800; onChanged(); return this; } /** *
     * Output only. Optimization score of the campaign.
     *
     * Optimization score is an estimate of how well a campaign is set to perform.
     * It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
     * campaign is performing at full potential. This field is null for unscored
     * campaigns.
     *
     * See "About optimization score" at
     * https://support.google.com/google-ads/answer/9061546.
     *
     * This field is read-only.
     * 
* * optional double optimization_score = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOptimizationScore() { bitField1_ = (bitField1_ & ~0x00000800); optimizationScore_ = 0D; onChanged(); return this; } private java.util.List excludedParentAssetFieldTypes_ = java.util.Collections.emptyList(); private void ensureExcludedParentAssetFieldTypesIsMutable() { if (!((bitField1_ & 0x00001000) != 0)) { excludedParentAssetFieldTypes_ = new java.util.ArrayList(excludedParentAssetFieldTypes_); bitField1_ |= 0x00001000; } } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return A list containing the excludedParentAssetFieldTypes. */ public java.util.List getExcludedParentAssetFieldTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType>(excludedParentAssetFieldTypes_, excludedParentAssetFieldTypes_converter_); } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return The count of excludedParentAssetFieldTypes. */ public int getExcludedParentAssetFieldTypesCount() { return excludedParentAssetFieldTypes_.size(); } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index of the element to return. * @return The excludedParentAssetFieldTypes at the given index. */ public com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType getExcludedParentAssetFieldTypes(int index) { return excludedParentAssetFieldTypes_converter_.convert(excludedParentAssetFieldTypes_.get(index)); } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index to set the value at. * @param value The excludedParentAssetFieldTypes to set. * @return This builder for chaining. */ public Builder setExcludedParentAssetFieldTypes( int index, com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType value) { if (value == null) { throw new NullPointerException(); } ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param value The excludedParentAssetFieldTypes to add. * @return This builder for chaining. */ public Builder addExcludedParentAssetFieldTypes(com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType value) { if (value == null) { throw new NullPointerException(); } ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.add(value.getNumber()); onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param values The excludedParentAssetFieldTypes to add. * @return This builder for chaining. */ public Builder addAllExcludedParentAssetFieldTypes( java.lang.Iterable values) { ensureExcludedParentAssetFieldTypesIsMutable(); for (com.google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType value : values) { excludedParentAssetFieldTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return This builder for chaining. */ public Builder clearExcludedParentAssetFieldTypes() { excludedParentAssetFieldTypes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @return A list containing the enum numeric values on the wire for excludedParentAssetFieldTypes. */ public java.util.List getExcludedParentAssetFieldTypesValueList() { return java.util.Collections.unmodifiableList(excludedParentAssetFieldTypes_); } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index of the value to return. * @return The enum numeric value on the wire of excludedParentAssetFieldTypes at the given index. */ public int getExcludedParentAssetFieldTypesValue(int index) { return excludedParentAssetFieldTypes_.get(index); } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param index The index to set the value at. * @param value The enum numeric value on the wire for excludedParentAssetFieldTypes to set. * @return This builder for chaining. */ public Builder setExcludedParentAssetFieldTypesValue( int index, int value) { ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.set(index, value); onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param value The enum numeric value on the wire for excludedParentAssetFieldTypes to add. * @return This builder for chaining. */ public Builder addExcludedParentAssetFieldTypesValue(int value) { ensureExcludedParentAssetFieldTypesIsMutable(); excludedParentAssetFieldTypes_.add(value); onChanged(); return this; } /** *
     * The asset field types that should be excluded from this campaign. Asset
     * links with these field types will not be inherited by this campaign from
     * the upper level.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69; * @param values The enum numeric values on the wire for excludedParentAssetFieldTypes to add. * @return This builder for chaining. */ public Builder addAllExcludedParentAssetFieldTypesValue( java.lang.Iterable values) { ensureExcludedParentAssetFieldTypesIsMutable(); for (int value : values) { excludedParentAssetFieldTypes_.add(value); } onChanged(); return this; } private java.util.List excludedParentAssetSetTypes_ = java.util.Collections.emptyList(); private void ensureExcludedParentAssetSetTypesIsMutable() { if (!((bitField1_ & 0x00002000) != 0)) { excludedParentAssetSetTypes_ = new java.util.ArrayList(excludedParentAssetSetTypes_); bitField1_ |= 0x00002000; } } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return A list containing the excludedParentAssetSetTypes. */ public java.util.List getExcludedParentAssetSetTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType>(excludedParentAssetSetTypes_, excludedParentAssetSetTypes_converter_); } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return The count of excludedParentAssetSetTypes. */ public int getExcludedParentAssetSetTypesCount() { return excludedParentAssetSetTypes_.size(); } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index of the element to return. * @return The excludedParentAssetSetTypes at the given index. */ public com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType getExcludedParentAssetSetTypes(int index) { return excludedParentAssetSetTypes_converter_.convert(excludedParentAssetSetTypes_.get(index)); } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index to set the value at. * @param value The excludedParentAssetSetTypes to set. * @return This builder for chaining. */ public Builder setExcludedParentAssetSetTypes( int index, com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType value) { if (value == null) { throw new NullPointerException(); } ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param value The excludedParentAssetSetTypes to add. * @return This builder for chaining. */ public Builder addExcludedParentAssetSetTypes(com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType value) { if (value == null) { throw new NullPointerException(); } ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.add(value.getNumber()); onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param values The excludedParentAssetSetTypes to add. * @return This builder for chaining. */ public Builder addAllExcludedParentAssetSetTypes( java.lang.Iterable values) { ensureExcludedParentAssetSetTypesIsMutable(); for (com.google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType value : values) { excludedParentAssetSetTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return This builder for chaining. */ public Builder clearExcludedParentAssetSetTypes() { excludedParentAssetSetTypes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00002000); onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @return A list containing the enum numeric values on the wire for excludedParentAssetSetTypes. */ public java.util.List getExcludedParentAssetSetTypesValueList() { return java.util.Collections.unmodifiableList(excludedParentAssetSetTypes_); } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index of the value to return. * @return The enum numeric value on the wire of excludedParentAssetSetTypes at the given index. */ public int getExcludedParentAssetSetTypesValue(int index) { return excludedParentAssetSetTypes_.get(index); } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param index The index to set the value at. * @param value The enum numeric value on the wire for excludedParentAssetSetTypes to set. * @return This builder for chaining. */ public Builder setExcludedParentAssetSetTypesValue( int index, int value) { ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.set(index, value); onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param value The enum numeric value on the wire for excludedParentAssetSetTypes to add. * @return This builder for chaining. */ public Builder addExcludedParentAssetSetTypesValue(int value) { ensureExcludedParentAssetSetTypesIsMutable(); excludedParentAssetSetTypes_.add(value); onChanged(); return this; } /** *
     * The asset set types that should be excluded from this campaign. Asset set
     * links with these types will not be inherited by this campaign from
     * the upper level.
     * Location group types (GMB_DYNAMIC_LOCATION_GROUP,
     * CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
     * LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
     * location group asset sets are not allowed to be linked to this campaign,
     * and all Location Extension (LE) and Affiliate Location Extensions (ALE)
     * will not be served under this campaign.
     * Only LOCATION_SYNC is currently supported.
     * 
* * repeated .google.ads.googleads.v16.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 80; * @param values The enum numeric values on the wire for excludedParentAssetSetTypes to add. * @return This builder for chaining. */ public Builder addAllExcludedParentAssetSetTypesValue( java.lang.Iterable values) { ensureExcludedParentAssetSetTypesIsMutable(); for (int value : values) { excludedParentAssetSetTypes_.add(value); } onChanged(); return this; } private boolean urlExpansionOptOut_ ; /** *
     * Represents opting out of URL expansion to more targeted URLs. If opted out
     * (true), only the final URLs in the asset group or URLs specified in the
     * advertiser's Google Merchant Center or business data feeds are targeted.
     * If opted in (false), the entire domain will be targeted. This field can
     * only be set for Performance Max campaigns, where the default value is
     * false.
     * 
* * optional bool url_expansion_opt_out = 72; * @return Whether the urlExpansionOptOut field is set. */ @java.lang.Override public boolean hasUrlExpansionOptOut() { return ((bitField1_ & 0x00004000) != 0); } /** *
     * Represents opting out of URL expansion to more targeted URLs. If opted out
     * (true), only the final URLs in the asset group or URLs specified in the
     * advertiser's Google Merchant Center or business data feeds are targeted.
     * If opted in (false), the entire domain will be targeted. This field can
     * only be set for Performance Max campaigns, where the default value is
     * false.
     * 
* * optional bool url_expansion_opt_out = 72; * @return The urlExpansionOptOut. */ @java.lang.Override public boolean getUrlExpansionOptOut() { return urlExpansionOptOut_; } /** *
     * Represents opting out of URL expansion to more targeted URLs. If opted out
     * (true), only the final URLs in the asset group or URLs specified in the
     * advertiser's Google Merchant Center or business data feeds are targeted.
     * If opted in (false), the entire domain will be targeted. This field can
     * only be set for Performance Max campaigns, where the default value is
     * false.
     * 
* * optional bool url_expansion_opt_out = 72; * @param value The urlExpansionOptOut to set. * @return This builder for chaining. */ public Builder setUrlExpansionOptOut(boolean value) { urlExpansionOptOut_ = value; bitField1_ |= 0x00004000; onChanged(); return this; } /** *
     * Represents opting out of URL expansion to more targeted URLs. If opted out
     * (true), only the final URLs in the asset group or URLs specified in the
     * advertiser's Google Merchant Center or business data feeds are targeted.
     * If opted in (false), the entire domain will be targeted. This field can
     * only be set for Performance Max campaigns, where the default value is
     * false.
     * 
* * optional bool url_expansion_opt_out = 72; * @return This builder for chaining. */ public Builder clearUrlExpansionOptOut() { bitField1_ = (bitField1_ & ~0x00004000); urlExpansionOptOut_ = false; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performanceMaxUpgrade_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder> performanceMaxUpgradeBuilder_; /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxUpgrade field is set. */ public boolean hasPerformanceMaxUpgrade() { return ((bitField1_ & 0x00008000) != 0); } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxUpgrade. */ public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade getPerformanceMaxUpgrade() { if (performanceMaxUpgradeBuilder_ == null) { return performanceMaxUpgrade_ == null ? com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance() : performanceMaxUpgrade_; } else { return performanceMaxUpgradeBuilder_.getMessage(); } } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxUpgrade(com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade value) { if (performanceMaxUpgradeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } performanceMaxUpgrade_ = value; } else { performanceMaxUpgradeBuilder_.setMessage(value); } bitField1_ |= 0x00008000; onChanged(); return this; } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxUpgrade( com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder builderForValue) { if (performanceMaxUpgradeBuilder_ == null) { performanceMaxUpgrade_ = builderForValue.build(); } else { performanceMaxUpgradeBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00008000; onChanged(); return this; } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePerformanceMaxUpgrade(com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade value) { if (performanceMaxUpgradeBuilder_ == null) { if (((bitField1_ & 0x00008000) != 0) && performanceMaxUpgrade_ != null && performanceMaxUpgrade_ != com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance()) { getPerformanceMaxUpgradeBuilder().mergeFrom(value); } else { performanceMaxUpgrade_ = value; } } else { performanceMaxUpgradeBuilder_.mergeFrom(value); } if (performanceMaxUpgrade_ != null) { bitField1_ |= 0x00008000; onChanged(); } return this; } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPerformanceMaxUpgrade() { bitField1_ = (bitField1_ & ~0x00008000); performanceMaxUpgrade_ = null; if (performanceMaxUpgradeBuilder_ != null) { performanceMaxUpgradeBuilder_.dispose(); performanceMaxUpgradeBuilder_ = null; } onChanged(); return this; } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder getPerformanceMaxUpgradeBuilder() { bitField1_ |= 0x00008000; onChanged(); return getPerformanceMaxUpgradeFieldBuilder().getBuilder(); } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder getPerformanceMaxUpgradeOrBuilder() { if (performanceMaxUpgradeBuilder_ != null) { return performanceMaxUpgradeBuilder_.getMessageOrBuilder(); } else { return performanceMaxUpgrade_ == null ? com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.getDefaultInstance() : performanceMaxUpgrade_; } } /** *
     * Output only. Information about campaigns being upgraded to Performance Max.
     * 
* * .google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade performance_max_upgrade = 77 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder> getPerformanceMaxUpgradeFieldBuilder() { if (performanceMaxUpgradeBuilder_ == null) { performanceMaxUpgradeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgrade.Builder, com.google.ads.googleads.v16.resources.Campaign.PerformanceMaxUpgradeOrBuilder>( getPerformanceMaxUpgrade(), getParentForChildren(), isClean()); performanceMaxUpgrade_ = null; } return performanceMaxUpgradeBuilder_; } private java.lang.Object hotelPropertyAssetSet_ = ""; /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return Whether the hotelPropertyAssetSet field is set. */ public boolean hasHotelPropertyAssetSet() { return ((bitField1_ & 0x00010000) != 0); } /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hotelPropertyAssetSet. */ public java.lang.String getHotelPropertyAssetSet() { java.lang.Object ref = hotelPropertyAssetSet_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hotelPropertyAssetSet_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hotelPropertyAssetSet. */ public com.google.protobuf.ByteString getHotelPropertyAssetSetBytes() { java.lang.Object ref = hotelPropertyAssetSet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hotelPropertyAssetSet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The hotelPropertyAssetSet to set. * @return This builder for chaining. */ public Builder setHotelPropertyAssetSet( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hotelPropertyAssetSet_ = value; bitField1_ |= 0x00010000; onChanged(); return this; } /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearHotelPropertyAssetSet() { hotelPropertyAssetSet_ = getDefaultInstance().getHotelPropertyAssetSet(); bitField1_ = (bitField1_ & ~0x00010000); onChanged(); return this; } /** *
     * Immutable. The set of hotel properties for Performance Max for travel goals
     * campaigns.
     * 
* * optional string hotel_property_asset_set = 83 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for hotelPropertyAssetSet to set. * @return This builder for chaining. */ public Builder setHotelPropertyAssetSetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hotelPropertyAssetSet_ = value; bitField1_ |= 0x00010000; onChanged(); return this; } private int listingType_ = 0; /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the listingType field is set. */ @java.lang.Override public boolean hasListingType() { return ((bitField1_ & 0x00020000) != 0); } /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for listingType. */ @java.lang.Override public int getListingTypeValue() { return listingType_; } /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for listingType to set. * @return This builder for chaining. */ public Builder setListingTypeValue(int value) { listingType_ = value; bitField1_ |= 0x00020000; onChanged(); return this; } /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return The listingType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType getListingType() { com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType result = com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType.forNumber(listingType_); return result == null ? com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType.UNRECOGNIZED : result; } /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The listingType to set. * @return This builder for chaining. */ public Builder setListingType(com.google.ads.googleads.v16.enums.ListingTypeEnum.ListingType value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00020000; listingType_ = value.getNumber(); onChanged(); return this; } /** *
     * Immutable. Listing type of ads served for this campaign.
     * Field is restricted for usage with Performance Max campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.ListingTypeEnum.ListingType listing_type = 86 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearListingType() { bitField1_ = (bitField1_ & ~0x00020000); listingType_ = 0; onChanged(); return this; } private java.util.List assetAutomationSettings_ = java.util.Collections.emptyList(); private void ensureAssetAutomationSettingsIsMutable() { if (!((bitField1_ & 0x00040000) != 0)) { assetAutomationSettings_ = new java.util.ArrayList(assetAutomationSettings_); bitField1_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder> assetAutomationSettingsBuilder_; /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public java.util.List getAssetAutomationSettingsList() { if (assetAutomationSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(assetAutomationSettings_); } else { return assetAutomationSettingsBuilder_.getMessageList(); } } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public int getAssetAutomationSettingsCount() { if (assetAutomationSettingsBuilder_ == null) { return assetAutomationSettings_.size(); } else { return assetAutomationSettingsBuilder_.getCount(); } } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting getAssetAutomationSettings(int index) { if (assetAutomationSettingsBuilder_ == null) { return assetAutomationSettings_.get(index); } else { return assetAutomationSettingsBuilder_.getMessage(index); } } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder setAssetAutomationSettings( int index, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting value) { if (assetAutomationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.set(index, value); onChanged(); } else { assetAutomationSettingsBuilder_.setMessage(index, value); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder setAssetAutomationSettings( int index, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder builderForValue) { if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.set(index, builderForValue.build()); onChanged(); } else { assetAutomationSettingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder addAssetAutomationSettings(com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting value) { if (assetAutomationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.add(value); onChanged(); } else { assetAutomationSettingsBuilder_.addMessage(value); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder addAssetAutomationSettings( int index, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting value) { if (assetAutomationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.add(index, value); onChanged(); } else { assetAutomationSettingsBuilder_.addMessage(index, value); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder addAssetAutomationSettings( com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder builderForValue) { if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.add(builderForValue.build()); onChanged(); } else { assetAutomationSettingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder addAssetAutomationSettings( int index, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder builderForValue) { if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.add(index, builderForValue.build()); onChanged(); } else { assetAutomationSettingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder addAllAssetAutomationSettings( java.lang.Iterable values) { if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assetAutomationSettings_); onChanged(); } else { assetAutomationSettingsBuilder_.addAllMessages(values); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder clearAssetAutomationSettings() { if (assetAutomationSettingsBuilder_ == null) { assetAutomationSettings_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00040000); onChanged(); } else { assetAutomationSettingsBuilder_.clear(); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public Builder removeAssetAutomationSettings(int index) { if (assetAutomationSettingsBuilder_ == null) { ensureAssetAutomationSettingsIsMutable(); assetAutomationSettings_.remove(index); onChanged(); } else { assetAutomationSettingsBuilder_.remove(index); } return this; } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder getAssetAutomationSettingsBuilder( int index) { return getAssetAutomationSettingsFieldBuilder().getBuilder(index); } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder getAssetAutomationSettingsOrBuilder( int index) { if (assetAutomationSettingsBuilder_ == null) { return assetAutomationSettings_.get(index); } else { return assetAutomationSettingsBuilder_.getMessageOrBuilder(index); } } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public java.util.List getAssetAutomationSettingsOrBuilderList() { if (assetAutomationSettingsBuilder_ != null) { return assetAutomationSettingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assetAutomationSettings_); } } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder addAssetAutomationSettingsBuilder() { return getAssetAutomationSettingsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.getDefaultInstance()); } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder addAssetAutomationSettingsBuilder( int index) { return getAssetAutomationSettingsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.getDefaultInstance()); } /** *
     * Contains the opt-in/out status of each AssetAutomationType.
     * See documentation of each asset automation type enum for default
     * opt in/out behavior.
     * 
* * repeated .google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting asset_automation_settings = 88; */ public java.util.List getAssetAutomationSettingsBuilderList() { return getAssetAutomationSettingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder> getAssetAutomationSettingsFieldBuilder() { if (assetAutomationSettingsBuilder_ == null) { assetAutomationSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSetting.Builder, com.google.ads.googleads.v16.resources.Campaign.AssetAutomationSettingOrBuilder>( assetAutomationSettings_, ((bitField1_ & 0x00040000) != 0), getParentForChildren(), isClean()); assetAutomationSettings_ = null; } return assetAutomationSettingsBuilder_; } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return Whether the biddingStrategy field is set. */ @java.lang.Override public boolean hasBiddingStrategy() { return campaignBiddingStrategyCase_ == 67; } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return The biddingStrategy. */ @java.lang.Override public java.lang.String getBiddingStrategy() { java.lang.Object ref = ""; if (campaignBiddingStrategyCase_ == 67) { ref = campaignBiddingStrategy_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (campaignBiddingStrategyCase_ == 67) { campaignBiddingStrategy_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return The bytes for biddingStrategy. */ @java.lang.Override public com.google.protobuf.ByteString getBiddingStrategyBytes() { java.lang.Object ref = ""; if (campaignBiddingStrategyCase_ == 67) { ref = campaignBiddingStrategy_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (campaignBiddingStrategyCase_ == 67) { campaignBiddingStrategy_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @param value The biddingStrategy to set. * @return This builder for chaining. */ public Builder setBiddingStrategy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategyCase_ = 67; campaignBiddingStrategy_ = value; onChanged(); return this; } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBiddingStrategy() { if (campaignBiddingStrategyCase_ == 67) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } return this; } /** *
     * Portfolio bidding strategy used by campaign.
     * 
* * string bidding_strategy = 67 [(.google.api.resource_reference) = { ... } * @param value The bytes for biddingStrategy to set. * @return This builder for chaining. */ public Builder setBiddingStrategyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaignBiddingStrategyCase_ = 67; campaignBiddingStrategy_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.Commission, com.google.ads.googleads.v16.common.Commission.Builder, com.google.ads.googleads.v16.common.CommissionOrBuilder> commissionBuilder_; /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; * @return Whether the commission field is set. */ @java.lang.Override public boolean hasCommission() { return campaignBiddingStrategyCase_ == 49; } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; * @return The commission. */ @java.lang.Override public com.google.ads.googleads.v16.common.Commission getCommission() { if (commissionBuilder_ == null) { if (campaignBiddingStrategyCase_ == 49) { return (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 49) { return commissionBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ public Builder setCommission(com.google.ads.googleads.v16.common.Commission value) { if (commissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { commissionBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 49; return this; } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ public Builder setCommission( com.google.ads.googleads.v16.common.Commission.Builder builderForValue) { if (commissionBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { commissionBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 49; return this; } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ public Builder mergeCommission(com.google.ads.googleads.v16.common.Commission value) { if (commissionBuilder_ == null) { if (campaignBiddingStrategyCase_ == 49 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.Commission.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.Commission.newBuilder((com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 49) { commissionBuilder_.mergeFrom(value); } else { commissionBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 49; return this; } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ public Builder clearCommission() { if (commissionBuilder_ == null) { if (campaignBiddingStrategyCase_ == 49) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 49) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } commissionBuilder_.clear(); } return this; } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ public com.google.ads.googleads.v16.common.Commission.Builder getCommissionBuilder() { return getCommissionFieldBuilder().getBuilder(); } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ @java.lang.Override public com.google.ads.googleads.v16.common.CommissionOrBuilder getCommissionOrBuilder() { if ((campaignBiddingStrategyCase_ == 49) && (commissionBuilder_ != null)) { return commissionBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 49) { return (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } } /** *
     * Commission is an automatic bidding strategy in which the advertiser pays
     * a certain portion of the conversion value.
     * 
* * .google.ads.googleads.v16.common.Commission commission = 49; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.Commission, com.google.ads.googleads.v16.common.Commission.Builder, com.google.ads.googleads.v16.common.CommissionOrBuilder> getCommissionFieldBuilder() { if (commissionBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 49)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.Commission.getDefaultInstance(); } commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.Commission, com.google.ads.googleads.v16.common.Commission.Builder, com.google.ads.googleads.v16.common.CommissionOrBuilder>( (com.google.ads.googleads.v16.common.Commission) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 49; onChanged(); return commissionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpa, com.google.ads.googleads.v16.common.ManualCpa.Builder, com.google.ads.googleads.v16.common.ManualCpaOrBuilder> manualCpaBuilder_; /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; * @return Whether the manualCpa field is set. */ @java.lang.Override public boolean hasManualCpa() { return campaignBiddingStrategyCase_ == 74; } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; * @return The manualCpa. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpa getManualCpa() { if (manualCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 74) { return (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 74) { return manualCpaBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ public Builder setManualCpa(com.google.ads.googleads.v16.common.ManualCpa value) { if (manualCpaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { manualCpaBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 74; return this; } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ public Builder setManualCpa( com.google.ads.googleads.v16.common.ManualCpa.Builder builderForValue) { if (manualCpaBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { manualCpaBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 74; return this; } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ public Builder mergeManualCpa(com.google.ads.googleads.v16.common.ManualCpa value) { if (manualCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 74 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpa.newBuilder((com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 74) { manualCpaBuilder_.mergeFrom(value); } else { manualCpaBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 74; return this; } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ public Builder clearManualCpa() { if (manualCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 74) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 74) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } manualCpaBuilder_.clear(); } return this; } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ public com.google.ads.googleads.v16.common.ManualCpa.Builder getManualCpaBuilder() { return getManualCpaFieldBuilder().getBuilder(); } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpaOrBuilder getManualCpaOrBuilder() { if ((campaignBiddingStrategyCase_ == 74) && (manualCpaBuilder_ != null)) { return manualCpaBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 74) { return (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } } /** *
     * Standard Manual CPA bidding strategy.
     * Manual bidding strategy that allows advertiser to set the bid per
     * advertiser-specified action. Supported only for Local Services campaigns.
     * 
* * .google.ads.googleads.v16.common.ManualCpa manual_cpa = 74; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpa, com.google.ads.googleads.v16.common.ManualCpa.Builder, com.google.ads.googleads.v16.common.ManualCpaOrBuilder> getManualCpaFieldBuilder() { if (manualCpaBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 74)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpa.getDefaultInstance(); } manualCpaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpa, com.google.ads.googleads.v16.common.ManualCpa.Builder, com.google.ads.googleads.v16.common.ManualCpaOrBuilder>( (com.google.ads.googleads.v16.common.ManualCpa) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 74; onChanged(); return manualCpaBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpc, com.google.ads.googleads.v16.common.ManualCpc.Builder, com.google.ads.googleads.v16.common.ManualCpcOrBuilder> manualCpcBuilder_; /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; * @return Whether the manualCpc field is set. */ @java.lang.Override public boolean hasManualCpc() { return campaignBiddingStrategyCase_ == 24; } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; * @return The manualCpc. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpc getManualCpc() { if (manualCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 24) { return (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 24) { return manualCpcBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ public Builder setManualCpc(com.google.ads.googleads.v16.common.ManualCpc value) { if (manualCpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { manualCpcBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 24; return this; } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ public Builder setManualCpc( com.google.ads.googleads.v16.common.ManualCpc.Builder builderForValue) { if (manualCpcBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { manualCpcBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 24; return this; } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ public Builder mergeManualCpc(com.google.ads.googleads.v16.common.ManualCpc value) { if (manualCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 24 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpc.newBuilder((com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 24) { manualCpcBuilder_.mergeFrom(value); } else { manualCpcBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 24; return this; } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ public Builder clearManualCpc() { if (manualCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 24) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 24) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } manualCpcBuilder_.clear(); } return this; } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ public com.google.ads.googleads.v16.common.ManualCpc.Builder getManualCpcBuilder() { return getManualCpcFieldBuilder().getBuilder(); } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpcOrBuilder getManualCpcOrBuilder() { if ((campaignBiddingStrategyCase_ == 24) && (manualCpcBuilder_ != null)) { return manualCpcBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 24) { return (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } } /** *
     * Standard Manual CPC bidding strategy.
     * Manual click-based bidding where user pays per click.
     * 
* * .google.ads.googleads.v16.common.ManualCpc manual_cpc = 24; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpc, com.google.ads.googleads.v16.common.ManualCpc.Builder, com.google.ads.googleads.v16.common.ManualCpcOrBuilder> getManualCpcFieldBuilder() { if (manualCpcBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 24)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpc.getDefaultInstance(); } manualCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpc, com.google.ads.googleads.v16.common.ManualCpc.Builder, com.google.ads.googleads.v16.common.ManualCpcOrBuilder>( (com.google.ads.googleads.v16.common.ManualCpc) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 24; onChanged(); return manualCpcBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpm, com.google.ads.googleads.v16.common.ManualCpm.Builder, com.google.ads.googleads.v16.common.ManualCpmOrBuilder> manualCpmBuilder_; /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; * @return Whether the manualCpm field is set. */ @java.lang.Override public boolean hasManualCpm() { return campaignBiddingStrategyCase_ == 25; } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; * @return The manualCpm. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpm getManualCpm() { if (manualCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 25) { return (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 25) { return manualCpmBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ public Builder setManualCpm(com.google.ads.googleads.v16.common.ManualCpm value) { if (manualCpmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { manualCpmBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 25; return this; } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ public Builder setManualCpm( com.google.ads.googleads.v16.common.ManualCpm.Builder builderForValue) { if (manualCpmBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { manualCpmBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 25; return this; } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ public Builder mergeManualCpm(com.google.ads.googleads.v16.common.ManualCpm value) { if (manualCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 25 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpm.newBuilder((com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 25) { manualCpmBuilder_.mergeFrom(value); } else { manualCpmBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 25; return this; } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ public Builder clearManualCpm() { if (manualCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 25) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 25) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } manualCpmBuilder_.clear(); } return this; } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ public com.google.ads.googleads.v16.common.ManualCpm.Builder getManualCpmBuilder() { return getManualCpmFieldBuilder().getBuilder(); } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpmOrBuilder getManualCpmOrBuilder() { if ((campaignBiddingStrategyCase_ == 25) && (manualCpmBuilder_ != null)) { return manualCpmBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 25) { return (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } } /** *
     * Standard Manual CPM bidding strategy.
     * Manual impression-based bidding where user pays per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.ManualCpm manual_cpm = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpm, com.google.ads.googleads.v16.common.ManualCpm.Builder, com.google.ads.googleads.v16.common.ManualCpmOrBuilder> getManualCpmFieldBuilder() { if (manualCpmBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 25)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpm.getDefaultInstance(); } manualCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpm, com.google.ads.googleads.v16.common.ManualCpm.Builder, com.google.ads.googleads.v16.common.ManualCpmOrBuilder>( (com.google.ads.googleads.v16.common.ManualCpm) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 25; onChanged(); return manualCpmBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpv, com.google.ads.googleads.v16.common.ManualCpv.Builder, com.google.ads.googleads.v16.common.ManualCpvOrBuilder> manualCpvBuilder_; /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; * @return Whether the manualCpv field is set. */ @java.lang.Override public boolean hasManualCpv() { return campaignBiddingStrategyCase_ == 37; } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; * @return The manualCpv. */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpv getManualCpv() { if (manualCpvBuilder_ == null) { if (campaignBiddingStrategyCase_ == 37) { return (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 37) { return manualCpvBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ public Builder setManualCpv(com.google.ads.googleads.v16.common.ManualCpv value) { if (manualCpvBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { manualCpvBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 37; return this; } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ public Builder setManualCpv( com.google.ads.googleads.v16.common.ManualCpv.Builder builderForValue) { if (manualCpvBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { manualCpvBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 37; return this; } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ public Builder mergeManualCpv(com.google.ads.googleads.v16.common.ManualCpv value) { if (manualCpvBuilder_ == null) { if (campaignBiddingStrategyCase_ == 37 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpv.newBuilder((com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 37) { manualCpvBuilder_.mergeFrom(value); } else { manualCpvBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 37; return this; } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ public Builder clearManualCpv() { if (manualCpvBuilder_ == null) { if (campaignBiddingStrategyCase_ == 37) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 37) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } manualCpvBuilder_.clear(); } return this; } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ public com.google.ads.googleads.v16.common.ManualCpv.Builder getManualCpvBuilder() { return getManualCpvFieldBuilder().getBuilder(); } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ @java.lang.Override public com.google.ads.googleads.v16.common.ManualCpvOrBuilder getManualCpvOrBuilder() { if ((campaignBiddingStrategyCase_ == 37) && (manualCpvBuilder_ != null)) { return manualCpvBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 37) { return (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } } /** *
     * A bidding strategy that pays a configurable amount per video view.
     * 
* * .google.ads.googleads.v16.common.ManualCpv manual_cpv = 37; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpv, com.google.ads.googleads.v16.common.ManualCpv.Builder, com.google.ads.googleads.v16.common.ManualCpvOrBuilder> getManualCpvFieldBuilder() { if (manualCpvBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 37)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.ManualCpv.getDefaultInstance(); } manualCpvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.ManualCpv, com.google.ads.googleads.v16.common.ManualCpv.Builder, com.google.ads.googleads.v16.common.ManualCpvOrBuilder>( (com.google.ads.googleads.v16.common.ManualCpv) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 37; onChanged(); return manualCpvBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversions, com.google.ads.googleads.v16.common.MaximizeConversions.Builder, com.google.ads.googleads.v16.common.MaximizeConversionsOrBuilder> maximizeConversionsBuilder_; /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; * @return Whether the maximizeConversions field is set. */ @java.lang.Override public boolean hasMaximizeConversions() { return campaignBiddingStrategyCase_ == 30; } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; * @return The maximizeConversions. */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversions getMaximizeConversions() { if (maximizeConversionsBuilder_ == null) { if (campaignBiddingStrategyCase_ == 30) { return (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 30) { return maximizeConversionsBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ public Builder setMaximizeConversions(com.google.ads.googleads.v16.common.MaximizeConversions value) { if (maximizeConversionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { maximizeConversionsBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 30; return this; } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ public Builder setMaximizeConversions( com.google.ads.googleads.v16.common.MaximizeConversions.Builder builderForValue) { if (maximizeConversionsBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { maximizeConversionsBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 30; return this; } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ public Builder mergeMaximizeConversions(com.google.ads.googleads.v16.common.MaximizeConversions value) { if (maximizeConversionsBuilder_ == null) { if (campaignBiddingStrategyCase_ == 30 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.MaximizeConversions.newBuilder((com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 30) { maximizeConversionsBuilder_.mergeFrom(value); } else { maximizeConversionsBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 30; return this; } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ public Builder clearMaximizeConversions() { if (maximizeConversionsBuilder_ == null) { if (campaignBiddingStrategyCase_ == 30) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 30) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } maximizeConversionsBuilder_.clear(); } return this; } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ public com.google.ads.googleads.v16.common.MaximizeConversions.Builder getMaximizeConversionsBuilder() { return getMaximizeConversionsFieldBuilder().getBuilder(); } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionsOrBuilder getMaximizeConversionsOrBuilder() { if ((campaignBiddingStrategyCase_ == 30) && (maximizeConversionsBuilder_ != null)) { return maximizeConversionsBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 30) { return (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } } /** *
     * Standard Maximize Conversions bidding strategy that automatically
     * maximizes number of conversions while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversions maximize_conversions = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversions, com.google.ads.googleads.v16.common.MaximizeConversions.Builder, com.google.ads.googleads.v16.common.MaximizeConversionsOrBuilder> getMaximizeConversionsFieldBuilder() { if (maximizeConversionsBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 30)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.MaximizeConversions.getDefaultInstance(); } maximizeConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversions, com.google.ads.googleads.v16.common.MaximizeConversions.Builder, com.google.ads.googleads.v16.common.MaximizeConversionsOrBuilder>( (com.google.ads.googleads.v16.common.MaximizeConversions) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 30; onChanged(); return maximizeConversionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversionValue, com.google.ads.googleads.v16.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v16.common.MaximizeConversionValueOrBuilder> maximizeConversionValueBuilder_; /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; * @return Whether the maximizeConversionValue field is set. */ @java.lang.Override public boolean hasMaximizeConversionValue() { return campaignBiddingStrategyCase_ == 31; } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; * @return The maximizeConversionValue. */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionValue getMaximizeConversionValue() { if (maximizeConversionValueBuilder_ == null) { if (campaignBiddingStrategyCase_ == 31) { return (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 31) { return maximizeConversionValueBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ public Builder setMaximizeConversionValue(com.google.ads.googleads.v16.common.MaximizeConversionValue value) { if (maximizeConversionValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { maximizeConversionValueBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 31; return this; } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ public Builder setMaximizeConversionValue( com.google.ads.googleads.v16.common.MaximizeConversionValue.Builder builderForValue) { if (maximizeConversionValueBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { maximizeConversionValueBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 31; return this; } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ public Builder mergeMaximizeConversionValue(com.google.ads.googleads.v16.common.MaximizeConversionValue value) { if (maximizeConversionValueBuilder_ == null) { if (campaignBiddingStrategyCase_ == 31 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.MaximizeConversionValue.newBuilder((com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 31) { maximizeConversionValueBuilder_.mergeFrom(value); } else { maximizeConversionValueBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 31; return this; } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ public Builder clearMaximizeConversionValue() { if (maximizeConversionValueBuilder_ == null) { if (campaignBiddingStrategyCase_ == 31) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 31) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } maximizeConversionValueBuilder_.clear(); } return this; } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ public com.google.ads.googleads.v16.common.MaximizeConversionValue.Builder getMaximizeConversionValueBuilder() { return getMaximizeConversionValueFieldBuilder().getBuilder(); } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ @java.lang.Override public com.google.ads.googleads.v16.common.MaximizeConversionValueOrBuilder getMaximizeConversionValueOrBuilder() { if ((campaignBiddingStrategyCase_ == 31) && (maximizeConversionValueBuilder_ != null)) { return maximizeConversionValueBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 31) { return (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } } /** *
     * Standard Maximize Conversion Value bidding strategy that automatically
     * sets bids to maximize revenue while spending your budget.
     * 
* * .google.ads.googleads.v16.common.MaximizeConversionValue maximize_conversion_value = 31; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversionValue, com.google.ads.googleads.v16.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v16.common.MaximizeConversionValueOrBuilder> getMaximizeConversionValueFieldBuilder() { if (maximizeConversionValueBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 31)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.MaximizeConversionValue.getDefaultInstance(); } maximizeConversionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.MaximizeConversionValue, com.google.ads.googleads.v16.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v16.common.MaximizeConversionValueOrBuilder>( (com.google.ads.googleads.v16.common.MaximizeConversionValue) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 31; onChanged(); return maximizeConversionValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpa, com.google.ads.googleads.v16.common.TargetCpa.Builder, com.google.ads.googleads.v16.common.TargetCpaOrBuilder> targetCpaBuilder_; /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; * @return Whether the targetCpa field is set. */ @java.lang.Override public boolean hasTargetCpa() { return campaignBiddingStrategyCase_ == 26; } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; * @return The targetCpa. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpa getTargetCpa() { if (targetCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 26) { return (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 26) { return targetCpaBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ public Builder setTargetCpa(com.google.ads.googleads.v16.common.TargetCpa value) { if (targetCpaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { targetCpaBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 26; return this; } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ public Builder setTargetCpa( com.google.ads.googleads.v16.common.TargetCpa.Builder builderForValue) { if (targetCpaBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { targetCpaBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 26; return this; } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ public Builder mergeTargetCpa(com.google.ads.googleads.v16.common.TargetCpa value) { if (targetCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 26 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetCpa.newBuilder((com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 26) { targetCpaBuilder_.mergeFrom(value); } else { targetCpaBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 26; return this; } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ public Builder clearTargetCpa() { if (targetCpaBuilder_ == null) { if (campaignBiddingStrategyCase_ == 26) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 26) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } targetCpaBuilder_.clear(); } return this; } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ public com.google.ads.googleads.v16.common.TargetCpa.Builder getTargetCpaBuilder() { return getTargetCpaFieldBuilder().getBuilder(); } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpaOrBuilder getTargetCpaOrBuilder() { if ((campaignBiddingStrategyCase_ == 26) && (targetCpaBuilder_ != null)) { return targetCpaBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 26) { return (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } } /** *
     * Standard Target CPA bidding strategy that automatically sets bids to
     * help get as many conversions as possible at the target
     * cost-per-acquisition (CPA) you set.
     * 
* * .google.ads.googleads.v16.common.TargetCpa target_cpa = 26; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpa, com.google.ads.googleads.v16.common.TargetCpa.Builder, com.google.ads.googleads.v16.common.TargetCpaOrBuilder> getTargetCpaFieldBuilder() { if (targetCpaBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 26)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetCpa.getDefaultInstance(); } targetCpaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpa, com.google.ads.googleads.v16.common.TargetCpa.Builder, com.google.ads.googleads.v16.common.TargetCpaOrBuilder>( (com.google.ads.googleads.v16.common.TargetCpa) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 26; onChanged(); return targetCpaBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetImpressionShare, com.google.ads.googleads.v16.common.TargetImpressionShare.Builder, com.google.ads.googleads.v16.common.TargetImpressionShareOrBuilder> targetImpressionShareBuilder_; /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; * @return Whether the targetImpressionShare field is set. */ @java.lang.Override public boolean hasTargetImpressionShare() { return campaignBiddingStrategyCase_ == 48; } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; * @return The targetImpressionShare. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetImpressionShare getTargetImpressionShare() { if (targetImpressionShareBuilder_ == null) { if (campaignBiddingStrategyCase_ == 48) { return (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 48) { return targetImpressionShareBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ public Builder setTargetImpressionShare(com.google.ads.googleads.v16.common.TargetImpressionShare value) { if (targetImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { targetImpressionShareBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 48; return this; } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ public Builder setTargetImpressionShare( com.google.ads.googleads.v16.common.TargetImpressionShare.Builder builderForValue) { if (targetImpressionShareBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { targetImpressionShareBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 48; return this; } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ public Builder mergeTargetImpressionShare(com.google.ads.googleads.v16.common.TargetImpressionShare value) { if (targetImpressionShareBuilder_ == null) { if (campaignBiddingStrategyCase_ == 48 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetImpressionShare.newBuilder((com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 48) { targetImpressionShareBuilder_.mergeFrom(value); } else { targetImpressionShareBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 48; return this; } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ public Builder clearTargetImpressionShare() { if (targetImpressionShareBuilder_ == null) { if (campaignBiddingStrategyCase_ == 48) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 48) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } targetImpressionShareBuilder_.clear(); } return this; } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ public com.google.ads.googleads.v16.common.TargetImpressionShare.Builder getTargetImpressionShareBuilder() { return getTargetImpressionShareFieldBuilder().getBuilder(); } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetImpressionShareOrBuilder getTargetImpressionShareOrBuilder() { if ((campaignBiddingStrategyCase_ == 48) && (targetImpressionShareBuilder_ != null)) { return targetImpressionShareBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 48) { return (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } } /** *
     * Target Impression Share bidding strategy. An automated bidding strategy
     * that sets bids to achieve a chosen percentage of impressions.
     * 
* * .google.ads.googleads.v16.common.TargetImpressionShare target_impression_share = 48; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetImpressionShare, com.google.ads.googleads.v16.common.TargetImpressionShare.Builder, com.google.ads.googleads.v16.common.TargetImpressionShareOrBuilder> getTargetImpressionShareFieldBuilder() { if (targetImpressionShareBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 48)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetImpressionShare.getDefaultInstance(); } targetImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetImpressionShare, com.google.ads.googleads.v16.common.TargetImpressionShare.Builder, com.google.ads.googleads.v16.common.TargetImpressionShareOrBuilder>( (com.google.ads.googleads.v16.common.TargetImpressionShare) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 48; onChanged(); return targetImpressionShareBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetRoas, com.google.ads.googleads.v16.common.TargetRoas.Builder, com.google.ads.googleads.v16.common.TargetRoasOrBuilder> targetRoasBuilder_; /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; * @return Whether the targetRoas field is set. */ @java.lang.Override public boolean hasTargetRoas() { return campaignBiddingStrategyCase_ == 29; } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; * @return The targetRoas. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetRoas getTargetRoas() { if (targetRoasBuilder_ == null) { if (campaignBiddingStrategyCase_ == 29) { return (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 29) { return targetRoasBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ public Builder setTargetRoas(com.google.ads.googleads.v16.common.TargetRoas value) { if (targetRoasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { targetRoasBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 29; return this; } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ public Builder setTargetRoas( com.google.ads.googleads.v16.common.TargetRoas.Builder builderForValue) { if (targetRoasBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { targetRoasBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 29; return this; } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ public Builder mergeTargetRoas(com.google.ads.googleads.v16.common.TargetRoas value) { if (targetRoasBuilder_ == null) { if (campaignBiddingStrategyCase_ == 29 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetRoas.newBuilder((com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 29) { targetRoasBuilder_.mergeFrom(value); } else { targetRoasBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 29; return this; } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ public Builder clearTargetRoas() { if (targetRoasBuilder_ == null) { if (campaignBiddingStrategyCase_ == 29) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 29) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } targetRoasBuilder_.clear(); } return this; } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ public com.google.ads.googleads.v16.common.TargetRoas.Builder getTargetRoasBuilder() { return getTargetRoasFieldBuilder().getBuilder(); } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetRoasOrBuilder getTargetRoasOrBuilder() { if ((campaignBiddingStrategyCase_ == 29) && (targetRoasBuilder_ != null)) { return targetRoasBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 29) { return (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } } /** *
     * Standard Target ROAS bidding strategy that automatically maximizes
     * revenue while averaging a specific target return on ad spend (ROAS).
     * 
* * .google.ads.googleads.v16.common.TargetRoas target_roas = 29; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetRoas, com.google.ads.googleads.v16.common.TargetRoas.Builder, com.google.ads.googleads.v16.common.TargetRoasOrBuilder> getTargetRoasFieldBuilder() { if (targetRoasBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 29)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetRoas.getDefaultInstance(); } targetRoasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetRoas, com.google.ads.googleads.v16.common.TargetRoas.Builder, com.google.ads.googleads.v16.common.TargetRoasOrBuilder>( (com.google.ads.googleads.v16.common.TargetRoas) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 29; onChanged(); return targetRoasBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetSpend, com.google.ads.googleads.v16.common.TargetSpend.Builder, com.google.ads.googleads.v16.common.TargetSpendOrBuilder> targetSpendBuilder_; /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; * @return Whether the targetSpend field is set. */ @java.lang.Override public boolean hasTargetSpend() { return campaignBiddingStrategyCase_ == 27; } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; * @return The targetSpend. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetSpend getTargetSpend() { if (targetSpendBuilder_ == null) { if (campaignBiddingStrategyCase_ == 27) { return (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 27) { return targetSpendBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ public Builder setTargetSpend(com.google.ads.googleads.v16.common.TargetSpend value) { if (targetSpendBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { targetSpendBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 27; return this; } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ public Builder setTargetSpend( com.google.ads.googleads.v16.common.TargetSpend.Builder builderForValue) { if (targetSpendBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { targetSpendBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 27; return this; } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ public Builder mergeTargetSpend(com.google.ads.googleads.v16.common.TargetSpend value) { if (targetSpendBuilder_ == null) { if (campaignBiddingStrategyCase_ == 27 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetSpend.newBuilder((com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 27) { targetSpendBuilder_.mergeFrom(value); } else { targetSpendBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 27; return this; } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ public Builder clearTargetSpend() { if (targetSpendBuilder_ == null) { if (campaignBiddingStrategyCase_ == 27) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 27) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } targetSpendBuilder_.clear(); } return this; } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ public com.google.ads.googleads.v16.common.TargetSpend.Builder getTargetSpendBuilder() { return getTargetSpendFieldBuilder().getBuilder(); } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetSpendOrBuilder getTargetSpendOrBuilder() { if ((campaignBiddingStrategyCase_ == 27) && (targetSpendBuilder_ != null)) { return targetSpendBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 27) { return (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } } /** *
     * Standard Target Spend bidding strategy that automatically sets your bids
     * to help get as many clicks as possible within your budget.
     * 
* * .google.ads.googleads.v16.common.TargetSpend target_spend = 27; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetSpend, com.google.ads.googleads.v16.common.TargetSpend.Builder, com.google.ads.googleads.v16.common.TargetSpendOrBuilder> getTargetSpendFieldBuilder() { if (targetSpendBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 27)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetSpend.getDefaultInstance(); } targetSpendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetSpend, com.google.ads.googleads.v16.common.TargetSpend.Builder, com.google.ads.googleads.v16.common.TargetSpendOrBuilder>( (com.google.ads.googleads.v16.common.TargetSpend) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 27; onChanged(); return targetSpendBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.PercentCpc, com.google.ads.googleads.v16.common.PercentCpc.Builder, com.google.ads.googleads.v16.common.PercentCpcOrBuilder> percentCpcBuilder_; /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; * @return Whether the percentCpc field is set. */ @java.lang.Override public boolean hasPercentCpc() { return campaignBiddingStrategyCase_ == 34; } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; * @return The percentCpc. */ @java.lang.Override public com.google.ads.googleads.v16.common.PercentCpc getPercentCpc() { if (percentCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 34) { return (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 34) { return percentCpcBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ public Builder setPercentCpc(com.google.ads.googleads.v16.common.PercentCpc value) { if (percentCpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { percentCpcBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 34; return this; } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ public Builder setPercentCpc( com.google.ads.googleads.v16.common.PercentCpc.Builder builderForValue) { if (percentCpcBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { percentCpcBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 34; return this; } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ public Builder mergePercentCpc(com.google.ads.googleads.v16.common.PercentCpc value) { if (percentCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 34 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.PercentCpc.newBuilder((com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 34) { percentCpcBuilder_.mergeFrom(value); } else { percentCpcBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 34; return this; } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ public Builder clearPercentCpc() { if (percentCpcBuilder_ == null) { if (campaignBiddingStrategyCase_ == 34) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 34) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } percentCpcBuilder_.clear(); } return this; } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ public com.google.ads.googleads.v16.common.PercentCpc.Builder getPercentCpcBuilder() { return getPercentCpcFieldBuilder().getBuilder(); } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ @java.lang.Override public com.google.ads.googleads.v16.common.PercentCpcOrBuilder getPercentCpcOrBuilder() { if ((campaignBiddingStrategyCase_ == 34) && (percentCpcBuilder_ != null)) { return percentCpcBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 34) { return (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } } /** *
     * Standard Percent Cpc bidding strategy where bids are a fraction of the
     * advertised price for some good or service.
     * 
* * .google.ads.googleads.v16.common.PercentCpc percent_cpc = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.PercentCpc, com.google.ads.googleads.v16.common.PercentCpc.Builder, com.google.ads.googleads.v16.common.PercentCpcOrBuilder> getPercentCpcFieldBuilder() { if (percentCpcBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 34)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.PercentCpc.getDefaultInstance(); } percentCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.PercentCpc, com.google.ads.googleads.v16.common.PercentCpc.Builder, com.google.ads.googleads.v16.common.PercentCpcOrBuilder>( (com.google.ads.googleads.v16.common.PercentCpc) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 34; onChanged(); return percentCpcBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpm, com.google.ads.googleads.v16.common.TargetCpm.Builder, com.google.ads.googleads.v16.common.TargetCpmOrBuilder> targetCpmBuilder_; /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; * @return Whether the targetCpm field is set. */ @java.lang.Override public boolean hasTargetCpm() { return campaignBiddingStrategyCase_ == 41; } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; * @return The targetCpm. */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpm getTargetCpm() { if (targetCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 41) { return (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } else { if (campaignBiddingStrategyCase_ == 41) { return targetCpmBuilder_.getMessage(); } return com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ public Builder setTargetCpm(com.google.ads.googleads.v16.common.TargetCpm value) { if (targetCpmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBiddingStrategy_ = value; onChanged(); } else { targetCpmBuilder_.setMessage(value); } campaignBiddingStrategyCase_ = 41; return this; } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ public Builder setTargetCpm( com.google.ads.googleads.v16.common.TargetCpm.Builder builderForValue) { if (targetCpmBuilder_ == null) { campaignBiddingStrategy_ = builderForValue.build(); onChanged(); } else { targetCpmBuilder_.setMessage(builderForValue.build()); } campaignBiddingStrategyCase_ = 41; return this; } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ public Builder mergeTargetCpm(com.google.ads.googleads.v16.common.TargetCpm value) { if (targetCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 41 && campaignBiddingStrategy_ != com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance()) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetCpm.newBuilder((com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_) .mergeFrom(value).buildPartial(); } else { campaignBiddingStrategy_ = value; } onChanged(); } else { if (campaignBiddingStrategyCase_ == 41) { targetCpmBuilder_.mergeFrom(value); } else { targetCpmBuilder_.setMessage(value); } } campaignBiddingStrategyCase_ = 41; return this; } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ public Builder clearTargetCpm() { if (targetCpmBuilder_ == null) { if (campaignBiddingStrategyCase_ == 41) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; onChanged(); } } else { if (campaignBiddingStrategyCase_ == 41) { campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; } targetCpmBuilder_.clear(); } return this; } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ public com.google.ads.googleads.v16.common.TargetCpm.Builder getTargetCpmBuilder() { return getTargetCpmFieldBuilder().getBuilder(); } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ @java.lang.Override public com.google.ads.googleads.v16.common.TargetCpmOrBuilder getTargetCpmOrBuilder() { if ((campaignBiddingStrategyCase_ == 41) && (targetCpmBuilder_ != null)) { return targetCpmBuilder_.getMessageOrBuilder(); } else { if (campaignBiddingStrategyCase_ == 41) { return (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_; } return com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } } /** *
     * A bidding strategy that automatically optimizes cost per thousand
     * impressions.
     * 
* * .google.ads.googleads.v16.common.TargetCpm target_cpm = 41; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpm, com.google.ads.googleads.v16.common.TargetCpm.Builder, com.google.ads.googleads.v16.common.TargetCpmOrBuilder> getTargetCpmFieldBuilder() { if (targetCpmBuilder_ == null) { if (!(campaignBiddingStrategyCase_ == 41)) { campaignBiddingStrategy_ = com.google.ads.googleads.v16.common.TargetCpm.getDefaultInstance(); } targetCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.TargetCpm, com.google.ads.googleads.v16.common.TargetCpm.Builder, com.google.ads.googleads.v16.common.TargetCpmOrBuilder>( (com.google.ads.googleads.v16.common.TargetCpm) campaignBiddingStrategy_, getParentForChildren(), isClean()); campaignBiddingStrategy_ = null; } campaignBiddingStrategyCase_ = 41; onChanged(); return targetCpmBuilder_; } @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.v16.resources.Campaign) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Campaign) private static final com.google.ads.googleads.v16.resources.Campaign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Campaign(); } public static com.google.ads.googleads.v16.resources.Campaign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Campaign 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.v16.resources.Campaign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy