Class ConversionTrackingSetting.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
com.google.ads.googleads.v18.resources.ConversionTrackingSetting.Builder
All Implemented Interfaces:
ConversionTrackingSettingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConversionTrackingSetting

public static final class ConversionTrackingSetting.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder> implements ConversionTrackingSettingOrBuilder
 A collection of customer-wide settings related to Google Ads Conversion
 Tracking.
 
Protobuf type google.ads.googleads.v18.resources.ConversionTrackingSetting
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • getDefaultInstanceForType

      public ConversionTrackingSetting getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConversionTrackingSetting build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConversionTrackingSetting buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • setField

      public ConversionTrackingSetting.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • clearField

      public ConversionTrackingSetting.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • clearOneof

      public ConversionTrackingSetting.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • setRepeatedField

      public ConversionTrackingSetting.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • addRepeatedField

      public ConversionTrackingSetting.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • mergeFrom

      public ConversionTrackingSetting.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionTrackingSetting.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • mergeFrom

      public ConversionTrackingSetting.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionTrackingSetting.Builder>
      Throws:
      IOException
    • hasConversionTrackingId

      public boolean hasConversionTrackingId()
       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];
      Specified by:
      hasConversionTrackingId in interface ConversionTrackingSettingOrBuilder
      Returns:
      Whether the conversionTrackingId field is set.
    • getConversionTrackingId

      public long getConversionTrackingId()
       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];
      Specified by:
      getConversionTrackingId in interface ConversionTrackingSettingOrBuilder
      Returns:
      The conversionTrackingId.
    • setConversionTrackingId

      public ConversionTrackingSetting.Builder setConversionTrackingId(long value)
       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];
      Parameters:
      value - The conversionTrackingId to set.
      Returns:
      This builder for chaining.
    • clearConversionTrackingId

      public ConversionTrackingSetting.Builder clearConversionTrackingId()
       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];
      Returns:
      This builder for chaining.
    • hasCrossAccountConversionTrackingId

      public boolean hasCrossAccountConversionTrackingId()
       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];
      Specified by:
      hasCrossAccountConversionTrackingId in interface ConversionTrackingSettingOrBuilder
      Returns:
      Whether the crossAccountConversionTrackingId field is set.
    • getCrossAccountConversionTrackingId

      public long getCrossAccountConversionTrackingId()
       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];
      Specified by:
      getCrossAccountConversionTrackingId in interface ConversionTrackingSettingOrBuilder
      Returns:
      The crossAccountConversionTrackingId.
    • setCrossAccountConversionTrackingId

      public ConversionTrackingSetting.Builder setCrossAccountConversionTrackingId(long value)
       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];
      Parameters:
      value - The crossAccountConversionTrackingId to set.
      Returns:
      This builder for chaining.
    • clearCrossAccountConversionTrackingId

      public ConversionTrackingSetting.Builder clearCrossAccountConversionTrackingId()
       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];
      Returns:
      This builder for chaining.
    • getAcceptedCustomerDataTerms

      public boolean getAcceptedCustomerDataTerms()
       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];
      Specified by:
      getAcceptedCustomerDataTerms in interface ConversionTrackingSettingOrBuilder
      Returns:
      The acceptedCustomerDataTerms.
    • setAcceptedCustomerDataTerms

      public ConversionTrackingSetting.Builder setAcceptedCustomerDataTerms(boolean value)
       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];
      Parameters:
      value - The acceptedCustomerDataTerms to set.
      Returns:
      This builder for chaining.
    • clearAcceptedCustomerDataTerms

      public ConversionTrackingSetting.Builder clearAcceptedCustomerDataTerms()
       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];
      Returns:
      This builder for chaining.
    • getConversionTrackingStatusValue

      public int getConversionTrackingStatusValue()
       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.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConversionTrackingStatusValue in interface ConversionTrackingSettingOrBuilder
      Returns:
      The enum numeric value on the wire for conversionTrackingStatus.
    • setConversionTrackingStatusValue

      public ConversionTrackingSetting.Builder setConversionTrackingStatusValue(int value)
       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.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for conversionTrackingStatus to set.
      Returns:
      This builder for chaining.
    • getConversionTrackingStatus

      public ConversionTrackingStatusEnum.ConversionTrackingStatus getConversionTrackingStatus()
       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.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConversionTrackingStatus in interface ConversionTrackingSettingOrBuilder
      Returns:
      The conversionTrackingStatus.
    • setConversionTrackingStatus

       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.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The conversionTrackingStatus to set.
      Returns:
      This builder for chaining.
    • clearConversionTrackingStatus

      public ConversionTrackingSetting.Builder clearConversionTrackingStatus()
       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.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEnhancedConversionsForLeadsEnabled

      public boolean getEnhancedConversionsForLeadsEnabled()
       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];
      Specified by:
      getEnhancedConversionsForLeadsEnabled in interface ConversionTrackingSettingOrBuilder
      Returns:
      The enhancedConversionsForLeadsEnabled.
    • setEnhancedConversionsForLeadsEnabled

      public ConversionTrackingSetting.Builder setEnhancedConversionsForLeadsEnabled(boolean value)
       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];
      Parameters:
      value - The enhancedConversionsForLeadsEnabled to set.
      Returns:
      This builder for chaining.
    • clearEnhancedConversionsForLeadsEnabled

      public ConversionTrackingSetting.Builder clearEnhancedConversionsForLeadsEnabled()
       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];
      Returns:
      This builder for chaining.
    • getGoogleAdsConversionCustomer

      public String getGoogleAdsConversionCustomer()
       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];
      Specified by:
      getGoogleAdsConversionCustomer in interface ConversionTrackingSettingOrBuilder
      Returns:
      The googleAdsConversionCustomer.
    • getGoogleAdsConversionCustomerBytes

      public com.google.protobuf.ByteString getGoogleAdsConversionCustomerBytes()
       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];
      Specified by:
      getGoogleAdsConversionCustomerBytes in interface ConversionTrackingSettingOrBuilder
      Returns:
      The bytes for googleAdsConversionCustomer.
    • setGoogleAdsConversionCustomer

      public ConversionTrackingSetting.Builder setGoogleAdsConversionCustomer(String value)
       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];
      Parameters:
      value - The googleAdsConversionCustomer to set.
      Returns:
      This builder for chaining.
    • clearGoogleAdsConversionCustomer

      public ConversionTrackingSetting.Builder clearGoogleAdsConversionCustomer()
       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];
      Returns:
      This builder for chaining.
    • setGoogleAdsConversionCustomerBytes

      public ConversionTrackingSetting.Builder setGoogleAdsConversionCustomerBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for googleAdsConversionCustomer to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ConversionTrackingSetting.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    • mergeUnknownFields

      public final ConversionTrackingSetting.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>