com.google.ads.googleads.v17.services.ClickConversionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/services/conversion_upload_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Identifying information for a successfully processed ClickConversion.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ClickConversionResult}
*/
public final class ClickConversionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.ClickConversionResult)
ClickConversionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClickConversionResult.newBuilder() to construct.
private ClickConversionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClickConversionResult() {
gclid_ = "";
gbraid_ = "";
wbraid_ = "";
conversionAction_ = "";
conversionDateTime_ = "";
userIdentifiers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClickConversionResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_ClickConversionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_ClickConversionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ClickConversionResult.class, com.google.ads.googleads.v17.services.ClickConversionResult.Builder.class);
}
private int bitField0_;
public static final int GCLID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object gclid_ = "";
/**
*
* The Google Click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 4;
* @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 = 4;
* @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 = 4;
* @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 = 8;
@SuppressWarnings("serial")
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 = 8;
* @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 = 8;
* @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 = 9;
@SuppressWarnings("serial")
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 = 9;
* @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 = 9;
* @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 = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object conversionAction_ = "";
/**
*
* Resource name of the conversion action associated with this conversion.
*
*
* optional string conversion_action = 5;
* @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.
*
*
* optional string conversion_action = 5;
* @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.
*
*
* optional string conversion_action = 5;
* @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 = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object conversionDateTime_ = "";
/**
*
* The date time at which the conversion occurred. 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 = 6;
* @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. 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 = 6;
* @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. 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 = 6;
* @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 USER_IDENTIFIERS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
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.v17.common.UserIdentifier user_identifiers = 7;
*/
@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.v17.common.UserIdentifier user_identifiers = 7;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
@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.v17.common.UserIdentifier user_identifiers = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.UserIdentifierOrBuilder getUserIdentifiersOrBuilder(
int index) {
return userIdentifiers_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gclid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, conversionDateTime_);
}
for (int i = 0; i < userIdentifiers_.size(); i++) {
output.writeMessage(7, userIdentifiers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gbraid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gbraid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wbraid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, wbraid_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gclid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, conversionAction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, conversionDateTime_);
}
for (int i = 0; i < userIdentifiers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, userIdentifiers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gbraid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gbraid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wbraid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wbraid_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.services.ClickConversionResult)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.ClickConversionResult other = (com.google.ads.googleads.v17.services.ClickConversionResult) 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 (!getUserIdentifiersList()
.equals(other.getUserIdentifiersList())) 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 (getUserIdentifiersCount() > 0) {
hash = (37 * hash) + USER_IDENTIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getUserIdentifiersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ClickConversionResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.services.ClickConversionResult 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;
}
/**
*
* Identifying information for a successfully processed ClickConversion.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ClickConversionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.ClickConversionResult)
com.google.ads.googleads.v17.services.ClickConversionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_ClickConversionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_ClickConversionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ClickConversionResult.class, com.google.ads.googleads.v17.services.ClickConversionResult.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.ClickConversionResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
gclid_ = "";
gbraid_ = "";
wbraid_ = "";
conversionAction_ = "";
conversionDateTime_ = "";
if (userIdentifiersBuilder_ == null) {
userIdentifiers_ = java.util.Collections.emptyList();
} else {
userIdentifiers_ = null;
userIdentifiersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_ClickConversionResult_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ClickConversionResult getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.ClickConversionResult.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ClickConversionResult build() {
com.google.ads.googleads.v17.services.ClickConversionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ClickConversionResult buildPartial() {
com.google.ads.googleads.v17.services.ClickConversionResult result = new com.google.ads.googleads.v17.services.ClickConversionResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.ClickConversionResult result) {
if (userIdentifiersBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
userIdentifiers_ = java.util.Collections.unmodifiableList(userIdentifiers_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.userIdentifiers_ = userIdentifiers_;
} else {
result.userIdentifiers_ = userIdentifiersBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.services.ClickConversionResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.gclid_ = gclid_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.gbraid_ = gbraid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.wbraid_ = wbraid_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.conversionAction_ = conversionAction_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.conversionDateTime_ = conversionDateTime_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.services.ClickConversionResult) {
return mergeFrom((com.google.ads.googleads.v17.services.ClickConversionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.ClickConversionResult other) {
if (other == com.google.ads.googleads.v17.services.ClickConversionResult.getDefaultInstance()) return this;
if (other.hasGclid()) {
gclid_ = other.gclid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGbraid().isEmpty()) {
gbraid_ = other.gbraid_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getWbraid().isEmpty()) {
wbraid_ = other.wbraid_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasConversionAction()) {
conversionAction_ = other.conversionAction_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasConversionDateTime()) {
conversionDateTime_ = other.conversionDateTime_;
bitField0_ |= 0x00000010;
onChanged();
}
if (userIdentifiersBuilder_ == null) {
if (!other.userIdentifiers_.isEmpty()) {
if (userIdentifiers_.isEmpty()) {
userIdentifiers_ = other.userIdentifiers_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureUserIdentifiersIsMutable();
userIdentifiers_.addAll(other.userIdentifiers_);
}
onChanged();
}
} else {
if (!other.userIdentifiers_.isEmpty()) {
if (userIdentifiersBuilder_.isEmpty()) {
userIdentifiersBuilder_.dispose();
userIdentifiersBuilder_ = null;
userIdentifiers_ = other.userIdentifiers_;
bitField0_ = (bitField0_ & ~0x00000020);
userIdentifiersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUserIdentifiersFieldBuilder() : null;
} else {
userIdentifiersBuilder_.addAllMessages(other.userIdentifiers_);
}
}
}
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 34: {
gclid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 34
case 42: {
conversionAction_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 42
case 50: {
conversionDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 50
case 58: {
com.google.ads.googleads.v17.common.UserIdentifier m =
input.readMessage(
com.google.ads.googleads.v17.common.UserIdentifier.parser(),
extensionRegistry);
if (userIdentifiersBuilder_ == null) {
ensureUserIdentifiersIsMutable();
userIdentifiers_.add(m);
} else {
userIdentifiersBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
gbraid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 66
case 74: {
wbraid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 74
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object gclid_ = "";
/**
*
* The Google Click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 4;
* @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 = 4;
* @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 = 4;
* @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 = 4;
* @param value The gclid to set.
* @return This builder for chaining.
*/
public Builder setGclid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gclid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The Google Click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 4;
* @return This builder for chaining.
*/
public Builder clearGclid() {
gclid_ = getDefaultInstance().getGclid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The Google Click ID (gclid) associated with this conversion.
*
*
* optional string gclid = 4;
* @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);
gclid_ = value;
bitField0_ |= 0x00000001;
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 = 8;
* @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 = 8;
* @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 = 8;
* @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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 8;
* @return This builder for chaining.
*/
public Builder clearGbraid() {
gbraid_ = getDefaultInstance().getGbraid();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with app conversions and
* originating from iOS devices starting with iOS14.
*
*
* string gbraid = 8;
* @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;
bitField0_ |= 0x00000002;
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 = 9;
* @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 = 9;
* @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 = 9;
* @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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 9;
* @return This builder for chaining.
*/
public Builder clearWbraid() {
wbraid_ = getDefaultInstance().getWbraid();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The click identifier for clicks associated with web conversions and
* originating from iOS devices starting with iOS14.
*
*
* string wbraid = 9;
* @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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object conversionAction_ = "";
/**
*
* Resource name of the conversion action associated with this conversion.
*
*
* optional string conversion_action = 5;
* @return Whether the conversionAction field is set.
*/
public boolean hasConversionAction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Resource name of the conversion action associated with this conversion.
*
*
* optional string conversion_action = 5;
* @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.
*
*
* optional string conversion_action = 5;
* @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.
*
*
* optional string conversion_action = 5;
* @param value The conversionAction to set.
* @return This builder for chaining.
*/
public Builder setConversionAction(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
conversionAction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion.
*
*
* optional string conversion_action = 5;
* @return This builder for chaining.
*/
public Builder clearConversionAction() {
conversionAction_ = getDefaultInstance().getConversionAction();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Resource name of the conversion action associated with this conversion.
*
*
* optional string conversion_action = 5;
* @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);
conversionAction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object conversionDateTime_ = "";
/**
*
* The date time at which the conversion occurred. 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 = 6;
* @return Whether the conversionDateTime field is set.
*/
public boolean hasConversionDateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The date time at which the conversion occurred. 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 = 6;
* @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. 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 = 6;
* @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. 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 = 6;
* @param value The conversionDateTime to set.
* @return This builder for chaining.
*/
public Builder setConversionDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
conversionDateTime_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The date time at which the conversion occurred. 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 = 6;
* @return This builder for chaining.
*/
public Builder clearConversionDateTime() {
conversionDateTime_ = getDefaultInstance().getConversionDateTime();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* The date time at which the conversion occurred. 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 = 6;
* @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);
conversionDateTime_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List userIdentifiers_ =
java.util.Collections.emptyList();
private void ensureUserIdentifiersIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
userIdentifiers_ = new java.util.ArrayList(userIdentifiers_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.UserIdentifier, com.google.ads.googleads.v17.common.UserIdentifier.Builder, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
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.v17.common.UserIdentifier user_identifiers = 7;
*/
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.v17.common.UserIdentifier user_identifiers = 7;
*/
public com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder setUserIdentifiers(
int index, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder setUserIdentifiers(
int index, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder addUserIdentifiers(com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder addUserIdentifiers(
int index, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder addUserIdentifiers(
com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder addUserIdentifiers(
int index, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder addAllUserIdentifiers(
java.lang.Iterable extends com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public Builder clearUserIdentifiers() {
if (userIdentifiersBuilder_ == null) {
userIdentifiers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
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.v17.common.UserIdentifier user_identifiers = 7;
*/
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.v17.common.UserIdentifier user_identifiers = 7;
*/
public com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public java.util.List extends com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public com.google.ads.googleads.v17.common.UserIdentifier.Builder addUserIdentifiersBuilder() {
return getUserIdentifiersFieldBuilder().addBuilder(
com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public com.google.ads.googleads.v17.common.UserIdentifier.Builder addUserIdentifiersBuilder(
int index) {
return getUserIdentifiersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.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.v17.common.UserIdentifier user_identifiers = 7;
*/
public java.util.List
getUserIdentifiersBuilderList() {
return getUserIdentifiersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.UserIdentifier, com.google.ads.googleads.v17.common.UserIdentifier.Builder, com.google.ads.googleads.v17.common.UserIdentifierOrBuilder>
getUserIdentifiersFieldBuilder() {
if (userIdentifiersBuilder_ == null) {
userIdentifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.UserIdentifier, com.google.ads.googleads.v17.common.UserIdentifier.Builder, com.google.ads.googleads.v17.common.UserIdentifierOrBuilder>(
userIdentifiers_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
userIdentifiers_ = null;
}
return userIdentifiersBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.ClickConversionResult)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.ClickConversionResult)
private static final com.google.ads.googleads.v17.services.ClickConversionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.ClickConversionResult();
}
public static com.google.ads.googleads.v17.services.ClickConversionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClickConversionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ClickConversionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy