All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.services.CallConversion Maven / Gradle / Ivy

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;

/**
 * 
 * A call conversion.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.CallConversion} */ public final class CallConversion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.CallConversion) CallConversionOrBuilder { private static final long serialVersionUID = 0L; // Use CallConversion.newBuilder() to construct. private CallConversion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallConversion() { callerId_ = ""; callStartDateTime_ = ""; conversionAction_ = ""; conversionDateTime_ = ""; currencyCode_ = ""; customVariables_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallConversion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_CallConversion_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_CallConversion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.CallConversion.class, com.google.ads.googleads.v17.services.CallConversion.Builder.class); } private int bitField0_; public static final int CALLER_ID_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object callerId_ = ""; /** *
   * The caller id from which this call was placed. Caller id is expected to be
   * in E.164 format with preceding '+' sign, for example, "+16502531234".
   * 
* * optional string caller_id = 7; * @return Whether the callerId field is set. */ @java.lang.Override public boolean hasCallerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The caller id from which this call was placed. Caller id is expected to be
   * in E.164 format with preceding '+' sign, for example, "+16502531234".
   * 
* * optional string caller_id = 7; * @return The callerId. */ @java.lang.Override public java.lang.String getCallerId() { java.lang.Object ref = callerId_; 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(); callerId_ = s; return s; } } /** *
   * The caller id from which this call was placed. Caller id is expected to be
   * in E.164 format with preceding '+' sign, for example, "+16502531234".
   * 
* * optional string caller_id = 7; * @return The bytes for callerId. */ @java.lang.Override public com.google.protobuf.ByteString getCallerIdBytes() { java.lang.Object ref = callerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_START_DATE_TIME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object callStartDateTime_ = ""; /** *
   * The date time at which the call occurred. 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 call_start_date_time = 8; * @return Whether the callStartDateTime field is set. */ @java.lang.Override public boolean hasCallStartDateTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The date time at which the call occurred. 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 call_start_date_time = 8; * @return The callStartDateTime. */ @java.lang.Override public java.lang.String getCallStartDateTime() { java.lang.Object ref = callStartDateTime_; 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(); callStartDateTime_ = s; return s; } } /** *
   * The date time at which the call occurred. 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 call_start_date_time = 8; * @return The bytes for callStartDateTime. */ @java.lang.Override public com.google.protobuf.ByteString getCallStartDateTimeBytes() { java.lang.Object ref = callStartDateTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callStartDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONVERSION_ACTION_FIELD_NUMBER = 9; @SuppressWarnings("serial") 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 = 9; * @return Whether the conversionAction field is set. */ @java.lang.Override public boolean hasConversionAction() { return ((bitField0_ & 0x00000004) != 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 = 9; * @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 = 9; * @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 = 10; @SuppressWarnings("serial") private volatile java.lang.Object conversionDateTime_ = ""; /** *
   * The date time at which the conversion occurred. Must be after the call
   * 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 = 10; * @return Whether the conversionDateTime field is set. */ @java.lang.Override public boolean hasConversionDateTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The date time at which the conversion occurred. Must be after the call
   * 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 = 10; * @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 call
   * 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 = 10; * @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 = 11; private double conversionValue_ = 0D; /** *
   * The value of the conversion for the advertiser.
   * 
* * optional double conversion_value = 11; * @return Whether the conversionValue field is set. */ @java.lang.Override public boolean hasConversionValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * The value of the conversion for the advertiser.
   * 
* * optional double conversion_value = 11; * @return The conversionValue. */ @java.lang.Override public double getConversionValue() { return conversionValue_; } public static final int CURRENCY_CODE_FIELD_NUMBER = 12; @SuppressWarnings("serial") 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 = 12; * @return Whether the currencyCode field is set. */ @java.lang.Override public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Currency associated with the conversion value. This is the ISO 4217
   * 3-character currency code. For example: USD, EUR.
   * 
* * optional string currency_code = 12; * @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 = 12; * @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 CUSTOM_VARIABLES_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List customVariables_; /** *
   * The custom variables associated with this conversion.
   * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ @java.lang.Override public java.util.List getCustomVariablesList() { return customVariables_; } /** *
   * The custom variables associated with this conversion.
   * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ @java.lang.Override public java.util.List getCustomVariablesOrBuilderList() { return customVariables_; } /** *
   * The custom variables associated with this conversion.
   * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ @java.lang.Override public int getCustomVariablesCount() { return customVariables_.size(); } /** *
   * The custom variables associated with this conversion.
   * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ @java.lang.Override public com.google.ads.googleads.v17.services.CustomVariable getCustomVariables(int index) { return customVariables_.get(index); } /** *
   * The custom variables associated with this conversion.
   * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ @java.lang.Override public com.google.ads.googleads.v17.services.CustomVariableOrBuilder getCustomVariablesOrBuilder( int index) { return customVariables_.get(index); } public static final int CONSENT_FIELD_NUMBER = 14; private com.google.ads.googleads.v17.common.Consent consent_; /** *
   * The consent setting for the event.
   * 
* * .google.ads.googleads.v17.common.Consent consent = 14; * @return Whether the consent field is set. */ @java.lang.Override public boolean hasConsent() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * The consent setting for the event.
   * 
* * .google.ads.googleads.v17.common.Consent consent = 14; * @return The consent. */ @java.lang.Override public com.google.ads.googleads.v17.common.Consent getConsent() { return consent_ == null ? com.google.ads.googleads.v17.common.Consent.getDefaultInstance() : consent_; } /** *
   * The consent setting for the event.
   * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ @java.lang.Override public com.google.ads.googleads.v17.common.ConsentOrBuilder getConsentOrBuilder() { return consent_ == null ? com.google.ads.googleads.v17.common.Consent.getDefaultInstance() : consent_; } 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, 7, callerId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, callStartDateTime_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, conversionAction_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, conversionDateTime_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeDouble(11, conversionValue_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currencyCode_); } for (int i = 0; i < customVariables_.size(); i++) { output.writeMessage(13, customVariables_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(14, getConsent()); } 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(7, callerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, callStartDateTime_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, conversionAction_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, conversionDateTime_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, conversionValue_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currencyCode_); } for (int i = 0; i < customVariables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, customVariables_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getConsent()); } 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.CallConversion)) { return super.equals(obj); } com.google.ads.googleads.v17.services.CallConversion other = (com.google.ads.googleads.v17.services.CallConversion) obj; if (hasCallerId() != other.hasCallerId()) return false; if (hasCallerId()) { if (!getCallerId() .equals(other.getCallerId())) return false; } if (hasCallStartDateTime() != other.hasCallStartDateTime()) return false; if (hasCallStartDateTime()) { if (!getCallStartDateTime() .equals(other.getCallStartDateTime())) 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 (!getCustomVariablesList() .equals(other.getCustomVariablesList())) return false; if (hasConsent() != other.hasConsent()) return false; if (hasConsent()) { if (!getConsent() .equals(other.getConsent())) 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 (hasCallerId()) { hash = (37 * hash) + CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getCallerId().hashCode(); } if (hasCallStartDateTime()) { hash = (37 * hash) + CALL_START_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCallStartDateTime().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 (getCustomVariablesCount() > 0) { hash = (37 * hash) + CUSTOM_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getCustomVariablesList().hashCode(); } if (hasConsent()) { hash = (37 * hash) + CONSENT_FIELD_NUMBER; hash = (53 * hash) + getConsent().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.CallConversion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.CallConversion 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.CallConversion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.CallConversion 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.CallConversion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.CallConversion 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.CallConversion 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.CallConversion 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.CallConversion 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.CallConversion 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.CallConversion 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.CallConversion 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.CallConversion 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 call conversion.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.CallConversion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.CallConversion) com.google.ads.googleads.v17.services.CallConversionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.internal_static_google_ads_googleads_v17_services_CallConversion_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_CallConversion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.CallConversion.class, com.google.ads.googleads.v17.services.CallConversion.Builder.class); } // Construct using com.google.ads.googleads.v17.services.CallConversion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCustomVariablesFieldBuilder(); getConsentFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; callerId_ = ""; callStartDateTime_ = ""; conversionAction_ = ""; conversionDateTime_ = ""; conversionValue_ = 0D; currencyCode_ = ""; if (customVariablesBuilder_ == null) { customVariables_ = java.util.Collections.emptyList(); } else { customVariables_ = null; customVariablesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); consent_ = null; if (consentBuilder_ != null) { consentBuilder_.dispose(); consentBuilder_ = null; } 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_CallConversion_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.CallConversion getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.CallConversion.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.CallConversion build() { com.google.ads.googleads.v17.services.CallConversion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.CallConversion buildPartial() { com.google.ads.googleads.v17.services.CallConversion result = new com.google.ads.googleads.v17.services.CallConversion(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.CallConversion result) { if (customVariablesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { customVariables_ = java.util.Collections.unmodifiableList(customVariables_); bitField0_ = (bitField0_ & ~0x00000040); } result.customVariables_ = customVariables_; } else { result.customVariables_ = customVariablesBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.CallConversion result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.callerId_ = callerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.callStartDateTime_ = callStartDateTime_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.conversionAction_ = conversionAction_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.conversionDateTime_ = conversionDateTime_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.conversionValue_ = conversionValue_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.consent_ = consentBuilder_ == null ? consent_ : consentBuilder_.build(); to_bitField0_ |= 0x00000040; } 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.CallConversion) { return mergeFrom((com.google.ads.googleads.v17.services.CallConversion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.CallConversion other) { if (other == com.google.ads.googleads.v17.services.CallConversion.getDefaultInstance()) return this; if (other.hasCallerId()) { callerId_ = other.callerId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCallStartDateTime()) { callStartDateTime_ = other.callStartDateTime_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasConversionAction()) { conversionAction_ = other.conversionAction_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasConversionDateTime()) { conversionDateTime_ = other.conversionDateTime_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasConversionValue()) { setConversionValue(other.getConversionValue()); } if (other.hasCurrencyCode()) { currencyCode_ = other.currencyCode_; bitField0_ |= 0x00000020; onChanged(); } 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.hasConsent()) { mergeConsent(other.getConsent()); } 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: { callerId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 58 case 66: { callStartDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 66 case 74: { conversionAction_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 74 case 82: { conversionDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 82 case 89: { conversionValue_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 89 case 98: { currencyCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 98 case 106: { com.google.ads.googleads.v17.services.CustomVariable m = input.readMessage( com.google.ads.googleads.v17.services.CustomVariable.parser(), extensionRegistry); if (customVariablesBuilder_ == null) { ensureCustomVariablesIsMutable(); customVariables_.add(m); } else { customVariablesBuilder_.addMessage(m); } break; } // case 106 case 114: { input.readMessage( getConsentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 114 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 callerId_ = ""; /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @return Whether the callerId field is set. */ public boolean hasCallerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @return The callerId. */ public java.lang.String getCallerId() { java.lang.Object ref = callerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @return The bytes for callerId. */ public com.google.protobuf.ByteString getCallerIdBytes() { java.lang.Object ref = callerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @param value The callerId to set. * @return This builder for chaining. */ public Builder setCallerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @return This builder for chaining. */ public Builder clearCallerId() { callerId_ = getDefaultInstance().getCallerId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The caller id from which this call was placed. Caller id is expected to be
     * in E.164 format with preceding '+' sign, for example, "+16502531234".
     * 
* * optional string caller_id = 7; * @param value The bytes for callerId to set. * @return This builder for chaining. */ public Builder setCallerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object callStartDateTime_ = ""; /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @return Whether the callStartDateTime field is set. */ public boolean hasCallStartDateTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @return The callStartDateTime. */ public java.lang.String getCallStartDateTime() { java.lang.Object ref = callStartDateTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callStartDateTime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @return The bytes for callStartDateTime. */ public com.google.protobuf.ByteString getCallStartDateTimeBytes() { java.lang.Object ref = callStartDateTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callStartDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @param value The callStartDateTime to set. * @return This builder for chaining. */ public Builder setCallStartDateTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callStartDateTime_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @return This builder for chaining. */ public Builder clearCallStartDateTime() { callStartDateTime_ = getDefaultInstance().getCallStartDateTime(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The date time at which the call occurred. 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 call_start_date_time = 8; * @param value The bytes for callStartDateTime to set. * @return This builder for chaining. */ public Builder setCallStartDateTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callStartDateTime_ = value; bitField0_ |= 0x00000002; 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 = 9; * @return Whether the conversionAction field is set. */ public boolean hasConversionAction() { return ((bitField0_ & 0x00000004) != 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 = 9; * @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 = 9; * @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 = 9; * @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_ |= 0x00000004; 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 = 9; * @return This builder for chaining. */ public Builder clearConversionAction() { conversionAction_ = getDefaultInstance().getConversionAction(); bitField0_ = (bitField0_ & ~0x00000004); 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 = 9; * @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_ |= 0x00000004; onChanged(); return this; } private java.lang.Object conversionDateTime_ = ""; /** *
     * The date time at which the conversion occurred. Must be after the call
     * 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 = 10; * @return Whether the conversionDateTime field is set. */ public boolean hasConversionDateTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The date time at which the conversion occurred. Must be after the call
     * 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 = 10; * @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 call
     * 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 = 10; * @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 call
     * 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 = 10; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The date time at which the conversion occurred. Must be after the call
     * 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 = 10; * @return This builder for chaining. */ public Builder clearConversionDateTime() { conversionDateTime_ = getDefaultInstance().getConversionDateTime(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * The date time at which the conversion occurred. Must be after the call
     * 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 = 10; * @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_ |= 0x00000008; onChanged(); return this; } private double conversionValue_ ; /** *
     * The value of the conversion for the advertiser.
     * 
* * optional double conversion_value = 11; * @return Whether the conversionValue field is set. */ @java.lang.Override public boolean hasConversionValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The value of the conversion for the advertiser.
     * 
* * optional double conversion_value = 11; * @return The conversionValue. */ @java.lang.Override public double getConversionValue() { return conversionValue_; } /** *
     * The value of the conversion for the advertiser.
     * 
* * optional double conversion_value = 11; * @param value The conversionValue to set. * @return This builder for chaining. */ public Builder setConversionValue(double value) { conversionValue_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The value of the conversion for the advertiser.
     * 
* * optional double conversion_value = 11; * @return This builder for chaining. */ public Builder clearConversionValue() { bitField0_ = (bitField0_ & ~0x00000010); 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 = 12; * @return Whether the currencyCode field is set. */ public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Currency associated with the conversion value. This is the ISO 4217
     * 3-character currency code. For example: USD, EUR.
     * 
* * optional string currency_code = 12; * @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 = 12; * @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 = 12; * @param value The currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000020; 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 = 12; * @return This builder for chaining. */ public Builder clearCurrencyCode() { currencyCode_ = getDefaultInstance().getCurrencyCode(); bitField0_ = (bitField0_ & ~0x00000020); 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 = 12; * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } 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.v17.services.CustomVariable, com.google.ads.googleads.v17.services.CustomVariable.Builder, com.google.ads.googleads.v17.services.CustomVariableOrBuilder> customVariablesBuilder_; /** *
     * The custom variables associated with this conversion.
     * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ 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.v17.services.CustomVariable custom_variables = 13; */ public int getCustomVariablesCount() { if (customVariablesBuilder_ == null) { return customVariables_.size(); } else { return customVariablesBuilder_.getCount(); } } /** *
     * The custom variables associated with this conversion.
     * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ public com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder setCustomVariables( int index, com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder setCustomVariables( int index, com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder addCustomVariables(com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder addCustomVariables( int index, com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder addCustomVariables( com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder addCustomVariables( int index, com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public Builder addAllCustomVariables( java.lang.Iterable 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.v17.services.CustomVariable custom_variables = 13; */ 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.v17.services.CustomVariable custom_variables = 13; */ 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.v17.services.CustomVariable custom_variables = 13; */ public com.google.ads.googleads.v17.services.CustomVariable.Builder getCustomVariablesBuilder( int index) { return getCustomVariablesFieldBuilder().getBuilder(index); } /** *
     * The custom variables associated with this conversion.
     * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ public com.google.ads.googleads.v17.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.v17.services.CustomVariable custom_variables = 13; */ public java.util.List 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.v17.services.CustomVariable custom_variables = 13; */ public com.google.ads.googleads.v17.services.CustomVariable.Builder addCustomVariablesBuilder() { return getCustomVariablesFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.CustomVariable.getDefaultInstance()); } /** *
     * The custom variables associated with this conversion.
     * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ public com.google.ads.googleads.v17.services.CustomVariable.Builder addCustomVariablesBuilder( int index) { return getCustomVariablesFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.CustomVariable.getDefaultInstance()); } /** *
     * The custom variables associated with this conversion.
     * 
* * repeated .google.ads.googleads.v17.services.CustomVariable custom_variables = 13; */ public java.util.List getCustomVariablesBuilderList() { return getCustomVariablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.CustomVariable, com.google.ads.googleads.v17.services.CustomVariable.Builder, com.google.ads.googleads.v17.services.CustomVariableOrBuilder> getCustomVariablesFieldBuilder() { if (customVariablesBuilder_ == null) { customVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.CustomVariable, com.google.ads.googleads.v17.services.CustomVariable.Builder, com.google.ads.googleads.v17.services.CustomVariableOrBuilder>( customVariables_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); customVariables_ = null; } return customVariablesBuilder_; } private com.google.ads.googleads.v17.common.Consent consent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.Consent, com.google.ads.googleads.v17.common.Consent.Builder, com.google.ads.googleads.v17.common.ConsentOrBuilder> consentBuilder_; /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; * @return Whether the consent field is set. */ public boolean hasConsent() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; * @return The consent. */ public com.google.ads.googleads.v17.common.Consent getConsent() { if (consentBuilder_ == null) { return consent_ == null ? com.google.ads.googleads.v17.common.Consent.getDefaultInstance() : consent_; } else { return consentBuilder_.getMessage(); } } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public Builder setConsent(com.google.ads.googleads.v17.common.Consent value) { if (consentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consent_ = value; } else { consentBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public Builder setConsent( com.google.ads.googleads.v17.common.Consent.Builder builderForValue) { if (consentBuilder_ == null) { consent_ = builderForValue.build(); } else { consentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public Builder mergeConsent(com.google.ads.googleads.v17.common.Consent value) { if (consentBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && consent_ != null && consent_ != com.google.ads.googleads.v17.common.Consent.getDefaultInstance()) { getConsentBuilder().mergeFrom(value); } else { consent_ = value; } } else { consentBuilder_.mergeFrom(value); } if (consent_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public Builder clearConsent() { bitField0_ = (bitField0_ & ~0x00000080); consent_ = null; if (consentBuilder_ != null) { consentBuilder_.dispose(); consentBuilder_ = null; } onChanged(); return this; } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public com.google.ads.googleads.v17.common.Consent.Builder getConsentBuilder() { bitField0_ |= 0x00000080; onChanged(); return getConsentFieldBuilder().getBuilder(); } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ public com.google.ads.googleads.v17.common.ConsentOrBuilder getConsentOrBuilder() { if (consentBuilder_ != null) { return consentBuilder_.getMessageOrBuilder(); } else { return consent_ == null ? com.google.ads.googleads.v17.common.Consent.getDefaultInstance() : consent_; } } /** *
     * The consent setting for the event.
     * 
* * .google.ads.googleads.v17.common.Consent consent = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.Consent, com.google.ads.googleads.v17.common.Consent.Builder, com.google.ads.googleads.v17.common.ConsentOrBuilder> getConsentFieldBuilder() { if (consentBuilder_ == null) { consentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.Consent, com.google.ads.googleads.v17.common.Consent.Builder, com.google.ads.googleads.v17.common.ConsentOrBuilder>( getConsent(), getParentForChildren(), isClean()); consent_ = null; } return consentBuilder_; } @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.CallConversion) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.CallConversion) private static final com.google.ads.googleads.v17.services.CallConversion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.CallConversion(); } public static com.google.ads.googleads.v17.services.CallConversion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallConversion 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.CallConversion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy