com.google.ads.googleads.v10.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-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/customer.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A customer.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Customer}
*/
public final class Customer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Customer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CustomerProto.internal_static_google_ads_googleads_v10_resources_Customer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CustomerProto.internal_static_google_ads_googleads_v10_resources_Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Customer.class, com.google.ads.googleads.v10.resources.Customer.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
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_;
/**
*
* 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;
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;
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;
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;
private volatile java.lang.Object trackingUrlTemplate_;
/**
*
* The URL template for constructing a tracking URL out of parameters.
*
*
* 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.
*
*
* 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.
*
*
* 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;
private volatile java.lang.Object finalUrlSuffix_;
/**
*
* The URL template for appending params to the final URL
*
*
* 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
*
*
* 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
*
*
* 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_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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.v10.resources.CallReportingSetting callReportingSetting_;
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
* @return Whether the callReportingSetting field is set.
*/
@java.lang.Override
public boolean hasCallReportingSetting() {
return callReportingSetting_ != null;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
* @return The callReportingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.CallReportingSetting getCallReportingSetting() {
return callReportingSetting_ == null ? com.google.ads.googleads.v10.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.CallReportingSettingOrBuilder getCallReportingSettingOrBuilder() {
return getCallReportingSetting();
}
public static final int CONVERSION_TRACKING_SETTING_FIELD_NUMBER = 14;
private com.google.ads.googleads.v10.resources.ConversionTrackingSetting conversionTrackingSetting_;
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.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 conversionTrackingSetting_ != null;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionTrackingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionTrackingSetting getConversionTrackingSetting() {
return conversionTrackingSetting_ == null ? com.google.ads.googleads.v10.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() {
return getConversionTrackingSetting();
}
public static final int REMARKETING_SETTING_FIELD_NUMBER = 15;
private com.google.ads.googleads.v10.resources.RemarketingSetting remarketingSetting_;
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.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 remarketingSetting_ != null;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The remarketingSetting.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.RemarketingSetting getRemarketingSetting() {
return remarketingSetting_ == null ? com.google.ads.googleads.v10.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.RemarketingSettingOrBuilder getRemarketingSettingOrBuilder() {
return getRemarketingSetting();
}
public static final int PAY_PER_CONVERSION_ELIGIBILITY_FAILURE_REASONS_FIELD_NUMBER = 16;
private java.util.List payPerConversionEligibilityFailureReasons_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason> payPerConversionEligibilityFailureReasons_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason>() {
public com.google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason result = com.google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason.valueOf(from);
return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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_;
/**
*
* 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_ & 0x00000400) != 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_;
/**
*
* 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_;
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v10.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.v10.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus result = com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus.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 (callReportingSetting_ != null) {
output.writeMessage(10, getCallReportingSetting());
}
if (conversionTrackingSetting_ != null) {
output.writeMessage(14, getConversionTrackingSetting());
}
if (remarketingSetting_ != null) {
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_ & 0x00000400) != 0)) {
output.writeDouble(29, optimizationScore_);
}
if (java.lang.Double.doubleToRawLongBits(optimizationScoreWeight_) != 0) {
output.writeDouble(30, optimizationScoreWeight_);
}
if (status_ != com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(36, status_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (callReportingSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCallReportingSetting());
}
if (conversionTrackingSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getConversionTrackingSetting());
}
if (remarketingSetting_ != null) {
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_ & 0x00000400) != 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.v10.enums.CustomerStatusEnum.CustomerStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(36, status_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.resources.Customer)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Customer other = (com.google.ads.googleads.v10.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 (!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_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Customer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Customer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.resources.Customer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Customer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Customer)
com.google.ads.googleads.v10.resources.CustomerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CustomerProto.internal_static_google_ads_googleads_v10_resources_Customer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CustomerProto.internal_static_google_ads_googleads_v10_resources_Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Customer.class, com.google.ads.googleads.v10.resources.Customer.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Customer.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
descriptiveName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
currencyCode_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
timeZone_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
trackingUrlTemplate_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
finalUrlSuffix_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
autoTaggingEnabled_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
hasPartnersBadge_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
manager_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
testAccount_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
if (callReportingSettingBuilder_ == null) {
callReportingSetting_ = null;
} else {
callReportingSetting_ = null;
callReportingSettingBuilder_ = null;
}
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSetting_ = null;
} else {
conversionTrackingSetting_ = null;
conversionTrackingSettingBuilder_ = null;
}
if (remarketingSettingBuilder_ == null) {
remarketingSetting_ = null;
} else {
remarketingSetting_ = null;
remarketingSettingBuilder_ = null;
}
payPerConversionEligibilityFailureReasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
optimizationScore_ = 0D;
bitField0_ = (bitField0_ & ~0x00000800);
optimizationScoreWeight_ = 0D;
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CustomerProto.internal_static_google_ads_googleads_v10_resources_Customer_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Customer getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Customer.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Customer build() {
com.google.ads.googleads.v10.resources.Customer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Customer buildPartial() {
com.google.ads.googleads.v10.resources.Customer result = new com.google.ads.googleads.v10.resources.Customer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.descriptiveName_ = descriptiveName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.currencyCode_ = currencyCode_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.timeZone_ = timeZone_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.trackingUrlTemplate_ = trackingUrlTemplate_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.finalUrlSuffix_ = finalUrlSuffix_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.autoTaggingEnabled_ = autoTaggingEnabled_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.hasPartnersBadge_ = hasPartnersBadge_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.manager_ = manager_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.testAccount_ = testAccount_;
to_bitField0_ |= 0x00000200;
}
if (callReportingSettingBuilder_ == null) {
result.callReportingSetting_ = callReportingSetting_;
} else {
result.callReportingSetting_ = callReportingSettingBuilder_.build();
}
if (conversionTrackingSettingBuilder_ == null) {
result.conversionTrackingSetting_ = conversionTrackingSetting_;
} else {
result.conversionTrackingSetting_ = conversionTrackingSettingBuilder_.build();
}
if (remarketingSettingBuilder_ == null) {
result.remarketingSetting_ = remarketingSetting_;
} else {
result.remarketingSetting_ = remarketingSettingBuilder_.build();
}
if (((bitField0_ & 0x00000400) != 0)) {
payPerConversionEligibilityFailureReasons_ = java.util.Collections.unmodifiableList(payPerConversionEligibilityFailureReasons_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.payPerConversionEligibilityFailureReasons_ = payPerConversionEligibilityFailureReasons_;
if (((from_bitField0_ & 0x00000800) != 0)) {
result.optimizationScore_ = optimizationScore_;
to_bitField0_ |= 0x00000400;
}
result.optimizationScoreWeight_ = optimizationScoreWeight_;
result.status_ = status_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.Customer) {
return mergeFrom((com.google.ads.googleads.v10.resources.Customer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Customer other) {
if (other == com.google.ads.googleads.v10.resources.Customer.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasDescriptiveName()) {
bitField0_ |= 0x00000002;
descriptiveName_ = other.descriptiveName_;
onChanged();
}
if (other.hasCurrencyCode()) {
bitField0_ |= 0x00000004;
currencyCode_ = other.currencyCode_;
onChanged();
}
if (other.hasTimeZone()) {
bitField0_ |= 0x00000008;
timeZone_ = other.timeZone_;
onChanged();
}
if (other.hasTrackingUrlTemplate()) {
bitField0_ |= 0x00000010;
trackingUrlTemplate_ = other.trackingUrlTemplate_;
onChanged();
}
if (other.hasFinalUrlSuffix()) {
bitField0_ |= 0x00000020;
finalUrlSuffix_ = other.finalUrlSuffix_;
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_ & ~0x00000400);
} 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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
break;
} // case 10
case 82: {
input.readMessage(
getCallReportingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 82
case 114: {
input.readMessage(
getConversionTrackingSettingFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 114
case 122: {
input.readMessage(
getRemarketingSettingFieldBuilder().getBuilder(),
extensionRegistry);
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_ |= 0x00000001;
break;
} // case 152
case 162: {
descriptiveName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 162
case 170: {
currencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 170
case 178: {
timeZone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 178
case 186: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 186
case 194: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 194
case 200: {
autoTaggingEnabled_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 200
case 208: {
hasPartnersBadge_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 208
case 216: {
manager_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 216
case 224: {
testAccount_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 224
case 233: {
optimizationScore_ = input.readDouble();
bitField0_ |= 0x00000800;
break;
} // case 233
case 241: {
optimizationScoreWeight_ = input.readDouble();
break;
} // case 241
case 288: {
status_ = input.readEnum();
break;
} // case 288
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;
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();
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;
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000001;
id_ = value;
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_ & ~0x00000001);
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_ & 0x00000002) != 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();
}
bitField0_ |= 0x00000002;
descriptiveName_ = value;
onChanged();
return this;
}
/**
*
* Optional, non-unique descriptive name of the customer.
*
*
* optional string descriptive_name = 20;
* @return This builder for chaining.
*/
public Builder clearDescriptiveName() {
bitField0_ = (bitField0_ & ~0x00000002);
descriptiveName_ = getDefaultInstance().getDescriptiveName();
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);
bitField0_ |= 0x00000002;
descriptiveName_ = value;
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_ & 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.
*/
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();
}
bitField0_ |= 0x00000004;
currencyCode_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000004);
currencyCode_ = getDefaultInstance().getCurrencyCode();
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);
bitField0_ |= 0x00000004;
currencyCode_ = value;
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_ & 0x00000008) != 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();
}
bitField0_ |= 0x00000008;
timeZone_ = value;
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() {
bitField0_ = (bitField0_ & ~0x00000008);
timeZone_ = getDefaultInstance().getTimeZone();
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);
bitField0_ |= 0x00000008;
timeZone_ = value;
onChanged();
return this;
}
private java.lang.Object trackingUrlTemplate_ = "";
/**
*
* The URL template for constructing a tracking URL out of parameters.
*
*
* optional string tracking_url_template = 23;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
*
*
* 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.
*
*
* 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.
*
*
* 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();
}
bitField0_ |= 0x00000010;
trackingUrlTemplate_ = value;
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
*
*
* optional string tracking_url_template = 23;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
bitField0_ = (bitField0_ & ~0x00000010);
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL out of parameters.
*
*
* 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);
bitField0_ |= 0x00000010;
trackingUrlTemplate_ = value;
onChanged();
return this;
}
private java.lang.Object finalUrlSuffix_ = "";
/**
*
* The URL template for appending params to the final URL
*
*
* optional string final_url_suffix = 24;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The URL template for appending params to the final URL
*
*
* 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
*
*
* 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
*
*
* 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();
}
bitField0_ |= 0x00000020;
finalUrlSuffix_ = value;
onChanged();
return this;
}
/**
*
* The URL template for appending params to the final URL
*
*
* optional string final_url_suffix = 24;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
bitField0_ = (bitField0_ & ~0x00000020);
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
onChanged();
return this;
}
/**
*
* The URL template for appending params to the final URL
*
*
* 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);
bitField0_ |= 0x00000020;
finalUrlSuffix_ = value;
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000040;
autoTaggingEnabled_ = value;
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_ & ~0x00000040);
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000080;
hasPartnersBadge_ = value;
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_ & ~0x00000080);
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000100;
manager_ = value;
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_ & ~0x00000100);
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_ & 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_;
}
/**
*
* 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) {
bitField0_ |= 0x00000200;
testAccount_ = value;
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_ & ~0x00000200);
testAccount_ = false;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.CallReportingSetting callReportingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.CallReportingSetting, com.google.ads.googleads.v10.resources.CallReportingSetting.Builder, com.google.ads.googleads.v10.resources.CallReportingSettingOrBuilder> callReportingSettingBuilder_;
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
* @return Whether the callReportingSetting field is set.
*/
public boolean hasCallReportingSetting() {
return callReportingSettingBuilder_ != null || callReportingSetting_ != null;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
* @return The callReportingSetting.
*/
public com.google.ads.googleads.v10.resources.CallReportingSetting getCallReportingSetting() {
if (callReportingSettingBuilder_ == null) {
return callReportingSetting_ == null ? com.google.ads.googleads.v10.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
} else {
return callReportingSettingBuilder_.getMessage();
}
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder setCallReportingSetting(com.google.ads.googleads.v10.resources.CallReportingSetting value) {
if (callReportingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callReportingSetting_ = value;
onChanged();
} else {
callReportingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder setCallReportingSetting(
com.google.ads.googleads.v10.resources.CallReportingSetting.Builder builderForValue) {
if (callReportingSettingBuilder_ == null) {
callReportingSetting_ = builderForValue.build();
onChanged();
} else {
callReportingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder mergeCallReportingSetting(com.google.ads.googleads.v10.resources.CallReportingSetting value) {
if (callReportingSettingBuilder_ == null) {
if (callReportingSetting_ != null) {
callReportingSetting_ =
com.google.ads.googleads.v10.resources.CallReportingSetting.newBuilder(callReportingSetting_).mergeFrom(value).buildPartial();
} else {
callReportingSetting_ = value;
}
onChanged();
} else {
callReportingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public Builder clearCallReportingSetting() {
if (callReportingSettingBuilder_ == null) {
callReportingSetting_ = null;
onChanged();
} else {
callReportingSetting_ = null;
callReportingSettingBuilder_ = null;
}
return this;
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public com.google.ads.googleads.v10.resources.CallReportingSetting.Builder getCallReportingSettingBuilder() {
onChanged();
return getCallReportingSettingFieldBuilder().getBuilder();
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
public com.google.ads.googleads.v10.resources.CallReportingSettingOrBuilder getCallReportingSettingOrBuilder() {
if (callReportingSettingBuilder_ != null) {
return callReportingSettingBuilder_.getMessageOrBuilder();
} else {
return callReportingSetting_ == null ?
com.google.ads.googleads.v10.resources.CallReportingSetting.getDefaultInstance() : callReportingSetting_;
}
}
/**
*
* Call reporting setting for a customer.
*
*
* .google.ads.googleads.v10.resources.CallReportingSetting call_reporting_setting = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.CallReportingSetting, com.google.ads.googleads.v10.resources.CallReportingSetting.Builder, com.google.ads.googleads.v10.resources.CallReportingSettingOrBuilder>
getCallReportingSettingFieldBuilder() {
if (callReportingSettingBuilder_ == null) {
callReportingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.CallReportingSetting, com.google.ads.googleads.v10.resources.CallReportingSetting.Builder, com.google.ads.googleads.v10.resources.CallReportingSettingOrBuilder>(
getCallReportingSetting(),
getParentForChildren(),
isClean());
callReportingSetting_ = null;
}
return callReportingSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.ConversionTrackingSetting conversionTrackingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionTrackingSetting, com.google.ads.googleads.v10.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v10.resources.ConversionTrackingSettingOrBuilder> conversionTrackingSettingBuilder_;
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionTrackingSetting field is set.
*/
public boolean hasConversionTrackingSetting() {
return conversionTrackingSettingBuilder_ != null || conversionTrackingSetting_ != null;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionTrackingSetting.
*/
public com.google.ads.googleads.v10.resources.ConversionTrackingSetting getConversionTrackingSetting() {
if (conversionTrackingSettingBuilder_ == null) {
return conversionTrackingSetting_ == null ? com.google.ads.googleads.v10.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
} else {
return conversionTrackingSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setConversionTrackingSetting(com.google.ads.googleads.v10.resources.ConversionTrackingSetting value) {
if (conversionTrackingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conversionTrackingSetting_ = value;
onChanged();
} else {
conversionTrackingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setConversionTrackingSetting(
com.google.ads.googleads.v10.resources.ConversionTrackingSetting.Builder builderForValue) {
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSetting_ = builderForValue.build();
onChanged();
} else {
conversionTrackingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeConversionTrackingSetting(com.google.ads.googleads.v10.resources.ConversionTrackingSetting value) {
if (conversionTrackingSettingBuilder_ == null) {
if (conversionTrackingSetting_ != null) {
conversionTrackingSetting_ =
com.google.ads.googleads.v10.resources.ConversionTrackingSetting.newBuilder(conversionTrackingSetting_).mergeFrom(value).buildPartial();
} else {
conversionTrackingSetting_ = value;
}
onChanged();
} else {
conversionTrackingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearConversionTrackingSetting() {
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSetting_ = null;
onChanged();
} else {
conversionTrackingSetting_ = null;
conversionTrackingSettingBuilder_ = null;
}
return this;
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionTrackingSetting.Builder getConversionTrackingSettingBuilder() {
onChanged();
return getConversionTrackingSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() {
if (conversionTrackingSettingBuilder_ != null) {
return conversionTrackingSettingBuilder_.getMessageOrBuilder();
} else {
return conversionTrackingSetting_ == null ?
com.google.ads.googleads.v10.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_;
}
}
/**
*
* Output only. Conversion tracking setting for a customer.
*
*
* .google.ads.googleads.v10.resources.ConversionTrackingSetting conversion_tracking_setting = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionTrackingSetting, com.google.ads.googleads.v10.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v10.resources.ConversionTrackingSettingOrBuilder>
getConversionTrackingSettingFieldBuilder() {
if (conversionTrackingSettingBuilder_ == null) {
conversionTrackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.ConversionTrackingSetting, com.google.ads.googleads.v10.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v10.resources.ConversionTrackingSettingOrBuilder>(
getConversionTrackingSetting(),
getParentForChildren(),
isClean());
conversionTrackingSetting_ = null;
}
return conversionTrackingSettingBuilder_;
}
private com.google.ads.googleads.v10.resources.RemarketingSetting remarketingSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.RemarketingSetting, com.google.ads.googleads.v10.resources.RemarketingSetting.Builder, com.google.ads.googleads.v10.resources.RemarketingSettingOrBuilder> remarketingSettingBuilder_;
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the remarketingSetting field is set.
*/
public boolean hasRemarketingSetting() {
return remarketingSettingBuilder_ != null || remarketingSetting_ != null;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The remarketingSetting.
*/
public com.google.ads.googleads.v10.resources.RemarketingSetting getRemarketingSetting() {
if (remarketingSettingBuilder_ == null) {
return remarketingSetting_ == null ? com.google.ads.googleads.v10.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
} else {
return remarketingSettingBuilder_.getMessage();
}
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRemarketingSetting(com.google.ads.googleads.v10.resources.RemarketingSetting value) {
if (remarketingSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
remarketingSetting_ = value;
onChanged();
} else {
remarketingSettingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRemarketingSetting(
com.google.ads.googleads.v10.resources.RemarketingSetting.Builder builderForValue) {
if (remarketingSettingBuilder_ == null) {
remarketingSetting_ = builderForValue.build();
onChanged();
} else {
remarketingSettingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRemarketingSetting(com.google.ads.googleads.v10.resources.RemarketingSetting value) {
if (remarketingSettingBuilder_ == null) {
if (remarketingSetting_ != null) {
remarketingSetting_ =
com.google.ads.googleads.v10.resources.RemarketingSetting.newBuilder(remarketingSetting_).mergeFrom(value).buildPartial();
} else {
remarketingSetting_ = value;
}
onChanged();
} else {
remarketingSettingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRemarketingSetting() {
if (remarketingSettingBuilder_ == null) {
remarketingSetting_ = null;
onChanged();
} else {
remarketingSetting_ = null;
remarketingSettingBuilder_ = null;
}
return this;
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.RemarketingSetting.Builder getRemarketingSettingBuilder() {
onChanged();
return getRemarketingSettingFieldBuilder().getBuilder();
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.RemarketingSettingOrBuilder getRemarketingSettingOrBuilder() {
if (remarketingSettingBuilder_ != null) {
return remarketingSettingBuilder_.getMessageOrBuilder();
} else {
return remarketingSetting_ == null ?
com.google.ads.googleads.v10.resources.RemarketingSetting.getDefaultInstance() : remarketingSetting_;
}
}
/**
*
* Output only. Remarketing setting for a customer.
*
*
* .google.ads.googleads.v10.resources.RemarketingSetting remarketing_setting = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.RemarketingSetting, com.google.ads.googleads.v10.resources.RemarketingSetting.Builder, com.google.ads.googleads.v10.resources.RemarketingSettingOrBuilder>
getRemarketingSettingFieldBuilder() {
if (remarketingSettingBuilder_ == null) {
remarketingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.RemarketingSetting, com.google.ads.googleads.v10.resources.RemarketingSetting.Builder, com.google.ads.googleads.v10.resources.RemarketingSettingOrBuilder>(
getRemarketingSetting(),
getParentForChildren(),
isClean());
remarketingSetting_ = null;
}
return remarketingSettingBuilder_;
}
private java.util.List payPerConversionEligibilityFailureReasons_ =
java.util.Collections.emptyList();
private void ensurePayPerConversionEligibilityFailureReasonsIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
payPerConversionEligibilityFailureReasons_ = new java.util.ArrayList(payPerConversionEligibilityFailureReasons_);
bitField0_ |= 0x00000400;
}
}
/**
*
* 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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason> values) {
ensurePayPerConversionEligibilityFailureReasonsIsMutable();
for (com.google.ads.googleads.v10.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.v10.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_ & ~0x00000400);
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.v10.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.v10.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.v10.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.v10.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.v10.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_ & 0x00000800) != 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) {
bitField0_ |= 0x00000800;
optimizationScore_ = value;
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_ & ~0x00000800);
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;
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() {
optimizationScoreWeight_ = 0D;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v10.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.v10.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;
onChanged();
return this;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus result = com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v10.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.v10.enums.CustomerStatusEnum.CustomerStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the customer.
*
*
* .google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus status = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Customer)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Customer)
private static final com.google.ads.googleads.v10.resources.Customer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Customer();
}
public static com.google.ads.googleads.v10.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.v10.resources.Customer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy