
com.google.ads.googleads.v18.resources.Customer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v18 Show documentation
Show all versions of google-ads-stubs-v18 Show documentation
Stubs for GAAPI version google-ads-stubs-v18
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v18/resources/customer.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.resources;
/**
*
* A customer.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.Customer}
*/
public final class Customer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.Customer)
CustomerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Customer.newBuilder() to construct.
private Customer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Customer() {
resourceName_ = "";
descriptiveName_ = "";
currencyCode_ = "";
timeZone_ = "";
trackingUrlTemplate_ = "";
finalUrlSuffix_ = "";
payPerConversionEligibilityFailureReasons_ = java.util.Collections.emptyList();
status_ = 0;
locationAssetAutoMigrationDoneDateTime_ = "";
imageAssetAutoMigrationDoneDateTime_ = "";
videoBrandSafetySuitability_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Customer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.CustomerProto.internal_static_google_ads_googleads_v18_resources_Customer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.CustomerProto.internal_static_google_ads_googleads_v18_resources_Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.Customer.class, com.google.ads.googleads.v18.resources.Customer.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the customer.
* Customer resource names have the form:
*
* `customers/{customer_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 customer.
* Customer resource names have the form:
*
* `customers/{customer_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 = 19;
private long id_ = 0L;
/**
*
* Output only. The ID of the customer.
*
*
* optional int64 id = 19 [(.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 customer.
*
*
* optional int64 id = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int DESCRIPTIVE_NAME_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private volatile java.lang.Object descriptiveName_ = "";
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return Whether the descriptiveName field is set.
*/
@java.lang.Override
public boolean hasDescriptiveName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return The descriptiveName.
*/
@java.lang.Override
public java.lang.String getDescriptiveName() {
java.lang.Object ref = descriptiveName_;
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();
descriptiveName_ = s;
return s;
}
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return The bytes for descriptiveName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptiveNameBytes() {
java.lang.Object ref = descriptiveName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
descriptiveName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENCY_CODE_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private volatile java.lang.Object currencyCode_ = "";
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the currencyCode field is set.
*/
@java.lang.Override
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The currencyCode.
*/
@java.lang.Override
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
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();
currencyCode_ = s;
return s;
}
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for currencyCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIME_ZONE_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private volatile java.lang.Object timeZone_ = "";
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the timeZone field is set.
*/
@java.lang.Override
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The timeZone.
*/
@java.lang.Override
public java.lang.String getTimeZone() {
java.lang.Object ref = timeZone_;
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();
timeZone_ = s;
return s;
}
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for timeZone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTimeZoneBytes() {
java.lang.Object ref = timeZone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object trackingUrlTemplate_ = "";
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @return Whether the trackingUrlTemplate field is set.
*/
@java.lang.Override
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @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 out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @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 FINAL_URL_SUFFIX_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object finalUrlSuffix_ = "";
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @return Whether the finalUrlSuffix field is set.
*/
@java.lang.Override
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @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;
}
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @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 AUTO_TAGGING_ENABLED_FIELD_NUMBER = 25;
private boolean autoTaggingEnabled_ = false;
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @return Whether the autoTaggingEnabled field is set.
*/
@java.lang.Override
public boolean hasAutoTaggingEnabled() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @return The autoTaggingEnabled.
*/
@java.lang.Override
public boolean getAutoTaggingEnabled() {
return autoTaggingEnabled_;
}
public static final int HAS_PARTNERS_BADGE_FIELD_NUMBER = 26;
private boolean hasPartnersBadge_ = false;
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the hasPartnersBadge field is set.
*/
@java.lang.Override
public boolean hasHasPartnersBadge() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The hasPartnersBadge.
*/
@java.lang.Override
public boolean getHasPartnersBadge() {
return hasPartnersBadge_;
}
public static final int MANAGER_FIELD_NUMBER = 27;
private boolean manager_ = false;
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the manager field is set.
*/
@java.lang.Override
public boolean hasManager() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The manager.
*/
@java.lang.Override
public boolean getManager() {
return manager_;
}
public static final int TEST_ACCOUNT_FIELD_NUMBER = 28;
private boolean testAccount_ = false;
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the testAccount field is set.
*/
@java.lang.Override
public boolean hasTestAccount() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The testAccount.
*/
@java.lang.Override
public boolean getTestAccount() {
return testAccount_;
}
public static final int CALL_REPORTING_SETTING_FIELD_NUMBER = 10;
private com.google.ads.googleads.v18.resources.CallReportingSetting callReportingSetting_;
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
* @return Whether the callReportingSetting field is set.
*/
@java.lang.Override
public boolean hasCallReportingSetting() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
* @return The callReportingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.CallReportingSetting getCallReportingSetting() {
return callReportingSetting_ == null ? com.google.ads.googleads.v18.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.CallReportingSettingOrBuilder getCallReportingSettingOrBuilder() {
return callReportingSetting_ == null ? com.google.ads.googleads.v18.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
}
public static final int CONVERSION_TRACKING_SETTING_FIELD_NUMBER = 14;
private com.google.ads.googleads.v18.resources.ConversionTrackingSetting conversionTrackingSetting_;
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionTrackingSetting field is set.
*/
@java.lang.Override
public boolean hasConversionTrackingSetting() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionTrackingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionTrackingSetting getConversionTrackingSetting() {
return conversionTrackingSetting_ == null ? com.google.ads.googleads.v18.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() {
return conversionTrackingSetting_ == null ? com.google.ads.googleads.v18.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
}
public static final int REMARKETING_SETTING_FIELD_NUMBER = 15;
private com.google.ads.googleads.v18.resources.RemarketingSetting remarketingSetting_;
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the remarketingSetting field is set.
*/
@java.lang.Override
public boolean hasRemarketingSetting() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The remarketingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.RemarketingSetting getRemarketingSetting() {
return remarketingSetting_ == null ? com.google.ads.googleads.v18.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.RemarketingSettingOrBuilder getRemarketingSettingOrBuilder() {
return remarketingSetting_ == null ? com.google.ads.googleads.v18.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
}
public static final int PAY_PER_CONVERSION_ELIGIBILITY_FAILURE_REASONS_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private java.util.List payPerConversionEligibilityFailureReasons_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason> payPerConversionEligibilityFailureReasons_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason>() {
public com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason convert(java.lang.Integer from) {
com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason result = com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason.forNumber(from);
return result == null ? com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason.UNRECOGNIZED : result;
}
};
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the payPerConversionEligibilityFailureReasons.
*/
@java.lang.Override
public java.util.List getPayPerConversionEligibilityFailureReasonsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason>(payPerConversionEligibilityFailureReasons_, payPerConversionEligibilityFailureReasons_converter_);
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The count of payPerConversionEligibilityFailureReasons.
*/
@java.lang.Override
public int getPayPerConversionEligibilityFailureReasonsCount() {
return payPerConversionEligibilityFailureReasons_.size();
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the element to return.
* @return The payPerConversionEligibilityFailureReasons at the given index.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason getPayPerConversionEligibilityFailureReasons(int index) {
return payPerConversionEligibilityFailureReasons_converter_.convert(payPerConversionEligibilityFailureReasons_.get(index));
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the enum numeric values on the wire for payPerConversionEligibilityFailureReasons.
*/
@java.lang.Override
public java.util.List
getPayPerConversionEligibilityFailureReasonsValueList() {
return payPerConversionEligibilityFailureReasons_;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of payPerConversionEligibilityFailureReasons at the given index.
*/
@java.lang.Override
public int getPayPerConversionEligibilityFailureReasonsValue(int index) {
return payPerConversionEligibilityFailureReasons_.get(index);
}
private int payPerConversionEligibilityFailureReasonsMemoizedSerializedSize;
public static final int OPTIMIZATION_SCORE_FIELD_NUMBER = 29;
private double optimizationScore_ = 0D;
/**
*
* Output only. Optimization score of the customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.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 customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The optimizationScore.
*/
@java.lang.Override
public double getOptimizationScore() {
return optimizationScore_;
}
public static final int OPTIMIZATION_SCORE_WEIGHT_FIELD_NUMBER = 30;
private double optimizationScoreWeight_ = 0D;
/**
*
* Output only. Optimization score weight of the customer.
*
* Optimization score weight can be used to compare/aggregate optimization
* scores across multiple non-manager customers. The aggregate optimization
* score of a manager is computed as the sum over all of their customers of
* `Customer.optimization_score * Customer.optimization_score_weight`. This
* field is 0 for all manager customers, and for unscored non-manager
* customers.
*
* This field is read-only.
*
*
* double optimization_score_weight = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The optimizationScoreWeight.
*/
@java.lang.Override
public double getOptimizationScoreWeight() {
return optimizationScoreWeight_;
}
public static final int STATUS_FIELD_NUMBER = 36;
private int status_ = 0;
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus getStatus() {
com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus result = com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.UNRECOGNIZED : result;
}
public static final int LOCATION_ASSET_AUTO_MIGRATION_DONE_FIELD_NUMBER = 38;
private boolean locationAssetAutoMigrationDone_ = false;
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAssetAutoMigrationDone field is set.
*/
@java.lang.Override
public boolean hasLocationAssetAutoMigrationDone() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAssetAutoMigrationDone.
*/
@java.lang.Override
public boolean getLocationAssetAutoMigrationDone() {
return locationAssetAutoMigrationDone_;
}
public static final int IMAGE_ASSET_AUTO_MIGRATION_DONE_FIELD_NUMBER = 39;
private boolean imageAssetAutoMigrationDone_ = false;
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAssetAutoMigrationDone field is set.
*/
@java.lang.Override
public boolean hasImageAssetAutoMigrationDone() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAssetAutoMigrationDone.
*/
@java.lang.Override
public boolean getImageAssetAutoMigrationDone() {
return imageAssetAutoMigrationDone_;
}
public static final int LOCATION_ASSET_AUTO_MIGRATION_DONE_DATE_TIME_FIELD_NUMBER = 40;
@SuppressWarnings("serial")
private volatile java.lang.Object locationAssetAutoMigrationDoneDateTime_ = "";
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAssetAutoMigrationDoneDateTime field is set.
*/
@java.lang.Override
public boolean hasLocationAssetAutoMigrationDoneDateTime() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAssetAutoMigrationDoneDateTime.
*/
@java.lang.Override
public java.lang.String getLocationAssetAutoMigrationDoneDateTime() {
java.lang.Object ref = locationAssetAutoMigrationDoneDateTime_;
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();
locationAssetAutoMigrationDoneDateTime_ = s;
return s;
}
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for locationAssetAutoMigrationDoneDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocationAssetAutoMigrationDoneDateTimeBytes() {
java.lang.Object ref = locationAssetAutoMigrationDoneDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locationAssetAutoMigrationDoneDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_ASSET_AUTO_MIGRATION_DONE_DATE_TIME_FIELD_NUMBER = 41;
@SuppressWarnings("serial")
private volatile java.lang.Object imageAssetAutoMigrationDoneDateTime_ = "";
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAssetAutoMigrationDoneDateTime field is set.
*/
@java.lang.Override
public boolean hasImageAssetAutoMigrationDoneDateTime() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAssetAutoMigrationDoneDateTime.
*/
@java.lang.Override
public java.lang.String getImageAssetAutoMigrationDoneDateTime() {
java.lang.Object ref = imageAssetAutoMigrationDoneDateTime_;
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();
imageAssetAutoMigrationDoneDateTime_ = s;
return s;
}
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for imageAssetAutoMigrationDoneDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageAssetAutoMigrationDoneDateTimeBytes() {
java.lang.Object ref = imageAssetAutoMigrationDoneDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageAssetAutoMigrationDoneDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CUSTOMER_AGREEMENT_SETTING_FIELD_NUMBER = 44;
private com.google.ads.googleads.v18.resources.CustomerAgreementSetting customerAgreementSetting_;
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the customerAgreementSetting field is set.
*/
@java.lang.Override
public boolean hasCustomerAgreementSetting() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The customerAgreementSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.CustomerAgreementSetting getCustomerAgreementSetting() {
return customerAgreementSetting_ == null ? com.google.ads.googleads.v18.resources.CustomerAgreementSetting.getDefaultInstance() : customerAgreementSetting_;
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.CustomerAgreementSettingOrBuilder getCustomerAgreementSettingOrBuilder() {
return customerAgreementSetting_ == null ? com.google.ads.googleads.v18.resources.CustomerAgreementSetting.getDefaultInstance() : customerAgreementSetting_;
}
public static final int LOCAL_SERVICES_SETTINGS_FIELD_NUMBER = 45;
private com.google.ads.googleads.v18.resources.LocalServicesSettings localServicesSettings_;
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the localServicesSettings field is set.
*/
@java.lang.Override
public boolean hasLocalServicesSettings() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The localServicesSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.LocalServicesSettings getLocalServicesSettings() {
return localServicesSettings_ == null ? com.google.ads.googleads.v18.resources.LocalServicesSettings.getDefaultInstance() : localServicesSettings_;
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.LocalServicesSettingsOrBuilder getLocalServicesSettingsOrBuilder() {
return localServicesSettings_ == null ? com.google.ads.googleads.v18.resources.LocalServicesSettings.getDefaultInstance() : localServicesSettings_;
}
public static final int VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER = 46;
private int videoBrandSafetySuitability_ = 0;
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for videoBrandSafetySuitability.
*/
@java.lang.Override public int getVideoBrandSafetySuitabilityValue() {
return videoBrandSafetySuitability_;
}
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The videoBrandSafetySuitability.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() {
com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.forNumber(videoBrandSafetySuitability_);
return result == null ? com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(10, getCallReportingSetting());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(14, getConversionTrackingSetting());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(15, getRemarketingSetting());
}
if (getPayPerConversionEligibilityFailureReasonsList().size() > 0) {
output.writeUInt32NoTag(130);
output.writeUInt32NoTag(payPerConversionEligibilityFailureReasonsMemoizedSerializedSize);
}
for (int i = 0; i < payPerConversionEligibilityFailureReasons_.size(); i++) {
output.writeEnumNoTag(payPerConversionEligibilityFailureReasons_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(19, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, descriptiveName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, currencyCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, timeZone_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, finalUrlSuffix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(25, autoTaggingEnabled_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(26, hasPartnersBadge_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(27, manager_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(28, testAccount_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeDouble(29, optimizationScore_);
}
if (java.lang.Double.doubleToRawLongBits(optimizationScoreWeight_) != 0) {
output.writeDouble(30, optimizationScoreWeight_);
}
if (status_ != com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(36, status_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBool(38, locationAssetAutoMigrationDone_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeBool(39, imageAssetAutoMigrationDone_);
}
if (((bitField0_ & 0x00010000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 40, locationAssetAutoMigrationDoneDateTime_);
}
if (((bitField0_ & 0x00020000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 41, imageAssetAutoMigrationDoneDateTime_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeMessage(44, getCustomerAgreementSetting());
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeMessage(45, getLocalServicesSettings());
}
if (videoBrandSafetySuitability_ != com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) {
output.writeEnum(46, videoBrandSafetySuitability_);
}
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 (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCallReportingSetting());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getConversionTrackingSetting());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getRemarketingSetting());
}
{
int dataSize = 0;
for (int i = 0; i < payPerConversionEligibilityFailureReasons_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(payPerConversionEligibilityFailureReasons_.get(i));
}
size += dataSize;
if (!getPayPerConversionEligibilityFailureReasonsList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}payPerConversionEligibilityFailureReasonsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, descriptiveName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, currencyCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, timeZone_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, finalUrlSuffix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, autoTaggingEnabled_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(26, hasPartnersBadge_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, manager_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(28, testAccount_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(29, optimizationScore_);
}
if (java.lang.Double.doubleToRawLongBits(optimizationScoreWeight_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(30, optimizationScoreWeight_);
}
if (status_ != com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(36, status_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(38, locationAssetAutoMigrationDone_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(39, imageAssetAutoMigrationDone_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, locationAssetAutoMigrationDoneDateTime_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, imageAssetAutoMigrationDoneDateTime_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(44, getCustomerAgreementSetting());
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, getLocalServicesSettings());
}
if (videoBrandSafetySuitability_ != com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(46, videoBrandSafetySuitability_);
}
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.v18.resources.Customer)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.Customer other = (com.google.ads.googleads.v18.resources.Customer) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasDescriptiveName() != other.hasDescriptiveName()) return false;
if (hasDescriptiveName()) {
if (!getDescriptiveName()
.equals(other.getDescriptiveName())) return false;
}
if (hasCurrencyCode() != other.hasCurrencyCode()) return false;
if (hasCurrencyCode()) {
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) return false;
}
if (hasTimeZone() != other.hasTimeZone()) return false;
if (hasTimeZone()) {
if (!getTimeZone()
.equals(other.getTimeZone())) return false;
}
if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false;
if (hasTrackingUrlTemplate()) {
if (!getTrackingUrlTemplate()
.equals(other.getTrackingUrlTemplate())) return false;
}
if (hasFinalUrlSuffix() != other.hasFinalUrlSuffix()) return false;
if (hasFinalUrlSuffix()) {
if (!getFinalUrlSuffix()
.equals(other.getFinalUrlSuffix())) return false;
}
if (hasAutoTaggingEnabled() != other.hasAutoTaggingEnabled()) return false;
if (hasAutoTaggingEnabled()) {
if (getAutoTaggingEnabled()
!= other.getAutoTaggingEnabled()) return false;
}
if (hasHasPartnersBadge() != other.hasHasPartnersBadge()) return false;
if (hasHasPartnersBadge()) {
if (getHasPartnersBadge()
!= other.getHasPartnersBadge()) return false;
}
if (hasManager() != other.hasManager()) return false;
if (hasManager()) {
if (getManager()
!= other.getManager()) return false;
}
if (hasTestAccount() != other.hasTestAccount()) return false;
if (hasTestAccount()) {
if (getTestAccount()
!= other.getTestAccount()) return false;
}
if (hasCallReportingSetting() != other.hasCallReportingSetting()) return false;
if (hasCallReportingSetting()) {
if (!getCallReportingSetting()
.equals(other.getCallReportingSetting())) return false;
}
if (hasConversionTrackingSetting() != other.hasConversionTrackingSetting()) return false;
if (hasConversionTrackingSetting()) {
if (!getConversionTrackingSetting()
.equals(other.getConversionTrackingSetting())) return false;
}
if (hasRemarketingSetting() != other.hasRemarketingSetting()) return false;
if (hasRemarketingSetting()) {
if (!getRemarketingSetting()
.equals(other.getRemarketingSetting())) return false;
}
if (!payPerConversionEligibilityFailureReasons_.equals(other.payPerConversionEligibilityFailureReasons_)) 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 (java.lang.Double.doubleToLongBits(getOptimizationScoreWeight())
!= java.lang.Double.doubleToLongBits(
other.getOptimizationScoreWeight())) return false;
if (status_ != other.status_) return false;
if (hasLocationAssetAutoMigrationDone() != other.hasLocationAssetAutoMigrationDone()) return false;
if (hasLocationAssetAutoMigrationDone()) {
if (getLocationAssetAutoMigrationDone()
!= other.getLocationAssetAutoMigrationDone()) return false;
}
if (hasImageAssetAutoMigrationDone() != other.hasImageAssetAutoMigrationDone()) return false;
if (hasImageAssetAutoMigrationDone()) {
if (getImageAssetAutoMigrationDone()
!= other.getImageAssetAutoMigrationDone()) return false;
}
if (hasLocationAssetAutoMigrationDoneDateTime() != other.hasLocationAssetAutoMigrationDoneDateTime()) return false;
if (hasLocationAssetAutoMigrationDoneDateTime()) {
if (!getLocationAssetAutoMigrationDoneDateTime()
.equals(other.getLocationAssetAutoMigrationDoneDateTime())) return false;
}
if (hasImageAssetAutoMigrationDoneDateTime() != other.hasImageAssetAutoMigrationDoneDateTime()) return false;
if (hasImageAssetAutoMigrationDoneDateTime()) {
if (!getImageAssetAutoMigrationDoneDateTime()
.equals(other.getImageAssetAutoMigrationDoneDateTime())) return false;
}
if (hasCustomerAgreementSetting() != other.hasCustomerAgreementSetting()) return false;
if (hasCustomerAgreementSetting()) {
if (!getCustomerAgreementSetting()
.equals(other.getCustomerAgreementSetting())) return false;
}
if (hasLocalServicesSettings() != other.hasLocalServicesSettings()) return false;
if (hasLocalServicesSettings()) {
if (!getLocalServicesSettings()
.equals(other.getLocalServicesSettings())) return false;
}
if (videoBrandSafetySuitability_ != other.videoBrandSafetySuitability_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasDescriptiveName()) {
hash = (37 * hash) + DESCRIPTIVE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDescriptiveName().hashCode();
}
if (hasCurrencyCode()) {
hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
}
if (hasTimeZone()) {
hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
hash = (53 * hash) + getTimeZone().hashCode();
}
if (hasTrackingUrlTemplate()) {
hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrlTemplate().hashCode();
}
if (hasFinalUrlSuffix()) {
hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlSuffix().hashCode();
}
if (hasAutoTaggingEnabled()) {
hash = (37 * hash) + AUTO_TAGGING_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoTaggingEnabled());
}
if (hasHasPartnersBadge()) {
hash = (37 * hash) + HAS_PARTNERS_BADGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasPartnersBadge());
}
if (hasManager()) {
hash = (37 * hash) + MANAGER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getManager());
}
if (hasTestAccount()) {
hash = (37 * hash) + TEST_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTestAccount());
}
if (hasCallReportingSetting()) {
hash = (37 * hash) + CALL_REPORTING_SETTING_FIELD_NUMBER;
hash = (53 * hash) + getCallReportingSetting().hashCode();
}
if (hasConversionTrackingSetting()) {
hash = (37 * hash) + CONVERSION_TRACKING_SETTING_FIELD_NUMBER;
hash = (53 * hash) + getConversionTrackingSetting().hashCode();
}
if (hasRemarketingSetting()) {
hash = (37 * hash) + REMARKETING_SETTING_FIELD_NUMBER;
hash = (53 * hash) + getRemarketingSetting().hashCode();
}
if (getPayPerConversionEligibilityFailureReasonsCount() > 0) {
hash = (37 * hash) + PAY_PER_CONVERSION_ELIGIBILITY_FAILURE_REASONS_FIELD_NUMBER;
hash = (53 * hash) + payPerConversionEligibilityFailureReasons_.hashCode();
}
if (hasOptimizationScore()) {
hash = (37 * hash) + OPTIMIZATION_SCORE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOptimizationScore()));
}
hash = (37 * hash) + OPTIMIZATION_SCORE_WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOptimizationScoreWeight()));
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasLocationAssetAutoMigrationDone()) {
hash = (37 * hash) + LOCATION_ASSET_AUTO_MIGRATION_DONE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLocationAssetAutoMigrationDone());
}
if (hasImageAssetAutoMigrationDone()) {
hash = (37 * hash) + IMAGE_ASSET_AUTO_MIGRATION_DONE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getImageAssetAutoMigrationDone());
}
if (hasLocationAssetAutoMigrationDoneDateTime()) {
hash = (37 * hash) + LOCATION_ASSET_AUTO_MIGRATION_DONE_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLocationAssetAutoMigrationDoneDateTime().hashCode();
}
if (hasImageAssetAutoMigrationDoneDateTime()) {
hash = (37 * hash) + IMAGE_ASSET_AUTO_MIGRATION_DONE_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getImageAssetAutoMigrationDoneDateTime().hashCode();
}
if (hasCustomerAgreementSetting()) {
hash = (37 * hash) + CUSTOMER_AGREEMENT_SETTING_FIELD_NUMBER;
hash = (53 * hash) + getCustomerAgreementSetting().hashCode();
}
if (hasLocalServicesSettings()) {
hash = (37 * hash) + LOCAL_SERVICES_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getLocalServicesSettings().hashCode();
}
hash = (37 * hash) + VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER;
hash = (53 * hash) + videoBrandSafetySuitability_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.Customer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.Customer 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.v18.resources.Customer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.Customer 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.v18.resources.Customer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.Customer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.Customer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.Customer 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.v18.resources.Customer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.Customer 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.v18.resources.Customer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.Customer 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.v18.resources.Customer 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 customer.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.Customer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.Customer)
com.google.ads.googleads.v18.resources.CustomerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.CustomerProto.internal_static_google_ads_googleads_v18_resources_Customer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.CustomerProto.internal_static_google_ads_googleads_v18_resources_Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.Customer.class, com.google.ads.googleads.v18.resources.Customer.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.Customer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCallReportingSettingFieldBuilder();
getConversionTrackingSettingFieldBuilder();
getRemarketingSettingFieldBuilder();
getCustomerAgreementSettingFieldBuilder();
getLocalServicesSettingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
descriptiveName_ = "";
currencyCode_ = "";
timeZone_ = "";
trackingUrlTemplate_ = "";
finalUrlSuffix_ = "";
autoTaggingEnabled_ = false;
hasPartnersBadge_ = false;
manager_ = false;
testAccount_ = false;
callReportingSetting_ = null;
if (callReportingSettingBuilder_ != null) {
callReportingSettingBuilder_.dispose();
callReportingSettingBuilder_ = null;
}
conversionTrackingSetting_ = null;
if (conversionTrackingSettingBuilder_ != null) {
conversionTrackingSettingBuilder_.dispose();
conversionTrackingSettingBuilder_ = null;
}
remarketingSetting_ = null;
if (remarketingSettingBuilder_ != null) {
remarketingSettingBuilder_.dispose();
remarketingSettingBuilder_ = null;
}
payPerConversionEligibilityFailureReasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
optimizationScore_ = 0D;
optimizationScoreWeight_ = 0D;
status_ = 0;
locationAssetAutoMigrationDone_ = false;
imageAssetAutoMigrationDone_ = false;
locationAssetAutoMigrationDoneDateTime_ = "";
imageAssetAutoMigrationDoneDateTime_ = "";
customerAgreementSetting_ = null;
if (customerAgreementSettingBuilder_ != null) {
customerAgreementSettingBuilder_.dispose();
customerAgreementSettingBuilder_ = null;
}
localServicesSettings_ = null;
if (localServicesSettingsBuilder_ != null) {
localServicesSettingsBuilder_.dispose();
localServicesSettingsBuilder_ = null;
}
videoBrandSafetySuitability_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.CustomerProto.internal_static_google_ads_googleads_v18_resources_Customer_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.Customer getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.Customer.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.Customer build() {
com.google.ads.googleads.v18.resources.Customer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.Customer buildPartial() {
com.google.ads.googleads.v18.resources.Customer result = new com.google.ads.googleads.v18.resources.Customer(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.resources.Customer result) {
if (((bitField0_ & 0x00004000) != 0)) {
payPerConversionEligibilityFailureReasons_ = java.util.Collections.unmodifiableList(payPerConversionEligibilityFailureReasons_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.payPerConversionEligibilityFailureReasons_ = payPerConversionEligibilityFailureReasons_;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.Customer result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.descriptiveName_ = descriptiveName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.currencyCode_ = currencyCode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.timeZone_ = timeZone_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.trackingUrlTemplate_ = trackingUrlTemplate_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.finalUrlSuffix_ = finalUrlSuffix_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.autoTaggingEnabled_ = autoTaggingEnabled_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.hasPartnersBadge_ = hasPartnersBadge_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.manager_ = manager_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.testAccount_ = testAccount_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.callReportingSetting_ = callReportingSettingBuilder_ == null
? callReportingSetting_
: callReportingSettingBuilder_.build();
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.conversionTrackingSetting_ = conversionTrackingSettingBuilder_ == null
? conversionTrackingSetting_
: conversionTrackingSettingBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.remarketingSetting_ = remarketingSettingBuilder_ == null
? remarketingSetting_
: remarketingSettingBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.optimizationScore_ = optimizationScore_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.optimizationScoreWeight_ = optimizationScoreWeight_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.locationAssetAutoMigrationDone_ = locationAssetAutoMigrationDone_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.imageAssetAutoMigrationDone_ = imageAssetAutoMigrationDone_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.locationAssetAutoMigrationDoneDateTime_ = locationAssetAutoMigrationDoneDateTime_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.imageAssetAutoMigrationDoneDateTime_ = imageAssetAutoMigrationDoneDateTime_;
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.customerAgreementSetting_ = customerAgreementSettingBuilder_ == null
? customerAgreementSetting_
: customerAgreementSettingBuilder_.build();
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.localServicesSettings_ = localServicesSettingsBuilder_ == null
? localServicesSettings_
: localServicesSettingsBuilder_.build();
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.videoBrandSafetySuitability_ = videoBrandSafetySuitability_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v18.resources.Customer) {
return mergeFrom((com.google.ads.googleads.v18.resources.Customer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.Customer other) {
if (other == com.google.ads.googleads.v18.resources.Customer.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasDescriptiveName()) {
descriptiveName_ = other.descriptiveName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCurrencyCode()) {
currencyCode_ = other.currencyCode_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasTimeZone()) {
timeZone_ = other.timeZone_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasTrackingUrlTemplate()) {
trackingUrlTemplate_ = other.trackingUrlTemplate_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasFinalUrlSuffix()) {
finalUrlSuffix_ = other.finalUrlSuffix_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasAutoTaggingEnabled()) {
setAutoTaggingEnabled(other.getAutoTaggingEnabled());
}
if (other.hasHasPartnersBadge()) {
setHasPartnersBadge(other.getHasPartnersBadge());
}
if (other.hasManager()) {
setManager(other.getManager());
}
if (other.hasTestAccount()) {
setTestAccount(other.getTestAccount());
}
if (other.hasCallReportingSetting()) {
mergeCallReportingSetting(other.getCallReportingSetting());
}
if (other.hasConversionTrackingSetting()) {
mergeConversionTrackingSetting(other.getConversionTrackingSetting());
}
if (other.hasRemarketingSetting()) {
mergeRemarketingSetting(other.getRemarketingSetting());
}
if (!other.payPerConversionEligibilityFailureReasons_.isEmpty()) {
if (payPerConversionEligibilityFailureReasons_.isEmpty()) {
payPerConversionEligibilityFailureReasons_ = other.payPerConversionEligibilityFailureReasons_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.addAll(other.payPerConversionEligibilityFailureReasons_);
}
onChanged();
}
if (other.hasOptimizationScore()) {
setOptimizationScore(other.getOptimizationScore());
}
if (other.getOptimizationScoreWeight() != 0D) {
setOptimizationScoreWeight(other.getOptimizationScoreWeight());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasLocationAssetAutoMigrationDone()) {
setLocationAssetAutoMigrationDone(other.getLocationAssetAutoMigrationDone());
}
if (other.hasImageAssetAutoMigrationDone()) {
setImageAssetAutoMigrationDone(other.getImageAssetAutoMigrationDone());
}
if (other.hasLocationAssetAutoMigrationDoneDateTime()) {
locationAssetAutoMigrationDoneDateTime_ = other.locationAssetAutoMigrationDoneDateTime_;
bitField0_ |= 0x00100000;
onChanged();
}
if (other.hasImageAssetAutoMigrationDoneDateTime()) {
imageAssetAutoMigrationDoneDateTime_ = other.imageAssetAutoMigrationDoneDateTime_;
bitField0_ |= 0x00200000;
onChanged();
}
if (other.hasCustomerAgreementSetting()) {
mergeCustomerAgreementSetting(other.getCustomerAgreementSetting());
}
if (other.hasLocalServicesSettings()) {
mergeLocalServicesSettings(other.getLocalServicesSettings());
}
if (other.videoBrandSafetySuitability_ != 0) {
setVideoBrandSafetySuitabilityValue(other.getVideoBrandSafetySuitabilityValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 82: {
input.readMessage(
getCallReportingSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 82
case 114: {
input.readMessage(
getConversionTrackingSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 114
case 122: {
input.readMessage(
getRemarketingSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
case 128: {
int tmpRaw = input.readEnum();
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.add(tmpRaw);
break;
} // case 128
case 130: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 130
case 152: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 152
case 162: {
descriptiveName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 162
case 170: {
currencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 170
case 178: {
timeZone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 178
case 186: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 186
case 194: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 194
case 200: {
autoTaggingEnabled_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 200
case 208: {
hasPartnersBadge_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 208
case 216: {
manager_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 216
case 224: {
testAccount_ = input.readBool();
bitField0_ |= 0x00000400;
break;
} // case 224
case 233: {
optimizationScore_ = input.readDouble();
bitField0_ |= 0x00008000;
break;
} // case 233
case 241: {
optimizationScoreWeight_ = input.readDouble();
bitField0_ |= 0x00010000;
break;
} // case 241
case 288: {
status_ = input.readEnum();
bitField0_ |= 0x00020000;
break;
} // case 288
case 304: {
locationAssetAutoMigrationDone_ = input.readBool();
bitField0_ |= 0x00040000;
break;
} // case 304
case 312: {
imageAssetAutoMigrationDone_ = input.readBool();
bitField0_ |= 0x00080000;
break;
} // case 312
case 322: {
locationAssetAutoMigrationDoneDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00100000;
break;
} // case 322
case 330: {
imageAssetAutoMigrationDoneDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00200000;
break;
} // case 330
case 354: {
input.readMessage(
getCustomerAgreementSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00400000;
break;
} // case 354
case 362: {
input.readMessage(
getLocalServicesSettingsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 362
case 368: {
videoBrandSafetySuitability_ = input.readEnum();
bitField0_ |= 0x01000000;
break;
} // case 368
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the customer.
* Customer resource names have the form:
*
* `customers/{customer_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 customer.
* Customer resource names have the form:
*
* `customers/{customer_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 customer.
* Customer resource names have the form:
*
* `customers/{customer_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the customer.
* Customer resource names have the form:
*
* `customers/{customer_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the customer.
* Customer resource names have the form:
*
* `customers/{customer_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the customer.
*
*
* optional int64 id = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the customer.
*
*
* optional int64 id = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the customer.
*
*
* optional int64 id = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the customer.
*
*
* optional int64 id = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object descriptiveName_ = "";
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return Whether the descriptiveName field is set.
*/
public boolean hasDescriptiveName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return The descriptiveName.
*/
public java.lang.String getDescriptiveName() {
java.lang.Object ref = descriptiveName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
descriptiveName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return The bytes for descriptiveName.
*/
public com.google.protobuf.ByteString
getDescriptiveNameBytes() {
java.lang.Object ref = descriptiveName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
descriptiveName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @param value The descriptiveName to set.
* @return This builder for chaining.
*/
public Builder setDescriptiveName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
descriptiveName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return This builder for chaining.
*/
public Builder clearDescriptiveName() {
descriptiveName_ = getDefaultInstance().getDescriptiveName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @param value The bytes for descriptiveName to set.
* @return This builder for chaining.
*/
public Builder setDescriptiveNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
descriptiveName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the currencyCode field is set.
*/
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The currencyCode.
*/
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currencyCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for currencyCode.
*/
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
currencyCode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
currencyCode_ = getDefaultInstance().getCurrencyCode();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Immutable. The currency in which the account operates.
* A subset of the currency codes from the ISO 4217 standard is
* supported.
*
*
* optional string currency_code = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The bytes for currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currencyCode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object timeZone_ = "";
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the timeZone field is set.
*/
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The timeZone.
*/
public java.lang.String getTimeZone() {
java.lang.Object ref = timeZone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timeZone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for timeZone.
*/
public com.google.protobuf.ByteString
getTimeZoneBytes() {
java.lang.Object ref = timeZone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The timeZone to set.
* @return This builder for chaining.
*/
public Builder setTimeZone(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
timeZone_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearTimeZone() {
timeZone_ = getDefaultInstance().getTimeZone();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Immutable. The local timezone ID of the customer.
*
*
* optional string time_zone = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The bytes for timeZone to set.
* @return This builder for chaining.
*/
public Builder setTimeZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
timeZone_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object trackingUrlTemplate_ = "";
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @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 out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @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 out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @param value The trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
* Only mutable in an `update` operation.
*
*
* optional string tracking_url_template = 23;
* @param value The bytes for trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object finalUrlSuffix_ = "";
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @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;
}
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @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;
}
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @param value The finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
finalUrlSuffix_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* The URL template for appending params to the final URL.
* Only mutable in an `update` operation.
*
*
* optional string final_url_suffix = 24;
* @param value The bytes for finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
finalUrlSuffix_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private boolean autoTaggingEnabled_ ;
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @return Whether the autoTaggingEnabled field is set.
*/
@java.lang.Override
public boolean hasAutoTaggingEnabled() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @return The autoTaggingEnabled.
*/
@java.lang.Override
public boolean getAutoTaggingEnabled() {
return autoTaggingEnabled_;
}
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @param value The autoTaggingEnabled to set.
* @return This builder for chaining.
*/
public Builder setAutoTaggingEnabled(boolean value) {
autoTaggingEnabled_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Whether auto-tagging is enabled for the customer.
*
*
* optional bool auto_tagging_enabled = 25;
* @return This builder for chaining.
*/
public Builder clearAutoTaggingEnabled() {
bitField0_ = (bitField0_ & ~0x00000080);
autoTaggingEnabled_ = false;
onChanged();
return this;
}
private boolean hasPartnersBadge_ ;
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the hasPartnersBadge field is set.
*/
@java.lang.Override
public boolean hasHasPartnersBadge() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The hasPartnersBadge.
*/
@java.lang.Override
public boolean getHasPartnersBadge() {
return hasPartnersBadge_;
}
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The hasPartnersBadge to set.
* @return This builder for chaining.
*/
public Builder setHasPartnersBadge(boolean value) {
hasPartnersBadge_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Output only. Whether the Customer has a Partners program badge. If the
* Customer is not associated with the Partners program, this will be false.
* For more information, see
* https://support.google.com/partners/answer/3125774.
*
*
* optional bool has_partners_badge = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearHasPartnersBadge() {
bitField0_ = (bitField0_ & ~0x00000100);
hasPartnersBadge_ = false;
onChanged();
return this;
}
private boolean manager_ ;
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the manager field is set.
*/
@java.lang.Override
public boolean hasManager() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The manager.
*/
@java.lang.Override
public boolean getManager() {
return manager_;
}
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The manager to set.
* @return This builder for chaining.
*/
public Builder setManager(boolean value) {
manager_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Output only. Whether the customer is a manager.
*
*
* optional bool manager = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearManager() {
bitField0_ = (bitField0_ & ~0x00000200);
manager_ = false;
onChanged();
return this;
}
private boolean testAccount_ ;
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the testAccount field is set.
*/
@java.lang.Override
public boolean hasTestAccount() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The testAccount.
*/
@java.lang.Override
public boolean getTestAccount() {
return testAccount_;
}
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The testAccount to set.
* @return This builder for chaining.
*/
public Builder setTestAccount(boolean value) {
testAccount_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Output only. Whether the customer is a test account.
*
*
* optional bool test_account = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearTestAccount() {
bitField0_ = (bitField0_ & ~0x00000400);
testAccount_ = false;
onChanged();
return this;
}
private com.google.ads.googleads.v18.resources.CallReportingSetting callReportingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CallReportingSetting, com.google.ads.googleads.v18.resources.CallReportingSetting.Builder, com.google.ads.googleads.v18.resources.CallReportingSettingOrBuilder> callReportingSettingBuilder_;
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
* @return Whether the callReportingSetting field is set.
*/
public boolean hasCallReportingSetting() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
* @return The callReportingSetting.
*/
public com.google.ads.googleads.v18.resources.CallReportingSetting getCallReportingSetting() {
if (callReportingSettingBuilder_ == null) {
return callReportingSetting_ == null ? com.google.ads.googleads.v18.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
} else {
return callReportingSettingBuilder_.getMessage();
}
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder setCallReportingSetting(com.google.ads.googleads.v18.resources.CallReportingSetting value) {
if (callReportingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callReportingSetting_ = value;
} else {
callReportingSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder setCallReportingSetting(
com.google.ads.googleads.v18.resources.CallReportingSetting.Builder builderForValue) {
if (callReportingSettingBuilder_ == null) {
callReportingSetting_ = builderForValue.build();
} else {
callReportingSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder mergeCallReportingSetting(com.google.ads.googleads.v18.resources.CallReportingSetting value) {
if (callReportingSettingBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
callReportingSetting_ != null &&
callReportingSetting_ != com.google.ads.googleads.v18.resources.CallReportingSetting.getDefaultInstance()) {
getCallReportingSettingBuilder().mergeFrom(value);
} else {
callReportingSetting_ = value;
}
} else {
callReportingSettingBuilder_.mergeFrom(value);
}
if (callReportingSetting_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder clearCallReportingSetting() {
bitField0_ = (bitField0_ & ~0x00000800);
callReportingSetting_ = null;
if (callReportingSettingBuilder_ != null) {
callReportingSettingBuilder_.dispose();
callReportingSettingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public com.google.ads.googleads.v18.resources.CallReportingSetting.Builder getCallReportingSettingBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getCallReportingSettingFieldBuilder().getBuilder();
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
public com.google.ads.googleads.v18.resources.CallReportingSettingOrBuilder getCallReportingSettingOrBuilder() {
if (callReportingSettingBuilder_ != null) {
return callReportingSettingBuilder_.getMessageOrBuilder();
} else {
return callReportingSetting_ == null ?
com.google.ads.googleads.v18.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
}
}
/**
*
* Call reporting setting for a customer. Only mutable in an `update`
* operation.
*
*
* .google.ads.googleads.v18.resources.CallReportingSetting call_reporting_setting = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CallReportingSetting, com.google.ads.googleads.v18.resources.CallReportingSetting.Builder, com.google.ads.googleads.v18.resources.CallReportingSettingOrBuilder>
getCallReportingSettingFieldBuilder() {
if (callReportingSettingBuilder_ == null) {
callReportingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CallReportingSetting, com.google.ads.googleads.v18.resources.CallReportingSetting.Builder, com.google.ads.googleads.v18.resources.CallReportingSettingOrBuilder>(
getCallReportingSetting(),
getParentForChildren(),
isClean());
callReportingSetting_ = null;
}
return callReportingSettingBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionTrackingSetting conversionTrackingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionTrackingSetting, com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v18.resources.ConversionTrackingSettingOrBuilder> conversionTrackingSettingBuilder_;
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionTrackingSetting field is set.
*/
public boolean hasConversionTrackingSetting() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionTrackingSetting.
*/
public com.google.ads.googleads.v18.resources.ConversionTrackingSetting getConversionTrackingSetting() {
if (conversionTrackingSettingBuilder_ == null) {
return conversionTrackingSetting_ == null ? com.google.ads.googleads.v18.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
} else {
return conversionTrackingSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setConversionTrackingSetting(com.google.ads.googleads.v18.resources.ConversionTrackingSetting value) {
if (conversionTrackingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conversionTrackingSetting_ = value;
} else {
conversionTrackingSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setConversionTrackingSetting(
com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder builderForValue) {
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSetting_ = builderForValue.build();
} else {
conversionTrackingSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeConversionTrackingSetting(com.google.ads.googleads.v18.resources.ConversionTrackingSetting value) {
if (conversionTrackingSettingBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
conversionTrackingSetting_ != null &&
conversionTrackingSetting_ != com.google.ads.googleads.v18.resources.ConversionTrackingSetting.getDefaultInstance()) {
getConversionTrackingSettingBuilder().mergeFrom(value);
} else {
conversionTrackingSetting_ = value;
}
} else {
conversionTrackingSettingBuilder_.mergeFrom(value);
}
if (conversionTrackingSetting_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearConversionTrackingSetting() {
bitField0_ = (bitField0_ & ~0x00001000);
conversionTrackingSetting_ = null;
if (conversionTrackingSettingBuilder_ != null) {
conversionTrackingSettingBuilder_.dispose();
conversionTrackingSettingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder getConversionTrackingSettingBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getConversionTrackingSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() {
if (conversionTrackingSettingBuilder_ != null) {
return conversionTrackingSettingBuilder_.getMessageOrBuilder();
} else {
return conversionTrackingSetting_ == null ?
com.google.ads.googleads.v18.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
}
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v18.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionTrackingSetting, com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v18.resources.ConversionTrackingSettingOrBuilder>
getConversionTrackingSettingFieldBuilder() {
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionTrackingSetting, com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v18.resources.ConversionTrackingSettingOrBuilder>(
getConversionTrackingSetting(),
getParentForChildren(),
isClean());
conversionTrackingSetting_ = null;
}
return conversionTrackingSettingBuilder_;
}
private com.google.ads.googleads.v18.resources.RemarketingSetting remarketingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.RemarketingSetting, com.google.ads.googleads.v18.resources.RemarketingSetting.Builder, com.google.ads.googleads.v18.resources.RemarketingSettingOrBuilder> remarketingSettingBuilder_;
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the remarketingSetting field is set.
*/
public boolean hasRemarketingSetting() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The remarketingSetting.
*/
public com.google.ads.googleads.v18.resources.RemarketingSetting getRemarketingSetting() {
if (remarketingSettingBuilder_ == null) {
return remarketingSetting_ == null ? com.google.ads.googleads.v18.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
} else {
return remarketingSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRemarketingSetting(com.google.ads.googleads.v18.resources.RemarketingSetting value) {
if (remarketingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
remarketingSetting_ = value;
} else {
remarketingSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRemarketingSetting(
com.google.ads.googleads.v18.resources.RemarketingSetting.Builder builderForValue) {
if (remarketingSettingBuilder_ == null) {
remarketingSetting_ = builderForValue.build();
} else {
remarketingSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRemarketingSetting(com.google.ads.googleads.v18.resources.RemarketingSetting value) {
if (remarketingSettingBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
remarketingSetting_ != null &&
remarketingSetting_ != com.google.ads.googleads.v18.resources.RemarketingSetting.getDefaultInstance()) {
getRemarketingSettingBuilder().mergeFrom(value);
} else {
remarketingSetting_ = value;
}
} else {
remarketingSettingBuilder_.mergeFrom(value);
}
if (remarketingSetting_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRemarketingSetting() {
bitField0_ = (bitField0_ & ~0x00002000);
remarketingSetting_ = null;
if (remarketingSettingBuilder_ != null) {
remarketingSettingBuilder_.dispose();
remarketingSettingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.RemarketingSetting.Builder getRemarketingSettingBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getRemarketingSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.RemarketingSettingOrBuilder getRemarketingSettingOrBuilder() {
if (remarketingSettingBuilder_ != null) {
return remarketingSettingBuilder_.getMessageOrBuilder();
} else {
return remarketingSetting_ == null ?
com.google.ads.googleads.v18.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
}
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v18.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.RemarketingSetting, com.google.ads.googleads.v18.resources.RemarketingSetting.Builder, com.google.ads.googleads.v18.resources.RemarketingSettingOrBuilder>
getRemarketingSettingFieldBuilder() {
if (remarketingSettingBuilder_ == null) {
remarketingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.RemarketingSetting, com.google.ads.googleads.v18.resources.RemarketingSetting.Builder, com.google.ads.googleads.v18.resources.RemarketingSettingOrBuilder>(
getRemarketingSetting(),
getParentForChildren(),
isClean());
remarketingSetting_ = null;
}
return remarketingSettingBuilder_;
}
private java.util.List payPerConversionEligibilityFailureReasons_ =
java.util.Collections.emptyList();
private void ensurePayPerConversionEligibilityFailureReasonsIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
payPerConversionEligibilityFailureReasons_ = new java.util.ArrayList(payPerConversionEligibilityFailureReasons_);
bitField0_ |= 0x00004000;
}
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the payPerConversionEligibilityFailureReasons.
*/
public java.util.List getPayPerConversionEligibilityFailureReasonsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason>(payPerConversionEligibilityFailureReasons_, payPerConversionEligibilityFailureReasons_converter_);
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The count of payPerConversionEligibilityFailureReasons.
*/
public int getPayPerConversionEligibilityFailureReasonsCount() {
return payPerConversionEligibilityFailureReasons_.size();
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the element to return.
* @return The payPerConversionEligibilityFailureReasons at the given index.
*/
public com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason getPayPerConversionEligibilityFailureReasons(int index) {
return payPerConversionEligibilityFailureReasons_converter_.convert(payPerConversionEligibilityFailureReasons_.get(index));
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index to set the value at.
* @param value The payPerConversionEligibilityFailureReasons to set.
* @return This builder for chaining.
*/
public Builder setPayPerConversionEligibilityFailureReasons(
int index, com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason value) {
if (value == null) {
throw new NullPointerException();
}
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The payPerConversionEligibilityFailureReasons to add.
* @return This builder for chaining.
*/
public Builder addPayPerConversionEligibilityFailureReasons(com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason value) {
if (value == null) {
throw new NullPointerException();
}
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param values The payPerConversionEligibilityFailureReasons to add.
* @return This builder for chaining.
*/
public Builder addAllPayPerConversionEligibilityFailureReasons(
java.lang.Iterable extends com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason> values) {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
for (com.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason value : values) {
payPerConversionEligibilityFailureReasons_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearPayPerConversionEligibilityFailureReasons() {
payPerConversionEligibilityFailureReasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the enum numeric values on the wire for payPerConversionEligibilityFailureReasons.
*/
public java.util.List
getPayPerConversionEligibilityFailureReasonsValueList() {
return java.util.Collections.unmodifiableList(payPerConversionEligibilityFailureReasons_);
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of payPerConversionEligibilityFailureReasons at the given index.
*/
public int getPayPerConversionEligibilityFailureReasonsValue(int index) {
return payPerConversionEligibilityFailureReasons_.get(index);
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for payPerConversionEligibilityFailureReasons to set.
* @return This builder for chaining.
*/
public Builder setPayPerConversionEligibilityFailureReasonsValue(
int index, int value) {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.set(index, value);
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for payPerConversionEligibilityFailureReasons to add.
* @return This builder for chaining.
*/
public Builder addPayPerConversionEligibilityFailureReasonsValue(int value) {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
payPerConversionEligibilityFailureReasons_.add(value);
onChanged();
return this;
}
/**
*
* Output only. Reasons why the customer is not eligible to use
* PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible.
* This field is read-only.
*
*
* repeated .google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param values The enum numeric values on the wire for payPerConversionEligibilityFailureReasons to add.
* @return This builder for chaining.
*/
public Builder addAllPayPerConversionEligibilityFailureReasonsValue(
java.lang.Iterable values) {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
for (int value : values) {
payPerConversionEligibilityFailureReasons_.add(value);
}
onChanged();
return this;
}
private double optimizationScore_ ;
/**
*
* Output only. Optimization score of the customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the optimizationScore field is set.
*/
@java.lang.Override
public boolean hasOptimizationScore() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Output only. Optimization score of the customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The optimizationScore.
*/
@java.lang.Override
public double getOptimizationScore() {
return optimizationScore_;
}
/**
*
* Output only. Optimization score of the customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The optimizationScore to set.
* @return This builder for chaining.
*/
public Builder setOptimizationScore(double value) {
optimizationScore_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* Output only. Optimization score of the customer.
*
* Optimization score is an estimate of how well a customer's campaigns are
* set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
* for all manager customers, and for unscored non-manager customers.
*
* See "About optimization score" at
* https://support.google.com/google-ads/answer/9061546.
*
* This field is read-only.
*
*
* optional double optimization_score = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearOptimizationScore() {
bitField0_ = (bitField0_ & ~0x00008000);
optimizationScore_ = 0D;
onChanged();
return this;
}
private double optimizationScoreWeight_ ;
/**
*
* Output only. Optimization score weight of the customer.
*
* Optimization score weight can be used to compare/aggregate optimization
* scores across multiple non-manager customers. The aggregate optimization
* score of a manager is computed as the sum over all of their customers of
* `Customer.optimization_score * Customer.optimization_score_weight`. This
* field is 0 for all manager customers, and for unscored non-manager
* customers.
*
* This field is read-only.
*
*
* double optimization_score_weight = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The optimizationScoreWeight.
*/
@java.lang.Override
public double getOptimizationScoreWeight() {
return optimizationScoreWeight_;
}
/**
*
* Output only. Optimization score weight of the customer.
*
* Optimization score weight can be used to compare/aggregate optimization
* scores across multiple non-manager customers. The aggregate optimization
* score of a manager is computed as the sum over all of their customers of
* `Customer.optimization_score * Customer.optimization_score_weight`. This
* field is 0 for all manager customers, and for unscored non-manager
* customers.
*
* This field is read-only.
*
*
* double optimization_score_weight = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The optimizationScoreWeight to set.
* @return This builder for chaining.
*/
public Builder setOptimizationScoreWeight(double value) {
optimizationScoreWeight_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* Output only. Optimization score weight of the customer.
*
* Optimization score weight can be used to compare/aggregate optimization
* scores across multiple non-manager customers. The aggregate optimization
* score of a manager is computed as the sum over all of their customers of
* `Customer.optimization_score * Customer.optimization_score_weight`. This
* field is 0 for all manager customers, and for unscored non-manager
* customers.
*
* This field is read-only.
*
*
* double optimization_score_weight = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearOptimizationScoreWeight() {
bitField0_ = (bitField0_ & ~0x00010000);
optimizationScoreWeight_ = 0D;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus getStatus() {
com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus result = com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00020000);
status_ = 0;
onChanged();
return this;
}
private boolean locationAssetAutoMigrationDone_ ;
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAssetAutoMigrationDone field is set.
*/
@java.lang.Override
public boolean hasLocationAssetAutoMigrationDone() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAssetAutoMigrationDone.
*/
@java.lang.Override
public boolean getLocationAssetAutoMigrationDone() {
return locationAssetAutoMigrationDone_;
}
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The locationAssetAutoMigrationDone to set.
* @return This builder for chaining.
*/
public Builder setLocationAssetAutoMigrationDone(boolean value) {
locationAssetAutoMigrationDone_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* Output only. True if feed based location has been migrated to asset based
* location.
*
*
* optional bool location_asset_auto_migration_done = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLocationAssetAutoMigrationDone() {
bitField0_ = (bitField0_ & ~0x00040000);
locationAssetAutoMigrationDone_ = false;
onChanged();
return this;
}
private boolean imageAssetAutoMigrationDone_ ;
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAssetAutoMigrationDone field is set.
*/
@java.lang.Override
public boolean hasImageAssetAutoMigrationDone() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAssetAutoMigrationDone.
*/
@java.lang.Override
public boolean getImageAssetAutoMigrationDone() {
return imageAssetAutoMigrationDone_;
}
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The imageAssetAutoMigrationDone to set.
* @return This builder for chaining.
*/
public Builder setImageAssetAutoMigrationDone(boolean value) {
imageAssetAutoMigrationDone_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* Output only. True if feed based image has been migrated to asset based
* image.
*
*
* optional bool image_asset_auto_migration_done = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearImageAssetAutoMigrationDone() {
bitField0_ = (bitField0_ & ~0x00080000);
imageAssetAutoMigrationDone_ = false;
onChanged();
return this;
}
private java.lang.Object locationAssetAutoMigrationDoneDateTime_ = "";
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAssetAutoMigrationDoneDateTime field is set.
*/
public boolean hasLocationAssetAutoMigrationDoneDateTime() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAssetAutoMigrationDoneDateTime.
*/
public java.lang.String getLocationAssetAutoMigrationDoneDateTime() {
java.lang.Object ref = locationAssetAutoMigrationDoneDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locationAssetAutoMigrationDoneDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for locationAssetAutoMigrationDoneDateTime.
*/
public com.google.protobuf.ByteString
getLocationAssetAutoMigrationDoneDateTimeBytes() {
java.lang.Object ref = locationAssetAutoMigrationDoneDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locationAssetAutoMigrationDoneDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The locationAssetAutoMigrationDoneDateTime to set.
* @return This builder for chaining.
*/
public Builder setLocationAssetAutoMigrationDoneDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
locationAssetAutoMigrationDoneDateTime_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLocationAssetAutoMigrationDoneDateTime() {
locationAssetAutoMigrationDoneDateTime_ = getDefaultInstance().getLocationAssetAutoMigrationDoneDateTime();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
*
* Output only. Timestamp of migration from feed based location to asset base
* location in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string location_asset_auto_migration_done_date_time = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for locationAssetAutoMigrationDoneDateTime to set.
* @return This builder for chaining.
*/
public Builder setLocationAssetAutoMigrationDoneDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
locationAssetAutoMigrationDoneDateTime_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
private java.lang.Object imageAssetAutoMigrationDoneDateTime_ = "";
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAssetAutoMigrationDoneDateTime field is set.
*/
public boolean hasImageAssetAutoMigrationDoneDateTime() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAssetAutoMigrationDoneDateTime.
*/
public java.lang.String getImageAssetAutoMigrationDoneDateTime() {
java.lang.Object ref = imageAssetAutoMigrationDoneDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageAssetAutoMigrationDoneDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for imageAssetAutoMigrationDoneDateTime.
*/
public com.google.protobuf.ByteString
getImageAssetAutoMigrationDoneDateTimeBytes() {
java.lang.Object ref = imageAssetAutoMigrationDoneDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageAssetAutoMigrationDoneDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The imageAssetAutoMigrationDoneDateTime to set.
* @return This builder for chaining.
*/
public Builder setImageAssetAutoMigrationDoneDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
imageAssetAutoMigrationDoneDateTime_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearImageAssetAutoMigrationDoneDateTime() {
imageAssetAutoMigrationDoneDateTime_ = getDefaultInstance().getImageAssetAutoMigrationDoneDateTime();
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
/**
*
* Output only. Timestamp of migration from feed based image to asset base
* image in yyyy-MM-dd HH:mm:ss format.
*
*
* optional string image_asset_auto_migration_done_date_time = 41 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for imageAssetAutoMigrationDoneDateTime to set.
* @return This builder for chaining.
*/
public Builder setImageAssetAutoMigrationDoneDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
imageAssetAutoMigrationDoneDateTime_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
private com.google.ads.googleads.v18.resources.CustomerAgreementSetting customerAgreementSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CustomerAgreementSetting, com.google.ads.googleads.v18.resources.CustomerAgreementSetting.Builder, com.google.ads.googleads.v18.resources.CustomerAgreementSettingOrBuilder> customerAgreementSettingBuilder_;
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the customerAgreementSetting field is set.
*/
public boolean hasCustomerAgreementSetting() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The customerAgreementSetting.
*/
public com.google.ads.googleads.v18.resources.CustomerAgreementSetting getCustomerAgreementSetting() {
if (customerAgreementSettingBuilder_ == null) {
return customerAgreementSetting_ == null ? com.google.ads.googleads.v18.resources.CustomerAgreementSetting.getDefaultInstance() : customerAgreementSetting_;
} else {
return customerAgreementSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomerAgreementSetting(com.google.ads.googleads.v18.resources.CustomerAgreementSetting value) {
if (customerAgreementSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
customerAgreementSetting_ = value;
} else {
customerAgreementSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomerAgreementSetting(
com.google.ads.googleads.v18.resources.CustomerAgreementSetting.Builder builderForValue) {
if (customerAgreementSettingBuilder_ == null) {
customerAgreementSetting_ = builderForValue.build();
} else {
customerAgreementSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeCustomerAgreementSetting(com.google.ads.googleads.v18.resources.CustomerAgreementSetting value) {
if (customerAgreementSettingBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0) &&
customerAgreementSetting_ != null &&
customerAgreementSetting_ != com.google.ads.googleads.v18.resources.CustomerAgreementSetting.getDefaultInstance()) {
getCustomerAgreementSettingBuilder().mergeFrom(value);
} else {
customerAgreementSetting_ = value;
}
} else {
customerAgreementSettingBuilder_.mergeFrom(value);
}
if (customerAgreementSetting_ != null) {
bitField0_ |= 0x00400000;
onChanged();
}
return this;
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCustomerAgreementSetting() {
bitField0_ = (bitField0_ & ~0x00400000);
customerAgreementSetting_ = null;
if (customerAgreementSettingBuilder_ != null) {
customerAgreementSettingBuilder_.dispose();
customerAgreementSettingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.CustomerAgreementSetting.Builder getCustomerAgreementSettingBuilder() {
bitField0_ |= 0x00400000;
onChanged();
return getCustomerAgreementSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.CustomerAgreementSettingOrBuilder getCustomerAgreementSettingOrBuilder() {
if (customerAgreementSettingBuilder_ != null) {
return customerAgreementSettingBuilder_.getMessageOrBuilder();
} else {
return customerAgreementSetting_ == null ?
com.google.ads.googleads.v18.resources.CustomerAgreementSetting.getDefaultInstance() : customerAgreementSetting_;
}
}
/**
*
* Output only. Customer Agreement Setting for a customer.
*
*
* .google.ads.googleads.v18.resources.CustomerAgreementSetting customer_agreement_setting = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CustomerAgreementSetting, com.google.ads.googleads.v18.resources.CustomerAgreementSetting.Builder, com.google.ads.googleads.v18.resources.CustomerAgreementSettingOrBuilder>
getCustomerAgreementSettingFieldBuilder() {
if (customerAgreementSettingBuilder_ == null) {
customerAgreementSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.CustomerAgreementSetting, com.google.ads.googleads.v18.resources.CustomerAgreementSetting.Builder, com.google.ads.googleads.v18.resources.CustomerAgreementSettingOrBuilder>(
getCustomerAgreementSetting(),
getParentForChildren(),
isClean());
customerAgreementSetting_ = null;
}
return customerAgreementSettingBuilder_;
}
private com.google.ads.googleads.v18.resources.LocalServicesSettings localServicesSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.LocalServicesSettings, com.google.ads.googleads.v18.resources.LocalServicesSettings.Builder, com.google.ads.googleads.v18.resources.LocalServicesSettingsOrBuilder> localServicesSettingsBuilder_;
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the localServicesSettings field is set.
*/
public boolean hasLocalServicesSettings() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The localServicesSettings.
*/
public com.google.ads.googleads.v18.resources.LocalServicesSettings getLocalServicesSettings() {
if (localServicesSettingsBuilder_ == null) {
return localServicesSettings_ == null ? com.google.ads.googleads.v18.resources.LocalServicesSettings.getDefaultInstance() : localServicesSettings_;
} else {
return localServicesSettingsBuilder_.getMessage();
}
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocalServicesSettings(com.google.ads.googleads.v18.resources.LocalServicesSettings value) {
if (localServicesSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localServicesSettings_ = value;
} else {
localServicesSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocalServicesSettings(
com.google.ads.googleads.v18.resources.LocalServicesSettings.Builder builderForValue) {
if (localServicesSettingsBuilder_ == null) {
localServicesSettings_ = builderForValue.build();
} else {
localServicesSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeLocalServicesSettings(com.google.ads.googleads.v18.resources.LocalServicesSettings value) {
if (localServicesSettingsBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
localServicesSettings_ != null &&
localServicesSettings_ != com.google.ads.googleads.v18.resources.LocalServicesSettings.getDefaultInstance()) {
getLocalServicesSettingsBuilder().mergeFrom(value);
} else {
localServicesSettings_ = value;
}
} else {
localServicesSettingsBuilder_.mergeFrom(value);
}
if (localServicesSettings_ != null) {
bitField0_ |= 0x00800000;
onChanged();
}
return this;
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLocalServicesSettings() {
bitField0_ = (bitField0_ & ~0x00800000);
localServicesSettings_ = null;
if (localServicesSettingsBuilder_ != null) {
localServicesSettingsBuilder_.dispose();
localServicesSettingsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.LocalServicesSettings.Builder getLocalServicesSettingsBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getLocalServicesSettingsFieldBuilder().getBuilder();
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v18.resources.LocalServicesSettingsOrBuilder getLocalServicesSettingsOrBuilder() {
if (localServicesSettingsBuilder_ != null) {
return localServicesSettingsBuilder_.getMessageOrBuilder();
} else {
return localServicesSettings_ == null ?
com.google.ads.googleads.v18.resources.LocalServicesSettings.getDefaultInstance() : localServicesSettings_;
}
}
/**
*
* Output only. Settings for Local Services customer.
*
*
* .google.ads.googleads.v18.resources.LocalServicesSettings local_services_settings = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.LocalServicesSettings, com.google.ads.googleads.v18.resources.LocalServicesSettings.Builder, com.google.ads.googleads.v18.resources.LocalServicesSettingsOrBuilder>
getLocalServicesSettingsFieldBuilder() {
if (localServicesSettingsBuilder_ == null) {
localServicesSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.LocalServicesSettings, com.google.ads.googleads.v18.resources.LocalServicesSettings.Builder, com.google.ads.googleads.v18.resources.LocalServicesSettingsOrBuilder>(
getLocalServicesSettings(),
getParentForChildren(),
isClean());
localServicesSettings_ = null;
}
return localServicesSettingsBuilder_;
}
private int videoBrandSafetySuitability_ = 0;
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for videoBrandSafetySuitability.
*/
@java.lang.Override public int getVideoBrandSafetySuitabilityValue() {
return videoBrandSafetySuitability_;
}
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.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;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The videoBrandSafetySuitability.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() {
com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.forNumber(videoBrandSafetySuitability_);
return result == null ? com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result;
}
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The videoBrandSafetySuitability to set.
* @return This builder for chaining.
*/
public Builder setVideoBrandSafetySuitability(com.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
videoBrandSafetySuitability_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Brand Safety setting at the account level. Allows for
* selecting an inventory type to show your ads on content that is the right
* fit for your brand. See
* https://support.google.com/google-ads/answer/7515513.
*
*
* .google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 46 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearVideoBrandSafetySuitability() {
bitField0_ = (bitField0_ & ~0x01000000);
videoBrandSafetySuitability_ = 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.v18.resources.Customer)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.Customer)
private static final com.google.ads.googleads.v18.resources.Customer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.Customer();
}
public static com.google.ads.googleads.v18.resources.Customer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Customer 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.v18.resources.Customer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy