com.google.ads.googleads.v10.services.ClickConversion 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/services/conversion_upload_service.proto
package com.google.ads.googleads.v10.services;
/**
*
* A click conversion.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ClickConversion}
*/
public final class ClickConversion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ClickConversion)
ClickConversionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClickConversion.newBuilder() to construct.
private ClickConversion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClickConversion() {
gclid_ = "";
gbraid_ = "";
wbraid_ = "";
conversionAction_ = "";
conversionDateTime_ = "";
currencyCode_ = "";
orderId_ = "";
customVariables_ = java.util.Collections.emptyList();
userIdentifiers_ = java.util.Collections.emptyList();
conversionEnvironment_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClickConversion();
}
@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.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v10_services_ClickConversion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v10_services_ClickConversion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ClickConversion.class, com.google.ads.googleads.v10.services.ClickConversion.Builder.class);
}
private int bitField0_;
public static final int GCLID_FIELD_NUMBER = 9;
private volatile java.lang.Object gclid_;
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return Whether the gclid field is set.
*/
@java.lang.Override
public boolean hasGclid() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return The gclid.
*/
@java.lang.Override
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
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();
gclid_ = s;
return s;
}
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return The bytes for gclid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GBRAID_FIELD_NUMBER = 18;
private volatile java.lang.Object gbraid_;
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @return The gbraid.
*/
@java.lang.Override
public java.lang.String getGbraid() {
java.lang.Object ref = gbraid_;
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();
gbraid_ = s;
return s;
}
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @return The bytes for gbraid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGbraidBytes() {
java.lang.Object ref = gbraid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gbraid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WBRAID_FIELD_NUMBER = 19;
private volatile java.lang.Object wbraid_;
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @return The wbraid.
*/
@java.lang.Override
public java.lang.String getWbraid() {
java.lang.Object ref = wbraid_;
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();
wbraid_ = s;
return s;
}
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @return The bytes for wbraid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWbraidBytes() {
java.lang.Object ref = wbraid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wbraid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONVERSION_ACTION_FIELD_NUMBER = 10;
private volatile java.lang.Object conversionAction_;
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return Whether the conversionAction field is set.
*/
@java.lang.Override
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return The conversionAction.
*/
@java.lang.Override
public java.lang.String getConversionAction() {
java.lang.Object ref = conversionAction_;
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();
conversionAction_ = s;
return s;
}
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return The bytes for conversionAction.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConversionActionBytes() {
java.lang.Object ref = conversionAction_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionAction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONVERSION_DATE_TIME_FIELD_NUMBER = 11;
private volatile java.lang.Object conversionDateTime_;
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return Whether the conversionDateTime field is set.
*/
@java.lang.Override
public boolean hasConversionDateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return The conversionDateTime.
*/
@java.lang.Override
public java.lang.String getConversionDateTime() {
java.lang.Object ref = conversionDateTime_;
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();
conversionDateTime_ = s;
return s;
}
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return The bytes for conversionDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConversionDateTimeBytes() {
java.lang.Object ref = conversionDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONVERSION_VALUE_FIELD_NUMBER = 12;
private double conversionValue_;
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @return Whether the conversionValue field is set.
*/
@java.lang.Override
public boolean hasConversionValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @return The conversionValue.
*/
@java.lang.Override
public double getConversionValue() {
return conversionValue_;
}
public static final int CURRENCY_CODE_FIELD_NUMBER = 13;
private volatile java.lang.Object currencyCode_;
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @return Whether the currencyCode field is set.
*/
@java.lang.Override
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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;
}
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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 ORDER_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object orderId_;
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return Whether the orderId field is set.
*/
@java.lang.Override
public boolean hasOrderId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return The orderId.
*/
@java.lang.Override
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
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();
orderId_ = s;
return s;
}
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return The bytes for orderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNAL_ATTRIBUTION_DATA_FIELD_NUMBER = 7;
private com.google.ads.googleads.v10.services.ExternalAttributionData externalAttributionData_;
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
* @return Whether the externalAttributionData field is set.
*/
@java.lang.Override
public boolean hasExternalAttributionData() {
return externalAttributionData_ != null;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
* @return The externalAttributionData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ExternalAttributionData getExternalAttributionData() {
return externalAttributionData_ == null ? com.google.ads.googleads.v10.services.ExternalAttributionData.getDefaultInstance() : externalAttributionData_;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ExternalAttributionDataOrBuilder getExternalAttributionDataOrBuilder() {
return getExternalAttributionData();
}
public static final int CUSTOM_VARIABLES_FIELD_NUMBER = 15;
private java.util.List customVariables_;
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
@java.lang.Override
public java.util.List getCustomVariablesList() {
return customVariables_;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.services.CustomVariableOrBuilder>
getCustomVariablesOrBuilderList() {
return customVariables_;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
@java.lang.Override
public int getCustomVariablesCount() {
return customVariables_.size();
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.CustomVariable getCustomVariables(int index) {
return customVariables_.get(index);
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.CustomVariableOrBuilder getCustomVariablesOrBuilder(
int index) {
return customVariables_.get(index);
}
public static final int CART_DATA_FIELD_NUMBER = 16;
private com.google.ads.googleads.v10.services.CartData cartData_;
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
* @return Whether the cartData field is set.
*/
@java.lang.Override
public boolean hasCartData() {
return cartData_ != null;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
* @return The cartData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.CartData getCartData() {
return cartData_ == null ? com.google.ads.googleads.v10.services.CartData.getDefaultInstance() : cartData_;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.CartDataOrBuilder getCartDataOrBuilder() {
return getCartData();
}
public static final int USER_IDENTIFIERS_FIELD_NUMBER = 17;
private java.util.List userIdentifiers_;
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
@java.lang.Override
public java.util.List getUserIdentifiersList() {
return userIdentifiers_;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.UserIdentifierOrBuilder>
getUserIdentifiersOrBuilderList() {
return userIdentifiers_;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
@java.lang.Override
public int getUserIdentifiersCount() {
return userIdentifiers_.size();
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserIdentifier getUserIdentifiers(int index) {
return userIdentifiers_.get(index);
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserIdentifierOrBuilder getUserIdentifiersOrBuilder(
int index) {
return userIdentifiers_.get(index);
}
public static final int CONVERSION_ENVIRONMENT_FIELD_NUMBER = 20;
private int conversionEnvironment_;
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @return The enum numeric value on the wire for conversionEnvironment.
*/
@java.lang.Override public int getConversionEnvironmentValue() {
return conversionEnvironment_;
}
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @return The conversionEnvironment.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment getConversionEnvironment() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment result = com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.valueOf(conversionEnvironment_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (externalAttributionData_ != null) {
output.writeMessage(7, getExternalAttributionData());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, gclid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, conversionDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(12, conversionValue_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, currencyCode_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, orderId_);
}
for (int i = 0; i < customVariables_.size(); i++) {
output.writeMessage(15, customVariables_.get(i));
}
if (cartData_ != null) {
output.writeMessage(16, getCartData());
}
for (int i = 0; i < userIdentifiers_.size(); i++) {
output.writeMessage(17, userIdentifiers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gbraid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, gbraid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wbraid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, wbraid_);
}
if (conversionEnvironment_ != com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.UNSPECIFIED.getNumber()) {
output.writeEnum(20, conversionEnvironment_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (externalAttributionData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getExternalAttributionData());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, gclid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, conversionDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, conversionValue_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, currencyCode_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, orderId_);
}
for (int i = 0; i < customVariables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, customVariables_.get(i));
}
if (cartData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getCartData());
}
for (int i = 0; i < userIdentifiers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, userIdentifiers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gbraid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, gbraid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wbraid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, wbraid_);
}
if (conversionEnvironment_ != com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(20, conversionEnvironment_);
}
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.services.ClickConversion)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ClickConversion other = (com.google.ads.googleads.v10.services.ClickConversion) obj;
if (hasGclid() != other.hasGclid()) return false;
if (hasGclid()) {
if (!getGclid()
.equals(other.getGclid())) return false;
}
if (!getGbraid()
.equals(other.getGbraid())) return false;
if (!getWbraid()
.equals(other.getWbraid())) return false;
if (hasConversionAction() != other.hasConversionAction()) return false;
if (hasConversionAction()) {
if (!getConversionAction()
.equals(other.getConversionAction())) return false;
}
if (hasConversionDateTime() != other.hasConversionDateTime()) return false;
if (hasConversionDateTime()) {
if (!getConversionDateTime()
.equals(other.getConversionDateTime())) return false;
}
if (hasConversionValue() != other.hasConversionValue()) return false;
if (hasConversionValue()) {
if (java.lang.Double.doubleToLongBits(getConversionValue())
!= java.lang.Double.doubleToLongBits(
other.getConversionValue())) return false;
}
if (hasCurrencyCode() != other.hasCurrencyCode()) return false;
if (hasCurrencyCode()) {
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) return false;
}
if (hasOrderId() != other.hasOrderId()) return false;
if (hasOrderId()) {
if (!getOrderId()
.equals(other.getOrderId())) return false;
}
if (hasExternalAttributionData() != other.hasExternalAttributionData()) return false;
if (hasExternalAttributionData()) {
if (!getExternalAttributionData()
.equals(other.getExternalAttributionData())) return false;
}
if (!getCustomVariablesList()
.equals(other.getCustomVariablesList())) return false;
if (hasCartData() != other.hasCartData()) return false;
if (hasCartData()) {
if (!getCartData()
.equals(other.getCartData())) return false;
}
if (!getUserIdentifiersList()
.equals(other.getUserIdentifiersList())) return false;
if (conversionEnvironment_ != other.conversionEnvironment_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGclid()) {
hash = (37 * hash) + GCLID_FIELD_NUMBER;
hash = (53 * hash) + getGclid().hashCode();
}
hash = (37 * hash) + GBRAID_FIELD_NUMBER;
hash = (53 * hash) + getGbraid().hashCode();
hash = (37 * hash) + WBRAID_FIELD_NUMBER;
hash = (53 * hash) + getWbraid().hashCode();
if (hasConversionAction()) {
hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getConversionAction().hashCode();
}
if (hasConversionDateTime()) {
hash = (37 * hash) + CONVERSION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getConversionDateTime().hashCode();
}
if (hasConversionValue()) {
hash = (37 * hash) + CONVERSION_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getConversionValue()));
}
if (hasCurrencyCode()) {
hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
}
if (hasOrderId()) {
hash = (37 * hash) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
}
if (hasExternalAttributionData()) {
hash = (37 * hash) + EXTERNAL_ATTRIBUTION_DATA_FIELD_NUMBER;
hash = (53 * hash) + getExternalAttributionData().hashCode();
}
if (getCustomVariablesCount() > 0) {
hash = (37 * hash) + CUSTOM_VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + getCustomVariablesList().hashCode();
}
if (hasCartData()) {
hash = (37 * hash) + CART_DATA_FIELD_NUMBER;
hash = (53 * hash) + getCartData().hashCode();
}
if (getUserIdentifiersCount() > 0) {
hash = (37 * hash) + USER_IDENTIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getUserIdentifiersList().hashCode();
}
hash = (37 * hash) + CONVERSION_ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + conversionEnvironment_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ClickConversion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ClickConversion 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.services.ClickConversion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ClickConversion 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.services.ClickConversion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ClickConversion 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.services.ClickConversion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ClickConversion 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.services.ClickConversion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ClickConversion 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.services.ClickConversion 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.services.ClickConversion 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.services.ClickConversion 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 click conversion.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ClickConversion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ClickConversion)
com.google.ads.googleads.v10.services.ClickConversionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v10_services_ClickConversion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v10_services_ClickConversion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ClickConversion.class, com.google.ads.googleads.v10.services.ClickConversion.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ClickConversion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
gclid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
gbraid_ = "";
wbraid_ = "";
conversionAction_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
conversionDateTime_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
conversionValue_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
currencyCode_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
orderId_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (externalAttributionDataBuilder_ == null) {
externalAttributionData_ = null;
} else {
externalAttributionData_ = null;
externalAttributionDataBuilder_ = null;
}
if (customVariablesBuilder_ == null) {
customVariables_ = java.util.Collections.emptyList();
} else {
customVariables_ = null;
customVariablesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (cartDataBuilder_ == null) {
cartData_ = null;
} else {
cartData_ = null;
cartDataBuilder_ = null;
}
if (userIdentifiersBuilder_ == null) {
userIdentifiers_ = java.util.Collections.emptyList();
} else {
userIdentifiers_ = null;
userIdentifiersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
conversionEnvironment_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v10_services_ClickConversion_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ClickConversion getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ClickConversion.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ClickConversion build() {
com.google.ads.googleads.v10.services.ClickConversion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ClickConversion buildPartial() {
com.google.ads.googleads.v10.services.ClickConversion result = new com.google.ads.googleads.v10.services.ClickConversion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.gclid_ = gclid_;
result.gbraid_ = gbraid_;
result.wbraid_ = wbraid_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.conversionAction_ = conversionAction_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.conversionDateTime_ = conversionDateTime_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.conversionValue_ = conversionValue_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.currencyCode_ = currencyCode_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.orderId_ = orderId_;
if (externalAttributionDataBuilder_ == null) {
result.externalAttributionData_ = externalAttributionData_;
} else {
result.externalAttributionData_ = externalAttributionDataBuilder_.build();
}
if (customVariablesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
customVariables_ = java.util.Collections.unmodifiableList(customVariables_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.customVariables_ = customVariables_;
} else {
result.customVariables_ = customVariablesBuilder_.build();
}
if (cartDataBuilder_ == null) {
result.cartData_ = cartData_;
} else {
result.cartData_ = cartDataBuilder_.build();
}
if (userIdentifiersBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
userIdentifiers_ = java.util.Collections.unmodifiableList(userIdentifiers_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.userIdentifiers_ = userIdentifiers_;
} else {
result.userIdentifiers_ = userIdentifiersBuilder_.build();
}
result.conversionEnvironment_ = conversionEnvironment_;
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.services.ClickConversion) {
return mergeFrom((com.google.ads.googleads.v10.services.ClickConversion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ClickConversion other) {
if (other == com.google.ads.googleads.v10.services.ClickConversion.getDefaultInstance()) return this;
if (other.hasGclid()) {
bitField0_ |= 0x00000001;
gclid_ = other.gclid_;
onChanged();
}
if (!other.getGbraid().isEmpty()) {
gbraid_ = other.gbraid_;
onChanged();
}
if (!other.getWbraid().isEmpty()) {
wbraid_ = other.wbraid_;
onChanged();
}
if (other.hasConversionAction()) {
bitField0_ |= 0x00000002;
conversionAction_ = other.conversionAction_;
onChanged();
}
if (other.hasConversionDateTime()) {
bitField0_ |= 0x00000004;
conversionDateTime_ = other.conversionDateTime_;
onChanged();
}
if (other.hasConversionValue()) {
setConversionValue(other.getConversionValue());
}
if (other.hasCurrencyCode()) {
bitField0_ |= 0x00000010;
currencyCode_ = other.currencyCode_;
onChanged();
}
if (other.hasOrderId()) {
bitField0_ |= 0x00000020;
orderId_ = other.orderId_;
onChanged();
}
if (other.hasExternalAttributionData()) {
mergeExternalAttributionData(other.getExternalAttributionData());
}
if (customVariablesBuilder_ == null) {
if (!other.customVariables_.isEmpty()) {
if (customVariables_.isEmpty()) {
customVariables_ = other.customVariables_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureCustomVariablesIsMutable();
customVariables_.addAll(other.customVariables_);
}
onChanged();
}
} else {
if (!other.customVariables_.isEmpty()) {
if (customVariablesBuilder_.isEmpty()) {
customVariablesBuilder_.dispose();
customVariablesBuilder_ = null;
customVariables_ = other.customVariables_;
bitField0_ = (bitField0_ & ~0x00000040);
customVariablesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomVariablesFieldBuilder() : null;
} else {
customVariablesBuilder_.addAllMessages(other.customVariables_);
}
}
}
if (other.hasCartData()) {
mergeCartData(other.getCartData());
}
if (userIdentifiersBuilder_ == null) {
if (!other.userIdentifiers_.isEmpty()) {
if (userIdentifiers_.isEmpty()) {
userIdentifiers_ = other.userIdentifiers_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureUserIdentifiersIsMutable();
userIdentifiers_.addAll(other.userIdentifiers_);
}
onChanged();
}
} else {
if (!other.userIdentifiers_.isEmpty()) {
if (userIdentifiersBuilder_.isEmpty()) {
userIdentifiersBuilder_.dispose();
userIdentifiersBuilder_ = null;
userIdentifiers_ = other.userIdentifiers_;
bitField0_ = (bitField0_ & ~0x00000080);
userIdentifiersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUserIdentifiersFieldBuilder() : null;
} else {
userIdentifiersBuilder_.addAllMessages(other.userIdentifiers_);
}
}
}
if (other.conversionEnvironment_ != 0) {
setConversionEnvironmentValue(other.getConversionEnvironmentValue());
}
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 58: {
input.readMessage(
getExternalAttributionDataFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 58
case 74: {
gclid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 74
case 82: {
conversionAction_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
case 90: {
conversionDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 90
case 97: {
conversionValue_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 97
case 106: {
currencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 106
case 114: {
orderId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 114
case 122: {
com.google.ads.googleads.v10.services.CustomVariable m =
input.readMessage(
com.google.ads.googleads.v10.services.CustomVariable.parser(),
extensionRegistry);
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
customVariables_.add(m);
} else {
customVariablesBuilder_.addMessage(m);
}
break;
} // case 122
case 130: {
input.readMessage(
getCartDataFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 130
case 138: {
com.google.ads.googleads.v10.common.UserIdentifier m =
input.readMessage(
com.google.ads.googleads.v10.common.UserIdentifier.parser(),
extensionRegistry);
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(m);
} else {
userIdentifiersBuilder_.addMessage(m);
}
break;
} // case 138
case 146: {
gbraid_ = input.readStringRequireUtf8();
break;
} // case 146
case 154: {
wbraid_ = input.readStringRequireUtf8();
break;
} // case 154
case 160: {
conversionEnvironment_ = input.readEnum();
break;
} // case 160
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 gclid_ = "";
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return Whether the gclid field is set.
*/
public boolean hasGclid() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return The gclid.
*/
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gclid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return The bytes for gclid.
*/
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @param value The gclid to set.
* @return This builder for chaining.
*/
public Builder setGclid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
gclid_ = value;
onChanged();
return this;
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @return This builder for chaining.
*/
public Builder clearGclid() {
bitField0_ = (bitField0_ & ~0x00000001);
gclid_ = getDefaultInstance().getGclid();
onChanged();
return this;
}
/**
*
* The Google click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 9;
* @param value The bytes for gclid to set.
* @return This builder for chaining.
*/
public Builder setGclidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
gclid_ = value;
onChanged();
return this;
}
private java.lang.Object gbraid_ = "";
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @return The gbraid.
*/
public java.lang.String getGbraid() {
java.lang.Object ref = gbraid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gbraid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @return The bytes for gbraid.
*/
public com.google.protobuf.ByteString
getGbraidBytes() {
java.lang.Object ref = gbraid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gbraid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @param value The gbraid to set.
* @return This builder for chaining.
*/
public Builder setGbraid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
gbraid_ = value;
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @return This builder for chaining.
*/
public Builder clearGbraid() {
gbraid_ = getDefaultInstance().getGbraid();
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 18;
* @param value The bytes for gbraid to set.
* @return This builder for chaining.
*/
public Builder setGbraidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
gbraid_ = value;
onChanged();
return this;
}
private java.lang.Object wbraid_ = "";
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @return The wbraid.
*/
public java.lang.String getWbraid() {
java.lang.Object ref = wbraid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
wbraid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @return The bytes for wbraid.
*/
public com.google.protobuf.ByteString
getWbraidBytes() {
java.lang.Object ref = wbraid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wbraid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @param value The wbraid to set.
* @return This builder for chaining.
*/
public Builder setWbraid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
wbraid_ = value;
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @return This builder for chaining.
*/
public Builder clearWbraid() {
wbraid_ = getDefaultInstance().getWbraid();
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 19;
* @param value The bytes for wbraid to set.
* @return This builder for chaining.
*/
public Builder setWbraidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
wbraid_ = value;
onChanged();
return this;
}
private java.lang.Object conversionAction_ = "";
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return Whether the conversionAction field is set.
*/
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return The conversionAction.
*/
public java.lang.String getConversionAction() {
java.lang.Object ref = conversionAction_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conversionAction_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return The bytes for conversionAction.
*/
public com.google.protobuf.ByteString
getConversionActionBytes() {
java.lang.Object ref = conversionAction_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionAction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @param value The conversionAction to set.
* @return This builder for chaining.
*/
public Builder setConversionAction(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
conversionAction_ = value;
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @return This builder for chaining.
*/
public Builder clearConversionAction() {
bitField0_ = (bitField0_ & ~0x00000002);
conversionAction_ = getDefaultInstance().getConversionAction();
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion.
* Note: Although this resource name consists of a customer id and a
* conversion action id, validation will ignore the customer id and use the
* conversion action id as the sole identifier of the conversion action.
*
*
* optional string conversion_action = 10;
* @param value The bytes for conversionAction to set.
* @return This builder for chaining.
*/
public Builder setConversionActionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
conversionAction_ = value;
onChanged();
return this;
}
private java.lang.Object conversionDateTime_ = "";
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return Whether the conversionDateTime field is set.
*/
public boolean hasConversionDateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return The conversionDateTime.
*/
public java.lang.String getConversionDateTime() {
java.lang.Object ref = conversionDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conversionDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return The bytes for conversionDateTime.
*/
public com.google.protobuf.ByteString
getConversionDateTimeBytes() {
java.lang.Object ref = conversionDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conversionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @param value The conversionDateTime to set.
* @return This builder for chaining.
*/
public Builder setConversionDateTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
conversionDateTime_ = value;
onChanged();
return this;
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @return This builder for chaining.
*/
public Builder clearConversionDateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
conversionDateTime_ = getDefaultInstance().getConversionDateTime();
onChanged();
return this;
}
/**
*
* The date time at which the conversion occurred. Must be after
* the click time. The timezone must be specified. The format is
* "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
*
*
* optional string conversion_date_time = 11;
* @param value The bytes for conversionDateTime to set.
* @return This builder for chaining.
*/
public Builder setConversionDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
conversionDateTime_ = value;
onChanged();
return this;
}
private double conversionValue_ ;
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @return Whether the conversionValue field is set.
*/
@java.lang.Override
public boolean hasConversionValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @return The conversionValue.
*/
@java.lang.Override
public double getConversionValue() {
return conversionValue_;
}
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @param value The conversionValue to set.
* @return This builder for chaining.
*/
public Builder setConversionValue(double value) {
bitField0_ |= 0x00000008;
conversionValue_ = value;
onChanged();
return this;
}
/**
*
* The value of the conversion for the advertiser.
*
*
* optional double conversion_value = 12;
* @return This builder for chaining.
*/
public Builder clearConversionValue() {
bitField0_ = (bitField0_ & ~0x00000008);
conversionValue_ = 0D;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @return Whether the currencyCode field is set.
*/
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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;
}
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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;
}
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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_ |= 0x00000010;
currencyCode_ = value;
onChanged();
return this;
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
bitField0_ = (bitField0_ & ~0x00000010);
currencyCode_ = getDefaultInstance().getCurrencyCode();
onChanged();
return this;
}
/**
*
* Currency associated with the conversion value. This is the ISO 4217
* 3-character currency code. For example: USD, EUR.
*
*
* optional string currency_code = 13;
* @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_ |= 0x00000010;
currencyCode_ = value;
onChanged();
return this;
}
private java.lang.Object orderId_ = "";
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return Whether the orderId field is set.
*/
public boolean hasOrderId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return The orderId.
*/
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return The bytes for orderId.
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @param value The orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
orderId_ = value;
onChanged();
return this;
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
bitField0_ = (bitField0_ & ~0x00000020);
orderId_ = getDefaultInstance().getOrderId();
onChanged();
return this;
}
/**
*
* The order ID associated with the conversion. An order id can only be used
* for one conversion per conversion action.
*
*
* optional string order_id = 14;
* @param value The bytes for orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000020;
orderId_ = value;
onChanged();
return this;
}
private com.google.ads.googleads.v10.services.ExternalAttributionData externalAttributionData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ExternalAttributionData, com.google.ads.googleads.v10.services.ExternalAttributionData.Builder, com.google.ads.googleads.v10.services.ExternalAttributionDataOrBuilder> externalAttributionDataBuilder_;
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
* @return Whether the externalAttributionData field is set.
*/
public boolean hasExternalAttributionData() {
return externalAttributionDataBuilder_ != null || externalAttributionData_ != null;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
* @return The externalAttributionData.
*/
public com.google.ads.googleads.v10.services.ExternalAttributionData getExternalAttributionData() {
if (externalAttributionDataBuilder_ == null) {
return externalAttributionData_ == null ? com.google.ads.googleads.v10.services.ExternalAttributionData.getDefaultInstance() : externalAttributionData_;
} else {
return externalAttributionDataBuilder_.getMessage();
}
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public Builder setExternalAttributionData(com.google.ads.googleads.v10.services.ExternalAttributionData value) {
if (externalAttributionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
externalAttributionData_ = value;
onChanged();
} else {
externalAttributionDataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public Builder setExternalAttributionData(
com.google.ads.googleads.v10.services.ExternalAttributionData.Builder builderForValue) {
if (externalAttributionDataBuilder_ == null) {
externalAttributionData_ = builderForValue.build();
onChanged();
} else {
externalAttributionDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public Builder mergeExternalAttributionData(com.google.ads.googleads.v10.services.ExternalAttributionData value) {
if (externalAttributionDataBuilder_ == null) {
if (externalAttributionData_ != null) {
externalAttributionData_ =
com.google.ads.googleads.v10.services.ExternalAttributionData.newBuilder(externalAttributionData_).mergeFrom(value).buildPartial();
} else {
externalAttributionData_ = value;
}
onChanged();
} else {
externalAttributionDataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public Builder clearExternalAttributionData() {
if (externalAttributionDataBuilder_ == null) {
externalAttributionData_ = null;
onChanged();
} else {
externalAttributionData_ = null;
externalAttributionDataBuilder_ = null;
}
return this;
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public com.google.ads.googleads.v10.services.ExternalAttributionData.Builder getExternalAttributionDataBuilder() {
onChanged();
return getExternalAttributionDataFieldBuilder().getBuilder();
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
public com.google.ads.googleads.v10.services.ExternalAttributionDataOrBuilder getExternalAttributionDataOrBuilder() {
if (externalAttributionDataBuilder_ != null) {
return externalAttributionDataBuilder_.getMessageOrBuilder();
} else {
return externalAttributionData_ == null ?
com.google.ads.googleads.v10.services.ExternalAttributionData.getDefaultInstance() : externalAttributionData_;
}
}
/**
*
* Additional data about externally attributed conversions. This field
* is required for conversions with an externally attributed conversion
* action, but should not be set otherwise.
*
*
* .google.ads.googleads.v10.services.ExternalAttributionData external_attribution_data = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ExternalAttributionData, com.google.ads.googleads.v10.services.ExternalAttributionData.Builder, com.google.ads.googleads.v10.services.ExternalAttributionDataOrBuilder>
getExternalAttributionDataFieldBuilder() {
if (externalAttributionDataBuilder_ == null) {
externalAttributionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ExternalAttributionData, com.google.ads.googleads.v10.services.ExternalAttributionData.Builder, com.google.ads.googleads.v10.services.ExternalAttributionDataOrBuilder>(
getExternalAttributionData(),
getParentForChildren(),
isClean());
externalAttributionData_ = null;
}
return externalAttributionDataBuilder_;
}
private java.util.List customVariables_ =
java.util.Collections.emptyList();
private void ensureCustomVariablesIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
customVariables_ = new java.util.ArrayList(customVariables_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.CustomVariable, com.google.ads.googleads.v10.services.CustomVariable.Builder, com.google.ads.googleads.v10.services.CustomVariableOrBuilder> customVariablesBuilder_;
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public java.util.List getCustomVariablesList() {
if (customVariablesBuilder_ == null) {
return java.util.Collections.unmodifiableList(customVariables_);
} else {
return customVariablesBuilder_.getMessageList();
}
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public int getCustomVariablesCount() {
if (customVariablesBuilder_ == null) {
return customVariables_.size();
} else {
return customVariablesBuilder_.getCount();
}
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public com.google.ads.googleads.v10.services.CustomVariable getCustomVariables(int index) {
if (customVariablesBuilder_ == null) {
return customVariables_.get(index);
} else {
return customVariablesBuilder_.getMessage(index);
}
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder setCustomVariables(
int index, com.google.ads.googleads.v10.services.CustomVariable value) {
if (customVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomVariablesIsMutable();
customVariables_.set(index, value);
onChanged();
} else {
customVariablesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder setCustomVariables(
int index, com.google.ads.googleads.v10.services.CustomVariable.Builder builderForValue) {
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
customVariables_.set(index, builderForValue.build());
onChanged();
} else {
customVariablesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder addCustomVariables(com.google.ads.googleads.v10.services.CustomVariable value) {
if (customVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomVariablesIsMutable();
customVariables_.add(value);
onChanged();
} else {
customVariablesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder addCustomVariables(
int index, com.google.ads.googleads.v10.services.CustomVariable value) {
if (customVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomVariablesIsMutable();
customVariables_.add(index, value);
onChanged();
} else {
customVariablesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder addCustomVariables(
com.google.ads.googleads.v10.services.CustomVariable.Builder builderForValue) {
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
customVariables_.add(builderForValue.build());
onChanged();
} else {
customVariablesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder addCustomVariables(
int index, com.google.ads.googleads.v10.services.CustomVariable.Builder builderForValue) {
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
customVariables_.add(index, builderForValue.build());
onChanged();
} else {
customVariablesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder addAllCustomVariables(
java.lang.Iterable extends com.google.ads.googleads.v10.services.CustomVariable> values) {
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customVariables_);
onChanged();
} else {
customVariablesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder clearCustomVariables() {
if (customVariablesBuilder_ == null) {
customVariables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
customVariablesBuilder_.clear();
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public Builder removeCustomVariables(int index) {
if (customVariablesBuilder_ == null) {
ensureCustomVariablesIsMutable();
customVariables_.remove(index);
onChanged();
} else {
customVariablesBuilder_.remove(index);
}
return this;
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public com.google.ads.googleads.v10.services.CustomVariable.Builder getCustomVariablesBuilder(
int index) {
return getCustomVariablesFieldBuilder().getBuilder(index);
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public com.google.ads.googleads.v10.services.CustomVariableOrBuilder getCustomVariablesOrBuilder(
int index) {
if (customVariablesBuilder_ == null) {
return customVariables_.get(index); } else {
return customVariablesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public java.util.List extends com.google.ads.googleads.v10.services.CustomVariableOrBuilder>
getCustomVariablesOrBuilderList() {
if (customVariablesBuilder_ != null) {
return customVariablesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customVariables_);
}
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public com.google.ads.googleads.v10.services.CustomVariable.Builder addCustomVariablesBuilder() {
return getCustomVariablesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.services.CustomVariable.getDefaultInstance());
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public com.google.ads.googleads.v10.services.CustomVariable.Builder addCustomVariablesBuilder(
int index) {
return getCustomVariablesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.services.CustomVariable.getDefaultInstance());
}
/**
*
* The custom variables associated with this conversion.
*
*
* repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 15;
*/
public java.util.List
getCustomVariablesBuilderList() {
return getCustomVariablesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.CustomVariable, com.google.ads.googleads.v10.services.CustomVariable.Builder, com.google.ads.googleads.v10.services.CustomVariableOrBuilder>
getCustomVariablesFieldBuilder() {
if (customVariablesBuilder_ == null) {
customVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.CustomVariable, com.google.ads.googleads.v10.services.CustomVariable.Builder, com.google.ads.googleads.v10.services.CustomVariableOrBuilder>(
customVariables_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
customVariables_ = null;
}
return customVariablesBuilder_;
}
private com.google.ads.googleads.v10.services.CartData cartData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.CartData, com.google.ads.googleads.v10.services.CartData.Builder, com.google.ads.googleads.v10.services.CartDataOrBuilder> cartDataBuilder_;
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
* @return Whether the cartData field is set.
*/
public boolean hasCartData() {
return cartDataBuilder_ != null || cartData_ != null;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
* @return The cartData.
*/
public com.google.ads.googleads.v10.services.CartData getCartData() {
if (cartDataBuilder_ == null) {
return cartData_ == null ? com.google.ads.googleads.v10.services.CartData.getDefaultInstance() : cartData_;
} else {
return cartDataBuilder_.getMessage();
}
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public Builder setCartData(com.google.ads.googleads.v10.services.CartData value) {
if (cartDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cartData_ = value;
onChanged();
} else {
cartDataBuilder_.setMessage(value);
}
return this;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public Builder setCartData(
com.google.ads.googleads.v10.services.CartData.Builder builderForValue) {
if (cartDataBuilder_ == null) {
cartData_ = builderForValue.build();
onChanged();
} else {
cartDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public Builder mergeCartData(com.google.ads.googleads.v10.services.CartData value) {
if (cartDataBuilder_ == null) {
if (cartData_ != null) {
cartData_ =
com.google.ads.googleads.v10.services.CartData.newBuilder(cartData_).mergeFrom(value).buildPartial();
} else {
cartData_ = value;
}
onChanged();
} else {
cartDataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public Builder clearCartData() {
if (cartDataBuilder_ == null) {
cartData_ = null;
onChanged();
} else {
cartData_ = null;
cartDataBuilder_ = null;
}
return this;
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public com.google.ads.googleads.v10.services.CartData.Builder getCartDataBuilder() {
onChanged();
return getCartDataFieldBuilder().getBuilder();
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
public com.google.ads.googleads.v10.services.CartDataOrBuilder getCartDataOrBuilder() {
if (cartDataBuilder_ != null) {
return cartDataBuilder_.getMessageOrBuilder();
} else {
return cartData_ == null ?
com.google.ads.googleads.v10.services.CartData.getDefaultInstance() : cartData_;
}
}
/**
*
* The cart data associated with this conversion.
*
*
* .google.ads.googleads.v10.services.CartData cart_data = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.CartData, com.google.ads.googleads.v10.services.CartData.Builder, com.google.ads.googleads.v10.services.CartDataOrBuilder>
getCartDataFieldBuilder() {
if (cartDataBuilder_ == null) {
cartDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.CartData, com.google.ads.googleads.v10.services.CartData.Builder, com.google.ads.googleads.v10.services.CartDataOrBuilder>(
getCartData(),
getParentForChildren(),
isClean());
cartData_ = null;
}
return cartDataBuilder_;
}
private java.util.List userIdentifiers_ =
java.util.Collections.emptyList();
private void ensureUserIdentifiersIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
userIdentifiers_ = new java.util.ArrayList(userIdentifiers_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.UserIdentifier, com.google.ads.googleads.v10.common.UserIdentifier.Builder, com.google.ads.googleads.v10.common.UserIdentifierOrBuilder> userIdentifiersBuilder_;
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public java.util.List getUserIdentifiersList() {
if (userIdentifiersBuilder_ == null) {
return java.util.Collections.unmodifiableList(userIdentifiers_);
} else {
return userIdentifiersBuilder_.getMessageList();
}
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public int getUserIdentifiersCount() {
if (userIdentifiersBuilder_ == null) {
return userIdentifiers_.size();
} else {
return userIdentifiersBuilder_.getCount();
}
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public com.google.ads.googleads.v10.common.UserIdentifier getUserIdentifiers(int index) {
if (userIdentifiersBuilder_ == null) {
return userIdentifiers_.get(index);
} else {
return userIdentifiersBuilder_.getMessage(index);
}
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder setUserIdentifiers(
int index, com.google.ads.googleads.v10.common.UserIdentifier value) {
if (userIdentifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdentifiersIsMutable();
userIdentifiers_.set(index, value);
onChanged();
} else {
userIdentifiersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder setUserIdentifiers(
int index, com.google.ads.googleads.v10.common.UserIdentifier.Builder builderForValue) {
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.set(index, builderForValue.build());
onChanged();
} else {
userIdentifiersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder addUserIdentifiers(com.google.ads.googleads.v10.common.UserIdentifier value) {
if (userIdentifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(value);
onChanged();
} else {
userIdentifiersBuilder_.addMessage(value);
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder addUserIdentifiers(
int index, com.google.ads.googleads.v10.common.UserIdentifier value) {
if (userIdentifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(index, value);
onChanged();
} else {
userIdentifiersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder addUserIdentifiers(
com.google.ads.googleads.v10.common.UserIdentifier.Builder builderForValue) {
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(builderForValue.build());
onChanged();
} else {
userIdentifiersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder addUserIdentifiers(
int index, com.google.ads.googleads.v10.common.UserIdentifier.Builder builderForValue) {
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(index, builderForValue.build());
onChanged();
} else {
userIdentifiersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder addAllUserIdentifiers(
java.lang.Iterable extends com.google.ads.googleads.v10.common.UserIdentifier> values) {
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userIdentifiers_);
onChanged();
} else {
userIdentifiersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder clearUserIdentifiers() {
if (userIdentifiersBuilder_ == null) {
userIdentifiers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
userIdentifiersBuilder_.clear();
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public Builder removeUserIdentifiers(int index) {
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.remove(index);
onChanged();
} else {
userIdentifiersBuilder_.remove(index);
}
return this;
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public com.google.ads.googleads.v10.common.UserIdentifier.Builder getUserIdentifiersBuilder(
int index) {
return getUserIdentifiersFieldBuilder().getBuilder(index);
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public com.google.ads.googleads.v10.common.UserIdentifierOrBuilder getUserIdentifiersOrBuilder(
int index) {
if (userIdentifiersBuilder_ == null) {
return userIdentifiers_.get(index); } else {
return userIdentifiersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public java.util.List extends com.google.ads.googleads.v10.common.UserIdentifierOrBuilder>
getUserIdentifiersOrBuilderList() {
if (userIdentifiersBuilder_ != null) {
return userIdentifiersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(userIdentifiers_);
}
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public com.google.ads.googleads.v10.common.UserIdentifier.Builder addUserIdentifiersBuilder() {
return getUserIdentifiersFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.UserIdentifier.getDefaultInstance());
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public com.google.ads.googleads.v10.common.UserIdentifier.Builder addUserIdentifiersBuilder(
int index) {
return getUserIdentifiersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.UserIdentifier.getDefaultInstance());
}
/**
*
* The user identifiers associated with this conversion. Only hashed_email and
* hashed_phone_number are supported for conversion uploads. The maximum
* number of user identifiers for each conversion is 5.
*
*
* repeated .google.ads.googleads.v10.common.UserIdentifier user_identifiers = 17;
*/
public java.util.List
getUserIdentifiersBuilderList() {
return getUserIdentifiersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.UserIdentifier, com.google.ads.googleads.v10.common.UserIdentifier.Builder, com.google.ads.googleads.v10.common.UserIdentifierOrBuilder>
getUserIdentifiersFieldBuilder() {
if (userIdentifiersBuilder_ == null) {
userIdentifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.UserIdentifier, com.google.ads.googleads.v10.common.UserIdentifier.Builder, com.google.ads.googleads.v10.common.UserIdentifierOrBuilder>(
userIdentifiers_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
userIdentifiers_ = null;
}
return userIdentifiersBuilder_;
}
private int conversionEnvironment_ = 0;
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @return The enum numeric value on the wire for conversionEnvironment.
*/
@java.lang.Override public int getConversionEnvironmentValue() {
return conversionEnvironment_;
}
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @param value The enum numeric value on the wire for conversionEnvironment to set.
* @return This builder for chaining.
*/
public Builder setConversionEnvironmentValue(int value) {
conversionEnvironment_ = value;
onChanged();
return this;
}
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @return The conversionEnvironment.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment getConversionEnvironment() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment result = com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.valueOf(conversionEnvironment_);
return result == null ? com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment.UNRECOGNIZED : result;
}
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @param value The conversionEnvironment to set.
* @return This builder for chaining.
*/
public Builder setConversionEnvironment(com.google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment value) {
if (value == null) {
throw new NullPointerException();
}
conversionEnvironment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The environment this conversion was recorded on, for example, App or Web.
*
*
* .google.ads.googleads.v10.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20;
* @return This builder for chaining.
*/
public Builder clearConversionEnvironment() {
conversionEnvironment_ = 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.services.ClickConversion)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ClickConversion)
private static final com.google.ads.googleads.v10.services.ClickConversion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ClickConversion();
}
public static com.google.ads.googleads.v10.services.ClickConversion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClickConversion 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.services.ClickConversion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy