Class LiftMeasurementConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.Builder>
com.google.ads.googleads.v25.resources.LiftMeasurementConfig.Builder
All Implemented Interfaces:
LiftMeasurementConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LiftMeasurementConfig

public static final class LiftMeasurementConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.Builder> implements LiftMeasurementConfigOrBuilder
 A Lift Measurement Configuration (LMC), which is a lift study. This groups
 all associated Brand Lift, Conversion Lift, and Search Lift measurements.
 
Protobuf type google.ads.googleads.v25.resources.LiftMeasurementConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.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.GeneratedMessage.Builder<LiftMeasurementConfig.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.GeneratedMessage.Builder<LiftMeasurementConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public LiftMeasurementConfig.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<LiftMeasurementConfig.Builder>
    • mergeFrom

    • isInitialized

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

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

      public String getResourceName()
       Immutable. The resource name of the lift measurement config. Lift
       measurement config resource names have the form:
      
       `customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_config_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface LiftMeasurementConfigOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the lift measurement config. Lift
       measurement config resource names have the form:
      
       `customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_config_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface LiftMeasurementConfigOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public LiftMeasurementConfig.Builder setResourceName(String value)
       Immutable. The resource name of the lift measurement config. Lift
       measurement config resource names have the form:
      
       `customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_config_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 LiftMeasurementConfig.Builder clearResourceName()
       Immutable. The resource name of the lift measurement config. Lift
       measurement config resource names have the form:
      
       `customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_config_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public LiftMeasurementConfig.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the lift measurement config. Lift
       measurement config resource names have the form:
      
       `customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_config_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.
    • getLiftMeasurementConfigId

      public long getLiftMeasurementConfigId()
       Output only. The unique identifier for the Lift Measurement Configuration
       (LMC).
       
      int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLiftMeasurementConfigId in interface LiftMeasurementConfigOrBuilder
      Returns:
      The liftMeasurementConfigId.
    • setLiftMeasurementConfigId

      public LiftMeasurementConfig.Builder setLiftMeasurementConfigId(long value)
       Output only. The unique identifier for the Lift Measurement Configuration
       (LMC).
       
      int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The liftMeasurementConfigId to set.
      Returns:
      This builder for chaining.
    • clearLiftMeasurementConfigId

      public LiftMeasurementConfig.Builder clearLiftMeasurementConfigId()
       Output only. The unique identifier for the Lift Measurement Configuration
       (LMC).
       
      int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Output only. The name of the lift study.
       
      string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface LiftMeasurementConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the lift study.
       
      string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface LiftMeasurementConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LiftMeasurementConfig.Builder setName(String value)
       Output only. The name of the lift study.
       
      string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LiftMeasurementConfig.Builder clearName()
       Output only. The name of the lift study.
       
      string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public LiftMeasurementConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the lift study.
       
      string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getConversionActionsList

      public com.google.protobuf.ProtocolStringList getConversionActionsList()
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversionActionsList in interface LiftMeasurementConfigOrBuilder
      Returns:
      A list containing the conversionActions.
    • getConversionActionsCount

      public int getConversionActionsCount()
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversionActionsCount in interface LiftMeasurementConfigOrBuilder
      Returns:
      The count of conversionActions.
    • getConversionActions

      public String getConversionActions(int index)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversionActions in interface LiftMeasurementConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The conversionActions at the given index.
    • getConversionActionsBytes

      public com.google.protobuf.ByteString getConversionActionsBytes(int index)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversionActionsBytes in interface LiftMeasurementConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the conversionActions at the given index.
    • setConversionActions

      public LiftMeasurementConfig.Builder setConversionActions(int index, String value)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The conversionActions to set.
      Returns:
      This builder for chaining.
    • addConversionActions

      public LiftMeasurementConfig.Builder addConversionActions(String value)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversionActions to add.
      Returns:
      This builder for chaining.
    • addAllConversionActions

      public LiftMeasurementConfig.Builder addAllConversionActions(Iterable<String> values)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The conversionActions to add.
      Returns:
      This builder for chaining.
    • clearConversionActions

      public LiftMeasurementConfig.Builder clearConversionActions()
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addConversionActionsBytes

      public LiftMeasurementConfig.Builder addConversionActionsBytes(com.google.protobuf.ByteString value)
       Output only. The list of conversion action resource names associated with
       this lift measurement configuration.
       
      repeated string conversion_actions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the conversionActions to add.
      Returns:
      This builder for chaining.
    • getCampaignsList

      public com.google.protobuf.ProtocolStringList getCampaignsList()
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsList in interface LiftMeasurementConfigOrBuilder
      Returns:
      A list containing the campaigns.
    • getCampaignsCount

      public int getCampaignsCount()
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsCount in interface LiftMeasurementConfigOrBuilder
      Returns:
      The count of campaigns.
    • getCampaigns

      public String getCampaigns(int index)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaigns in interface LiftMeasurementConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The campaigns at the given index.
    • getCampaignsBytes

      public com.google.protobuf.ByteString getCampaignsBytes(int index)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsBytes in interface LiftMeasurementConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the campaigns at the given index.
    • setCampaigns

      public LiftMeasurementConfig.Builder setCampaigns(int index, String value)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The campaigns to set.
      Returns:
      This builder for chaining.
    • addCampaigns

      public LiftMeasurementConfig.Builder addCampaigns(String value)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The campaigns to add.
      Returns:
      This builder for chaining.
    • addAllCampaigns

      public LiftMeasurementConfig.Builder addAllCampaigns(Iterable<String> values)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The campaigns to add.
      Returns:
      This builder for chaining.
    • clearCampaigns

      public LiftMeasurementConfig.Builder clearCampaigns()
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addCampaignsBytes

      public LiftMeasurementConfig.Builder addCampaignsBytes(com.google.protobuf.ByteString value)
       Output only. The resource names of campaigns associated with this lift
       measurement config. These are the ones currently linked, not historical.
       
      repeated string campaigns = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the campaigns to add.
      Returns:
      This builder for chaining.
    • getSurveyLanguage

      public String getSurveyLanguage()
       Output only. The survey language.
       
      string survey_language = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSurveyLanguage in interface LiftMeasurementConfigOrBuilder
      Returns:
      The surveyLanguage.
    • getSurveyLanguageBytes

      public com.google.protobuf.ByteString getSurveyLanguageBytes()
       Output only. The survey language.
       
      string survey_language = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSurveyLanguageBytes in interface LiftMeasurementConfigOrBuilder
      Returns:
      The bytes for surveyLanguage.
    • setSurveyLanguage

      public LiftMeasurementConfig.Builder setSurveyLanguage(String value)
       Output only. The survey language.
       
      string survey_language = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The surveyLanguage to set.
      Returns:
      This builder for chaining.
    • clearSurveyLanguage

      public LiftMeasurementConfig.Builder clearSurveyLanguage()
       Output only. The survey language.
       
      string survey_language = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSurveyLanguageBytes

      public LiftMeasurementConfig.Builder setSurveyLanguageBytes(com.google.protobuf.ByteString value)
       Output only. The survey language.
       
      string survey_language = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for surveyLanguage to set.
      Returns:
      This builder for chaining.
    • hasSingleMeasurementQuestionSet

      public boolean hasSingleMeasurementQuestionSet()
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSingleMeasurementQuestionSet in interface LiftMeasurementConfigOrBuilder
      Returns:
      Whether the singleMeasurementQuestionSet field is set.
    • getSingleMeasurementQuestionSet

      public LiftMeasurementConfig.SingleMeasurementQuestionSet getSingleMeasurementQuestionSet()
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSingleMeasurementQuestionSet in interface LiftMeasurementConfigOrBuilder
      Returns:
      The singleMeasurementQuestionSet.
    • setSingleMeasurementQuestionSet

       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSingleMeasurementQuestionSet

      public LiftMeasurementConfig.Builder setSingleMeasurementQuestionSet(LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder builderForValue)
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSingleMeasurementQuestionSet

       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSingleMeasurementQuestionSet

      public LiftMeasurementConfig.Builder clearSingleMeasurementQuestionSet()
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSingleMeasurementQuestionSetBuilder

      public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder getSingleMeasurementQuestionSetBuilder()
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSingleMeasurementQuestionSetOrBuilder

      public LiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder getSingleMeasurementQuestionSetOrBuilder()
       Output only. The single measurement question set.
       
      .google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet single_measurement_question_set = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSingleMeasurementQuestionSetOrBuilder in interface LiftMeasurementConfigOrBuilder
    • hasConversionLiftHoldbackRatioMicros

      public boolean hasConversionLiftHoldbackRatioMicros()
       Output only. The holdback ratio for Conversion Lift.
       
      optional int64 conversion_lift_holdback_ratio_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasConversionLiftHoldbackRatioMicros in interface LiftMeasurementConfigOrBuilder
      Returns:
      Whether the conversionLiftHoldbackRatioMicros field is set.
    • getConversionLiftHoldbackRatioMicros

      public long getConversionLiftHoldbackRatioMicros()
       Output only. The holdback ratio for Conversion Lift.
       
      optional int64 conversion_lift_holdback_ratio_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConversionLiftHoldbackRatioMicros in interface LiftMeasurementConfigOrBuilder
      Returns:
      The conversionLiftHoldbackRatioMicros.
    • setConversionLiftHoldbackRatioMicros

      public LiftMeasurementConfig.Builder setConversionLiftHoldbackRatioMicros(long value)
       Output only. The holdback ratio for Conversion Lift.
       
      optional int64 conversion_lift_holdback_ratio_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The conversionLiftHoldbackRatioMicros to set.
      Returns:
      This builder for chaining.
    • clearConversionLiftHoldbackRatioMicros

      public LiftMeasurementConfig.Builder clearConversionLiftHoldbackRatioMicros()
       Output only. The holdback ratio for Conversion Lift.
       
      optional int64 conversion_lift_holdback_ratio_micros = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.