Class CampaignLifecycleGoal.Builder

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

    public static final class CampaignLifecycleGoal.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignLifecycleGoal.Builder>
    implements CampaignLifecycleGoalOrBuilder
     Campaign level customer lifecycle goal settings.
     
    Protobuf type google.ads.googleads.v15.resources.CampaignLifecycleGoal
    • 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<CampaignLifecycleGoal.Builder>
      • clear

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

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

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

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

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

        public CampaignLifecycleGoal.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<CampaignLifecycleGoal.Builder>
      • clearField

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

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

        public CampaignLifecycleGoal.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<CampaignLifecycleGoal.Builder>
      • addRepeatedField

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

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

        public CampaignLifecycleGoal.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<CampaignLifecycleGoal.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the customer lifecycle goal of a campaign.
        
         `customers/{customer_id}/campaignLifecycleGoal/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface CampaignLifecycleGoalOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the customer lifecycle goal of a campaign.
        
         `customers/{customer_id}/campaignLifecycleGoal/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface CampaignLifecycleGoalOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public CampaignLifecycleGoal.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the customer lifecycle goal of a campaign.
        
         `customers/{customer_id}/campaignLifecycleGoal/{campaign_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 CampaignLifecycleGoal.Builder clearResourceName()
         Immutable. The resource name of the customer lifecycle goal of a campaign.
        
         `customers/{customer_id}/campaignLifecycleGoal/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public CampaignLifecycleGoal.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the customer lifecycle goal of a campaign.
        
         `customers/{customer_id}/campaignLifecycleGoal/{campaign_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.
      • getCampaign

        public java.lang.String getCampaign()
         Output only. The campaign where the goal is attached.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface CampaignLifecycleGoalOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Output only. The campaign where the goal is attached.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface CampaignLifecycleGoalOrBuilder
        Returns:
        The bytes for campaign.
      • setCampaign

        public CampaignLifecycleGoal.Builder setCampaign​(java.lang.String value)
         Output only. The campaign where the goal is attached.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The campaign to set.
        Returns:
        This builder for chaining.
      • clearCampaign

        public CampaignLifecycleGoal.Builder clearCampaign()
         Output only. The campaign where the goal is attached.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCampaignBytes

        public CampaignLifecycleGoal.Builder setCampaignBytes​(com.google.protobuf.ByteString value)
         Output only. The campaign where the goal is attached.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for campaign to set.
        Returns:
        This builder for chaining.
      • hasCustomerAcquisitionGoalSettings

        public boolean hasCustomerAcquisitionGoalSettings()
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCustomerAcquisitionGoalSettings in interface CampaignLifecycleGoalOrBuilder
        Returns:
        Whether the customerAcquisitionGoalSettings field is set.
      • getCustomerAcquisitionGoalSettings

        public CustomerAcquisitionGoalSettings getCustomerAcquisitionGoalSettings()
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCustomerAcquisitionGoalSettings in interface CampaignLifecycleGoalOrBuilder
        Returns:
        The customerAcquisitionGoalSettings.
      • setCustomerAcquisitionGoalSettings

        public CampaignLifecycleGoal.Builder setCustomerAcquisitionGoalSettings​(CustomerAcquisitionGoalSettings value)
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCustomerAcquisitionGoalSettings

        public CampaignLifecycleGoal.Builder setCustomerAcquisitionGoalSettings​(CustomerAcquisitionGoalSettings.Builder builderForValue)
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCustomerAcquisitionGoalSettings

        public CampaignLifecycleGoal.Builder mergeCustomerAcquisitionGoalSettings​(CustomerAcquisitionGoalSettings value)
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCustomerAcquisitionGoalSettings

        public CampaignLifecycleGoal.Builder clearCustomerAcquisitionGoalSettings()
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCustomerAcquisitionGoalSettingsBuilder

        public CustomerAcquisitionGoalSettings.Builder getCustomerAcquisitionGoalSettingsBuilder()
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCustomerAcquisitionGoalSettingsOrBuilder

        public CustomerAcquisitionGoalSettingsOrBuilder getCustomerAcquisitionGoalSettingsOrBuilder()
         Output only. The customer acquisition goal settings for the campaign. The
         customer acquisition goal is described in this article:
         https://support.google.com/google-ads/answer/12080169
         
        .google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings customer_acquisition_goal_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCustomerAcquisitionGoalSettingsOrBuilder in interface CampaignLifecycleGoalOrBuilder
      • setUnknownFields

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

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