Class ConversionAction.Builder

  • All Implemented Interfaces:
    ConversionActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ConversionAction

    public static final class ConversionAction.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConversionAction.Builder>
    implements ConversionActionOrBuilder
     A conversion action.
     
    Protobuf type google.ads.googleads.v10.resources.ConversionAction
    • Method Detail

      • 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<ConversionAction.Builder>
      • clear

        public ConversionAction.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<ConversionAction.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<ConversionAction.Builder>
      • getDefaultInstanceForType

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

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

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

        public ConversionAction.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<ConversionAction.Builder>
      • setField

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

        public ConversionAction.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<ConversionAction.Builder>
      • clearOneof

        public ConversionAction.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<ConversionAction.Builder>
      • setRepeatedField

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

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

        public ConversionAction.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<ConversionAction.Builder>
      • isInitialized

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

        public ConversionAction.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<ConversionAction.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the conversion action.
         Conversion action resource names have the form:
         `customers/{customer_id}/conversionActions/{conversion_action_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface ConversionActionOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the conversion action.
         Conversion action resource names have the form:
         `customers/{customer_id}/conversionActions/{conversion_action_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface ConversionActionOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public ConversionAction.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the conversion action.
         Conversion action resource names have the form:
         `customers/{customer_id}/conversionActions/{conversion_action_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public ConversionAction.Builder clearResourceName()
         Immutable. The resource name of the conversion action.
         Conversion action resource names have the form:
         `customers/{customer_id}/conversionActions/{conversion_action_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public ConversionAction.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the conversion action.
         Conversion action resource names have the form:
         `customers/{customer_id}/conversionActions/{conversion_action_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         Output only. The ID of the conversion action.
         
        optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface ConversionActionOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         Output only. The ID of the conversion action.
         
        optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface ConversionActionOrBuilder
        Returns:
        The id.
      • setId

        public ConversionAction.Builder setId​(long value)
         Output only. The ID of the conversion action.
         
        optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public ConversionAction.Builder clearId()
         Output only. The ID of the conversion action.
         
        optional int64 id = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Specified by:
        hasName in interface ConversionActionOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Specified by:
        getName in interface ConversionActionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Specified by:
        getNameBytes in interface ConversionActionOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ConversionAction.Builder setName​(java.lang.String value)
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConversionAction.Builder clearName()
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConversionAction.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the conversion action.
         This field is required and should not be empty when creating new
         conversion actions.
         
        optional string name = 22;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         The status of this conversion action for conversion event accrual.
         
        .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
        Specified by:
        getStatusValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public ConversionAction.Builder setStatusValue​(int value)
         The status of this conversion action for conversion event accrual.
         
        .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public ConversionAction.Builder clearStatus()
         The status of this conversion action for conversion event accrual.
         
        .google.ads.googleads.v10.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Immutable. The type of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getTypeValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public ConversionAction.Builder setTypeValue​(int value)
         Immutable. The type of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public ConversionAction.Builder setType​(ConversionActionTypeEnum.ConversionActionType value)
         Immutable. The type of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public ConversionAction.Builder clearType()
         Immutable. The type of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getOriginValue

        public int getOriginValue()
         Output only. The conversion origin of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOriginValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for origin.
      • setOriginValue

        public ConversionAction.Builder setOriginValue​(int value)
         Output only. The conversion origin of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for origin to set.
        Returns:
        This builder for chaining.
      • setOrigin

        public ConversionAction.Builder setOrigin​(ConversionOriginEnum.ConversionOrigin value)
         Output only. The conversion origin of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The origin to set.
        Returns:
        This builder for chaining.
      • clearOrigin

        public ConversionAction.Builder clearOrigin()
         Output only. The conversion origin of this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasPrimaryForGoal

        public boolean hasPrimaryForGoal()
         If a conversion action's primary_for_goal bit is false, the conversion
         action is non-biddable for all campaigns regardless of their customer
         conversion goal or campaign conversion goal.
         However, custom conversion goals do not respect primary_for_goal, so if
         a campaign has a custom conversion goal configured with a
         primary_for_goal = false conversion action, that conversion action is
         still biddable.
         By default, primary_for_goal will be true if not set. In V9,
         primary_for_goal can only be set to false after creation via an 'update'
         operation because it's not declared as optional.
         
        optional bool primary_for_goal = 31;
        Specified by:
        hasPrimaryForGoal in interface ConversionActionOrBuilder
        Returns:
        Whether the primaryForGoal field is set.
      • getPrimaryForGoal

        public boolean getPrimaryForGoal()
         If a conversion action's primary_for_goal bit is false, the conversion
         action is non-biddable for all campaigns regardless of their customer
         conversion goal or campaign conversion goal.
         However, custom conversion goals do not respect primary_for_goal, so if
         a campaign has a custom conversion goal configured with a
         primary_for_goal = false conversion action, that conversion action is
         still biddable.
         By default, primary_for_goal will be true if not set. In V9,
         primary_for_goal can only be set to false after creation via an 'update'
         operation because it's not declared as optional.
         
        optional bool primary_for_goal = 31;
        Specified by:
        getPrimaryForGoal in interface ConversionActionOrBuilder
        Returns:
        The primaryForGoal.
      • setPrimaryForGoal

        public ConversionAction.Builder setPrimaryForGoal​(boolean value)
         If a conversion action's primary_for_goal bit is false, the conversion
         action is non-biddable for all campaigns regardless of their customer
         conversion goal or campaign conversion goal.
         However, custom conversion goals do not respect primary_for_goal, so if
         a campaign has a custom conversion goal configured with a
         primary_for_goal = false conversion action, that conversion action is
         still biddable.
         By default, primary_for_goal will be true if not set. In V9,
         primary_for_goal can only be set to false after creation via an 'update'
         operation because it's not declared as optional.
         
        optional bool primary_for_goal = 31;
        Parameters:
        value - The primaryForGoal to set.
        Returns:
        This builder for chaining.
      • clearPrimaryForGoal

        public ConversionAction.Builder clearPrimaryForGoal()
         If a conversion action's primary_for_goal bit is false, the conversion
         action is non-biddable for all campaigns regardless of their customer
         conversion goal or campaign conversion goal.
         However, custom conversion goals do not respect primary_for_goal, so if
         a campaign has a custom conversion goal configured with a
         primary_for_goal = false conversion action, that conversion action is
         still biddable.
         By default, primary_for_goal will be true if not set. In V9,
         primary_for_goal can only be set to false after creation via an 'update'
         operation because it's not declared as optional.
         
        optional bool primary_for_goal = 31;
        Returns:
        This builder for chaining.
      • getCategoryValue

        public int getCategoryValue()
         The category of conversions reported for this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
        Specified by:
        getCategoryValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for category.
      • setCategoryValue

        public ConversionAction.Builder setCategoryValue​(int value)
         The category of conversions reported for this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
        Parameters:
        value - The enum numeric value on the wire for category to set.
        Returns:
        This builder for chaining.
      • clearCategory

        public ConversionAction.Builder clearCategory()
         The category of conversions reported for this conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
        Returns:
        This builder for chaining.
      • hasOwnerCustomer

        public boolean hasOwnerCustomer()
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        hasOwnerCustomer in interface ConversionActionOrBuilder
        Returns:
        Whether the ownerCustomer field is set.
      • getOwnerCustomer

        public java.lang.String getOwnerCustomer()
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getOwnerCustomer in interface ConversionActionOrBuilder
        Returns:
        The ownerCustomer.
      • getOwnerCustomerBytes

        public com.google.protobuf.ByteString getOwnerCustomerBytes()
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getOwnerCustomerBytes in interface ConversionActionOrBuilder
        Returns:
        The bytes for ownerCustomer.
      • setOwnerCustomer

        public ConversionAction.Builder setOwnerCustomer​(java.lang.String value)
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The ownerCustomer to set.
        Returns:
        This builder for chaining.
      • clearOwnerCustomer

        public ConversionAction.Builder clearOwnerCustomer()
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setOwnerCustomerBytes

        public ConversionAction.Builder setOwnerCustomerBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the conversion action owner customer, or null if this
         is a system-defined conversion action.
         
        optional string owner_customer = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for ownerCustomer to set.
        Returns:
        This builder for chaining.
      • hasIncludeInConversionsMetric

        public boolean hasIncludeInConversionsMetric()
         Whether this conversion action should be included in the "conversions"
         metric.
         
        optional bool include_in_conversions_metric = 24;
        Specified by:
        hasIncludeInConversionsMetric in interface ConversionActionOrBuilder
        Returns:
        Whether the includeInConversionsMetric field is set.
      • getIncludeInConversionsMetric

        public boolean getIncludeInConversionsMetric()
         Whether this conversion action should be included in the "conversions"
         metric.
         
        optional bool include_in_conversions_metric = 24;
        Specified by:
        getIncludeInConversionsMetric in interface ConversionActionOrBuilder
        Returns:
        The includeInConversionsMetric.
      • setIncludeInConversionsMetric

        public ConversionAction.Builder setIncludeInConversionsMetric​(boolean value)
         Whether this conversion action should be included in the "conversions"
         metric.
         
        optional bool include_in_conversions_metric = 24;
        Parameters:
        value - The includeInConversionsMetric to set.
        Returns:
        This builder for chaining.
      • clearIncludeInConversionsMetric

        public ConversionAction.Builder clearIncludeInConversionsMetric()
         Whether this conversion action should be included in the "conversions"
         metric.
         
        optional bool include_in_conversions_metric = 24;
        Returns:
        This builder for chaining.
      • hasClickThroughLookbackWindowDays

        public boolean hasClickThroughLookbackWindowDays()
         The maximum number of days that may elapse between an interaction
         (e.g., a click) and a conversion event.
         
        optional int64 click_through_lookback_window_days = 25;
        Specified by:
        hasClickThroughLookbackWindowDays in interface ConversionActionOrBuilder
        Returns:
        Whether the clickThroughLookbackWindowDays field is set.
      • getClickThroughLookbackWindowDays

        public long getClickThroughLookbackWindowDays()
         The maximum number of days that may elapse between an interaction
         (e.g., a click) and a conversion event.
         
        optional int64 click_through_lookback_window_days = 25;
        Specified by:
        getClickThroughLookbackWindowDays in interface ConversionActionOrBuilder
        Returns:
        The clickThroughLookbackWindowDays.
      • setClickThroughLookbackWindowDays

        public ConversionAction.Builder setClickThroughLookbackWindowDays​(long value)
         The maximum number of days that may elapse between an interaction
         (e.g., a click) and a conversion event.
         
        optional int64 click_through_lookback_window_days = 25;
        Parameters:
        value - The clickThroughLookbackWindowDays to set.
        Returns:
        This builder for chaining.
      • clearClickThroughLookbackWindowDays

        public ConversionAction.Builder clearClickThroughLookbackWindowDays()
         The maximum number of days that may elapse between an interaction
         (e.g., a click) and a conversion event.
         
        optional int64 click_through_lookback_window_days = 25;
        Returns:
        This builder for chaining.
      • hasViewThroughLookbackWindowDays

        public boolean hasViewThroughLookbackWindowDays()
         The maximum number of days which may elapse between an impression and a
         conversion without an interaction.
         
        optional int64 view_through_lookback_window_days = 26;
        Specified by:
        hasViewThroughLookbackWindowDays in interface ConversionActionOrBuilder
        Returns:
        Whether the viewThroughLookbackWindowDays field is set.
      • getViewThroughLookbackWindowDays

        public long getViewThroughLookbackWindowDays()
         The maximum number of days which may elapse between an impression and a
         conversion without an interaction.
         
        optional int64 view_through_lookback_window_days = 26;
        Specified by:
        getViewThroughLookbackWindowDays in interface ConversionActionOrBuilder
        Returns:
        The viewThroughLookbackWindowDays.
      • setViewThroughLookbackWindowDays

        public ConversionAction.Builder setViewThroughLookbackWindowDays​(long value)
         The maximum number of days which may elapse between an impression and a
         conversion without an interaction.
         
        optional int64 view_through_lookback_window_days = 26;
        Parameters:
        value - The viewThroughLookbackWindowDays to set.
        Returns:
        This builder for chaining.
      • clearViewThroughLookbackWindowDays

        public ConversionAction.Builder clearViewThroughLookbackWindowDays()
         The maximum number of days which may elapse between an impression and a
         conversion without an interaction.
         
        optional int64 view_through_lookback_window_days = 26;
        Returns:
        This builder for chaining.
      • hasValueSettings

        public boolean hasValueSettings()
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
        Specified by:
        hasValueSettings in interface ConversionActionOrBuilder
        Returns:
        Whether the valueSettings field is set.
      • getValueSettings

        public ConversionAction.ValueSettings getValueSettings()
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
        Specified by:
        getValueSettings in interface ConversionActionOrBuilder
        Returns:
        The valueSettings.
      • setValueSettings

        public ConversionAction.Builder setValueSettings​(ConversionAction.ValueSettings value)
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
      • mergeValueSettings

        public ConversionAction.Builder mergeValueSettings​(ConversionAction.ValueSettings value)
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
      • clearValueSettings

        public ConversionAction.Builder clearValueSettings()
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
      • getValueSettingsBuilder

        public ConversionAction.ValueSettings.Builder getValueSettingsBuilder()
         Settings related to the value for conversion events associated with this
         conversion action.
         
        .google.ads.googleads.v10.resources.ConversionAction.ValueSettings value_settings = 11;
      • getCountingTypeValue

        public int getCountingTypeValue()
         How to count conversion events for the conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
        Specified by:
        getCountingTypeValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for countingType.
      • setCountingTypeValue

        public ConversionAction.Builder setCountingTypeValue​(int value)
         How to count conversion events for the conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
        Parameters:
        value - The enum numeric value on the wire for countingType to set.
        Returns:
        This builder for chaining.
      • clearCountingType

        public ConversionAction.Builder clearCountingType()
         How to count conversion events for the conversion action.
         
        .google.ads.googleads.v10.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
        Returns:
        This builder for chaining.
      • hasAttributionModelSettings

        public boolean hasAttributionModelSettings()
         Settings related to this conversion action's attribution model.
         
        .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
        Specified by:
        hasAttributionModelSettings in interface ConversionActionOrBuilder
        Returns:
        Whether the attributionModelSettings field is set.
      • clearAttributionModelSettings

        public ConversionAction.Builder clearAttributionModelSettings()
         Settings related to this conversion action's attribution model.
         
        .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
      • getAttributionModelSettingsBuilder

        public ConversionAction.AttributionModelSettings.Builder getAttributionModelSettingsBuilder()
         Settings related to this conversion action's attribution model.
         
        .google.ads.googleads.v10.resources.ConversionAction.AttributionModelSettings attribution_model_settings = 13;
      • getTagSnippetsList

        public java.util.List<TagSnippet> getTagSnippetsList()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTagSnippetsList in interface ConversionActionOrBuilder
      • getTagSnippetsCount

        public int getTagSnippetsCount()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTagSnippetsCount in interface ConversionActionOrBuilder
      • getTagSnippets

        public TagSnippet getTagSnippets​(int index)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTagSnippets in interface ConversionActionOrBuilder
      • setTagSnippets

        public ConversionAction.Builder setTagSnippets​(int index,
                                                       TagSnippet value)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setTagSnippets

        public ConversionAction.Builder setTagSnippets​(int index,
                                                       TagSnippet.Builder builderForValue)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addTagSnippets

        public ConversionAction.Builder addTagSnippets​(TagSnippet value)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addTagSnippets

        public ConversionAction.Builder addTagSnippets​(int index,
                                                       TagSnippet value)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addTagSnippets

        public ConversionAction.Builder addTagSnippets​(TagSnippet.Builder builderForValue)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addTagSnippets

        public ConversionAction.Builder addTagSnippets​(int index,
                                                       TagSnippet.Builder builderForValue)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllTagSnippets

        public ConversionAction.Builder addAllTagSnippets​(java.lang.Iterable<? extends TagSnippet> values)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearTagSnippets

        public ConversionAction.Builder clearTagSnippets()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeTagSnippets

        public ConversionAction.Builder removeTagSnippets​(int index)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getTagSnippetsBuilder

        public TagSnippet.Builder getTagSnippetsBuilder​(int index)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getTagSnippetsOrBuilder

        public TagSnippetOrBuilder getTagSnippetsOrBuilder​(int index)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTagSnippetsOrBuilder in interface ConversionActionOrBuilder
      • getTagSnippetsOrBuilderList

        public java.util.List<? extends TagSnippetOrBuilder> getTagSnippetsOrBuilderList()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTagSnippetsOrBuilderList in interface ConversionActionOrBuilder
      • addTagSnippetsBuilder

        public TagSnippet.Builder addTagSnippetsBuilder()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addTagSnippetsBuilder

        public TagSnippet.Builder addTagSnippetsBuilder​(int index)
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getTagSnippetsBuilderList

        public java.util.List<TagSnippet.Builder> getTagSnippetsBuilderList()
         Output only. The snippets used for tracking conversions.
         
        repeated .google.ads.googleads.v10.common.TagSnippet tag_snippets = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasPhoneCallDurationSeconds

        public boolean hasPhoneCallDurationSeconds()
         The phone call duration in seconds after which a conversion should be
         reported for this conversion action.
         The value must be between 0 and 10000, inclusive.
         
        optional int64 phone_call_duration_seconds = 27;
        Specified by:
        hasPhoneCallDurationSeconds in interface ConversionActionOrBuilder
        Returns:
        Whether the phoneCallDurationSeconds field is set.
      • getPhoneCallDurationSeconds

        public long getPhoneCallDurationSeconds()
         The phone call duration in seconds after which a conversion should be
         reported for this conversion action.
         The value must be between 0 and 10000, inclusive.
         
        optional int64 phone_call_duration_seconds = 27;
        Specified by:
        getPhoneCallDurationSeconds in interface ConversionActionOrBuilder
        Returns:
        The phoneCallDurationSeconds.
      • setPhoneCallDurationSeconds

        public ConversionAction.Builder setPhoneCallDurationSeconds​(long value)
         The phone call duration in seconds after which a conversion should be
         reported for this conversion action.
         The value must be between 0 and 10000, inclusive.
         
        optional int64 phone_call_duration_seconds = 27;
        Parameters:
        value - The phoneCallDurationSeconds to set.
        Returns:
        This builder for chaining.
      • clearPhoneCallDurationSeconds

        public ConversionAction.Builder clearPhoneCallDurationSeconds()
         The phone call duration in seconds after which a conversion should be
         reported for this conversion action.
         The value must be between 0 and 10000, inclusive.
         
        optional int64 phone_call_duration_seconds = 27;
        Returns:
        This builder for chaining.
      • hasAppId

        public boolean hasAppId()
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Specified by:
        hasAppId in interface ConversionActionOrBuilder
        Returns:
        Whether the appId field is set.
      • getAppId

        public java.lang.String getAppId()
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Specified by:
        getAppId in interface ConversionActionOrBuilder
        Returns:
        The appId.
      • getAppIdBytes

        public com.google.protobuf.ByteString getAppIdBytes()
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Specified by:
        getAppIdBytes in interface ConversionActionOrBuilder
        Returns:
        The bytes for appId.
      • setAppId

        public ConversionAction.Builder setAppId​(java.lang.String value)
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Parameters:
        value - The appId to set.
        Returns:
        This builder for chaining.
      • clearAppId

        public ConversionAction.Builder clearAppId()
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Returns:
        This builder for chaining.
      • setAppIdBytes

        public ConversionAction.Builder setAppIdBytes​(com.google.protobuf.ByteString value)
         App ID for an app conversion action.
         
        optional string app_id = 28;
        Parameters:
        value - The bytes for appId to set.
        Returns:
        This builder for chaining.
      • getMobileAppVendorValue

        public int getMobileAppVendorValue()
         Output only. Mobile app vendor for an app conversion action.
         
        .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMobileAppVendorValue in interface ConversionActionOrBuilder
        Returns:
        The enum numeric value on the wire for mobileAppVendor.
      • setMobileAppVendorValue

        public ConversionAction.Builder setMobileAppVendorValue​(int value)
         Output only. Mobile app vendor for an app conversion action.
         
        .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for mobileAppVendor to set.
        Returns:
        This builder for chaining.
      • setMobileAppVendor

        public ConversionAction.Builder setMobileAppVendor​(MobileAppVendorEnum.MobileAppVendor value)
         Output only. Mobile app vendor for an app conversion action.
         
        .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The mobileAppVendor to set.
        Returns:
        This builder for chaining.
      • clearMobileAppVendor

        public ConversionAction.Builder clearMobileAppVendor()
         Output only. Mobile app vendor for an app conversion action.
         
        .google.ads.googleads.v10.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasFirebaseSettings

        public boolean hasFirebaseSettings()
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasFirebaseSettings in interface ConversionActionOrBuilder
        Returns:
        Whether the firebaseSettings field is set.
      • getFirebaseSettings

        public ConversionAction.FirebaseSettings getFirebaseSettings()
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFirebaseSettings in interface ConversionActionOrBuilder
        Returns:
        The firebaseSettings.
      • setFirebaseSettings

        public ConversionAction.Builder setFirebaseSettings​(ConversionAction.FirebaseSettings value)
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setFirebaseSettings

        public ConversionAction.Builder setFirebaseSettings​(ConversionAction.FirebaseSettings.Builder builderForValue)
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeFirebaseSettings

        public ConversionAction.Builder mergeFirebaseSettings​(ConversionAction.FirebaseSettings value)
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearFirebaseSettings

        public ConversionAction.Builder clearFirebaseSettings()
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getFirebaseSettingsBuilder

        public ConversionAction.FirebaseSettings.Builder getFirebaseSettingsBuilder()
         Output only. Firebase settings for Firebase conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.FirebaseSettings firebase_settings = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasThirdPartyAppAnalyticsSettings

        public boolean hasThirdPartyAppAnalyticsSettings()
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasThirdPartyAppAnalyticsSettings in interface ConversionActionOrBuilder
        Returns:
        Whether the thirdPartyAppAnalyticsSettings field is set.
      • setThirdPartyAppAnalyticsSettings

        public ConversionAction.Builder setThirdPartyAppAnalyticsSettings​(ConversionAction.ThirdPartyAppAnalyticsSettings value)
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setThirdPartyAppAnalyticsSettings

        public ConversionAction.Builder setThirdPartyAppAnalyticsSettings​(ConversionAction.ThirdPartyAppAnalyticsSettings.Builder builderForValue)
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeThirdPartyAppAnalyticsSettings

        public ConversionAction.Builder mergeThirdPartyAppAnalyticsSettings​(ConversionAction.ThirdPartyAppAnalyticsSettings value)
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearThirdPartyAppAnalyticsSettings

        public ConversionAction.Builder clearThirdPartyAppAnalyticsSettings()
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getThirdPartyAppAnalyticsSettingsBuilder

        public ConversionAction.ThirdPartyAppAnalyticsSettings.Builder getThirdPartyAppAnalyticsSettingsBuilder()
         Output only. Third Party App Analytics settings for third party conversion types.
         
        .google.ads.googleads.v10.resources.ConversionAction.ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final ConversionAction.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<ConversionAction.Builder>
      • mergeUnknownFields

        public final ConversionAction.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<ConversionAction.Builder>