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

com.google.ads.googleads.v17.resources.KeywordPlanCampaign Maven / Gradle / Ivy

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

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

/**
 * 
 * A Keyword Plan campaign.
 * Max number of keyword plan campaigns per plan allowed: 1.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.KeywordPlanCampaign} */ public final class KeywordPlanCampaign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.KeywordPlanCampaign) KeywordPlanCampaignOrBuilder { private static final long serialVersionUID = 0L; // Use KeywordPlanCampaign.newBuilder() to construct. private KeywordPlanCampaign(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeywordPlanCampaign() { resourceName_ = ""; keywordPlan_ = ""; name_ = ""; languageConstants_ = com.google.protobuf.LazyStringArrayList.emptyList(); keywordPlanNetwork_ = 0; geoTargets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeywordPlanCampaign(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaignProto.internal_static_google_ads_googleads_v17_resources_KeywordPlanCampaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaignProto.internal_static_google_ads_googleads_v17_resources_KeywordPlanCampaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.KeywordPlanCampaign.class, com.google.ads.googleads.v17.resources.KeywordPlanCampaign.Builder.class); } private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Immutable. The resource name of the Keyword Plan campaign.
   * KeywordPlanCampaign resource names have the form:
   *
   * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 Keyword Plan campaign.
   * KeywordPlanCampaign resource names have the form:
   *
   * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 KEYWORD_PLAN_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object keywordPlan_ = ""; /** *
   * The keyword plan this campaign belongs to.
   * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return Whether the keywordPlan field is set. */ @java.lang.Override public boolean hasKeywordPlan() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The keyword plan this campaign belongs to.
   * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return The keywordPlan. */ @java.lang.Override public java.lang.String getKeywordPlan() { java.lang.Object ref = keywordPlan_; 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(); keywordPlan_ = s; return s; } } /** *
   * The keyword plan this campaign belongs to.
   * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return The bytes for keywordPlan. */ @java.lang.Override public com.google.protobuf.ByteString getKeywordPlanBytes() { java.lang.Object ref = keywordPlan_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keywordPlan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 10; private long id_ = 0L; /** *
   * Output only. The ID of the Keyword Plan campaign.
   * 
* * optional int64 id = 10 [(.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 Keyword Plan campaign.
   * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * The name of the Keyword Plan campaign.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * optional string name = 11; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The name of the Keyword Plan campaign.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * optional string name = 11; * @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 Keyword Plan campaign.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * optional string name = 11; * @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 LANGUAGE_CONSTANTS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageConstants_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The languages targeted for the Keyword Plan campaign.
   * Max allowed: 1.
   * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the languageConstants. */ public com.google.protobuf.ProtocolStringList getLanguageConstantsList() { return languageConstants_; } /** *
   * The languages targeted for the Keyword Plan campaign.
   * Max allowed: 1.
   * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @return The count of languageConstants. */ public int getLanguageConstantsCount() { return languageConstants_.size(); } /** *
   * The languages targeted for the Keyword Plan campaign.
   * Max allowed: 1.
   * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The languageConstants at the given index. */ public java.lang.String getLanguageConstants(int index) { return languageConstants_.get(index); } /** *
   * The languages targeted for the Keyword Plan campaign.
   * Max allowed: 1.
   * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the languageConstants at the given index. */ public com.google.protobuf.ByteString getLanguageConstantsBytes(int index) { return languageConstants_.getByteString(index); } public static final int KEYWORD_PLAN_NETWORK_FIELD_NUMBER = 6; private int keywordPlanNetwork_ = 0; /** *
   * Targeting network.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @return The enum numeric value on the wire for keywordPlanNetwork. */ @java.lang.Override public int getKeywordPlanNetworkValue() { return keywordPlanNetwork_; } /** *
   * Targeting network.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @return The keywordPlanNetwork. */ @java.lang.Override public com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork getKeywordPlanNetwork() { com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork result = com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.forNumber(keywordPlanNetwork_); return result == null ? com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNRECOGNIZED : result; } public static final int CPC_BID_MICROS_FIELD_NUMBER = 13; private long cpcBidMicros_ = 0L; /** *
   * A default max cpc bid in micros, and in the account currency, for all ad
   * groups under the campaign.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * optional int64 cpc_bid_micros = 13; * @return Whether the cpcBidMicros field is set. */ @java.lang.Override public boolean hasCpcBidMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * A default max cpc bid in micros, and in the account currency, for all ad
   * groups under the campaign.
   *
   * This field is required and should not be empty when creating Keyword Plan
   * campaigns.
   * 
* * optional int64 cpc_bid_micros = 13; * @return The cpcBidMicros. */ @java.lang.Override public long getCpcBidMicros() { return cpcBidMicros_; } public static final int GEO_TARGETS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List geoTargets_; /** *
   * The geo targets.
   * Max number allowed: 20.
   * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ @java.lang.Override public java.util.List getGeoTargetsList() { return geoTargets_; } /** *
   * The geo targets.
   * Max number allowed: 20.
   * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ @java.lang.Override public java.util.List getGeoTargetsOrBuilderList() { return geoTargets_; } /** *
   * The geo targets.
   * Max number allowed: 20.
   * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ @java.lang.Override public int getGeoTargetsCount() { return geoTargets_.size(); } /** *
   * The geo targets.
   * Max number allowed: 20.
   * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget getGeoTargets(int index) { return geoTargets_.get(index); } /** *
   * The geo targets.
   * Max number allowed: 20.
   * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanGeoTargetOrBuilder getGeoTargetsOrBuilder( int index) { return geoTargets_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (keywordPlanNetwork_ != com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNSPECIFIED.getNumber()) { output.writeEnum(6, keywordPlanNetwork_); } for (int i = 0; i < geoTargets_.size(); i++) { output.writeMessage(8, geoTargets_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, keywordPlan_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(10, id_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, name_); } for (int i = 0; i < languageConstants_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, languageConstants_.getRaw(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(13, cpcBidMicros_); } 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 (keywordPlanNetwork_ != com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, keywordPlanNetwork_); } for (int i = 0; i < geoTargets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, geoTargets_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, keywordPlan_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, id_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, name_); } { int dataSize = 0; for (int i = 0; i < languageConstants_.size(); i++) { dataSize += computeStringSizeNoTag(languageConstants_.getRaw(i)); } size += dataSize; size += 1 * getLanguageConstantsList().size(); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, cpcBidMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.resources.KeywordPlanCampaign)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.KeywordPlanCampaign other = (com.google.ads.googleads.v17.resources.KeywordPlanCampaign) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasKeywordPlan() != other.hasKeywordPlan()) return false; if (hasKeywordPlan()) { if (!getKeywordPlan() .equals(other.getKeywordPlan())) 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 (!getLanguageConstantsList() .equals(other.getLanguageConstantsList())) return false; if (keywordPlanNetwork_ != other.keywordPlanNetwork_) return false; if (hasCpcBidMicros() != other.hasCpcBidMicros()) return false; if (hasCpcBidMicros()) { if (getCpcBidMicros() != other.getCpcBidMicros()) return false; } if (!getGeoTargetsList() .equals(other.getGeoTargetsList())) 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasKeywordPlan()) { hash = (37 * hash) + KEYWORD_PLAN_FIELD_NUMBER; hash = (53 * hash) + getKeywordPlan().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(); } if (getLanguageConstantsCount() > 0) { hash = (37 * hash) + LANGUAGE_CONSTANTS_FIELD_NUMBER; hash = (53 * hash) + getLanguageConstantsList().hashCode(); } hash = (37 * hash) + KEYWORD_PLAN_NETWORK_FIELD_NUMBER; hash = (53 * hash) + keywordPlanNetwork_; if (hasCpcBidMicros()) { hash = (37 * hash) + CPC_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCpcBidMicros()); } if (getGeoTargetsCount() > 0) { hash = (37 * hash) + GEO_TARGETS_FIELD_NUMBER; hash = (53 * hash) + getGeoTargetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.resources.KeywordPlanCampaign 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 Keyword Plan campaign.
   * Max number of keyword plan campaigns per plan allowed: 1.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.KeywordPlanCampaign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.KeywordPlanCampaign) com.google.ads.googleads.v17.resources.KeywordPlanCampaignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaignProto.internal_static_google_ads_googleads_v17_resources_KeywordPlanCampaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaignProto.internal_static_google_ads_googleads_v17_resources_KeywordPlanCampaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.KeywordPlanCampaign.class, com.google.ads.googleads.v17.resources.KeywordPlanCampaign.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.KeywordPlanCampaign.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceName_ = ""; keywordPlan_ = ""; id_ = 0L; name_ = ""; languageConstants_ = com.google.protobuf.LazyStringArrayList.emptyList(); keywordPlanNetwork_ = 0; cpcBidMicros_ = 0L; if (geoTargetsBuilder_ == null) { geoTargets_ = java.util.Collections.emptyList(); } else { geoTargets_ = null; geoTargetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaignProto.internal_static_google_ads_googleads_v17_resources_KeywordPlanCampaign_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanCampaign getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.KeywordPlanCampaign.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanCampaign build() { com.google.ads.googleads.v17.resources.KeywordPlanCampaign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanCampaign buildPartial() { com.google.ads.googleads.v17.resources.KeywordPlanCampaign result = new com.google.ads.googleads.v17.resources.KeywordPlanCampaign(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.KeywordPlanCampaign result) { if (geoTargetsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { geoTargets_ = java.util.Collections.unmodifiableList(geoTargets_); bitField0_ = (bitField0_ & ~0x00000080); } result.geoTargets_ = geoTargets_; } else { result.geoTargets_ = geoTargetsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.resources.KeywordPlanCampaign result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.keywordPlan_ = keywordPlan_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { languageConstants_.makeImmutable(); result.languageConstants_ = languageConstants_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.keywordPlanNetwork_ = keywordPlanNetwork_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.cpcBidMicros_ = cpcBidMicros_; 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.v17.resources.KeywordPlanCampaign) { return mergeFrom((com.google.ads.googleads.v17.resources.KeywordPlanCampaign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.KeywordPlanCampaign other) { if (other == com.google.ads.googleads.v17.resources.KeywordPlanCampaign.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasKeywordPlan()) { keywordPlan_ = other.keywordPlan_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000008; onChanged(); } if (!other.languageConstants_.isEmpty()) { if (languageConstants_.isEmpty()) { languageConstants_ = other.languageConstants_; bitField0_ |= 0x00000010; } else { ensureLanguageConstantsIsMutable(); languageConstants_.addAll(other.languageConstants_); } onChanged(); } if (other.keywordPlanNetwork_ != 0) { setKeywordPlanNetworkValue(other.getKeywordPlanNetworkValue()); } if (other.hasCpcBidMicros()) { setCpcBidMicros(other.getCpcBidMicros()); } if (geoTargetsBuilder_ == null) { if (!other.geoTargets_.isEmpty()) { if (geoTargets_.isEmpty()) { geoTargets_ = other.geoTargets_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureGeoTargetsIsMutable(); geoTargets_.addAll(other.geoTargets_); } onChanged(); } } else { if (!other.geoTargets_.isEmpty()) { if (geoTargetsBuilder_.isEmpty()) { geoTargetsBuilder_.dispose(); geoTargetsBuilder_ = null; geoTargets_ = other.geoTargets_; bitField0_ = (bitField0_ & ~0x00000080); geoTargetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGeoTargetsFieldBuilder() : null; } else { geoTargetsBuilder_.addAllMessages(other.geoTargets_); } } } 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 48: { keywordPlanNetwork_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 66: { com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget m = input.readMessage( com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.parser(), extensionRegistry); if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); geoTargets_.add(m); } else { geoTargetsBuilder_.addMessage(m); } break; } // case 66 case 74: { keywordPlan_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 74 case 80: { id_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 80 case 90: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureLanguageConstantsIsMutable(); languageConstants_.add(s); break; } // case 98 case 104: { cpcBidMicros_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 104 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 resourceName_ = ""; /** *
     * Immutable. The resource name of the Keyword Plan campaign.
     * KeywordPlanCampaign resource names have the form:
     *
     * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 Keyword Plan campaign.
     * KeywordPlanCampaign resource names have the form:
     *
     * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 Keyword Plan campaign.
     * KeywordPlanCampaign resource names have the form:
     *
     * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 Keyword Plan campaign.
     * KeywordPlanCampaign resource names have the form:
     *
     * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 Keyword Plan campaign.
     * KeywordPlanCampaign resource names have the form:
     *
     * `customers/{customer_id}/keywordPlanCampaigns/{kp_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 java.lang.Object keywordPlan_ = ""; /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return Whether the keywordPlan field is set. */ public boolean hasKeywordPlan() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return The keywordPlan. */ public java.lang.String getKeywordPlan() { java.lang.Object ref = keywordPlan_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keywordPlan_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return The bytes for keywordPlan. */ public com.google.protobuf.ByteString getKeywordPlanBytes() { java.lang.Object ref = keywordPlan_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keywordPlan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @param value The keywordPlan to set. * @return This builder for chaining. */ public Builder setKeywordPlan( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keywordPlan_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKeywordPlan() { keywordPlan_ = getDefaultInstance().getKeywordPlan(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The keyword plan this campaign belongs to.
     * 
* * optional string keyword_plan = 9 [(.google.api.resource_reference) = { ... } * @param value The bytes for keywordPlan to set. * @return This builder for chaining. */ public Builder setKeywordPlanBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keywordPlan_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long id_ ; /** *
     * Output only. The ID of the Keyword Plan campaign.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. The ID of the Keyword Plan campaign.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of the Keyword Plan campaign.
     * 
* * optional int64 id = 10 [(.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_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. The ID of the Keyword Plan campaign.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name of the Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The name of the Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @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 Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @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 Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The name of the Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * The name of the Keyword Plan campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional string name = 11; * @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_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList languageConstants_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLanguageConstantsIsMutable() { if (!languageConstants_.isModifiable()) { languageConstants_ = new com.google.protobuf.LazyStringArrayList(languageConstants_); } bitField0_ |= 0x00000010; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the languageConstants. */ public com.google.protobuf.ProtocolStringList getLanguageConstantsList() { languageConstants_.makeImmutable(); return languageConstants_; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @return The count of languageConstants. */ public int getLanguageConstantsCount() { return languageConstants_.size(); } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The languageConstants at the given index. */ public java.lang.String getLanguageConstants(int index) { return languageConstants_.get(index); } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the languageConstants at the given index. */ public com.google.protobuf.ByteString getLanguageConstantsBytes(int index) { return languageConstants_.getByteString(index); } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The languageConstants to set. * @return This builder for chaining. */ public Builder setLanguageConstants( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageConstantsIsMutable(); languageConstants_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param value The languageConstants to add. * @return This builder for chaining. */ public Builder addLanguageConstants( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageConstantsIsMutable(); languageConstants_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param values The languageConstants to add. * @return This builder for chaining. */ public Builder addAllLanguageConstants( java.lang.Iterable values) { ensureLanguageConstantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, languageConstants_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLanguageConstants() { languageConstants_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * The languages targeted for the Keyword Plan campaign.
     * Max allowed: 1.
     * 
* * repeated string language_constants = 12 [(.google.api.resource_reference) = { ... } * @param value The bytes of the languageConstants to add. * @return This builder for chaining. */ public Builder addLanguageConstantsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageConstantsIsMutable(); languageConstants_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private int keywordPlanNetwork_ = 0; /** *
     * Targeting network.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @return The enum numeric value on the wire for keywordPlanNetwork. */ @java.lang.Override public int getKeywordPlanNetworkValue() { return keywordPlanNetwork_; } /** *
     * Targeting network.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @param value The enum numeric value on the wire for keywordPlanNetwork to set. * @return This builder for chaining. */ public Builder setKeywordPlanNetworkValue(int value) { keywordPlanNetwork_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Targeting network.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @return The keywordPlanNetwork. */ @java.lang.Override public com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork getKeywordPlanNetwork() { com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork result = com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.forNumber(keywordPlanNetwork_); return result == null ? com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNRECOGNIZED : result; } /** *
     * Targeting network.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @param value The keywordPlanNetwork to set. * @return This builder for chaining. */ public Builder setKeywordPlanNetwork(com.google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; keywordPlanNetwork_ = value.getNumber(); onChanged(); return this; } /** *
     * Targeting network.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * .google.ads.googleads.v17.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; * @return This builder for chaining. */ public Builder clearKeywordPlanNetwork() { bitField0_ = (bitField0_ & ~0x00000020); keywordPlanNetwork_ = 0; onChanged(); return this; } private long cpcBidMicros_ ; /** *
     * A default max cpc bid in micros, and in the account currency, for all ad
     * groups under the campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional int64 cpc_bid_micros = 13; * @return Whether the cpcBidMicros field is set. */ @java.lang.Override public boolean hasCpcBidMicros() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * A default max cpc bid in micros, and in the account currency, for all ad
     * groups under the campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional int64 cpc_bid_micros = 13; * @return The cpcBidMicros. */ @java.lang.Override public long getCpcBidMicros() { return cpcBidMicros_; } /** *
     * A default max cpc bid in micros, and in the account currency, for all ad
     * groups under the campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional int64 cpc_bid_micros = 13; * @param value The cpcBidMicros to set. * @return This builder for chaining. */ public Builder setCpcBidMicros(long value) { cpcBidMicros_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * A default max cpc bid in micros, and in the account currency, for all ad
     * groups under the campaign.
     *
     * This field is required and should not be empty when creating Keyword Plan
     * campaigns.
     * 
* * optional int64 cpc_bid_micros = 13; * @return This builder for chaining. */ public Builder clearCpcBidMicros() { bitField0_ = (bitField0_ & ~0x00000040); cpcBidMicros_ = 0L; onChanged(); return this; } private java.util.List geoTargets_ = java.util.Collections.emptyList(); private void ensureGeoTargetsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { geoTargets_ = new java.util.ArrayList(geoTargets_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder, com.google.ads.googleads.v17.resources.KeywordPlanGeoTargetOrBuilder> geoTargetsBuilder_; /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public java.util.List getGeoTargetsList() { if (geoTargetsBuilder_ == null) { return java.util.Collections.unmodifiableList(geoTargets_); } else { return geoTargetsBuilder_.getMessageList(); } } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public int getGeoTargetsCount() { if (geoTargetsBuilder_ == null) { return geoTargets_.size(); } else { return geoTargetsBuilder_.getCount(); } } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget getGeoTargets(int index) { if (geoTargetsBuilder_ == null) { return geoTargets_.get(index); } else { return geoTargetsBuilder_.getMessage(index); } } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder setGeoTargets( int index, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget value) { if (geoTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGeoTargetsIsMutable(); geoTargets_.set(index, value); onChanged(); } else { geoTargetsBuilder_.setMessage(index, value); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder setGeoTargets( int index, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder builderForValue) { if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); geoTargets_.set(index, builderForValue.build()); onChanged(); } else { geoTargetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder addGeoTargets(com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget value) { if (geoTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGeoTargetsIsMutable(); geoTargets_.add(value); onChanged(); } else { geoTargetsBuilder_.addMessage(value); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder addGeoTargets( int index, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget value) { if (geoTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGeoTargetsIsMutable(); geoTargets_.add(index, value); onChanged(); } else { geoTargetsBuilder_.addMessage(index, value); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder addGeoTargets( com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder builderForValue) { if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); geoTargets_.add(builderForValue.build()); onChanged(); } else { geoTargetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder addGeoTargets( int index, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder builderForValue) { if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); geoTargets_.add(index, builderForValue.build()); onChanged(); } else { geoTargetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder addAllGeoTargets( java.lang.Iterable values) { if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, geoTargets_); onChanged(); } else { geoTargetsBuilder_.addAllMessages(values); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder clearGeoTargets() { if (geoTargetsBuilder_ == null) { geoTargets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { geoTargetsBuilder_.clear(); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public Builder removeGeoTargets(int index) { if (geoTargetsBuilder_ == null) { ensureGeoTargetsIsMutable(); geoTargets_.remove(index); onChanged(); } else { geoTargetsBuilder_.remove(index); } return this; } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder getGeoTargetsBuilder( int index) { return getGeoTargetsFieldBuilder().getBuilder(index); } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public com.google.ads.googleads.v17.resources.KeywordPlanGeoTargetOrBuilder getGeoTargetsOrBuilder( int index) { if (geoTargetsBuilder_ == null) { return geoTargets_.get(index); } else { return geoTargetsBuilder_.getMessageOrBuilder(index); } } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public java.util.List getGeoTargetsOrBuilderList() { if (geoTargetsBuilder_ != null) { return geoTargetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(geoTargets_); } } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder addGeoTargetsBuilder() { return getGeoTargetsFieldBuilder().addBuilder( com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.getDefaultInstance()); } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder addGeoTargetsBuilder( int index) { return getGeoTargetsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.getDefaultInstance()); } /** *
     * The geo targets.
     * Max number allowed: 20.
     * 
* * repeated .google.ads.googleads.v17.resources.KeywordPlanGeoTarget geo_targets = 8; */ public java.util.List getGeoTargetsBuilderList() { return getGeoTargetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder, com.google.ads.googleads.v17.resources.KeywordPlanGeoTargetOrBuilder> getGeoTargetsFieldBuilder() { if (geoTargetsBuilder_ == null) { geoTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget, com.google.ads.googleads.v17.resources.KeywordPlanGeoTarget.Builder, com.google.ads.googleads.v17.resources.KeywordPlanGeoTargetOrBuilder>( geoTargets_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); geoTargets_ = null; } return geoTargetsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.KeywordPlanCampaign) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.KeywordPlanCampaign) private static final com.google.ads.googleads.v17.resources.KeywordPlanCampaign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.KeywordPlanCampaign(); } public static com.google.ads.googleads.v17.resources.KeywordPlanCampaign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeywordPlanCampaign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.resources.KeywordPlanCampaign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy