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

com.google.ads.googleads.v17.resources.ConversionTrackingSetting Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/resources/customer.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;

/**
 * 
 * A collection of customer-wide settings related to Google Ads Conversion
 * Tracking.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.ConversionTrackingSetting} */ public final class ConversionTrackingSetting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.ConversionTrackingSetting) ConversionTrackingSettingOrBuilder { private static final long serialVersionUID = 0L; // Use ConversionTrackingSetting.newBuilder() to construct. private ConversionTrackingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConversionTrackingSetting() { conversionTrackingStatus_ = 0; googleAdsConversionCustomer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConversionTrackingSetting(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.CustomerProto.internal_static_google_ads_googleads_v17_resources_ConversionTrackingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.CustomerProto.internal_static_google_ads_googleads_v17_resources_ConversionTrackingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.ConversionTrackingSetting.class, com.google.ads.googleads.v17.resources.ConversionTrackingSetting.Builder.class); } private int bitField0_; public static final int CONVERSION_TRACKING_ID_FIELD_NUMBER = 3; private long conversionTrackingId_ = 0L; /** *
   * Output only. The conversion tracking id used for this account. This id
   * doesn't indicate whether the customer uses conversion tracking
   * (conversion_tracking_status does). This field is read-only.
   * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversionTrackingId field is set. */ @java.lang.Override public boolean hasConversionTrackingId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The conversion tracking id used for this account. This id
   * doesn't indicate whether the customer uses conversion tracking
   * (conversion_tracking_status does). This field is read-only.
   * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionTrackingId. */ @java.lang.Override public long getConversionTrackingId() { return conversionTrackingId_; } public static final int CROSS_ACCOUNT_CONVERSION_TRACKING_ID_FIELD_NUMBER = 4; private long crossAccountConversionTrackingId_ = 0L; /** *
   * Output only. The conversion tracking id of the customer's manager. This is
   * set when the customer is opted into cross account conversion tracking, and
   * it overrides conversion_tracking_id. This field can only be managed through
   * the Google Ads UI. This field is read-only.
   * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the crossAccountConversionTrackingId field is set. */ @java.lang.Override public boolean hasCrossAccountConversionTrackingId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. The conversion tracking id of the customer's manager. This is
   * set when the customer is opted into cross account conversion tracking, and
   * it overrides conversion_tracking_id. This field can only be managed through
   * the Google Ads UI. This field is read-only.
   * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The crossAccountConversionTrackingId. */ @java.lang.Override public long getCrossAccountConversionTrackingId() { return crossAccountConversionTrackingId_; } public static final int ACCEPTED_CUSTOMER_DATA_TERMS_FIELD_NUMBER = 5; private boolean acceptedCustomerDataTerms_ = false; /** *
   * Output only. Whether the customer has accepted customer data terms. If
   * using cross-account conversion tracking, this value is inherited from the
   * manager. This field is read-only. For more
   * information, see https://support.google.com/adspolicy/answer/7475709.
   * 
* * bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The acceptedCustomerDataTerms. */ @java.lang.Override public boolean getAcceptedCustomerDataTerms() { return acceptedCustomerDataTerms_; } public static final int CONVERSION_TRACKING_STATUS_FIELD_NUMBER = 6; private int conversionTrackingStatus_ = 0; /** *
   * Output only. Conversion tracking status. It indicates whether the customer
   * is using conversion tracking, and who is the conversion tracking owner of
   * this customer. If this customer is using cross-account conversion tracking,
   * the value returned will differ based on the `login-customer-id` of the
   * request.
   * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for conversionTrackingStatus. */ @java.lang.Override public int getConversionTrackingStatusValue() { return conversionTrackingStatus_; } /** *
   * Output only. Conversion tracking status. It indicates whether the customer
   * is using conversion tracking, and who is the conversion tracking owner of
   * this customer. If this customer is using cross-account conversion tracking,
   * the value returned will differ based on the `login-customer-id` of the
   * request.
   * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionTrackingStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus getConversionTrackingStatus() { com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus result = com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.forNumber(conversionTrackingStatus_); return result == null ? com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.UNRECOGNIZED : result; } public static final int ENHANCED_CONVERSIONS_FOR_LEADS_ENABLED_FIELD_NUMBER = 7; private boolean enhancedConversionsForLeadsEnabled_ = false; /** *
   * Output only. Whether the customer is opted-in for enhanced conversions
   * for leads. If using cross-account conversion tracking, this value is
   * inherited from the manager. This field is read-only.
   * 
* * bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enhancedConversionsForLeadsEnabled. */ @java.lang.Override public boolean getEnhancedConversionsForLeadsEnabled() { return enhancedConversionsForLeadsEnabled_; } public static final int GOOGLE_ADS_CONVERSION_CUSTOMER_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object googleAdsConversionCustomer_ = ""; /** *
   * Output only. The resource name of the customer where conversions are
   * created and managed. This field is read-only.
   * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The googleAdsConversionCustomer. */ @java.lang.Override public java.lang.String getGoogleAdsConversionCustomer() { java.lang.Object ref = googleAdsConversionCustomer_; 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(); googleAdsConversionCustomer_ = s; return s; } } /** *
   * Output only. The resource name of the customer where conversions are
   * created and managed. This field is read-only.
   * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for googleAdsConversionCustomer. */ @java.lang.Override public com.google.protobuf.ByteString getGoogleAdsConversionCustomerBytes() { java.lang.Object ref = googleAdsConversionCustomer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); googleAdsConversionCustomer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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)) { output.writeInt64(3, conversionTrackingId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(4, crossAccountConversionTrackingId_); } if (acceptedCustomerDataTerms_ != false) { output.writeBool(5, acceptedCustomerDataTerms_); } if (conversionTrackingStatus_ != com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.UNSPECIFIED.getNumber()) { output.writeEnum(6, conversionTrackingStatus_); } if (enhancedConversionsForLeadsEnabled_ != false) { output.writeBool(7, enhancedConversionsForLeadsEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleAdsConversionCustomer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, googleAdsConversionCustomer_); } 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.CodedOutputStream .computeInt64Size(3, conversionTrackingId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, crossAccountConversionTrackingId_); } if (acceptedCustomerDataTerms_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, acceptedCustomerDataTerms_); } if (conversionTrackingStatus_ != com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, conversionTrackingStatus_); } if (enhancedConversionsForLeadsEnabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, enhancedConversionsForLeadsEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleAdsConversionCustomer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, googleAdsConversionCustomer_); } 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.resources.ConversionTrackingSetting)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.ConversionTrackingSetting other = (com.google.ads.googleads.v17.resources.ConversionTrackingSetting) obj; if (hasConversionTrackingId() != other.hasConversionTrackingId()) return false; if (hasConversionTrackingId()) { if (getConversionTrackingId() != other.getConversionTrackingId()) return false; } if (hasCrossAccountConversionTrackingId() != other.hasCrossAccountConversionTrackingId()) return false; if (hasCrossAccountConversionTrackingId()) { if (getCrossAccountConversionTrackingId() != other.getCrossAccountConversionTrackingId()) return false; } if (getAcceptedCustomerDataTerms() != other.getAcceptedCustomerDataTerms()) return false; if (conversionTrackingStatus_ != other.conversionTrackingStatus_) return false; if (getEnhancedConversionsForLeadsEnabled() != other.getEnhancedConversionsForLeadsEnabled()) return false; if (!getGoogleAdsConversionCustomer() .equals(other.getGoogleAdsConversionCustomer())) 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 (hasConversionTrackingId()) { hash = (37 * hash) + CONVERSION_TRACKING_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConversionTrackingId()); } if (hasCrossAccountConversionTrackingId()) { hash = (37 * hash) + CROSS_ACCOUNT_CONVERSION_TRACKING_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCrossAccountConversionTrackingId()); } hash = (37 * hash) + ACCEPTED_CUSTOMER_DATA_TERMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAcceptedCustomerDataTerms()); hash = (37 * hash) + CONVERSION_TRACKING_STATUS_FIELD_NUMBER; hash = (53 * hash) + conversionTrackingStatus_; hash = (37 * hash) + ENHANCED_CONVERSIONS_FOR_LEADS_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnhancedConversionsForLeadsEnabled()); hash = (37 * hash) + GOOGLE_ADS_CONVERSION_CUSTOMER_FIELD_NUMBER; hash = (53 * hash) + getGoogleAdsConversionCustomer().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting 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.resources.ConversionTrackingSetting 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 collection of customer-wide settings related to Google Ads Conversion
   * Tracking.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.ConversionTrackingSetting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.ConversionTrackingSetting) com.google.ads.googleads.v17.resources.ConversionTrackingSettingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.CustomerProto.internal_static_google_ads_googleads_v17_resources_ConversionTrackingSetting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.CustomerProto.internal_static_google_ads_googleads_v17_resources_ConversionTrackingSetting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.ConversionTrackingSetting.class, com.google.ads.googleads.v17.resources.ConversionTrackingSetting.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.ConversionTrackingSetting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; conversionTrackingId_ = 0L; crossAccountConversionTrackingId_ = 0L; acceptedCustomerDataTerms_ = false; conversionTrackingStatus_ = 0; enhancedConversionsForLeadsEnabled_ = false; googleAdsConversionCustomer_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.CustomerProto.internal_static_google_ads_googleads_v17_resources_ConversionTrackingSetting_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.ConversionTrackingSetting getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.ConversionTrackingSetting.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.ConversionTrackingSetting build() { com.google.ads.googleads.v17.resources.ConversionTrackingSetting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.ConversionTrackingSetting buildPartial() { com.google.ads.googleads.v17.resources.ConversionTrackingSetting result = new com.google.ads.googleads.v17.resources.ConversionTrackingSetting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.resources.ConversionTrackingSetting result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.conversionTrackingId_ = conversionTrackingId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.crossAccountConversionTrackingId_ = crossAccountConversionTrackingId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.acceptedCustomerDataTerms_ = acceptedCustomerDataTerms_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.conversionTrackingStatus_ = conversionTrackingStatus_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.enhancedConversionsForLeadsEnabled_ = enhancedConversionsForLeadsEnabled_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.googleAdsConversionCustomer_ = googleAdsConversionCustomer_; } 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.resources.ConversionTrackingSetting) { return mergeFrom((com.google.ads.googleads.v17.resources.ConversionTrackingSetting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.ConversionTrackingSetting other) { if (other == com.google.ads.googleads.v17.resources.ConversionTrackingSetting.getDefaultInstance()) return this; if (other.hasConversionTrackingId()) { setConversionTrackingId(other.getConversionTrackingId()); } if (other.hasCrossAccountConversionTrackingId()) { setCrossAccountConversionTrackingId(other.getCrossAccountConversionTrackingId()); } if (other.getAcceptedCustomerDataTerms() != false) { setAcceptedCustomerDataTerms(other.getAcceptedCustomerDataTerms()); } if (other.conversionTrackingStatus_ != 0) { setConversionTrackingStatusValue(other.getConversionTrackingStatusValue()); } if (other.getEnhancedConversionsForLeadsEnabled() != false) { setEnhancedConversionsForLeadsEnabled(other.getEnhancedConversionsForLeadsEnabled()); } if (!other.getGoogleAdsConversionCustomer().isEmpty()) { googleAdsConversionCustomer_ = other.googleAdsConversionCustomer_; bitField0_ |= 0x00000020; onChanged(); } 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 24: { conversionTrackingId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 24 case 32: { crossAccountConversionTrackingId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 32 case 40: { acceptedCustomerDataTerms_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 40 case 48: { conversionTrackingStatus_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 48 case 56: { enhancedConversionsForLeadsEnabled_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 56 case 66: { googleAdsConversionCustomer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 66 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 long conversionTrackingId_ ; /** *
     * Output only. The conversion tracking id used for this account. This id
     * doesn't indicate whether the customer uses conversion tracking
     * (conversion_tracking_status does). This field is read-only.
     * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversionTrackingId field is set. */ @java.lang.Override public boolean hasConversionTrackingId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The conversion tracking id used for this account. This id
     * doesn't indicate whether the customer uses conversion tracking
     * (conversion_tracking_status does). This field is read-only.
     * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionTrackingId. */ @java.lang.Override public long getConversionTrackingId() { return conversionTrackingId_; } /** *
     * Output only. The conversion tracking id used for this account. This id
     * doesn't indicate whether the customer uses conversion tracking
     * (conversion_tracking_status does). This field is read-only.
     * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The conversionTrackingId to set. * @return This builder for chaining. */ public Builder setConversionTrackingId(long value) { conversionTrackingId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Output only. The conversion tracking id used for this account. This id
     * doesn't indicate whether the customer uses conversion tracking
     * (conversion_tracking_status does). This field is read-only.
     * 
* * optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConversionTrackingId() { bitField0_ = (bitField0_ & ~0x00000001); conversionTrackingId_ = 0L; onChanged(); return this; } private long crossAccountConversionTrackingId_ ; /** *
     * Output only. The conversion tracking id of the customer's manager. This is
     * set when the customer is opted into cross account conversion tracking, and
     * it overrides conversion_tracking_id. This field can only be managed through
     * the Google Ads UI. This field is read-only.
     * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the crossAccountConversionTrackingId field is set. */ @java.lang.Override public boolean hasCrossAccountConversionTrackingId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The conversion tracking id of the customer's manager. This is
     * set when the customer is opted into cross account conversion tracking, and
     * it overrides conversion_tracking_id. This field can only be managed through
     * the Google Ads UI. This field is read-only.
     * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The crossAccountConversionTrackingId. */ @java.lang.Override public long getCrossAccountConversionTrackingId() { return crossAccountConversionTrackingId_; } /** *
     * Output only. The conversion tracking id of the customer's manager. This is
     * set when the customer is opted into cross account conversion tracking, and
     * it overrides conversion_tracking_id. This field can only be managed through
     * the Google Ads UI. This field is read-only.
     * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The crossAccountConversionTrackingId to set. * @return This builder for chaining. */ public Builder setCrossAccountConversionTrackingId(long value) { crossAccountConversionTrackingId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Output only. The conversion tracking id of the customer's manager. This is
     * set when the customer is opted into cross account conversion tracking, and
     * it overrides conversion_tracking_id. This field can only be managed through
     * the Google Ads UI. This field is read-only.
     * 
* * optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCrossAccountConversionTrackingId() { bitField0_ = (bitField0_ & ~0x00000002); crossAccountConversionTrackingId_ = 0L; onChanged(); return this; } private boolean acceptedCustomerDataTerms_ ; /** *
     * Output only. Whether the customer has accepted customer data terms. If
     * using cross-account conversion tracking, this value is inherited from the
     * manager. This field is read-only. For more
     * information, see https://support.google.com/adspolicy/answer/7475709.
     * 
* * bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The acceptedCustomerDataTerms. */ @java.lang.Override public boolean getAcceptedCustomerDataTerms() { return acceptedCustomerDataTerms_; } /** *
     * Output only. Whether the customer has accepted customer data terms. If
     * using cross-account conversion tracking, this value is inherited from the
     * manager. This field is read-only. For more
     * information, see https://support.google.com/adspolicy/answer/7475709.
     * 
* * bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The acceptedCustomerDataTerms to set. * @return This builder for chaining. */ public Builder setAcceptedCustomerDataTerms(boolean value) { acceptedCustomerDataTerms_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. Whether the customer has accepted customer data terms. If
     * using cross-account conversion tracking, this value is inherited from the
     * manager. This field is read-only. For more
     * information, see https://support.google.com/adspolicy/answer/7475709.
     * 
* * bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAcceptedCustomerDataTerms() { bitField0_ = (bitField0_ & ~0x00000004); acceptedCustomerDataTerms_ = false; onChanged(); return this; } private int conversionTrackingStatus_ = 0; /** *
     * Output only. Conversion tracking status. It indicates whether the customer
     * is using conversion tracking, and who is the conversion tracking owner of
     * this customer. If this customer is using cross-account conversion tracking,
     * the value returned will differ based on the `login-customer-id` of the
     * request.
     * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for conversionTrackingStatus. */ @java.lang.Override public int getConversionTrackingStatusValue() { return conversionTrackingStatus_; } /** *
     * Output only. Conversion tracking status. It indicates whether the customer
     * is using conversion tracking, and who is the conversion tracking owner of
     * this customer. If this customer is using cross-account conversion tracking,
     * the value returned will differ based on the `login-customer-id` of the
     * request.
     * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for conversionTrackingStatus to set. * @return This builder for chaining. */ public Builder setConversionTrackingStatusValue(int value) { conversionTrackingStatus_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Output only. Conversion tracking status. It indicates whether the customer
     * is using conversion tracking, and who is the conversion tracking owner of
     * this customer. If this customer is using cross-account conversion tracking,
     * the value returned will differ based on the `login-customer-id` of the
     * request.
     * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionTrackingStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus getConversionTrackingStatus() { com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus result = com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.forNumber(conversionTrackingStatus_); return result == null ? com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus.UNRECOGNIZED : result; } /** *
     * Output only. Conversion tracking status. It indicates whether the customer
     * is using conversion tracking, and who is the conversion tracking owner of
     * this customer. If this customer is using cross-account conversion tracking,
     * the value returned will differ based on the `login-customer-id` of the
     * request.
     * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The conversionTrackingStatus to set. * @return This builder for chaining. */ public Builder setConversionTrackingStatus(com.google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; conversionTrackingStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Conversion tracking status. It indicates whether the customer
     * is using conversion tracking, and who is the conversion tracking owner of
     * this customer. If this customer is using cross-account conversion tracking,
     * the value returned will differ based on the `login-customer-id` of the
     * request.
     * 
* * .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConversionTrackingStatus() { bitField0_ = (bitField0_ & ~0x00000008); conversionTrackingStatus_ = 0; onChanged(); return this; } private boolean enhancedConversionsForLeadsEnabled_ ; /** *
     * Output only. Whether the customer is opted-in for enhanced conversions
     * for leads. If using cross-account conversion tracking, this value is
     * inherited from the manager. This field is read-only.
     * 
* * bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enhancedConversionsForLeadsEnabled. */ @java.lang.Override public boolean getEnhancedConversionsForLeadsEnabled() { return enhancedConversionsForLeadsEnabled_; } /** *
     * Output only. Whether the customer is opted-in for enhanced conversions
     * for leads. If using cross-account conversion tracking, this value is
     * inherited from the manager. This field is read-only.
     * 
* * bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enhancedConversionsForLeadsEnabled to set. * @return This builder for chaining. */ public Builder setEnhancedConversionsForLeadsEnabled(boolean value) { enhancedConversionsForLeadsEnabled_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. Whether the customer is opted-in for enhanced conversions
     * for leads. If using cross-account conversion tracking, this value is
     * inherited from the manager. This field is read-only.
     * 
* * bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEnhancedConversionsForLeadsEnabled() { bitField0_ = (bitField0_ & ~0x00000010); enhancedConversionsForLeadsEnabled_ = false; onChanged(); return this; } private java.lang.Object googleAdsConversionCustomer_ = ""; /** *
     * Output only. The resource name of the customer where conversions are
     * created and managed. This field is read-only.
     * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The googleAdsConversionCustomer. */ public java.lang.String getGoogleAdsConversionCustomer() { java.lang.Object ref = googleAdsConversionCustomer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); googleAdsConversionCustomer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The resource name of the customer where conversions are
     * created and managed. This field is read-only.
     * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for googleAdsConversionCustomer. */ public com.google.protobuf.ByteString getGoogleAdsConversionCustomerBytes() { java.lang.Object ref = googleAdsConversionCustomer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); googleAdsConversionCustomer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The resource name of the customer where conversions are
     * created and managed. This field is read-only.
     * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The googleAdsConversionCustomer to set. * @return This builder for chaining. */ public Builder setGoogleAdsConversionCustomer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } googleAdsConversionCustomer_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. The resource name of the customer where conversions are
     * created and managed. This field is read-only.
     * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearGoogleAdsConversionCustomer() { googleAdsConversionCustomer_ = getDefaultInstance().getGoogleAdsConversionCustomer(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Output only. The resource name of the customer where conversions are
     * created and managed. This field is read-only.
     * 
* * string google_ads_conversion_customer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for googleAdsConversionCustomer to set. * @return This builder for chaining. */ public Builder setGoogleAdsConversionCustomerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); googleAdsConversionCustomer_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.ConversionTrackingSetting) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.ConversionTrackingSetting) private static final com.google.ads.googleads.v17.resources.ConversionTrackingSetting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.ConversionTrackingSetting(); } public static com.google.ads.googleads.v17.resources.ConversionTrackingSetting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConversionTrackingSetting 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.resources.ConversionTrackingSetting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy