com.google.ads.googleads.v10.resources.Campaign Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/campaign.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A campaign.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign}
*/
public final class Campaign extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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_ = "";
status_ = 0;
servingStatus_ = 0;
adServingOptimizationStatus_ = 0;
advertisingChannelType_ = 0;
advertisingChannelSubType_ = 0;
trackingUrlTemplate_ = "";
urlCustomParameters_ = java.util.Collections.emptyList();
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
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();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Campaign();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.class, com.google.ads.googleads.v10.resources.Campaign.Builder.class);
}
public interface NetworkSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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();
}
/**
*
* The network settings for the campaign.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.NetworkSettings}
*/
public static final class NetworkSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_NetworkSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_NetworkSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.class, com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder.class);
}
private int bitField0_;
public static final int TARGET_GOOGLE_SEARCH_FIELD_NUMBER = 5;
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_;
}
public static final int TARGET_SEARCH_NETWORK_FIELD_NUMBER = 6;
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_;
}
public static final int TARGET_CONTENT_NETWORK_FIELD_NUMBER = 7;
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_;
}
public static final int TARGET_PARTNER_SEARCH_NETWORK_FIELD_NUMBER = 8;
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_;
}
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_);
}
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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.resources.Campaign.NetworkSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings other = (com.google.ads.googleads.v10.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 (!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());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Campaign.NetworkSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.NetworkSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.NetworkSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.NetworkSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.NetworkSettings)
com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_NetworkSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_NetworkSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.class, com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
targetGoogleSearch_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
targetSearchNetwork_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
targetContentNetwork_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
targetPartnerSearchNetwork_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_NetworkSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings build() {
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings result = new com.google.ads.googleads.v10.resources.Campaign.NetworkSettings(this);
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;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.NetworkSettings) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.NetworkSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.NetworkSettings other) {
if (other == com.google.ads.googleads.v10.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());
}
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
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) {
bitField0_ |= 0x00000001;
targetGoogleSearch_ = value;
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) {
bitField0_ |= 0x00000002;
targetSearchNetwork_ = value;
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) {
bitField0_ |= 0x00000004;
targetContentNetwork_ = value;
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) {
bitField0_ |= 0x00000008;
targetPartnerSearchNetwork_ = value;
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Campaign.NetworkSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.NetworkSettings)
private static final com.google.ads.googleads.v10.resources.Campaign.NetworkSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.NetworkSettings();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.NetworkSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HotelSettingInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Campaign.HotelSettingInfo}
*/
public static final class HotelSettingInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_HotelSettingInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_HotelSettingInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.class, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder.class);
}
private int bitField0_;
public static final int HOTEL_CENTER_ID_FIELD_NUMBER = 2;
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_;
}
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.v10.resources.Campaign.HotelSettingInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.HotelSettingInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.HotelSettingInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.HotelSettingInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.HotelSettingInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.HotelSettingInfo)
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_HotelSettingInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_HotelSettingInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.class, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
hotelCenterId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_HotelSettingInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo build() {
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo result = new com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hotelCenterId_ = hotelCenterId_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo other) {
if (other == com.google.ads.googleads.v10.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) {
bitField0_ |= 0x00000001;
hotelCenterId_ = value;
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.v10.resources.Campaign.HotelSettingInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.HotelSettingInfo)
private static final com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.HotelSettingInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicSearchAdsSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting}
*/
public static final class DynamicSearchAdsSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DynamicSearchAdsSetting();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_DynamicSearchAdsSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_DynamicSearchAdsSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.class, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder.class);
}
private int bitField0_;
public static final int DOMAIN_NAME_FIELD_NUMBER = 6;
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;
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_;
/**
*
* 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;
private com.google.protobuf.LazyStringList feeds_;
/**
*
* 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.v10.resources.Campaign.DynamicSearchAdsSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting)
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_DynamicSearchAdsSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_DynamicSearchAdsSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.class, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
domainName_ = "";
languageCode_ = "";
useSuppliedUrlsOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
feeds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_DynamicSearchAdsSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting build() {
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting result = new com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.domainName_ = domainName_;
result.languageCode_ = languageCode_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.useSuppliedUrlsOnly_ = useSuppliedUrlsOnly_;
to_bitField0_ |= 0x00000001;
}
if (((bitField0_ & 0x00000002) != 0)) {
feeds_ = feeds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.feeds_ = feeds_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance()) return this;
if (!other.getDomainName().isEmpty()) {
domainName_ = other.domainName_;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
onChanged();
}
if (other.hasUseSuppliedUrlsOnly()) {
setUseSuppliedUrlsOnly(other.getUseSuppliedUrlsOnly());
}
if (!other.feeds_.isEmpty()) {
if (feeds_.isEmpty()) {
feeds_ = other.feeds_;
bitField0_ = (bitField0_ & ~0x00000002);
} 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();
break;
} // case 50
case 58: {
languageCode_ = input.readStringRequireUtf8();
break;
} // case 58
case 64: {
useSuppliedUrlsOnly_ = input.readBool();
bitField0_ |= 0x00000001;
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;
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();
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;
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;
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();
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;
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000001;
useSuppliedUrlsOnly_ = value;
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_ & ~0x00000001);
useSuppliedUrlsOnly_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList feeds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFeedsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
feeds_ = new com.google.protobuf.LazyStringArrayList(feeds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
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);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.DynamicSearchAdsSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.ShoppingSetting)
com.google.protobuf.MessageOrBuilder {
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the merchantId field is set.
*/
boolean hasMerchantId();
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return The merchantId.
*/
long getMerchantId();
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return Whether the salesCountry field is set.
*/
boolean hasSalesCountry();
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The salesCountry.
*/
java.lang.String getSalesCountry();
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The bytes for salesCountry.
*/
com.google.protobuf.ByteString
getSalesCountryBytes();
/**
*
* 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.
*
*
* bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The useVehicleInventory.
*/
boolean getUseVehicleInventory();
}
/**
*
* 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.v10.resources.Campaign.ShoppingSetting}
*/
public static final class ShoppingSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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() {
salesCountry_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingSetting();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_ShoppingSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_ShoppingSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.class, com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_ID_FIELD_NUMBER = 5;
private long merchantId_;
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the merchantId field is set.
*/
@java.lang.Override
public boolean hasMerchantId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return The merchantId.
*/
@java.lang.Override
public long getMerchantId() {
return merchantId_;
}
public static final int SALES_COUNTRY_FIELD_NUMBER = 6;
private volatile java.lang.Object salesCountry_;
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return Whether the salesCountry field is set.
*/
@java.lang.Override
public boolean hasSalesCountry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The salesCountry.
*/
@java.lang.Override
public java.lang.String getSalesCountry() {
java.lang.Object ref = salesCountry_;
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();
salesCountry_ = s;
return s;
}
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The bytes for salesCountry.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSalesCountryBytes() {
java.lang.Object ref = salesCountry_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salesCountry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAMPAIGN_PRIORITY_FIELD_NUMBER = 7;
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_;
}
public static final int ENABLE_LOCAL_FIELD_NUMBER = 8;
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_;
}
public static final int USE_VEHICLE_INVENTORY_FIELD_NUMBER = 9;
private boolean useVehicleInventory_;
/**
*
* Immutable. Whether to target Vehicle Listing inventory.
*
*
* bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The useVehicleInventory.
*/
@java.lang.Override
public boolean getUseVehicleInventory() {
return useVehicleInventory_;
}
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(5, merchantId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, salesCountry_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(7, campaignPriority_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(8, enableLocal_);
}
if (useVehicleInventory_ != false) {
output.writeBool(9, useVehicleInventory_);
}
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.GeneratedMessageV3.computeStringSize(6, salesCountry_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, campaignPriority_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, enableLocal_);
}
if (useVehicleInventory_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, useVehicleInventory_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting other = (com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting) obj;
if (hasMerchantId() != other.hasMerchantId()) return false;
if (hasMerchantId()) {
if (getMerchantId()
!= other.getMerchantId()) return false;
}
if (hasSalesCountry() != other.hasSalesCountry()) return false;
if (hasSalesCountry()) {
if (!getSalesCountry()
.equals(other.getSalesCountry())) 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 (!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());
}
if (hasSalesCountry()) {
hash = (37 * hash) + SALES_COUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getSalesCountry().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());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.ShoppingSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.ShoppingSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.ShoppingSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.ShoppingSetting)
com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_ShoppingSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_ShoppingSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.class, com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
merchantId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
salesCountry_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
campaignPriority_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
enableLocal_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
useVehicleInventory_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_ShoppingSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting build() {
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting result = new com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchantId_ = merchantId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.salesCountry_ = salesCountry_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.campaignPriority_ = campaignPriority_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.enableLocal_ = enableLocal_;
to_bitField0_ |= 0x00000008;
}
result.useVehicleInventory_ = useVehicleInventory_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.getDefaultInstance()) return this;
if (other.hasMerchantId()) {
setMerchantId(other.getMerchantId());
}
if (other.hasSalesCountry()) {
bitField0_ |= 0x00000002;
salesCountry_ = other.salesCountry_;
onChanged();
}
if (other.hasCampaignPriority()) {
setCampaignPriority(other.getCampaignPriority());
}
if (other.hasEnableLocal()) {
setEnableLocal(other.getEnableLocal());
}
if (other.getUseVehicleInventory() != false) {
setUseVehicleInventory(other.getUseVehicleInventory());
}
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 50: {
salesCountry_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 50
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();
break;
} // case 72
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_ ;
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the merchantId field is set.
*/
@java.lang.Override
public boolean hasMerchantId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return The merchantId.
*/
@java.lang.Override
public long getMerchantId() {
return merchantId_;
}
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The merchantId to set.
* @return This builder for chaining.
*/
public Builder setMerchantId(long value) {
bitField0_ |= 0x00000001;
merchantId_ = value;
onChanged();
return this;
}
/**
*
* Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearMerchantId() {
bitField0_ = (bitField0_ & ~0x00000001);
merchantId_ = 0L;
onChanged();
return this;
}
private java.lang.Object salesCountry_ = "";
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return Whether the salesCountry field is set.
*/
public boolean hasSalesCountry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The salesCountry.
*/
public java.lang.String getSalesCountry() {
java.lang.Object ref = salesCountry_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
salesCountry_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return The bytes for salesCountry.
*/
public com.google.protobuf.ByteString
getSalesCountryBytes() {
java.lang.Object ref = salesCountry_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salesCountry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @param value The salesCountry to set.
* @return This builder for chaining.
*/
public Builder setSalesCountry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
salesCountry_ = value;
onChanged();
return this;
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @return This builder for chaining.
*/
public Builder clearSalesCountry() {
bitField0_ = (bitField0_ & ~0x00000002);
salesCountry_ = getDefaultInstance().getSalesCountry();
onChanged();
return this;
}
/**
*
* Sales country of products to include in the campaign.
* This field is required for Shopping campaigns.
* This field is optional for non-Shopping campaigns, but it must be equal
* to 'ZZ' if set.
*
*
* optional string sales_country = 6;
* @param value The bytes for salesCountry to set.
* @return This builder for chaining.
*/
public Builder setSalesCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
salesCountry_ = value;
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) {
bitField0_ |= 0x00000004;
campaignPriority_ = value;
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) {
bitField0_ |= 0x00000008;
enableLocal_ = value;
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.
*
*
* 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.
*
*
* 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;
onChanged();
return this;
}
/**
*
* Immutable. Whether to target Vehicle Listing inventory.
*
*
* bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearUseVehicleInventory() {
useVehicleInventory_ = 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.v10.resources.Campaign.ShoppingSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.ShoppingSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.ShoppingSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TrackingSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Campaign.TrackingSetting}
*/
public static final class TrackingSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_TrackingSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_TrackingSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder.class);
}
private int bitField0_;
public static final int TRACKING_URL_FIELD_NUMBER = 2;
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.v10.resources.Campaign.TrackingSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.TrackingSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.TrackingSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.TrackingSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.TrackingSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.TrackingSetting)
com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_TrackingSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_TrackingSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_TrackingSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting build() {
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting result = new com.google.ads.googleads.v10.resources.Campaign.TrackingSetting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.trackingUrl_ = trackingUrl_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.TrackingSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.TrackingSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.TrackingSetting other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.getDefaultInstance()) return this;
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000001;
trackingUrl_ = other.trackingUrl_;
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();
}
bitField0_ |= 0x00000001;
trackingUrl_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000001);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
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);
bitField0_ |= 0x00000001;
trackingUrl_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Campaign.TrackingSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.TrackingSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.TrackingSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.TrackingSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.TrackingSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GeoTargetTypeSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting)
com.google.protobuf.MessageOrBuilder {
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1;
* @return The positiveGeoTargetType.
*/
com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType();
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2;
* @return The negativeGeoTargetType.
*/
com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType();
}
/**
*
* Represents a collection of settings related to ads geotargeting.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting}
*/
public static final class GeoTargetTypeSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_GeoTargetTypeSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_GeoTargetTypeSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.class, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder.class);
}
public static final int POSITIVE_GEO_TARGET_TYPE_FIELD_NUMBER = 1;
private int positiveGeoTargetType_;
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1;
* @return The positiveGeoTargetType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType result = com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.valueOf(positiveGeoTargetType_);
return result == null ? com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNRECOGNIZED : result;
}
public static final int NEGATIVE_GEO_TARGET_TYPE_FIELD_NUMBER = 2;
private int negativeGeoTargetType_;
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2;
* @return The negativeGeoTargetType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType result = com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.valueOf(negativeGeoTargetType_);
return result == null ? com.google.ads.googleads.v10.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.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNSPECIFIED.getNumber()) {
output.writeEnum(1, positiveGeoTargetType_);
}
if (negativeGeoTargetType_ != com.google.ads.googleads.v10.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.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, positiveGeoTargetType_);
}
if (negativeGeoTargetType_ != com.google.ads.googleads.v10.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.v10.resources.Campaign.GeoTargetTypeSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.GeoTargetTypeSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.GeoTargetTypeSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.GeoTargetTypeSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.GeoTargetTypeSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting)
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_GeoTargetTypeSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_GeoTargetTypeSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.class, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
positiveGeoTargetType_ = 0;
negativeGeoTargetType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_GeoTargetTypeSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting build() {
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting result = new com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting(this);
result.positiveGeoTargetType_ = positiveGeoTargetType_;
result.negativeGeoTargetType_ = negativeGeoTargetType_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting other) {
if (other == com.google.ads.googleads.v10.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();
break;
} // case 8
case 16: {
negativeGeoTargetType_ = input.readEnum();
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 positiveGeoTargetType_ = 0;
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1;
* @return The positiveGeoTargetType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType getPositiveGeoTargetType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType result = com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.valueOf(positiveGeoTargetType_);
return result == null ? com.google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType.UNRECOGNIZED : result;
}
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType value) {
if (value == null) {
throw new NullPointerException();
}
positiveGeoTargetType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The setting used for positive geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1;
* @return This builder for chaining.
*/
public Builder clearPositiveGeoTargetType() {
positiveGeoTargetType_ = 0;
onChanged();
return this;
}
private int negativeGeoTargetType_ = 0;
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2;
* @return The negativeGeoTargetType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType getNegativeGeoTargetType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType result = com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.valueOf(negativeGeoTargetType_);
return result == null ? com.google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType.UNRECOGNIZED : result;
}
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType value) {
if (value == null) {
throw new NullPointerException();
}
negativeGeoTargetType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The setting used for negative geotargeting in this particular campaign.
*
*
* .google.ads.googleads.v10.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2;
* @return This builder for chaining.
*/
public Builder clearNegativeGeoTargetType() {
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.v10.resources.Campaign.GeoTargetTypeSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.GeoTargetTypeSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocalCampaignSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting)
com.google.protobuf.MessageOrBuilder {
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;
* @return The locationSourceType.
*/
com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType();
}
/**
*
* Campaign setting for local campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting}
*/
public static final class LocalCampaignSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_LocalCampaignSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_LocalCampaignSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.class, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder.class);
}
public static final int LOCATION_SOURCE_TYPE_FIELD_NUMBER = 1;
private int locationSourceType_;
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;
* @return The locationSourceType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType result = com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType.valueOf(locationSourceType_);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Campaign.LocalCampaignSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.LocalCampaignSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.LocalCampaignSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.LocalCampaignSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.LocalCampaignSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting)
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_LocalCampaignSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_LocalCampaignSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.class, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
locationSourceType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_LocalCampaignSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting build() {
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting result = new com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting(this);
result.locationSourceType_ = locationSourceType_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting other) {
if (other == com.google.ads.googleads.v10.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();
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 locationSourceType_ = 0;
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;
* @return The locationSourceType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType getLocationSourceType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType result = com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType.valueOf(locationSourceType_);
return result == null ? com.google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType.UNRECOGNIZED : result;
}
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.LocationSourceTypeEnum.LocationSourceType value) {
if (value == null) {
throw new NullPointerException();
}
locationSourceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The location source type for this local campaign.
*
*
* .google.ads.googleads.v10.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;
* @return This builder for chaining.
*/
public Builder clearLocationSourceType() {
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.v10.resources.Campaign.LocalCampaignSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.LocalCampaignSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AppCampaignSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.AppCampaignSetting)
com.google.protobuf.MessageOrBuilder {
/**
*
* Represents the goal which the bidding strategy of this app campaign
* should optimize towards.
*
*
* .google.ads.googleads.v10.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.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1;
* @return The biddingStrategyGoalType.
*/
com.google.ads.googleads.v10.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.v10.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.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return The appStore.
*/
com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore();
}
/**
*
* Campaign-level settings for App Campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.AppCampaignSetting}
*/
public static final class AppCampaignSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AppCampaignSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AppCampaignSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.class, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder.class);
}
private int bitField0_;
public static final int BIDDING_STRATEGY_GOAL_TYPE_FIELD_NUMBER = 1;
private int biddingStrategyGoalType_;
/**
*
* Represents the goal which the bidding strategy of this app campaign
* should optimize towards.
*
*
* .google.ads.googleads.v10.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.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1;
* @return The biddingStrategyGoalType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType getBiddingStrategyGoalType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType result = com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.valueOf(biddingStrategyGoalType_);
return result == null ? com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNRECOGNIZED : result;
}
public static final int APP_ID_FIELD_NUMBER = 4;
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_;
/**
*
* Immutable. The application store that distributes this specific app.
*
*
* .google.ads.googleads.v10.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.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return The appStore.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore result = com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.valueOf(appStore_);
return result == null ? com.google.ads.googleads.v10.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.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNSPECIFIED.getNumber()) {
output.writeEnum(1, biddingStrategyGoalType_);
}
if (appStore_ != com.google.ads.googleads.v10.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.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, biddingStrategyGoalType_);
}
if (appStore_ != com.google.ads.googleads.v10.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.v10.resources.Campaign.AppCampaignSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.AppCampaignSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AppCampaignSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AppCampaignSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.AppCampaignSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.AppCampaignSetting)
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AppCampaignSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AppCampaignSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.class, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
biddingStrategyGoalType_ = 0;
appId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
appStore_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AppCampaignSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting build() {
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting result = new com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.biddingStrategyGoalType_ = biddingStrategyGoalType_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.appId_ = appId_;
result.appStore_ = appStore_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.getDefaultInstance()) return this;
if (other.biddingStrategyGoalType_ != 0) {
setBiddingStrategyGoalTypeValue(other.getBiddingStrategyGoalTypeValue());
}
if (other.hasAppId()) {
bitField0_ |= 0x00000001;
appId_ = other.appId_;
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();
break;
} // case 8
case 24: {
appStore_ = input.readEnum();
break;
} // case 24
case 34: {
appId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
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.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Represents the goal which the bidding strategy of this app campaign
* should optimize towards.
*
*
* .google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1;
* @return The biddingStrategyGoalType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType getBiddingStrategyGoalType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType result = com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.valueOf(biddingStrategyGoalType_);
return result == null ? com.google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType.UNRECOGNIZED : result;
}
/**
*
* Represents the goal which the bidding strategy of this app campaign
* should optimize towards.
*
*
* .google.ads.googleads.v10.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.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType value) {
if (value == null) {
throw new NullPointerException();
}
biddingStrategyGoalType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Represents the goal which the bidding strategy of this app campaign
* should optimize towards.
*
*
* .google.ads.googleads.v10.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1;
* @return This builder for chaining.
*/
public Builder clearBiddingStrategyGoalType() {
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_ & 0x00000001) != 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();
}
bitField0_ |= 0x00000001;
appId_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000001);
appId_ = getDefaultInstance().getAppId();
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);
bitField0_ |= 0x00000001;
appId_ = value;
onChanged();
return this;
}
private int appStore_ = 0;
/**
*
* Immutable. The application store that distributes this specific app.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Immutable. The application store that distributes this specific app.
*
*
* .google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return The appStore.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore getAppStore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore result = com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.valueOf(appStore_);
return result == null ? com.google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore.UNRECOGNIZED : result;
}
/**
*
* Immutable. The application store that distributes this specific app.
*
*
* .google.ads.googleads.v10.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.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore value) {
if (value == null) {
throw new NullPointerException();
}
appStore_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Immutable. The application store that distributes this specific app.
*
*
* .google.ads.googleads.v10.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearAppStore() {
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.v10.resources.Campaign.AppCampaignSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.AppCampaignSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AppCampaignSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VanityPharmaOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.VanityPharma)
com.google.protobuf.MessageOrBuilder {
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.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.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1;
* @return The vanityPharmaDisplayUrlMode.
*/
com.google.ads.googleads.v10.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.v10.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.v10.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2;
* @return The vanityPharmaText.
*/
com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText();
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.VanityPharma}
*/
public static final class VanityPharma extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_VanityPharma_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_VanityPharma_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder.class);
}
public static final int VANITY_PHARMA_DISPLAY_URL_MODE_FIELD_NUMBER = 1;
private int vanityPharmaDisplayUrlMode_;
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.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.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1;
* @return The vanityPharmaDisplayUrlMode.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.valueOf(vanityPharmaDisplayUrlMode_);
return result == null ? com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result;
}
public static final int VANITY_PHARMA_TEXT_FIELD_NUMBER = 2;
private int 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.v10.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.v10.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2;
* @return The vanityPharmaText.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText.valueOf(vanityPharmaText_);
return result == null ? com.google.ads.googleads.v10.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.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) {
output.writeEnum(1, vanityPharmaDisplayUrlMode_);
}
if (vanityPharmaText_ != com.google.ads.googleads.v10.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.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, vanityPharmaDisplayUrlMode_);
}
if (vanityPharmaText_ != com.google.ads.googleads.v10.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.v10.resources.Campaign.VanityPharma)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.VanityPharma other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.VanityPharma parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.VanityPharma parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.VanityPharma parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.VanityPharma}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.VanityPharma)
com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_VanityPharma_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_VanityPharma_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.VanityPharma.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
vanityPharmaDisplayUrlMode_ = 0;
vanityPharmaText_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_VanityPharma_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.VanityPharma.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma build() {
com.google.ads.googleads.v10.resources.Campaign.VanityPharma result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.VanityPharma result = new com.google.ads.googleads.v10.resources.Campaign.VanityPharma(this);
result.vanityPharmaDisplayUrlMode_ = vanityPharmaDisplayUrlMode_;
result.vanityPharmaText_ = vanityPharmaText_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.VanityPharma) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.VanityPharma)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.VanityPharma other) {
if (other == com.google.ads.googleads.v10.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();
break;
} // case 8
case 16: {
vanityPharmaText_ = input.readEnum();
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 vanityPharmaDisplayUrlMode_ = 0;
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1;
* @return The vanityPharmaDisplayUrlMode.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.valueOf(vanityPharmaDisplayUrlMode_);
return result == null ? com.google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result;
}
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.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.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode value) {
if (value == null) {
throw new NullPointerException();
}
vanityPharmaDisplayUrlMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The display mode for vanity pharma URLs.
*
*
* .google.ads.googleads.v10.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1;
* @return This builder for chaining.
*/
public Builder clearVanityPharmaDisplayUrlMode() {
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.v10.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.v10.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;
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.v10.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2;
* @return The vanityPharmaText.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v10.enums.VanityPharmaTextEnum.VanityPharmaText.valueOf(vanityPharmaText_);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.enums.VanityPharmaTextEnum.VanityPharmaText value) {
if (value == null) {
throw new NullPointerException();
}
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.v10.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2;
* @return This builder for chaining.
*/
public Builder clearVanityPharmaText() {
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.v10.resources.Campaign.VanityPharma)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.VanityPharma)
private static final com.google.ads.googleads.v10.resources.Campaign.VanityPharma DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.VanityPharma();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.VanityPharma getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SelectiveOptimizationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.SelectiveOptimization}
*/
public static final class SelectiveOptimization extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelectiveOptimization();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_SelectiveOptimization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_SelectiveOptimization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder.class);
}
public static final int CONVERSION_ACTIONS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList conversionActions_;
/**
*
* 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.v10.resources.Campaign.SelectiveOptimization)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.SelectiveOptimization parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.SelectiveOptimization parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.SelectiveOptimization parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Campaign.SelectiveOptimization}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.SelectiveOptimization)
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_SelectiveOptimization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_SelectiveOptimization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_SelectiveOptimization_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization build() {
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization result = new com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
conversionActions_ = conversionActions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.conversionActions_ = conversionActions_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.getDefaultInstance()) return this;
if (!other.conversionActions_.isEmpty()) {
if (conversionActions_.isEmpty()) {
conversionActions_ = other.conversionActions_;
bitField0_ = (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.LazyStringList conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureConversionActionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
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() {
return conversionActions_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
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);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Campaign.SelectiveOptimization)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.SelectiveOptimization)
private static final com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptimizationGoalSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
* @return The count of optimizationGoalTypes.
*/
int getOptimizationGoalTypesCount();
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index);
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.resources.Campaign.OptimizationGoalSetting}
*/
public static final class OptimizationGoalSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_OptimizationGoalSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_OptimizationGoalSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.class, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder.class);
}
public static final int OPTIMIZATION_GOAL_TYPES_FIELD_NUMBER = 1;
private java.util.List optimizationGoalTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType> optimizationGoalTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType>() {
public com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType result = com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType.valueOf(from);
return result == null ? com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType.UNRECOGNIZED : result;
}
};
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType>(optimizationGoalTypes_, optimizationGoalTypes_converter_);
}
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index) {
return optimizationGoalTypes_converter_.convert(optimizationGoalTypes_.get(index));
}
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.resources.Campaign.OptimizationGoalSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.OptimizationGoalSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.OptimizationGoalSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.OptimizationGoalSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.OptimizationGoalSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting)
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_OptimizationGoalSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_OptimizationGoalSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.class, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
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.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_OptimizationGoalSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting build() {
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting result = new com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
optimizationGoalTypes_ = java.util.Collections.unmodifiableList(optimizationGoalTypes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.optimizationGoalTypes_ = optimizationGoalTypes_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting other) {
if (other == com.google.ads.googleads.v10.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.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType>(optimizationGoalTypes_, optimizationGoalTypes_converter_);
}
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType getOptimizationGoalTypes(int index) {
return optimizationGoalTypes_converter_.convert(optimizationGoalTypes_.get(index));
}
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
* @param values The optimizationGoalTypes to add.
* @return This builder for chaining.
*/
public Builder addAllOptimizationGoalTypes(
java.lang.Iterable extends com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType> values) {
ensureOptimizationGoalTypesIsMutable();
for (com.google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType value : values) {
optimizationGoalTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* The list of optimization goal types.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.OptimizationGoalSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.OptimizationGoalSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AudienceSettingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Campaign.AudienceSetting}
*/
public static final class AudienceSetting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AudienceSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AudienceSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.class, com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder.class);
}
private int bitField0_;
public static final int USE_AUDIENCE_GROUPED_FIELD_NUMBER = 1;
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_;
}
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.v10.resources.Campaign.AudienceSetting)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting other = (com.google.ads.googleads.v10.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.v10.resources.Campaign.AudienceSetting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AudienceSetting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AudienceSetting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign.AudienceSetting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign.AudienceSetting)
com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AudienceSetting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AudienceSetting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.class, com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
useAudienceGrouped_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_AudienceSetting_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting build() {
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting buildPartial() {
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting result = new com.google.ads.googleads.v10.resources.Campaign.AudienceSetting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.useAudienceGrouped_ = useAudienceGrouped_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign.AudienceSetting) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign.AudienceSetting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign.AudienceSetting other) {
if (other == com.google.ads.googleads.v10.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) {
bitField0_ |= 0x00000001;
useAudienceGrouped_ = value;
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.v10.resources.Campaign.AudienceSetting)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign.AudienceSetting)
private static final com.google.ads.googleads.v10.resources.Campaign.AudienceSetting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign.AudienceSetting();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign.AudienceSetting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int campaignBiddingStrategyCase_ = 0;
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_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 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;
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_;
/**
*
* 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;
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 STATUS_FIELD_NUMBER = 5;
private int status_;
/**
*
* The status of the campaign.
* When a new campaign is added, the status defaults to ENABLED.
*
*
* .google.ads.googleads.v10.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.v10.enums.CampaignStatusEnum.CampaignStatus status = 5;
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result;
}
public static final int SERVING_STATUS_FIELD_NUMBER = 21;
private int servingStatus_;
/**
*
* Output only. The ad serving status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The servingStatus.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.valueOf(servingStatus_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result;
}
public static final int AD_SERVING_OPTIMIZATION_STATUS_FIELD_NUMBER = 8;
private int adServingOptimizationStatus_;
/**
*
* The ad serving optimization status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8;
* @return The adServingOptimizationStatus.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.valueOf(adServingOptimizationStatus_);
return result == null ? com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result;
}
public static final int ADVERTISING_CHANNEL_TYPE_FIELD_NUMBER = 9;
private int 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.v10.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.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The advertisingChannelType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.valueOf(advertisingChannelType_);
return result == null ? com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNRECOGNIZED : result;
}
public static final int ADVERTISING_CHANNEL_SUB_TYPE_FIELD_NUMBER = 10;
private int 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.v10.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.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The advertisingChannelSubType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.valueOf(advertisingChannelSubType_);
return result == null ? com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNRECOGNIZED : result;
}
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 60;
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;
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.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
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.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
return urlCustomParameters_.get(index);
}
public static final int REAL_TIME_BIDDING_SETTING_FIELD_NUMBER = 39;
private com.google.ads.googleads.v10.common.RealTimeBiddingSetting realTimeBiddingSetting_;
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
* @return Whether the realTimeBiddingSetting field is set.
*/
@java.lang.Override
public boolean hasRealTimeBiddingSetting() {
return realTimeBiddingSetting_ != null;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
* @return The realTimeBiddingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.RealTimeBiddingSetting getRealTimeBiddingSetting() {
return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v10.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() {
return getRealTimeBiddingSetting();
}
public static final int NETWORK_SETTINGS_FIELD_NUMBER = 14;
private com.google.ads.googleads.v10.resources.Campaign.NetworkSettings networkSettings_;
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
* @return Whether the networkSettings field is set.
*/
@java.lang.Override
public boolean hasNetworkSettings() {
return networkSettings_ != null;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
* @return The networkSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings getNetworkSettings() {
return networkSettings_ == null ? com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
return getNetworkSettings();
}
public static final int HOTEL_SETTING_FIELD_NUMBER = 32;
private com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotelSetting_;
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.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 hotelSetting_ != null;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The hotelSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo getHotelSetting() {
return hotelSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() {
return getHotelSetting();
}
public static final int DYNAMIC_SEARCH_ADS_SETTING_FIELD_NUMBER = 33;
private com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_;
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
* @return Whether the dynamicSearchAdsSetting field is set.
*/
@java.lang.Override
public boolean hasDynamicSearchAdsSetting() {
return dynamicSearchAdsSetting_ != null;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
* @return The dynamicSearchAdsSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() {
return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() {
return getDynamicSearchAdsSetting();
}
public static final int SHOPPING_SETTING_FIELD_NUMBER = 36;
private com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting shoppingSetting_;
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
* @return Whether the shoppingSetting field is set.
*/
@java.lang.Override
public boolean hasShoppingSetting() {
return shoppingSetting_ != null;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
* @return The shoppingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting getShoppingSetting() {
return shoppingSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() {
return getShoppingSetting();
}
public static final int TARGETING_SETTING_FIELD_NUMBER = 43;
private com.google.ads.googleads.v10.common.TargetingSetting targetingSetting_;
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
* @return Whether the targetingSetting field is set.
*/
@java.lang.Override
public boolean hasTargetingSetting() {
return targetingSetting_ != null;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
* @return The targetingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetingSetting getTargetingSetting() {
return targetingSetting_ == null ? com.google.ads.googleads.v10.common.TargetingSetting.getDefaultInstance() : targetingSetting_;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() {
return getTargetingSetting();
}
public static final int AUDIENCE_SETTING_FIELD_NUMBER = 73;
private com.google.ads.googleads.v10.resources.Campaign.AudienceSetting audienceSetting_;
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.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_ & 0x00000008) != 0);
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
* @return The audienceSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting getAudienceSetting() {
return audienceSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_;
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder getAudienceSettingOrBuilder() {
return audienceSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_;
}
public static final int GEO_TARGET_TYPE_SETTING_FIELD_NUMBER = 47;
private com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geoTargetTypeSetting_;
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
* @return Whether the geoTargetTypeSetting field is set.
*/
@java.lang.Override
public boolean hasGeoTargetTypeSetting() {
return geoTargetTypeSetting_ != null;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
* @return The geoTargetTypeSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting getGeoTargetTypeSetting() {
return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder getGeoTargetTypeSettingOrBuilder() {
return getGeoTargetTypeSetting();
}
public static final int LOCAL_CAMPAIGN_SETTING_FIELD_NUMBER = 50;
private com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting localCampaignSetting_;
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
* @return Whether the localCampaignSetting field is set.
*/
@java.lang.Override
public boolean hasLocalCampaignSetting() {
return localCampaignSetting_ != null;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
* @return The localCampaignSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting getLocalCampaignSetting() {
return localCampaignSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder getLocalCampaignSettingOrBuilder() {
return getLocalCampaignSetting();
}
public static final int APP_CAMPAIGN_SETTING_FIELD_NUMBER = 51;
private com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting appCampaignSetting_;
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
* @return Whether the appCampaignSetting field is set.
*/
@java.lang.Override
public boolean hasAppCampaignSetting() {
return appCampaignSetting_ != null;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
* @return The appCampaignSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting getAppCampaignSetting() {
return appCampaignSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder getAppCampaignSettingOrBuilder() {
return getAppCampaignSetting();
}
public static final int LABELS_FIELD_NUMBER = 61;
private com.google.protobuf.LazyStringList 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 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_;
/**
*
* Output only. The type of campaign: normal, draft, or experiment.
*
*
* .google.ads.googleads.v10.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.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The experimentType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType getExperimentType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType result = com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.valueOf(experimentType_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNRECOGNIZED : result;
}
public static final int BASE_CAMPAIGN_FIELD_NUMBER = 56;
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_ & 0x00000010) != 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;
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_ & 0x00000020) != 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_;
/**
*
* 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.v10.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.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The biddingStrategyType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType.valueOf(biddingStrategyType_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNRECOGNIZED : result;
}
public static final int ACCESSIBLE_BIDDING_STRATEGY_FIELD_NUMBER = 71;
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;
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_ & 0x00000040) != 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;
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_ & 0x00000080) != 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;
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_ & 0x00000100) != 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;
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_ & 0x00000200) != 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;
private java.util.List frequencyCaps_;
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder>
getFrequencyCapsOrBuilderList() {
return frequencyCaps_;
}
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder(
int index) {
return frequencyCaps_.get(index);
}
public static final int VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER = 42;
private int videoBrandSafetySuitability_;
/**
*
* Output only. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.valueOf(videoBrandSafetySuitability_);
return result == null ? com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result;
}
public static final int VANITY_PHARMA_FIELD_NUMBER = 44;
private com.google.ads.googleads.v10.resources.Campaign.VanityPharma vanityPharma_;
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
* @return Whether the vanityPharma field is set.
*/
@java.lang.Override
public boolean hasVanityPharma() {
return vanityPharma_ != null;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
* @return The vanityPharma.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma getVanityPharma() {
return vanityPharma_ == null ? com.google.ads.googleads.v10.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() {
return getVanityPharma();
}
public static final int SELECTIVE_OPTIMIZATION_FIELD_NUMBER = 45;
private com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selectiveOptimization_;
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
* @return Whether the selectiveOptimization field is set.
*/
@java.lang.Override
public boolean hasSelectiveOptimization() {
return selectiveOptimization_ != null;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
* @return The selectiveOptimization.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization getSelectiveOptimization() {
return selectiveOptimization_ == null ? com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() {
return getSelectiveOptimization();
}
public static final int OPTIMIZATION_GOAL_SETTING_FIELD_NUMBER = 54;
private com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimizationGoalSetting_;
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
* @return Whether the optimizationGoalSetting field is set.
*/
@java.lang.Override
public boolean hasOptimizationGoalSetting() {
return optimizationGoalSetting_ != null;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
* @return The optimizationGoalSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting getOptimizationGoalSetting() {
return optimizationGoalSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder getOptimizationGoalSettingOrBuilder() {
return getOptimizationGoalSetting();
}
public static final int TRACKING_SETTING_FIELD_NUMBER = 46;
private com.google.ads.googleads.v10.resources.Campaign.TrackingSetting trackingSetting_;
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.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 trackingSetting_ != null;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The trackingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting getTrackingSetting() {
return trackingSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() {
return getTrackingSetting();
}
public static final int PAYMENT_MODE_FIELD_NUMBER = 52;
private int paymentMode_;
/**
*
* Payment mode for the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.PaymentModeEnum.PaymentMode payment_mode = 52;
* @return The paymentMode.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode getPaymentMode() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode result = com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.valueOf(paymentMode_);
return result == null ? com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.UNRECOGNIZED : result;
}
public static final int OPTIMIZATION_SCORE_FIELD_NUMBER = 66;
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 ((bitField0_ & 0x00000400) != 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;
private java.util.List excludedParentAssetFieldTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType> excludedParentAssetFieldTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType>() {
public com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType result = com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType.valueOf(from);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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 URL_EXPANSION_OPT_OUT_FIELD_NUMBER = 72;
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 ((bitField0_ & 0x00000800) != 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 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.v10.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.v10.common.Commission commission = 49;
* @return The commission.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.Commission getCommission() {
if (campaignBiddingStrategyCase_ == 49) {
return (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.Commission.getDefaultInstance();
}
/**
*
* Commission is an automatic bidding strategy in which the advertiser pays
* a certain portion of the conversion value.
*
*
* .google.ads.googleads.v10.common.Commission commission = 49;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CommissionOrBuilder getCommissionOrBuilder() {
if (campaignBiddingStrategyCase_ == 49) {
return (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.Commission.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.v10.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.v10.common.ManualCpc manual_cpc = 24;
* @return The manualCpc.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpc getManualCpc() {
if (campaignBiddingStrategyCase_ == 24) {
return (com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance();
}
/**
*
* Standard Manual CPC bidding strategy.
* Manual click-based bidding where user pays per click.
*
*
* .google.ads.googleads.v10.common.ManualCpc manual_cpc = 24;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpcOrBuilder getManualCpcOrBuilder() {
if (campaignBiddingStrategyCase_ == 24) {
return (com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.ManualCpm manual_cpm = 25;
* @return The manualCpm.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpm getManualCpm() {
if (campaignBiddingStrategyCase_ == 25) {
return (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
}
/**
*
* Standard Manual CPM bidding strategy.
* Manual impression-based bidding where user pays per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.ManualCpm manual_cpm = 25;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpmOrBuilder getManualCpmOrBuilder() {
if (campaignBiddingStrategyCase_ == 25) {
return (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
}
public static final int MANUAL_CPV_FIELD_NUMBER = 37;
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the manualCpv field is set.
*/
@java.lang.Override
public boolean hasManualCpv() {
return campaignBiddingStrategyCase_ == 37;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The manualCpv.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpv getManualCpv() {
if (campaignBiddingStrategyCase_ == 37) {
return (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance();
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpvOrBuilder getManualCpvOrBuilder() {
if (campaignBiddingStrategyCase_ == 37) {
return (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
* @return The maximizeConversions.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversions getMaximizeConversions() {
if (campaignBiddingStrategyCase_ == 30) {
return (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance();
}
/**
*
* Standard Maximize Conversions bidding strategy that automatically
* maximizes number of conversions while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversions maximize_conversions = 30;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionsOrBuilder getMaximizeConversionsOrBuilder() {
if (campaignBiddingStrategyCase_ == 30) {
return (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
* @return The maximizeConversionValue.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionValue getMaximizeConversionValue() {
if (campaignBiddingStrategyCase_ == 31) {
return (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance();
}
/**
*
* Standard Maximize Conversion Value bidding strategy that automatically
* sets bids to maximize revenue while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionValueOrBuilder getMaximizeConversionValueOrBuilder() {
if (campaignBiddingStrategyCase_ == 31) {
return (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.TargetCpa target_cpa = 26;
* @return The targetCpa.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpa getTargetCpa() {
if (campaignBiddingStrategyCase_ == 26) {
return (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpaOrBuilder getTargetCpaOrBuilder() {
if (campaignBiddingStrategyCase_ == 26) {
return (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
* @return The targetImpressionShare.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetImpressionShare getTargetImpressionShare() {
if (campaignBiddingStrategyCase_ == 48) {
return (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetImpressionShareOrBuilder getTargetImpressionShareOrBuilder() {
if (campaignBiddingStrategyCase_ == 48) {
return (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.TargetRoas target_roas = 29;
* @return The targetRoas.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetRoas getTargetRoas() {
if (campaignBiddingStrategyCase_ == 29) {
return (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetRoasOrBuilder getTargetRoasOrBuilder() {
if (campaignBiddingStrategyCase_ == 29) {
return (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.TargetSpend target_spend = 27;
* @return The targetSpend.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetSpend getTargetSpend() {
if (campaignBiddingStrategyCase_ == 27) {
return (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetSpendOrBuilder getTargetSpendOrBuilder() {
if (campaignBiddingStrategyCase_ == 27) {
return (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.PercentCpc percent_cpc = 34;
* @return The percentCpc.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PercentCpc getPercentCpc() {
if (campaignBiddingStrategyCase_ == 34) {
return (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PercentCpcOrBuilder getPercentCpcOrBuilder() {
if (campaignBiddingStrategyCase_ == 34) {
return (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.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.v10.common.TargetCpm target_cpm = 41;
* @return The targetCpm.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpm getTargetCpm() {
if (campaignBiddingStrategyCase_ == 41) {
return (com.google.ads.googleads.v10.common.TargetCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance();
}
/**
*
* A bidding strategy that automatically optimizes cost per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.TargetCpm target_cpm = 41;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpmOrBuilder getTargetCpmOrBuilder() {
if (campaignBiddingStrategyCase_ == 41) {
return (com.google.ads.googleads.v10.common.TargetCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.enums.CampaignStatusEnum.CampaignStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(5, status_);
}
if (adServingOptimizationStatus_ != com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(8, adServingOptimizationStatus_);
}
if (advertisingChannelType_ != com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNSPECIFIED.getNumber()) {
output.writeEnum(9, advertisingChannelType_);
}
if (advertisingChannelSubType_ != com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNSPECIFIED.getNumber()) {
output.writeEnum(10, advertisingChannelSubType_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
output.writeMessage(12, urlCustomParameters_.get(i));
}
if (networkSettings_ != null) {
output.writeMessage(14, getNetworkSettings());
}
if (experimentType_ != com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNSPECIFIED.getNumber()) {
output.writeEnum(17, experimentType_);
}
if (servingStatus_ != com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(21, servingStatus_);
}
if (biddingStrategyType_ != com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNSPECIFIED.getNumber()) {
output.writeEnum(22, biddingStrategyType_);
}
if (campaignBiddingStrategyCase_ == 24) {
output.writeMessage(24, (com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 25) {
output.writeMessage(25, (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 26) {
output.writeMessage(26, (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 27) {
output.writeMessage(27, (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 29) {
output.writeMessage(29, (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 30) {
output.writeMessage(30, (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 31) {
output.writeMessage(31, (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_);
}
if (hotelSetting_ != null) {
output.writeMessage(32, getHotelSetting());
}
if (dynamicSearchAdsSetting_ != null) {
output.writeMessage(33, getDynamicSearchAdsSetting());
}
if (campaignBiddingStrategyCase_ == 34) {
output.writeMessage(34, (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_);
}
if (shoppingSetting_ != null) {
output.writeMessage(36, getShoppingSetting());
}
if (campaignBiddingStrategyCase_ == 37) {
output.writeMessage(37, (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_);
}
if (realTimeBiddingSetting_ != null) {
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.v10.common.TargetCpm) campaignBiddingStrategy_);
}
if (videoBrandSafetySuitability_ != com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) {
output.writeEnum(42, videoBrandSafetySuitability_);
}
if (targetingSetting_ != null) {
output.writeMessage(43, getTargetingSetting());
}
if (vanityPharma_ != null) {
output.writeMessage(44, getVanityPharma());
}
if (selectiveOptimization_ != null) {
output.writeMessage(45, getSelectiveOptimization());
}
if (trackingSetting_ != null) {
output.writeMessage(46, getTrackingSetting());
}
if (geoTargetTypeSetting_ != null) {
output.writeMessage(47, getGeoTargetTypeSetting());
}
if (campaignBiddingStrategyCase_ == 48) {
output.writeMessage(48, (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 49) {
output.writeMessage(49, (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_);
}
if (localCampaignSetting_ != null) {
output.writeMessage(50, getLocalCampaignSetting());
}
if (appCampaignSetting_ != null) {
output.writeMessage(51, getAppCampaignSetting());
}
if (paymentMode_ != com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.UNSPECIFIED.getNumber()) {
output.writeEnum(52, paymentMode_);
}
if (optimizationGoalSetting_ != null) {
output.writeMessage(54, getOptimizationGoalSetting());
}
if (((bitField0_ & 0x00000010) != 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_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 62, campaignBudget_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 63, startDate_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 64, endDate_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 65, finalUrlSuffix_);
}
if (((bitField0_ & 0x00000400) != 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_ & 0x00000800) != 0)) {
output.writeBool(72, urlExpansionOptOut_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(73, getAudienceSetting());
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 76, campaignGroup_);
}
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.v10.enums.CampaignStatusEnum.CampaignStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
if (adServingOptimizationStatus_ != com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, adServingOptimizationStatus_);
}
if (advertisingChannelType_ != com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, advertisingChannelType_);
}
if (advertisingChannelSubType_ != com.google.ads.googleads.v10.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 (networkSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getNetworkSettings());
}
if (experimentType_ != com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, experimentType_);
}
if (servingStatus_ != com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, servingStatus_);
}
if (biddingStrategyType_ != com.google.ads.googleads.v10.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.v10.common.ManualCpc) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 25) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 26) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 31) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_);
}
if (hotelSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, getHotelSetting());
}
if (dynamicSearchAdsSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, getDynamicSearchAdsSetting());
}
if (campaignBiddingStrategyCase_ == 34) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_);
}
if (shoppingSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, getShoppingSetting());
}
if (campaignBiddingStrategyCase_ == 37) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_);
}
if (realTimeBiddingSetting_ != null) {
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.v10.common.TargetCpm) campaignBiddingStrategy_);
}
if (videoBrandSafetySuitability_ != com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(42, videoBrandSafetySuitability_);
}
if (targetingSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(43, getTargetingSetting());
}
if (vanityPharma_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(44, getVanityPharma());
}
if (selectiveOptimization_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, getSelectiveOptimization());
}
if (trackingSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(46, getTrackingSetting());
}
if (geoTargetTypeSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(47, getGeoTargetTypeSetting());
}
if (campaignBiddingStrategyCase_ == 48) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(48, (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_);
}
if (campaignBiddingStrategyCase_ == 49) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(49, (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_);
}
if (localCampaignSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, getLocalCampaignSetting());
}
if (appCampaignSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(51, getAppCampaignSetting());
}
if (paymentMode_ != com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(52, paymentMode_);
}
if (optimizationGoalSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(54, getOptimizationGoalSetting());
}
if (((bitField0_ & 0x00000010) != 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_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(62, campaignBudget_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(63, startDate_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(64, endDate_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, finalUrlSuffix_);
}
if (((bitField0_ & 0x00000400) != 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_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(72, urlExpansionOptOut_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(73, getAudienceSetting());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(76, campaignGroup_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.resources.Campaign)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Campaign other = (com.google.ads.googleads.v10.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 (status_ != other.status_) return false;
if (servingStatus_ != other.servingStatus_) 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 (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 (hasUrlExpansionOptOut() != other.hasUrlExpansionOptOut()) return false;
if (hasUrlExpansionOptOut()) {
if (getUrlExpansionOptOut()
!= other.getUrlExpansionOptOut()) 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 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + SERVING_STATUS_FIELD_NUMBER;
hash = (53 * hash) + servingStatus_;
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 (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 (hasUrlExpansionOptOut()) {
hash = (37 * hash) + URL_EXPANSION_OPT_OUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUrlExpansionOptOut());
}
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 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.v10.resources.Campaign parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Campaign}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Campaign)
com.google.ads.googleads.v10.resources.CampaignOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Campaign.class, com.google.ads.googleads.v10.resources.Campaign.Builder.class);
}
// Construct using com.google.ads.googleads.v10.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();
getAudienceSettingFieldBuilder();
getFrequencyCapsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
servingStatus_ = 0;
adServingOptimizationStatus_ = 0;
advertisingChannelType_ = 0;
advertisingChannelSubType_ = 0;
trackingUrlTemplate_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
} else {
urlCustomParameters_ = null;
urlCustomParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (realTimeBiddingSettingBuilder_ == null) {
realTimeBiddingSetting_ = null;
} else {
realTimeBiddingSetting_ = null;
realTimeBiddingSettingBuilder_ = null;
}
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
if (hotelSettingBuilder_ == null) {
hotelSetting_ = null;
} else {
hotelSetting_ = null;
hotelSettingBuilder_ = null;
}
if (dynamicSearchAdsSettingBuilder_ == null) {
dynamicSearchAdsSetting_ = null;
} else {
dynamicSearchAdsSetting_ = null;
dynamicSearchAdsSettingBuilder_ = null;
}
if (shoppingSettingBuilder_ == null) {
shoppingSetting_ = null;
} else {
shoppingSetting_ = null;
shoppingSettingBuilder_ = null;
}
if (targetingSettingBuilder_ == null) {
targetingSetting_ = null;
} else {
targetingSetting_ = null;
targetingSettingBuilder_ = null;
}
if (audienceSettingBuilder_ == null) {
audienceSetting_ = null;
} else {
audienceSettingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (geoTargetTypeSettingBuilder_ == null) {
geoTargetTypeSetting_ = null;
} else {
geoTargetTypeSetting_ = null;
geoTargetTypeSettingBuilder_ = null;
}
if (localCampaignSettingBuilder_ == null) {
localCampaignSetting_ = null;
} else {
localCampaignSetting_ = null;
localCampaignSettingBuilder_ = null;
}
if (appCampaignSettingBuilder_ == null) {
appCampaignSetting_ = null;
} else {
appCampaignSetting_ = null;
appCampaignSettingBuilder_ = null;
}
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
experimentType_ = 0;
baseCampaign_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
campaignBudget_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
biddingStrategyType_ = 0;
accessibleBiddingStrategy_ = "";
startDate_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
campaignGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
endDate_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
finalUrlSuffix_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
if (frequencyCapsBuilder_ == null) {
frequencyCaps_ = java.util.Collections.emptyList();
} else {
frequencyCaps_ = null;
frequencyCapsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
videoBrandSafetySuitability_ = 0;
if (vanityPharmaBuilder_ == null) {
vanityPharma_ = null;
} else {
vanityPharma_ = null;
vanityPharmaBuilder_ = null;
}
if (selectiveOptimizationBuilder_ == null) {
selectiveOptimization_ = null;
} else {
selectiveOptimization_ = null;
selectiveOptimizationBuilder_ = null;
}
if (optimizationGoalSettingBuilder_ == null) {
optimizationGoalSetting_ = null;
} else {
optimizationGoalSetting_ = null;
optimizationGoalSettingBuilder_ = null;
}
if (trackingSettingBuilder_ == null) {
trackingSetting_ = null;
} else {
trackingSetting_ = null;
trackingSettingBuilder_ = null;
}
paymentMode_ = 0;
optimizationScore_ = 0D;
bitField0_ = (bitField0_ & ~0x00002000);
excludedParentAssetFieldTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
urlExpansionOptOut_ = false;
bitField0_ = (bitField0_ & ~0x00008000);
if (commissionBuilder_ != null) {
commissionBuilder_.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.v10.resources.CampaignProto.internal_static_google_ads_googleads_v10_resources_Campaign_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Campaign.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign build() {
com.google.ads.googleads.v10.resources.Campaign result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Campaign buildPartial() {
com.google.ads.googleads.v10.resources.Campaign result = new com.google.ads.googleads.v10.resources.Campaign(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
result.status_ = status_;
result.servingStatus_ = servingStatus_;
result.adServingOptimizationStatus_ = adServingOptimizationStatus_;
result.advertisingChannelType_ = advertisingChannelType_;
result.advertisingChannelSubType_ = advertisingChannelSubType_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.trackingUrlTemplate_ = trackingUrlTemplate_;
if (urlCustomParametersBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.urlCustomParameters_ = urlCustomParameters_;
} else {
result.urlCustomParameters_ = urlCustomParametersBuilder_.build();
}
if (realTimeBiddingSettingBuilder_ == null) {
result.realTimeBiddingSetting_ = realTimeBiddingSetting_;
} else {
result.realTimeBiddingSetting_ = realTimeBiddingSettingBuilder_.build();
}
if (networkSettingsBuilder_ == null) {
result.networkSettings_ = networkSettings_;
} else {
result.networkSettings_ = networkSettingsBuilder_.build();
}
if (hotelSettingBuilder_ == null) {
result.hotelSetting_ = hotelSetting_;
} else {
result.hotelSetting_ = hotelSettingBuilder_.build();
}
if (dynamicSearchAdsSettingBuilder_ == null) {
result.dynamicSearchAdsSetting_ = dynamicSearchAdsSetting_;
} else {
result.dynamicSearchAdsSetting_ = dynamicSearchAdsSettingBuilder_.build();
}
if (shoppingSettingBuilder_ == null) {
result.shoppingSetting_ = shoppingSetting_;
} else {
result.shoppingSetting_ = shoppingSettingBuilder_.build();
}
if (targetingSettingBuilder_ == null) {
result.targetingSetting_ = targetingSetting_;
} else {
result.targetingSetting_ = targetingSettingBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (audienceSettingBuilder_ == null) {
result.audienceSetting_ = audienceSetting_;
} else {
result.audienceSetting_ = audienceSettingBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (geoTargetTypeSettingBuilder_ == null) {
result.geoTargetTypeSetting_ = geoTargetTypeSetting_;
} else {
result.geoTargetTypeSetting_ = geoTargetTypeSettingBuilder_.build();
}
if (localCampaignSettingBuilder_ == null) {
result.localCampaignSetting_ = localCampaignSetting_;
} else {
result.localCampaignSetting_ = localCampaignSettingBuilder_.build();
}
if (appCampaignSettingBuilder_ == null) {
result.appCampaignSetting_ = appCampaignSetting_;
} else {
result.appCampaignSetting_ = appCampaignSettingBuilder_.build();
}
if (((bitField0_ & 0x00000020) != 0)) {
labels_ = labels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.labels_ = labels_;
result.experimentType_ = experimentType_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.baseCampaign_ = baseCampaign_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.campaignBudget_ = campaignBudget_;
result.biddingStrategyType_ = biddingStrategyType_;
result.accessibleBiddingStrategy_ = accessibleBiddingStrategy_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.startDate_ = startDate_;
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.campaignGroup_ = campaignGroup_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.endDate_ = endDate_;
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.finalUrlSuffix_ = finalUrlSuffix_;
if (frequencyCapsBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
frequencyCaps_ = java.util.Collections.unmodifiableList(frequencyCaps_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.frequencyCaps_ = frequencyCaps_;
} else {
result.frequencyCaps_ = frequencyCapsBuilder_.build();
}
result.videoBrandSafetySuitability_ = videoBrandSafetySuitability_;
if (vanityPharmaBuilder_ == null) {
result.vanityPharma_ = vanityPharma_;
} else {
result.vanityPharma_ = vanityPharmaBuilder_.build();
}
if (selectiveOptimizationBuilder_ == null) {
result.selectiveOptimization_ = selectiveOptimization_;
} else {
result.selectiveOptimization_ = selectiveOptimizationBuilder_.build();
}
if (optimizationGoalSettingBuilder_ == null) {
result.optimizationGoalSetting_ = optimizationGoalSetting_;
} else {
result.optimizationGoalSetting_ = optimizationGoalSettingBuilder_.build();
}
if (trackingSettingBuilder_ == null) {
result.trackingSetting_ = trackingSetting_;
} else {
result.trackingSetting_ = trackingSettingBuilder_.build();
}
result.paymentMode_ = paymentMode_;
if (((from_bitField0_ & 0x00002000) != 0)) {
result.optimizationScore_ = optimizationScore_;
to_bitField0_ |= 0x00000400;
}
if (((bitField0_ & 0x00004000) != 0)) {
excludedParentAssetFieldTypes_ = java.util.Collections.unmodifiableList(excludedParentAssetFieldTypes_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.excludedParentAssetFieldTypes_ = excludedParentAssetFieldTypes_;
if (((from_bitField0_ & 0x00008000) != 0)) {
result.urlExpansionOptOut_ = urlExpansionOptOut_;
to_bitField0_ |= 0x00000800;
}
if (campaignBiddingStrategyCase_ == 67) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
}
if (campaignBiddingStrategyCase_ == 49) {
if (commissionBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = commissionBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 24) {
if (manualCpcBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = manualCpcBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 25) {
if (manualCpmBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = manualCpmBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 37) {
if (manualCpvBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = manualCpvBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 30) {
if (maximizeConversionsBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = maximizeConversionsBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 31) {
if (maximizeConversionValueBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = maximizeConversionValueBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 26) {
if (targetCpaBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = targetCpaBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 48) {
if (targetImpressionShareBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = targetImpressionShareBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 29) {
if (targetRoasBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = targetRoasBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 27) {
if (targetSpendBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = targetSpendBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 34) {
if (percentCpcBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = percentCpcBuilder_.build();
}
}
if (campaignBiddingStrategyCase_ == 41) {
if (targetCpmBuilder_ == null) {
result.campaignBiddingStrategy_ = campaignBiddingStrategy_;
} else {
result.campaignBiddingStrategy_ = targetCpmBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.campaignBiddingStrategyCase_ = campaignBiddingStrategyCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Campaign) {
return mergeFrom((com.google.ads.googleads.v10.resources.Campaign)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Campaign other) {
if (other == com.google.ads.googleads.v10.resources.Campaign.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.servingStatus_ != 0) {
setServingStatusValue(other.getServingStatusValue());
}
if (other.adServingOptimizationStatus_ != 0) {
setAdServingOptimizationStatusValue(other.getAdServingOptimizationStatusValue());
}
if (other.advertisingChannelType_ != 0) {
setAdvertisingChannelTypeValue(other.getAdvertisingChannelTypeValue());
}
if (other.advertisingChannelSubType_ != 0) {
setAdvertisingChannelSubTypeValue(other.getAdvertisingChannelSubTypeValue());
}
if (other.hasTrackingUrlTemplate()) {
bitField0_ |= 0x00000004;
trackingUrlTemplate_ = other.trackingUrlTemplate_;
onChanged();
}
if (urlCustomParametersBuilder_ == null) {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParameters_.isEmpty()) {
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.addAll(other.urlCustomParameters_);
}
onChanged();
}
} else {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParametersBuilder_.isEmpty()) {
urlCustomParametersBuilder_.dispose();
urlCustomParametersBuilder_ = null;
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000008);
urlCustomParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUrlCustomParametersFieldBuilder() : null;
} else {
urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_);
}
}
}
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_ = (bitField0_ & ~0x00000020);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
if (other.experimentType_ != 0) {
setExperimentTypeValue(other.getExperimentTypeValue());
}
if (other.hasBaseCampaign()) {
bitField0_ |= 0x00000040;
baseCampaign_ = other.baseCampaign_;
onChanged();
}
if (other.hasCampaignBudget()) {
bitField0_ |= 0x00000080;
campaignBudget_ = other.campaignBudget_;
onChanged();
}
if (other.biddingStrategyType_ != 0) {
setBiddingStrategyTypeValue(other.getBiddingStrategyTypeValue());
}
if (!other.getAccessibleBiddingStrategy().isEmpty()) {
accessibleBiddingStrategy_ = other.accessibleBiddingStrategy_;
onChanged();
}
if (other.hasStartDate()) {
bitField0_ |= 0x00000100;
startDate_ = other.startDate_;
onChanged();
}
if (other.hasCampaignGroup()) {
bitField0_ |= 0x00000200;
campaignGroup_ = other.campaignGroup_;
onChanged();
}
if (other.hasEndDate()) {
bitField0_ |= 0x00000400;
endDate_ = other.endDate_;
onChanged();
}
if (other.hasFinalUrlSuffix()) {
bitField0_ |= 0x00000800;
finalUrlSuffix_ = other.finalUrlSuffix_;
onChanged();
}
if (frequencyCapsBuilder_ == null) {
if (!other.frequencyCaps_.isEmpty()) {
if (frequencyCaps_.isEmpty()) {
frequencyCaps_ = other.frequencyCaps_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureFrequencyCapsIsMutable();
frequencyCaps_.addAll(other.frequencyCaps_);
}
onChanged();
}
} else {
if (!other.frequencyCaps_.isEmpty()) {
if (frequencyCapsBuilder_.isEmpty()) {
frequencyCapsBuilder_.dispose();
frequencyCapsBuilder_ = null;
frequencyCaps_ = other.frequencyCaps_;
bitField0_ = (bitField0_ & ~0x00001000);
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_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureExcludedParentAssetFieldTypesIsMutable();
excludedParentAssetFieldTypes_.addAll(other.excludedParentAssetFieldTypes_);
}
onChanged();
}
if (other.hasUrlExpansionOptOut()) {
setUrlExpansionOptOut(other.getUrlExpansionOptOut());
}
switch (other.getCampaignBiddingStrategyCase()) {
case BIDDING_STRATEGY: {
campaignBiddingStrategyCase_ = 67;
campaignBiddingStrategy_ = other.campaignBiddingStrategy_;
onChanged();
break;
}
case COMMISSION: {
mergeCommission(other.getCommission());
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();
break;
} // case 10
case 40: {
status_ = input.readEnum();
break;
} // case 40
case 64: {
adServingOptimizationStatus_ = input.readEnum();
break;
} // case 64
case 72: {
advertisingChannelType_ = input.readEnum();
break;
} // case 72
case 80: {
advertisingChannelSubType_ = input.readEnum();
break;
} // case 80
case 98: {
com.google.ads.googleads.v10.common.CustomParameter m =
input.readMessage(
com.google.ads.googleads.v10.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);
break;
} // case 114
case 136: {
experimentType_ = input.readEnum();
break;
} // case 136
case 168: {
servingStatus_ = input.readEnum();
break;
} // case 168
case 176: {
biddingStrategyType_ = input.readEnum();
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);
break;
} // case 258
case 266: {
input.readMessage(
getDynamicSearchAdsSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 266
case 274: {
input.readMessage(
getPercentCpcFieldBuilder().getBuilder(),
extensionRegistry);
campaignBiddingStrategyCase_ = 34;
break;
} // case 274
case 290: {
input.readMessage(
getShoppingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 290
case 298: {
input.readMessage(
getManualCpvFieldBuilder().getBuilder(),
extensionRegistry);
campaignBiddingStrategyCase_ = 37;
break;
} // case 298
case 314: {
input.readMessage(
getRealTimeBiddingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 314
case 322: {
com.google.ads.googleads.v10.common.FrequencyCapEntry m =
input.readMessage(
com.google.ads.googleads.v10.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();
break;
} // case 336
case 346: {
input.readMessage(
getTargetingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 346
case 354: {
input.readMessage(
getVanityPharmaFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 354
case 362: {
input.readMessage(
getSelectiveOptimizationFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 362
case 370: {
input.readMessage(
getTrackingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 370
case 378: {
input.readMessage(
getGeoTargetTypeSettingFieldBuilder().getBuilder(),
extensionRegistry);
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);
break;
} // case 402
case 410: {
input.readMessage(
getAppCampaignSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 410
case 416: {
paymentMode_ = input.readEnum();
break;
} // case 416
case 434: {
input.readMessage(
getOptimizationGoalSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 434
case 450: {
baseCampaign_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 450
case 466: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 466
case 472: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 472
case 482: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 482
case 490: {
java.lang.String s = input.readStringRequireUtf8();
ensureLabelsIsMutable();
labels_.add(s);
break;
} // case 490
case 498: {
campaignBudget_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 498
case 506: {
startDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 506
case 514: {
endDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 514
case 522: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 522
case 529: {
optimizationScore_ = input.readDouble();
bitField0_ |= 0x00002000;
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();
break;
} // case 570
case 576: {
urlExpansionOptOut_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 576
case 586: {
input.readMessage(
getAudienceSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 586
case 610: {
campaignGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 610
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 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;
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();
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;
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000001;
id_ = value;
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_ & ~0x00000001);
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_ & 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.
*/
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();
}
bitField0_ |= 0x00000002;
name_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
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);
bitField0_ |= 0x00000002;
name_ = 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.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The status of the campaign.
* When a new campaign is added, the status defaults to ENABLED.
*
*
* .google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus status = 5;
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the campaign.
* When a new campaign is added, the status defaults to ENABLED.
*
*
* .google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus status = 5;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v10.enums.CampaignStatusEnum.CampaignStatus value) {
if (value == null) {
throw new NullPointerException();
}
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.v10.enums.CampaignStatusEnum.CampaignStatus status = 5;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private int servingStatus_ = 0;
/**
*
* Output only. The ad serving status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Output only. The ad serving status of the campaign.
*
*
* .google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The servingStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.valueOf(servingStatus_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The ad serving status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.CampaignServingStatusEnum.CampaignServingStatus value) {
if (value == null) {
throw new NullPointerException();
}
servingStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The ad serving status of the campaign.
*
*
* .google.ads.googleads.v10.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearServingStatus() {
servingStatus_ = 0;
onChanged();
return this;
}
private int adServingOptimizationStatus_ = 0;
/**
*
* The ad serving optimization status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* The ad serving optimization status of the campaign.
*
*
* .google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8;
* @return The adServingOptimizationStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.valueOf(adServingOptimizationStatus_);
return result == null ? com.google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result;
}
/**
*
* The ad serving optimization status of the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus value) {
if (value == null) {
throw new NullPointerException();
}
adServingOptimizationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The ad serving optimization status of the campaign.
*
*
* .google.ads.googleads.v10.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8;
* @return This builder for chaining.
*/
public Builder clearAdServingOptimizationStatus() {
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.v10.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.v10.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;
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.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The advertisingChannelType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.valueOf(advertisingChannelType_);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType value) {
if (value == null) {
throw new NullPointerException();
}
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.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearAdvertisingChannelType() {
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.v10.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.v10.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;
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.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The advertisingChannelSubType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.valueOf(advertisingChannelSubType_);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value) {
if (value == null) {
throw new NullPointerException();
}
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.v10.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearAdvertisingChannelSubType() {
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_ & 0x00000004) != 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();
}
bitField0_ |= 0x00000004;
trackingUrlTemplate_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000004);
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
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);
bitField0_ |= 0x00000004;
trackingUrlTemplate_ = value;
onChanged();
return this;
}
private java.util.List urlCustomParameters_ =
java.util.Collections.emptyList();
private void ensureUrlCustomParametersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder addUrlCustomParameters(com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder addUrlCustomParameters(
com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder addAllUrlCustomParameters(
java.lang.Iterable extends com.google.ads.googleads.v10.common.CustomParameter> 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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public Builder clearUrlCustomParameters() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
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.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder() {
return getUrlCustomParametersFieldBuilder().addBuilder(
com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.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.v10.common.CustomParameter url_custom_parameters = 12;
*/
public java.util.List
getUrlCustomParametersBuilderList() {
return getUrlCustomParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersFieldBuilder() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>(
urlCustomParameters_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
urlCustomParameters_ = null;
}
return urlCustomParametersBuilder_;
}
private com.google.ads.googleads.v10.common.RealTimeBiddingSetting realTimeBiddingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.RealTimeBiddingSetting, com.google.ads.googleads.v10.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v10.common.RealTimeBiddingSettingOrBuilder> realTimeBiddingSettingBuilder_;
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
* @return Whether the realTimeBiddingSetting field is set.
*/
public boolean hasRealTimeBiddingSetting() {
return realTimeBiddingSettingBuilder_ != null || realTimeBiddingSetting_ != null;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
* @return The realTimeBiddingSetting.
*/
public com.google.ads.googleads.v10.common.RealTimeBiddingSetting getRealTimeBiddingSetting() {
if (realTimeBiddingSettingBuilder_ == null) {
return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v10.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.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public Builder setRealTimeBiddingSetting(com.google.ads.googleads.v10.common.RealTimeBiddingSetting value) {
if (realTimeBiddingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
realTimeBiddingSetting_ = value;
onChanged();
} else {
realTimeBiddingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public Builder setRealTimeBiddingSetting(
com.google.ads.googleads.v10.common.RealTimeBiddingSetting.Builder builderForValue) {
if (realTimeBiddingSettingBuilder_ == null) {
realTimeBiddingSetting_ = builderForValue.build();
onChanged();
} else {
realTimeBiddingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public Builder mergeRealTimeBiddingSetting(com.google.ads.googleads.v10.common.RealTimeBiddingSetting value) {
if (realTimeBiddingSettingBuilder_ == null) {
if (realTimeBiddingSetting_ != null) {
realTimeBiddingSetting_ =
com.google.ads.googleads.v10.common.RealTimeBiddingSetting.newBuilder(realTimeBiddingSetting_).mergeFrom(value).buildPartial();
} else {
realTimeBiddingSetting_ = value;
}
onChanged();
} else {
realTimeBiddingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public Builder clearRealTimeBiddingSetting() {
if (realTimeBiddingSettingBuilder_ == null) {
realTimeBiddingSetting_ = null;
onChanged();
} else {
realTimeBiddingSetting_ = null;
realTimeBiddingSettingBuilder_ = null;
}
return this;
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public com.google.ads.googleads.v10.common.RealTimeBiddingSetting.Builder getRealTimeBiddingSettingBuilder() {
onChanged();
return getRealTimeBiddingSettingFieldBuilder().getBuilder();
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
public com.google.ads.googleads.v10.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() {
if (realTimeBiddingSettingBuilder_ != null) {
return realTimeBiddingSettingBuilder_.getMessageOrBuilder();
} else {
return realTimeBiddingSetting_ == null ?
com.google.ads.googleads.v10.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_;
}
}
/**
*
* Settings for Real-Time Bidding, a feature only available for campaigns
* targeting the Ad Exchange network.
*
*
* .google.ads.googleads.v10.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.RealTimeBiddingSetting, com.google.ads.googleads.v10.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v10.common.RealTimeBiddingSettingOrBuilder>
getRealTimeBiddingSettingFieldBuilder() {
if (realTimeBiddingSettingBuilder_ == null) {
realTimeBiddingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.RealTimeBiddingSetting, com.google.ads.googleads.v10.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v10.common.RealTimeBiddingSettingOrBuilder>(
getRealTimeBiddingSetting(),
getParentForChildren(),
isClean());
realTimeBiddingSetting_ = null;
}
return realTimeBiddingSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.NetworkSettings networkSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings, com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder> networkSettingsBuilder_;
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
* @return Whether the networkSettings field is set.
*/
public boolean hasNetworkSettings() {
return networkSettingsBuilder_ != null || networkSettings_ != null;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
* @return The networkSettings.
*/
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings getNetworkSettings() {
if (networkSettingsBuilder_ == null) {
return networkSettings_ == null ? com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_;
} else {
return networkSettingsBuilder_.getMessage();
}
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public Builder setNetworkSettings(com.google.ads.googleads.v10.resources.Campaign.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkSettings_ = value;
onChanged();
} else {
networkSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public Builder setNetworkSettings(
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder builderForValue) {
if (networkSettingsBuilder_ == null) {
networkSettings_ = builderForValue.build();
onChanged();
} else {
networkSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public Builder mergeNetworkSettings(com.google.ads.googleads.v10.resources.Campaign.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (networkSettings_ != null) {
networkSettings_ =
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial();
} else {
networkSettings_ = value;
}
onChanged();
} else {
networkSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public Builder clearNetworkSettings() {
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
onChanged();
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
return this;
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder getNetworkSettingsBuilder() {
onChanged();
return getNetworkSettingsFieldBuilder().getBuilder();
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
public com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
if (networkSettingsBuilder_ != null) {
return networkSettingsBuilder_.getMessageOrBuilder();
} else {
return networkSettings_ == null ?
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_;
}
}
/**
*
* The network settings for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.NetworkSettings network_settings = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings, com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder>
getNetworkSettingsFieldBuilder() {
if (networkSettingsBuilder_ == null) {
networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.NetworkSettings, com.google.ads.googleads.v10.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v10.resources.Campaign.NetworkSettingsOrBuilder>(
getNetworkSettings(),
getParentForChildren(),
isClean());
networkSettings_ = null;
}
return networkSettingsBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotelSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder> hotelSettingBuilder_;
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the hotelSetting field is set.
*/
public boolean hasHotelSetting() {
return hotelSettingBuilder_ != null || hotelSetting_ != null;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The hotelSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo getHotelSetting() {
if (hotelSettingBuilder_ == null) {
return hotelSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_;
} else {
return hotelSettingBuilder_.getMessage();
}
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setHotelSetting(com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo value) {
if (hotelSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hotelSetting_ = value;
onChanged();
} else {
hotelSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setHotelSetting(
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder builderForValue) {
if (hotelSettingBuilder_ == null) {
hotelSetting_ = builderForValue.build();
onChanged();
} else {
hotelSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeHotelSetting(com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo value) {
if (hotelSettingBuilder_ == null) {
if (hotelSetting_ != null) {
hotelSetting_ =
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.newBuilder(hotelSetting_).mergeFrom(value).buildPartial();
} else {
hotelSetting_ = value;
}
onChanged();
} else {
hotelSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearHotelSetting() {
if (hotelSettingBuilder_ == null) {
hotelSetting_ = null;
onChanged();
} else {
hotelSetting_ = null;
hotelSettingBuilder_ = null;
}
return this;
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder getHotelSettingBuilder() {
onChanged();
return getHotelSettingFieldBuilder().getBuilder();
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() {
if (hotelSettingBuilder_ != null) {
return hotelSettingBuilder_.getMessageOrBuilder();
} else {
return hotelSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_;
}
}
/**
*
* Immutable. The hotel setting for the campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.HotelSettingInfo hotel_setting = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder>
getHotelSettingFieldBuilder() {
if (hotelSettingBuilder_ == null) {
hotelSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v10.resources.Campaign.HotelSettingInfoOrBuilder>(
getHotelSetting(),
getParentForChildren(),
isClean());
hotelSetting_ = null;
}
return hotelSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder> dynamicSearchAdsSettingBuilder_;
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
* @return Whether the dynamicSearchAdsSetting field is set.
*/
public boolean hasDynamicSearchAdsSetting() {
return dynamicSearchAdsSettingBuilder_ != null || dynamicSearchAdsSetting_ != null;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
* @return The dynamicSearchAdsSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() {
if (dynamicSearchAdsSettingBuilder_ == null) {
return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_;
} else {
return dynamicSearchAdsSettingBuilder_.getMessage();
}
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public Builder setDynamicSearchAdsSetting(com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting value) {
if (dynamicSearchAdsSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dynamicSearchAdsSetting_ = value;
onChanged();
} else {
dynamicSearchAdsSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public Builder setDynamicSearchAdsSetting(
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder builderForValue) {
if (dynamicSearchAdsSettingBuilder_ == null) {
dynamicSearchAdsSetting_ = builderForValue.build();
onChanged();
} else {
dynamicSearchAdsSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public Builder mergeDynamicSearchAdsSetting(com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting value) {
if (dynamicSearchAdsSettingBuilder_ == null) {
if (dynamicSearchAdsSetting_ != null) {
dynamicSearchAdsSetting_ =
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.newBuilder(dynamicSearchAdsSetting_).mergeFrom(value).buildPartial();
} else {
dynamicSearchAdsSetting_ = value;
}
onChanged();
} else {
dynamicSearchAdsSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public Builder clearDynamicSearchAdsSetting() {
if (dynamicSearchAdsSettingBuilder_ == null) {
dynamicSearchAdsSetting_ = null;
onChanged();
} else {
dynamicSearchAdsSetting_ = null;
dynamicSearchAdsSettingBuilder_ = null;
}
return this;
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder getDynamicSearchAdsSettingBuilder() {
onChanged();
return getDynamicSearchAdsSettingFieldBuilder().getBuilder();
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
public com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() {
if (dynamicSearchAdsSettingBuilder_ != null) {
return dynamicSearchAdsSettingBuilder_.getMessageOrBuilder();
} else {
return dynamicSearchAdsSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_;
}
}
/**
*
* The setting for controlling Dynamic Search Ads (DSA).
*
*
* .google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder>
getDynamicSearchAdsSettingFieldBuilder() {
if (dynamicSearchAdsSettingBuilder_ == null) {
dynamicSearchAdsSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.DynamicSearchAdsSettingOrBuilder>(
getDynamicSearchAdsSetting(),
getParentForChildren(),
isClean());
dynamicSearchAdsSetting_ = null;
}
return dynamicSearchAdsSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting shoppingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder> shoppingSettingBuilder_;
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
* @return Whether the shoppingSetting field is set.
*/
public boolean hasShoppingSetting() {
return shoppingSettingBuilder_ != null || shoppingSetting_ != null;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
* @return The shoppingSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting getShoppingSetting() {
if (shoppingSettingBuilder_ == null) {
return shoppingSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_;
} else {
return shoppingSettingBuilder_.getMessage();
}
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public Builder setShoppingSetting(com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting value) {
if (shoppingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shoppingSetting_ = value;
onChanged();
} else {
shoppingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public Builder setShoppingSetting(
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder builderForValue) {
if (shoppingSettingBuilder_ == null) {
shoppingSetting_ = builderForValue.build();
onChanged();
} else {
shoppingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public Builder mergeShoppingSetting(com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting value) {
if (shoppingSettingBuilder_ == null) {
if (shoppingSetting_ != null) {
shoppingSetting_ =
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.newBuilder(shoppingSetting_).mergeFrom(value).buildPartial();
} else {
shoppingSetting_ = value;
}
onChanged();
} else {
shoppingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public Builder clearShoppingSetting() {
if (shoppingSettingBuilder_ == null) {
shoppingSetting_ = null;
onChanged();
} else {
shoppingSetting_ = null;
shoppingSettingBuilder_ = null;
}
return this;
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder getShoppingSettingBuilder() {
onChanged();
return getShoppingSettingFieldBuilder().getBuilder();
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
public com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() {
if (shoppingSettingBuilder_ != null) {
return shoppingSettingBuilder_.getMessageOrBuilder();
} else {
return shoppingSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_;
}
}
/**
*
* The setting for controlling Shopping campaigns.
*
*
* .google.ads.googleads.v10.resources.Campaign.ShoppingSetting shopping_setting = 36;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder>
getShoppingSettingFieldBuilder() {
if (shoppingSettingBuilder_ == null) {
shoppingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.ShoppingSettingOrBuilder>(
getShoppingSetting(),
getParentForChildren(),
isClean());
shoppingSetting_ = null;
}
return shoppingSettingBuilder_;
}
private com.google.ads.googleads.v10.common.TargetingSetting targetingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetingSetting, com.google.ads.googleads.v10.common.TargetingSetting.Builder, com.google.ads.googleads.v10.common.TargetingSettingOrBuilder> targetingSettingBuilder_;
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
* @return Whether the targetingSetting field is set.
*/
public boolean hasTargetingSetting() {
return targetingSettingBuilder_ != null || targetingSetting_ != null;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
* @return The targetingSetting.
*/
public com.google.ads.googleads.v10.common.TargetingSetting getTargetingSetting() {
if (targetingSettingBuilder_ == null) {
return targetingSetting_ == null ? com.google.ads.googleads.v10.common.TargetingSetting.getDefaultInstance() : targetingSetting_;
} else {
return targetingSettingBuilder_.getMessage();
}
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public Builder setTargetingSetting(com.google.ads.googleads.v10.common.TargetingSetting value) {
if (targetingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
targetingSetting_ = value;
onChanged();
} else {
targetingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public Builder setTargetingSetting(
com.google.ads.googleads.v10.common.TargetingSetting.Builder builderForValue) {
if (targetingSettingBuilder_ == null) {
targetingSetting_ = builderForValue.build();
onChanged();
} else {
targetingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public Builder mergeTargetingSetting(com.google.ads.googleads.v10.common.TargetingSetting value) {
if (targetingSettingBuilder_ == null) {
if (targetingSetting_ != null) {
targetingSetting_ =
com.google.ads.googleads.v10.common.TargetingSetting.newBuilder(targetingSetting_).mergeFrom(value).buildPartial();
} else {
targetingSetting_ = value;
}
onChanged();
} else {
targetingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public Builder clearTargetingSetting() {
if (targetingSettingBuilder_ == null) {
targetingSetting_ = null;
onChanged();
} else {
targetingSetting_ = null;
targetingSettingBuilder_ = null;
}
return this;
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public com.google.ads.googleads.v10.common.TargetingSetting.Builder getTargetingSettingBuilder() {
onChanged();
return getTargetingSettingFieldBuilder().getBuilder();
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
public com.google.ads.googleads.v10.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() {
if (targetingSettingBuilder_ != null) {
return targetingSettingBuilder_.getMessageOrBuilder();
} else {
return targetingSetting_ == null ?
com.google.ads.googleads.v10.common.TargetingSetting.getDefaultInstance() : targetingSetting_;
}
}
/**
*
* Setting for targeting related features.
*
*
* .google.ads.googleads.v10.common.TargetingSetting targeting_setting = 43;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetingSetting, com.google.ads.googleads.v10.common.TargetingSetting.Builder, com.google.ads.googleads.v10.common.TargetingSettingOrBuilder>
getTargetingSettingFieldBuilder() {
if (targetingSettingBuilder_ == null) {
targetingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetingSetting, com.google.ads.googleads.v10.common.TargetingSetting.Builder, com.google.ads.googleads.v10.common.TargetingSettingOrBuilder>(
getTargetingSetting(),
getParentForChildren(),
isClean());
targetingSetting_ = null;
}
return targetingSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.AudienceSetting audienceSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting, com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder> audienceSettingBuilder_;
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the audienceSetting field is set.
*/
public boolean hasAudienceSetting() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
* @return The audienceSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting getAudienceSetting() {
if (audienceSettingBuilder_ == null) {
return audienceSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_;
} else {
return audienceSettingBuilder_.getMessage();
}
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAudienceSetting(com.google.ads.googleads.v10.resources.Campaign.AudienceSetting value) {
if (audienceSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
audienceSetting_ = value;
onChanged();
} else {
audienceSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAudienceSetting(
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder builderForValue) {
if (audienceSettingBuilder_ == null) {
audienceSetting_ = builderForValue.build();
onChanged();
} else {
audienceSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAudienceSetting(com.google.ads.googleads.v10.resources.Campaign.AudienceSetting value) {
if (audienceSettingBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
audienceSetting_ != null &&
audienceSetting_ != com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance()) {
audienceSetting_ =
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.newBuilder(audienceSetting_).mergeFrom(value).buildPartial();
} else {
audienceSetting_ = value;
}
onChanged();
} else {
audienceSettingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAudienceSetting() {
if (audienceSettingBuilder_ == null) {
audienceSetting_ = null;
onChanged();
} else {
audienceSettingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder getAudienceSettingBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAudienceSettingFieldBuilder().getBuilder();
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder getAudienceSettingOrBuilder() {
if (audienceSettingBuilder_ != null) {
return audienceSettingBuilder_.getMessageOrBuilder();
} else {
return audienceSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.getDefaultInstance() : audienceSetting_;
}
}
/**
*
* Immutable. Setting for audience related features.
*
*
* optional .google.ads.googleads.v10.resources.Campaign.AudienceSetting audience_setting = 73 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting, com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder>
getAudienceSettingFieldBuilder() {
if (audienceSettingBuilder_ == null) {
audienceSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AudienceSetting, com.google.ads.googleads.v10.resources.Campaign.AudienceSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AudienceSettingOrBuilder>(
getAudienceSetting(),
getParentForChildren(),
isClean());
audienceSetting_ = null;
}
return audienceSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geoTargetTypeSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder> geoTargetTypeSettingBuilder_;
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
* @return Whether the geoTargetTypeSetting field is set.
*/
public boolean hasGeoTargetTypeSetting() {
return geoTargetTypeSettingBuilder_ != null || geoTargetTypeSetting_ != null;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
* @return The geoTargetTypeSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting getGeoTargetTypeSetting() {
if (geoTargetTypeSettingBuilder_ == null) {
return geoTargetTypeSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_;
} else {
return geoTargetTypeSettingBuilder_.getMessage();
}
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public Builder setGeoTargetTypeSetting(com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting value) {
if (geoTargetTypeSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoTargetTypeSetting_ = value;
onChanged();
} else {
geoTargetTypeSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public Builder setGeoTargetTypeSetting(
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder builderForValue) {
if (geoTargetTypeSettingBuilder_ == null) {
geoTargetTypeSetting_ = builderForValue.build();
onChanged();
} else {
geoTargetTypeSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public Builder mergeGeoTargetTypeSetting(com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting value) {
if (geoTargetTypeSettingBuilder_ == null) {
if (geoTargetTypeSetting_ != null) {
geoTargetTypeSetting_ =
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.newBuilder(geoTargetTypeSetting_).mergeFrom(value).buildPartial();
} else {
geoTargetTypeSetting_ = value;
}
onChanged();
} else {
geoTargetTypeSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public Builder clearGeoTargetTypeSetting() {
if (geoTargetTypeSettingBuilder_ == null) {
geoTargetTypeSetting_ = null;
onChanged();
} else {
geoTargetTypeSetting_ = null;
geoTargetTypeSettingBuilder_ = null;
}
return this;
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder getGeoTargetTypeSettingBuilder() {
onChanged();
return getGeoTargetTypeSettingFieldBuilder().getBuilder();
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
public com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder getGeoTargetTypeSettingOrBuilder() {
if (geoTargetTypeSettingBuilder_ != null) {
return geoTargetTypeSettingBuilder_.getMessageOrBuilder();
} else {
return geoTargetTypeSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.getDefaultInstance() : geoTargetTypeSetting_;
}
}
/**
*
* The setting for ads geotargeting.
*
*
* .google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting geo_target_type_setting = 47;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder>
getGeoTargetTypeSettingFieldBuilder() {
if (geoTargetTypeSettingBuilder_ == null) {
geoTargetTypeSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.GeoTargetTypeSettingOrBuilder>(
getGeoTargetTypeSetting(),
getParentForChildren(),
isClean());
geoTargetTypeSetting_ = null;
}
return geoTargetTypeSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting localCampaignSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder> localCampaignSettingBuilder_;
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
* @return Whether the localCampaignSetting field is set.
*/
public boolean hasLocalCampaignSetting() {
return localCampaignSettingBuilder_ != null || localCampaignSetting_ != null;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
* @return The localCampaignSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting getLocalCampaignSetting() {
if (localCampaignSettingBuilder_ == null) {
return localCampaignSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_;
} else {
return localCampaignSettingBuilder_.getMessage();
}
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public Builder setLocalCampaignSetting(com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting value) {
if (localCampaignSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localCampaignSetting_ = value;
onChanged();
} else {
localCampaignSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public Builder setLocalCampaignSetting(
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder builderForValue) {
if (localCampaignSettingBuilder_ == null) {
localCampaignSetting_ = builderForValue.build();
onChanged();
} else {
localCampaignSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public Builder mergeLocalCampaignSetting(com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting value) {
if (localCampaignSettingBuilder_ == null) {
if (localCampaignSetting_ != null) {
localCampaignSetting_ =
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.newBuilder(localCampaignSetting_).mergeFrom(value).buildPartial();
} else {
localCampaignSetting_ = value;
}
onChanged();
} else {
localCampaignSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public Builder clearLocalCampaignSetting() {
if (localCampaignSettingBuilder_ == null) {
localCampaignSetting_ = null;
onChanged();
} else {
localCampaignSetting_ = null;
localCampaignSettingBuilder_ = null;
}
return this;
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder getLocalCampaignSettingBuilder() {
onChanged();
return getLocalCampaignSettingFieldBuilder().getBuilder();
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
public com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder getLocalCampaignSettingOrBuilder() {
if (localCampaignSettingBuilder_ != null) {
return localCampaignSettingBuilder_.getMessageOrBuilder();
} else {
return localCampaignSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.getDefaultInstance() : localCampaignSetting_;
}
}
/**
*
* The setting for local campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting local_campaign_setting = 50;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder>
getLocalCampaignSettingFieldBuilder() {
if (localCampaignSettingBuilder_ == null) {
localCampaignSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.LocalCampaignSettingOrBuilder>(
getLocalCampaignSetting(),
getParentForChildren(),
isClean());
localCampaignSetting_ = null;
}
return localCampaignSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting appCampaignSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder> appCampaignSettingBuilder_;
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
* @return Whether the appCampaignSetting field is set.
*/
public boolean hasAppCampaignSetting() {
return appCampaignSettingBuilder_ != null || appCampaignSetting_ != null;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
* @return The appCampaignSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting getAppCampaignSetting() {
if (appCampaignSettingBuilder_ == null) {
return appCampaignSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_;
} else {
return appCampaignSettingBuilder_.getMessage();
}
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public Builder setAppCampaignSetting(com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting value) {
if (appCampaignSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appCampaignSetting_ = value;
onChanged();
} else {
appCampaignSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public Builder setAppCampaignSetting(
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder builderForValue) {
if (appCampaignSettingBuilder_ == null) {
appCampaignSetting_ = builderForValue.build();
onChanged();
} else {
appCampaignSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public Builder mergeAppCampaignSetting(com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting value) {
if (appCampaignSettingBuilder_ == null) {
if (appCampaignSetting_ != null) {
appCampaignSetting_ =
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.newBuilder(appCampaignSetting_).mergeFrom(value).buildPartial();
} else {
appCampaignSetting_ = value;
}
onChanged();
} else {
appCampaignSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public Builder clearAppCampaignSetting() {
if (appCampaignSettingBuilder_ == null) {
appCampaignSetting_ = null;
onChanged();
} else {
appCampaignSetting_ = null;
appCampaignSettingBuilder_ = null;
}
return this;
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder getAppCampaignSettingBuilder() {
onChanged();
return getAppCampaignSettingFieldBuilder().getBuilder();
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
public com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder getAppCampaignSettingOrBuilder() {
if (appCampaignSettingBuilder_ != null) {
return appCampaignSettingBuilder_.getMessageOrBuilder();
} else {
return appCampaignSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.getDefaultInstance() : appCampaignSetting_;
}
}
/**
*
* The setting related to App Campaign.
*
*
* .google.ads.googleads.v10.resources.Campaign.AppCampaignSetting app_campaign_setting = 51;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder>
getAppCampaignSettingFieldBuilder() {
if (appCampaignSettingBuilder_ == null) {
appCampaignSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.AppCampaignSettingOrBuilder>(
getAppCampaignSetting(),
getParentForChildren(),
isClean());
appCampaignSetting_ = null;
}
return appCampaignSettingBuilder_;
}
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
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);
onChanged();
return this;
}
private int experimentType_ = 0;
/**
*
* Output only. The type of campaign: normal, draft, or experiment.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Output only. The type of campaign: normal, draft, or experiment.
*
*
* .google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The experimentType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType getExperimentType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType result = com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.valueOf(experimentType_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType.UNRECOGNIZED : result;
}
/**
*
* Output only. The type of campaign: normal, draft, or experiment.
*
*
* .google.ads.googleads.v10.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.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType value) {
if (value == null) {
throw new NullPointerException();
}
experimentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The type of campaign: normal, draft, or experiment.
*
*
* .google.ads.googleads.v10.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearExperimentType() {
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_ & 0x00000040) != 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();
}
bitField0_ |= 0x00000040;
baseCampaign_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000040);
baseCampaign_ = getDefaultInstance().getBaseCampaign();
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);
bitField0_ |= 0x00000040;
baseCampaign_ = value;
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_ & 0x00000080) != 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();
}
bitField0_ |= 0x00000080;
campaignBudget_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000080);
campaignBudget_ = getDefaultInstance().getCampaignBudget();
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);
bitField0_ |= 0x00000080;
campaignBudget_ = value;
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.v10.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.v10.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;
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.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The biddingStrategyType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType.valueOf(biddingStrategyType_);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType value) {
if (value == null) {
throw new NullPointerException();
}
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.v10.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearBiddingStrategyType() {
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;
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();
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;
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 ((bitField0_ & 0x00000100) != 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();
}
bitField0_ |= 0x00000100;
startDate_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000100);
startDate_ = getDefaultInstance().getStartDate();
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);
bitField0_ |= 0x00000100;
startDate_ = value;
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 ((bitField0_ & 0x00000200) != 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();
}
bitField0_ |= 0x00000200;
campaignGroup_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000200);
campaignGroup_ = getDefaultInstance().getCampaignGroup();
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);
bitField0_ |= 0x00000200;
campaignGroup_ = value;
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 ((bitField0_ & 0x00000400) != 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();
}
bitField0_ |= 0x00000400;
endDate_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000400);
endDate_ = getDefaultInstance().getEndDate();
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);
bitField0_ |= 0x00000400;
endDate_ = value;
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 ((bitField0_ & 0x00000800) != 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();
}
bitField0_ |= 0x00000800;
finalUrlSuffix_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000800);
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
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);
bitField0_ |= 0x00000800;
finalUrlSuffix_ = value;
onChanged();
return this;
}
private java.util.List frequencyCaps_ =
java.util.Collections.emptyList();
private void ensureFrequencyCapsIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
frequencyCaps_ = new java.util.ArrayList(frequencyCaps_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.FrequencyCapEntry, com.google.ads.googleads.v10.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder> frequencyCapsBuilder_;
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.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.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder setFrequencyCaps(
int index, com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder setFrequencyCaps(
int index, com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder addFrequencyCaps(com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder addFrequencyCaps(
int index, com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder addFrequencyCaps(
com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder addFrequencyCaps(
int index, com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder addAllFrequencyCaps(
java.lang.Iterable extends com.google.ads.googleads.v10.common.FrequencyCapEntry> 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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public Builder clearFrequencyCaps() {
if (frequencyCapsBuilder_ == null) {
frequencyCaps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
frequencyCapsBuilder_.clear();
}
return this;
}
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public com.google.ads.googleads.v10.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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public java.util.List extends com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder>
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.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public com.google.ads.googleads.v10.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder() {
return getFrequencyCapsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.FrequencyCapEntry.getDefaultInstance());
}
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public com.google.ads.googleads.v10.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder(
int index) {
return getFrequencyCapsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.FrequencyCapEntry.getDefaultInstance());
}
/**
*
* A list that limits how often each user will see this campaign's ads.
*
*
* repeated .google.ads.googleads.v10.common.FrequencyCapEntry frequency_caps = 40;
*/
public java.util.List
getFrequencyCapsBuilderList() {
return getFrequencyCapsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.FrequencyCapEntry, com.google.ads.googleads.v10.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder>
getFrequencyCapsFieldBuilder() {
if (frequencyCapsBuilder_ == null) {
frequencyCapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.FrequencyCapEntry, com.google.ads.googleads.v10.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v10.common.FrequencyCapEntryOrBuilder>(
frequencyCaps_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
frequencyCaps_ = null;
}
return frequencyCapsBuilder_;
}
private int videoBrandSafetySuitability_ = 0;
/**
*
* Output only. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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;
onChanged();
return this;
}
/**
*
* Output only. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.valueOf(videoBrandSafetySuitability_);
return result == null ? com.google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result;
}
/**
*
* Output only. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.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.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability value) {
if (value == null) {
throw new NullPointerException();
}
videoBrandSafetySuitability_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. 3-Tier Brand Safety setting for the campaign.
*
*
* .google.ads.googleads.v10.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearVideoBrandSafetySuitability() {
videoBrandSafetySuitability_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.Campaign.VanityPharma vanityPharma_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.VanityPharma, com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder> vanityPharmaBuilder_;
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
* @return Whether the vanityPharma field is set.
*/
public boolean hasVanityPharma() {
return vanityPharmaBuilder_ != null || vanityPharma_ != null;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
* @return The vanityPharma.
*/
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma getVanityPharma() {
if (vanityPharmaBuilder_ == null) {
return vanityPharma_ == null ? com.google.ads.googleads.v10.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_;
} else {
return vanityPharmaBuilder_.getMessage();
}
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public Builder setVanityPharma(com.google.ads.googleads.v10.resources.Campaign.VanityPharma value) {
if (vanityPharmaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vanityPharma_ = value;
onChanged();
} else {
vanityPharmaBuilder_.setMessage(value);
}
return this;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public Builder setVanityPharma(
com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder builderForValue) {
if (vanityPharmaBuilder_ == null) {
vanityPharma_ = builderForValue.build();
onChanged();
} else {
vanityPharmaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public Builder mergeVanityPharma(com.google.ads.googleads.v10.resources.Campaign.VanityPharma value) {
if (vanityPharmaBuilder_ == null) {
if (vanityPharma_ != null) {
vanityPharma_ =
com.google.ads.googleads.v10.resources.Campaign.VanityPharma.newBuilder(vanityPharma_).mergeFrom(value).buildPartial();
} else {
vanityPharma_ = value;
}
onChanged();
} else {
vanityPharmaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public Builder clearVanityPharma() {
if (vanityPharmaBuilder_ == null) {
vanityPharma_ = null;
onChanged();
} else {
vanityPharma_ = null;
vanityPharmaBuilder_ = null;
}
return this;
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder getVanityPharmaBuilder() {
onChanged();
return getVanityPharmaFieldBuilder().getBuilder();
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
public com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() {
if (vanityPharmaBuilder_ != null) {
return vanityPharmaBuilder_.getMessageOrBuilder();
} else {
return vanityPharma_ == null ?
com.google.ads.googleads.v10.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_;
}
}
/**
*
* Describes how unbranded pharma ads will be displayed.
*
*
* .google.ads.googleads.v10.resources.Campaign.VanityPharma vanity_pharma = 44;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.VanityPharma, com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder>
getVanityPharmaFieldBuilder() {
if (vanityPharmaBuilder_ == null) {
vanityPharmaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.VanityPharma, com.google.ads.googleads.v10.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v10.resources.Campaign.VanityPharmaOrBuilder>(
getVanityPharma(),
getParentForChildren(),
isClean());
vanityPharma_ = null;
}
return vanityPharmaBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selectiveOptimization_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder> selectiveOptimizationBuilder_;
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
* @return Whether the selectiveOptimization field is set.
*/
public boolean hasSelectiveOptimization() {
return selectiveOptimizationBuilder_ != null || selectiveOptimization_ != null;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
* @return The selectiveOptimization.
*/
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization getSelectiveOptimization() {
if (selectiveOptimizationBuilder_ == null) {
return selectiveOptimization_ == null ? com.google.ads.googleads.v10.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.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public Builder setSelectiveOptimization(com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization value) {
if (selectiveOptimizationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
selectiveOptimization_ = value;
onChanged();
} else {
selectiveOptimizationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public Builder setSelectiveOptimization(
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder builderForValue) {
if (selectiveOptimizationBuilder_ == null) {
selectiveOptimization_ = builderForValue.build();
onChanged();
} else {
selectiveOptimizationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public Builder mergeSelectiveOptimization(com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization value) {
if (selectiveOptimizationBuilder_ == null) {
if (selectiveOptimization_ != null) {
selectiveOptimization_ =
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.newBuilder(selectiveOptimization_).mergeFrom(value).buildPartial();
} else {
selectiveOptimization_ = value;
}
onChanged();
} else {
selectiveOptimizationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public Builder clearSelectiveOptimization() {
if (selectiveOptimizationBuilder_ == null) {
selectiveOptimization_ = null;
onChanged();
} else {
selectiveOptimization_ = null;
selectiveOptimizationBuilder_ = null;
}
return this;
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder getSelectiveOptimizationBuilder() {
onChanged();
return getSelectiveOptimizationFieldBuilder().getBuilder();
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
public com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() {
if (selectiveOptimizationBuilder_ != null) {
return selectiveOptimizationBuilder_.getMessageOrBuilder();
} else {
return selectiveOptimization_ == null ?
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_;
}
}
/**
*
* Selective optimization setting for this campaign, which includes a set of
* conversion actions to optimize this campaign towards.
*
*
* .google.ads.googleads.v10.resources.Campaign.SelectiveOptimization selective_optimization = 45;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder>
getSelectiveOptimizationFieldBuilder() {
if (selectiveOptimizationBuilder_ == null) {
selectiveOptimizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v10.resources.Campaign.SelectiveOptimizationOrBuilder>(
getSelectiveOptimization(),
getParentForChildren(),
isClean());
selectiveOptimization_ = null;
}
return selectiveOptimizationBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimizationGoalSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder> optimizationGoalSettingBuilder_;
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
* @return Whether the optimizationGoalSetting field is set.
*/
public boolean hasOptimizationGoalSetting() {
return optimizationGoalSettingBuilder_ != null || optimizationGoalSetting_ != null;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
* @return The optimizationGoalSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting getOptimizationGoalSetting() {
if (optimizationGoalSettingBuilder_ == null) {
return optimizationGoalSetting_ == null ? com.google.ads.googleads.v10.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.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public Builder setOptimizationGoalSetting(com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting value) {
if (optimizationGoalSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optimizationGoalSetting_ = value;
onChanged();
} else {
optimizationGoalSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public Builder setOptimizationGoalSetting(
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder builderForValue) {
if (optimizationGoalSettingBuilder_ == null) {
optimizationGoalSetting_ = builderForValue.build();
onChanged();
} else {
optimizationGoalSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public Builder mergeOptimizationGoalSetting(com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting value) {
if (optimizationGoalSettingBuilder_ == null) {
if (optimizationGoalSetting_ != null) {
optimizationGoalSetting_ =
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.newBuilder(optimizationGoalSetting_).mergeFrom(value).buildPartial();
} else {
optimizationGoalSetting_ = value;
}
onChanged();
} else {
optimizationGoalSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public Builder clearOptimizationGoalSetting() {
if (optimizationGoalSettingBuilder_ == null) {
optimizationGoalSetting_ = null;
onChanged();
} else {
optimizationGoalSetting_ = null;
optimizationGoalSettingBuilder_ = null;
}
return this;
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder getOptimizationGoalSettingBuilder() {
onChanged();
return getOptimizationGoalSettingFieldBuilder().getBuilder();
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
public com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder getOptimizationGoalSettingOrBuilder() {
if (optimizationGoalSettingBuilder_ != null) {
return optimizationGoalSettingBuilder_.getMessageOrBuilder();
} else {
return optimizationGoalSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.getDefaultInstance() : optimizationGoalSetting_;
}
}
/**
*
* Optimization goal setting for this campaign, which includes a set of
* optimization goal types.
*
*
* .google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting optimization_goal_setting = 54;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder>
getOptimizationGoalSettingFieldBuilder() {
if (optimizationGoalSettingBuilder_ == null) {
optimizationGoalSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.OptimizationGoalSettingOrBuilder>(
getOptimizationGoalSetting(),
getParentForChildren(),
isClean());
optimizationGoalSetting_ = null;
}
return optimizationGoalSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.Campaign.TrackingSetting trackingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting, com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder> trackingSettingBuilder_;
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the trackingSetting field is set.
*/
public boolean hasTrackingSetting() {
return trackingSettingBuilder_ != null || trackingSetting_ != null;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The trackingSetting.
*/
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting getTrackingSetting() {
if (trackingSettingBuilder_ == null) {
return trackingSetting_ == null ? com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_;
} else {
return trackingSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTrackingSetting(com.google.ads.googleads.v10.resources.Campaign.TrackingSetting value) {
if (trackingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trackingSetting_ = value;
onChanged();
} else {
trackingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTrackingSetting(
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder builderForValue) {
if (trackingSettingBuilder_ == null) {
trackingSetting_ = builderForValue.build();
onChanged();
} else {
trackingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeTrackingSetting(com.google.ads.googleads.v10.resources.Campaign.TrackingSetting value) {
if (trackingSettingBuilder_ == null) {
if (trackingSetting_ != null) {
trackingSetting_ =
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.newBuilder(trackingSetting_).mergeFrom(value).buildPartial();
} else {
trackingSetting_ = value;
}
onChanged();
} else {
trackingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearTrackingSetting() {
if (trackingSettingBuilder_ == null) {
trackingSetting_ = null;
onChanged();
} else {
trackingSetting_ = null;
trackingSettingBuilder_ = null;
}
return this;
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder getTrackingSettingBuilder() {
onChanged();
return getTrackingSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() {
if (trackingSettingBuilder_ != null) {
return trackingSettingBuilder_.getMessageOrBuilder();
} else {
return trackingSetting_ == null ?
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_;
}
}
/**
*
* Output only. Campaign-level settings for tracking information.
*
*
* .google.ads.googleads.v10.resources.Campaign.TrackingSetting tracking_setting = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting, com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder>
getTrackingSettingFieldBuilder() {
if (trackingSettingBuilder_ == null) {
trackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Campaign.TrackingSetting, com.google.ads.googleads.v10.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v10.resources.Campaign.TrackingSettingOrBuilder>(
getTrackingSetting(),
getParentForChildren(),
isClean());
trackingSetting_ = null;
}
return trackingSettingBuilder_;
}
private int paymentMode_ = 0;
/**
*
* Payment mode for the campaign.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Payment mode for the campaign.
*
*
* .google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode payment_mode = 52;
* @return The paymentMode.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode getPaymentMode() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode result = com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.valueOf(paymentMode_);
return result == null ? com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode.UNRECOGNIZED : result;
}
/**
*
* Payment mode for the campaign.
*
*
* .google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode payment_mode = 52;
* @param value The paymentMode to set.
* @return This builder for chaining.
*/
public Builder setPaymentMode(com.google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode value) {
if (value == null) {
throw new NullPointerException();
}
paymentMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Payment mode for the campaign.
*
*
* .google.ads.googleads.v10.enums.PaymentModeEnum.PaymentMode payment_mode = 52;
* @return This builder for chaining.
*/
public Builder clearPaymentMode() {
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 ((bitField0_ & 0x00002000) != 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) {
bitField0_ |= 0x00002000;
optimizationScore_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00002000);
optimizationScore_ = 0D;
onChanged();
return this;
}
private java.util.List excludedParentAssetFieldTypes_ =
java.util.Collections.emptyList();
private void ensureExcludedParentAssetFieldTypesIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
excludedParentAssetFieldTypes_ = new java.util.ArrayList(excludedParentAssetFieldTypes_);
bitField0_ |= 0x00004000;
}
}
/**
*
* 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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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 extends com.google.ads.googleads.v10.enums.AssetFieldTypeEnum.AssetFieldType> values) {
ensureExcludedParentAssetFieldTypesIsMutable();
for (com.google.ads.googleads.v10.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.v10.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69;
* @return This builder for chaining.
*/
public Builder clearExcludedParentAssetFieldTypes() {
excludedParentAssetFieldTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
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.v10.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.v10.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.v10.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.v10.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.v10.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 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 ((bitField0_ & 0x00008000) != 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) {
bitField0_ |= 0x00008000;
urlExpansionOptOut_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00008000);
urlExpansionOptOut_ = false;
onChanged();
return this;
}
/**
*
* 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.v10.common.Commission, com.google.ads.googleads.v10.common.Commission.Builder, com.google.ads.googleads.v10.common.CommissionOrBuilder> commissionBuilder_;
/**
*
* Commission is an automatic bidding strategy in which the advertiser pays
* a certain portion of the conversion value.
*
*
* .google.ads.googleads.v10.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.v10.common.Commission commission = 49;
* @return The commission.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.Commission getCommission() {
if (commissionBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 49) {
return (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.Commission.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 49) {
return commissionBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.Commission.getDefaultInstance();
}
}
/**
*
* Commission is an automatic bidding strategy in which the advertiser pays
* a certain portion of the conversion value.
*
*
* .google.ads.googleads.v10.common.Commission commission = 49;
*/
public Builder setCommission(com.google.ads.googleads.v10.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.v10.common.Commission commission = 49;
*/
public Builder setCommission(
com.google.ads.googleads.v10.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.v10.common.Commission commission = 49;
*/
public Builder mergeCommission(com.google.ads.googleads.v10.common.Commission value) {
if (commissionBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 49 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.Commission.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.Commission.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.Commission commission = 49;
*/
public com.google.ads.googleads.v10.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.v10.common.Commission commission = 49;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CommissionOrBuilder getCommissionOrBuilder() {
if ((campaignBiddingStrategyCase_ == 49) && (commissionBuilder_ != null)) {
return commissionBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 49) {
return (com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.Commission.getDefaultInstance();
}
}
/**
*
* Commission is an automatic bidding strategy in which the advertiser pays
* a certain portion of the conversion value.
*
*
* .google.ads.googleads.v10.common.Commission commission = 49;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.Commission, com.google.ads.googleads.v10.common.Commission.Builder, com.google.ads.googleads.v10.common.CommissionOrBuilder>
getCommissionFieldBuilder() {
if (commissionBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 49)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.Commission.getDefaultInstance();
}
commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.Commission, com.google.ads.googleads.v10.common.Commission.Builder, com.google.ads.googleads.v10.common.CommissionOrBuilder>(
(com.google.ads.googleads.v10.common.Commission) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 49;
onChanged();;
return commissionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpc, com.google.ads.googleads.v10.common.ManualCpc.Builder, com.google.ads.googleads.v10.common.ManualCpcOrBuilder> manualCpcBuilder_;
/**
*
* Standard Manual CPC bidding strategy.
* Manual click-based bidding where user pays per click.
*
*
* .google.ads.googleads.v10.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.v10.common.ManualCpc manual_cpc = 24;
* @return The manualCpc.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpc getManualCpc() {
if (manualCpcBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 24) {
return (com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 24) {
return manualCpcBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance();
}
}
/**
*
* Standard Manual CPC bidding strategy.
* Manual click-based bidding where user pays per click.
*
*
* .google.ads.googleads.v10.common.ManualCpc manual_cpc = 24;
*/
public Builder setManualCpc(com.google.ads.googleads.v10.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.v10.common.ManualCpc manual_cpc = 24;
*/
public Builder setManualCpc(
com.google.ads.googleads.v10.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.v10.common.ManualCpc manual_cpc = 24;
*/
public Builder mergeManualCpc(com.google.ads.googleads.v10.common.ManualCpc value) {
if (manualCpcBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 24 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpc.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.ManualCpc manual_cpc = 24;
*/
public com.google.ads.googleads.v10.common.ManualCpc.Builder getManualCpcBuilder() {
return getManualCpcFieldBuilder().getBuilder();
}
/**
*
* Standard Manual CPC bidding strategy.
* Manual click-based bidding where user pays per click.
*
*
* .google.ads.googleads.v10.common.ManualCpc manual_cpc = 24;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpcOrBuilder getManualCpcOrBuilder() {
if ((campaignBiddingStrategyCase_ == 24) && (manualCpcBuilder_ != null)) {
return manualCpcBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 24) {
return (com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance();
}
}
/**
*
* Standard Manual CPC bidding strategy.
* Manual click-based bidding where user pays per click.
*
*
* .google.ads.googleads.v10.common.ManualCpc manual_cpc = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpc, com.google.ads.googleads.v10.common.ManualCpc.Builder, com.google.ads.googleads.v10.common.ManualCpcOrBuilder>
getManualCpcFieldBuilder() {
if (manualCpcBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 24)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpc.getDefaultInstance();
}
manualCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpc, com.google.ads.googleads.v10.common.ManualCpc.Builder, com.google.ads.googleads.v10.common.ManualCpcOrBuilder>(
(com.google.ads.googleads.v10.common.ManualCpc) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 24;
onChanged();;
return manualCpcBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpm, com.google.ads.googleads.v10.common.ManualCpm.Builder, com.google.ads.googleads.v10.common.ManualCpmOrBuilder> manualCpmBuilder_;
/**
*
* Standard Manual CPM bidding strategy.
* Manual impression-based bidding where user pays per thousand
* impressions.
*
*
* .google.ads.googleads.v10.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.v10.common.ManualCpm manual_cpm = 25;
* @return The manualCpm.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpm getManualCpm() {
if (manualCpmBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 25) {
return (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 25) {
return manualCpmBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
}
}
/**
*
* Standard Manual CPM bidding strategy.
* Manual impression-based bidding where user pays per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.ManualCpm manual_cpm = 25;
*/
public Builder setManualCpm(com.google.ads.googleads.v10.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.v10.common.ManualCpm manual_cpm = 25;
*/
public Builder setManualCpm(
com.google.ads.googleads.v10.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.v10.common.ManualCpm manual_cpm = 25;
*/
public Builder mergeManualCpm(com.google.ads.googleads.v10.common.ManualCpm value) {
if (manualCpmBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 25 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpm.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.ManualCpm manual_cpm = 25;
*/
public com.google.ads.googleads.v10.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.v10.common.ManualCpm manual_cpm = 25;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpmOrBuilder getManualCpmOrBuilder() {
if ((campaignBiddingStrategyCase_ == 25) && (manualCpmBuilder_ != null)) {
return manualCpmBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 25) {
return (com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
}
}
/**
*
* Standard Manual CPM bidding strategy.
* Manual impression-based bidding where user pays per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.ManualCpm manual_cpm = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpm, com.google.ads.googleads.v10.common.ManualCpm.Builder, com.google.ads.googleads.v10.common.ManualCpmOrBuilder>
getManualCpmFieldBuilder() {
if (manualCpmBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 25)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpm.getDefaultInstance();
}
manualCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpm, com.google.ads.googleads.v10.common.ManualCpm.Builder, com.google.ads.googleads.v10.common.ManualCpmOrBuilder>(
(com.google.ads.googleads.v10.common.ManualCpm) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 25;
onChanged();;
return manualCpmBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpv, com.google.ads.googleads.v10.common.ManualCpv.Builder, com.google.ads.googleads.v10.common.ManualCpvOrBuilder> manualCpvBuilder_;
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the manualCpv field is set.
*/
@java.lang.Override
public boolean hasManualCpv() {
return campaignBiddingStrategyCase_ == 37;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The manualCpv.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpv getManualCpv() {
if (manualCpvBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 37) {
return (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 37) {
return manualCpvBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance();
}
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setManualCpv(com.google.ads.googleads.v10.common.ManualCpv value) {
if (manualCpvBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
campaignBiddingStrategy_ = value;
onChanged();
} else {
manualCpvBuilder_.setMessage(value);
}
campaignBiddingStrategyCase_ = 37;
return this;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setManualCpv(
com.google.ads.googleads.v10.common.ManualCpv.Builder builderForValue) {
if (manualCpvBuilder_ == null) {
campaignBiddingStrategy_ = builderForValue.build();
onChanged();
} else {
manualCpvBuilder_.setMessage(builderForValue.build());
}
campaignBiddingStrategyCase_ = 37;
return this;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeManualCpv(com.google.ads.googleads.v10.common.ManualCpv value) {
if (manualCpvBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 37 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpv.newBuilder((com.google.ads.googleads.v10.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;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
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;
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.common.ManualCpv.Builder getManualCpvBuilder() {
return getManualCpvFieldBuilder().getBuilder();
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ManualCpvOrBuilder getManualCpvOrBuilder() {
if ((campaignBiddingStrategyCase_ == 37) && (manualCpvBuilder_ != null)) {
return manualCpvBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 37) {
return (com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance();
}
}
/**
*
* Output only. A bidding strategy that pays a configurable amount per video view.
*
*
* .google.ads.googleads.v10.common.ManualCpv manual_cpv = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpv, com.google.ads.googleads.v10.common.ManualCpv.Builder, com.google.ads.googleads.v10.common.ManualCpvOrBuilder>
getManualCpvFieldBuilder() {
if (manualCpvBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 37)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.ManualCpv.getDefaultInstance();
}
manualCpvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ManualCpv, com.google.ads.googleads.v10.common.ManualCpv.Builder, com.google.ads.googleads.v10.common.ManualCpvOrBuilder>(
(com.google.ads.googleads.v10.common.ManualCpv) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 37;
onChanged();;
return manualCpvBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversions, com.google.ads.googleads.v10.common.MaximizeConversions.Builder, com.google.ads.googleads.v10.common.MaximizeConversionsOrBuilder> maximizeConversionsBuilder_;
/**
*
* Standard Maximize Conversions bidding strategy that automatically
* maximizes number of conversions while spending your budget.
*
*
* .google.ads.googleads.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
* @return The maximizeConversions.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversions getMaximizeConversions() {
if (maximizeConversionsBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 30) {
return (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 30) {
return maximizeConversionsBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance();
}
}
/**
*
* Standard Maximize Conversions bidding strategy that automatically
* maximizes number of conversions while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversions maximize_conversions = 30;
*/
public Builder setMaximizeConversions(com.google.ads.googleads.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
*/
public Builder setMaximizeConversions(
com.google.ads.googleads.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
*/
public Builder mergeMaximizeConversions(com.google.ads.googleads.v10.common.MaximizeConversions value) {
if (maximizeConversionsBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 30 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.MaximizeConversions.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
*/
public com.google.ads.googleads.v10.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.v10.common.MaximizeConversions maximize_conversions = 30;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionsOrBuilder getMaximizeConversionsOrBuilder() {
if ((campaignBiddingStrategyCase_ == 30) && (maximizeConversionsBuilder_ != null)) {
return maximizeConversionsBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 30) {
return (com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance();
}
}
/**
*
* Standard Maximize Conversions bidding strategy that automatically
* maximizes number of conversions while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversions maximize_conversions = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversions, com.google.ads.googleads.v10.common.MaximizeConversions.Builder, com.google.ads.googleads.v10.common.MaximizeConversionsOrBuilder>
getMaximizeConversionsFieldBuilder() {
if (maximizeConversionsBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 30)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.MaximizeConversions.getDefaultInstance();
}
maximizeConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversions, com.google.ads.googleads.v10.common.MaximizeConversions.Builder, com.google.ads.googleads.v10.common.MaximizeConversionsOrBuilder>(
(com.google.ads.googleads.v10.common.MaximizeConversions) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 30;
onChanged();;
return maximizeConversionsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversionValue, com.google.ads.googleads.v10.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v10.common.MaximizeConversionValueOrBuilder> maximizeConversionValueBuilder_;
/**
*
* Standard Maximize Conversion Value bidding strategy that automatically
* sets bids to maximize revenue while spending your budget.
*
*
* .google.ads.googleads.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
* @return The maximizeConversionValue.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionValue getMaximizeConversionValue() {
if (maximizeConversionValueBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 31) {
return (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 31) {
return maximizeConversionValueBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance();
}
}
/**
*
* Standard Maximize Conversion Value bidding strategy that automatically
* sets bids to maximize revenue while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
public Builder setMaximizeConversionValue(com.google.ads.googleads.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
public Builder setMaximizeConversionValue(
com.google.ads.googleads.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
public Builder mergeMaximizeConversionValue(com.google.ads.googleads.v10.common.MaximizeConversionValue value) {
if (maximizeConversionValueBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 31 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.MaximizeConversionValue.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
public com.google.ads.googleads.v10.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.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MaximizeConversionValueOrBuilder getMaximizeConversionValueOrBuilder() {
if ((campaignBiddingStrategyCase_ == 31) && (maximizeConversionValueBuilder_ != null)) {
return maximizeConversionValueBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 31) {
return (com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance();
}
}
/**
*
* Standard Maximize Conversion Value bidding strategy that automatically
* sets bids to maximize revenue while spending your budget.
*
*
* .google.ads.googleads.v10.common.MaximizeConversionValue maximize_conversion_value = 31;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversionValue, com.google.ads.googleads.v10.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v10.common.MaximizeConversionValueOrBuilder>
getMaximizeConversionValueFieldBuilder() {
if (maximizeConversionValueBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 31)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.MaximizeConversionValue.getDefaultInstance();
}
maximizeConversionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MaximizeConversionValue, com.google.ads.googleads.v10.common.MaximizeConversionValue.Builder, com.google.ads.googleads.v10.common.MaximizeConversionValueOrBuilder>(
(com.google.ads.googleads.v10.common.MaximizeConversionValue) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 31;
onChanged();;
return maximizeConversionValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpa, com.google.ads.googleads.v10.common.TargetCpa.Builder, com.google.ads.googleads.v10.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.v10.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.v10.common.TargetCpa target_cpa = 26;
* @return The targetCpa.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpa getTargetCpa() {
if (targetCpaBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 26) {
return (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetCpa.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 26) {
return targetCpaBuilder_.getMessage();
}
return com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
public Builder setTargetCpa(com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
public Builder setTargetCpa(
com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
public Builder mergeTargetCpa(com.google.ads.googleads.v10.common.TargetCpa value) {
if (targetCpaBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 26 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.TargetCpa.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetCpa.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
public com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpaOrBuilder getTargetCpaOrBuilder() {
if ((campaignBiddingStrategyCase_ == 26) && (targetCpaBuilder_ != null)) {
return targetCpaBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 26) {
return (com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetCpa target_cpa = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpa, com.google.ads.googleads.v10.common.TargetCpa.Builder, com.google.ads.googleads.v10.common.TargetCpaOrBuilder>
getTargetCpaFieldBuilder() {
if (targetCpaBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 26)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetCpa.getDefaultInstance();
}
targetCpaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpa, com.google.ads.googleads.v10.common.TargetCpa.Builder, com.google.ads.googleads.v10.common.TargetCpaOrBuilder>(
(com.google.ads.googleads.v10.common.TargetCpa) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 26;
onChanged();;
return targetCpaBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetImpressionShare, com.google.ads.googleads.v10.common.TargetImpressionShare.Builder, com.google.ads.googleads.v10.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.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
* @return The targetImpressionShare.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetImpressionShare getTargetImpressionShare() {
if (targetImpressionShareBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 48) {
return (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetImpressionShare.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 48) {
return targetImpressionShareBuilder_.getMessage();
}
return com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
public Builder setTargetImpressionShare(com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
public Builder setTargetImpressionShare(
com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
public Builder mergeTargetImpressionShare(com.google.ads.googleads.v10.common.TargetImpressionShare value) {
if (targetImpressionShareBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 48 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.TargetImpressionShare.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetImpressionShare.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
public com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetImpressionShareOrBuilder getTargetImpressionShareOrBuilder() {
if ((campaignBiddingStrategyCase_ == 48) && (targetImpressionShareBuilder_ != null)) {
return targetImpressionShareBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 48) {
return (com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetImpressionShare target_impression_share = 48;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetImpressionShare, com.google.ads.googleads.v10.common.TargetImpressionShare.Builder, com.google.ads.googleads.v10.common.TargetImpressionShareOrBuilder>
getTargetImpressionShareFieldBuilder() {
if (targetImpressionShareBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 48)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetImpressionShare.getDefaultInstance();
}
targetImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetImpressionShare, com.google.ads.googleads.v10.common.TargetImpressionShare.Builder, com.google.ads.googleads.v10.common.TargetImpressionShareOrBuilder>(
(com.google.ads.googleads.v10.common.TargetImpressionShare) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 48;
onChanged();;
return targetImpressionShareBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetRoas, com.google.ads.googleads.v10.common.TargetRoas.Builder, com.google.ads.googleads.v10.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.v10.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.v10.common.TargetRoas target_roas = 29;
* @return The targetRoas.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetRoas getTargetRoas() {
if (targetRoasBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 29) {
return (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetRoas.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 29) {
return targetRoasBuilder_.getMessage();
}
return com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
public Builder setTargetRoas(com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
public Builder setTargetRoas(
com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
public Builder mergeTargetRoas(com.google.ads.googleads.v10.common.TargetRoas value) {
if (targetRoasBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 29 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.TargetRoas.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetRoas.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.TargetRoas target_roas = 29;
*/
public com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetRoasOrBuilder getTargetRoasOrBuilder() {
if ((campaignBiddingStrategyCase_ == 29) && (targetRoasBuilder_ != null)) {
return targetRoasBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 29) {
return (com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetRoas target_roas = 29;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetRoas, com.google.ads.googleads.v10.common.TargetRoas.Builder, com.google.ads.googleads.v10.common.TargetRoasOrBuilder>
getTargetRoasFieldBuilder() {
if (targetRoasBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 29)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetRoas.getDefaultInstance();
}
targetRoasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetRoas, com.google.ads.googleads.v10.common.TargetRoas.Builder, com.google.ads.googleads.v10.common.TargetRoasOrBuilder>(
(com.google.ads.googleads.v10.common.TargetRoas) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 29;
onChanged();;
return targetRoasBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetSpend, com.google.ads.googleads.v10.common.TargetSpend.Builder, com.google.ads.googleads.v10.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.v10.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.v10.common.TargetSpend target_spend = 27;
* @return The targetSpend.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetSpend getTargetSpend() {
if (targetSpendBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 27) {
return (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetSpend.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 27) {
return targetSpendBuilder_.getMessage();
}
return com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
public Builder setTargetSpend(com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
public Builder setTargetSpend(
com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
public Builder mergeTargetSpend(com.google.ads.googleads.v10.common.TargetSpend value) {
if (targetSpendBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 27 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.TargetSpend.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetSpend.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.TargetSpend target_spend = 27;
*/
public com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetSpendOrBuilder getTargetSpendOrBuilder() {
if ((campaignBiddingStrategyCase_ == 27) && (targetSpendBuilder_ != null)) {
return targetSpendBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 27) {
return (com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.TargetSpend target_spend = 27;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetSpend, com.google.ads.googleads.v10.common.TargetSpend.Builder, com.google.ads.googleads.v10.common.TargetSpendOrBuilder>
getTargetSpendFieldBuilder() {
if (targetSpendBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 27)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetSpend.getDefaultInstance();
}
targetSpendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetSpend, com.google.ads.googleads.v10.common.TargetSpend.Builder, com.google.ads.googleads.v10.common.TargetSpendOrBuilder>(
(com.google.ads.googleads.v10.common.TargetSpend) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 27;
onChanged();;
return targetSpendBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PercentCpc, com.google.ads.googleads.v10.common.PercentCpc.Builder, com.google.ads.googleads.v10.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.v10.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.v10.common.PercentCpc percent_cpc = 34;
* @return The percentCpc.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PercentCpc getPercentCpc() {
if (percentCpcBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 34) {
return (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.PercentCpc.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 34) {
return percentCpcBuilder_.getMessage();
}
return com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
public Builder setPercentCpc(com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
public Builder setPercentCpc(
com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
public Builder mergePercentCpc(com.google.ads.googleads.v10.common.PercentCpc value) {
if (percentCpcBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 34 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.PercentCpc.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.PercentCpc.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
public com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PercentCpcOrBuilder getPercentCpcOrBuilder() {
if ((campaignBiddingStrategyCase_ == 34) && (percentCpcBuilder_ != null)) {
return percentCpcBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 34) {
return (com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.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.v10.common.PercentCpc percent_cpc = 34;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PercentCpc, com.google.ads.googleads.v10.common.PercentCpc.Builder, com.google.ads.googleads.v10.common.PercentCpcOrBuilder>
getPercentCpcFieldBuilder() {
if (percentCpcBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 34)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.PercentCpc.getDefaultInstance();
}
percentCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PercentCpc, com.google.ads.googleads.v10.common.PercentCpc.Builder, com.google.ads.googleads.v10.common.PercentCpcOrBuilder>(
(com.google.ads.googleads.v10.common.PercentCpc) campaignBiddingStrategy_,
getParentForChildren(),
isClean());
campaignBiddingStrategy_ = null;
}
campaignBiddingStrategyCase_ = 34;
onChanged();;
return percentCpcBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpm, com.google.ads.googleads.v10.common.TargetCpm.Builder, com.google.ads.googleads.v10.common.TargetCpmOrBuilder> targetCpmBuilder_;
/**
*
* A bidding strategy that automatically optimizes cost per thousand
* impressions.
*
*
* .google.ads.googleads.v10.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.v10.common.TargetCpm target_cpm = 41;
* @return The targetCpm.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpm getTargetCpm() {
if (targetCpmBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 41) {
return (com.google.ads.googleads.v10.common.TargetCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance();
} else {
if (campaignBiddingStrategyCase_ == 41) {
return targetCpmBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance();
}
}
/**
*
* A bidding strategy that automatically optimizes cost per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.TargetCpm target_cpm = 41;
*/
public Builder setTargetCpm(com.google.ads.googleads.v10.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.v10.common.TargetCpm target_cpm = 41;
*/
public Builder setTargetCpm(
com.google.ads.googleads.v10.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.v10.common.TargetCpm target_cpm = 41;
*/
public Builder mergeTargetCpm(com.google.ads.googleads.v10.common.TargetCpm value) {
if (targetCpmBuilder_ == null) {
if (campaignBiddingStrategyCase_ == 41 &&
campaignBiddingStrategy_ != com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance()) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetCpm.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.common.TargetCpm target_cpm = 41;
*/
public com.google.ads.googleads.v10.common.TargetCpm.Builder getTargetCpmBuilder() {
return getTargetCpmFieldBuilder().getBuilder();
}
/**
*
* A bidding strategy that automatically optimizes cost per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.TargetCpm target_cpm = 41;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TargetCpmOrBuilder getTargetCpmOrBuilder() {
if ((campaignBiddingStrategyCase_ == 41) && (targetCpmBuilder_ != null)) {
return targetCpmBuilder_.getMessageOrBuilder();
} else {
if (campaignBiddingStrategyCase_ == 41) {
return (com.google.ads.googleads.v10.common.TargetCpm) campaignBiddingStrategy_;
}
return com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance();
}
}
/**
*
* A bidding strategy that automatically optimizes cost per thousand
* impressions.
*
*
* .google.ads.googleads.v10.common.TargetCpm target_cpm = 41;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpm, com.google.ads.googleads.v10.common.TargetCpm.Builder, com.google.ads.googleads.v10.common.TargetCpmOrBuilder>
getTargetCpmFieldBuilder() {
if (targetCpmBuilder_ == null) {
if (!(campaignBiddingStrategyCase_ == 41)) {
campaignBiddingStrategy_ = com.google.ads.googleads.v10.common.TargetCpm.getDefaultInstance();
}
targetCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TargetCpm, com.google.ads.googleads.v10.common.TargetCpm.Builder, com.google.ads.googleads.v10.common.TargetCpmOrBuilder>(
(com.google.ads.googleads.v10.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.v10.resources.Campaign)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Campaign)
private static final com.google.ads.googleads.v10.resources.Campaign DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Campaign();
}
public static com.google.ads.googleads.v10.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.v10.resources.Campaign getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy