Class CampaignExperiment.Builder

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

    public static final class CampaignExperiment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
    implements CampaignExperimentOrBuilder
     An A/B experiment that compares the performance of the base campaign
     (the control) and a variation of that campaign (the experiment).
     
    Protobuf type google.ads.googleads.v9.resources.CampaignExperiment
    • 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<CampaignExperiment.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getResourceName()
         Immutable. The resource name of the campaign experiment.
         Campaign experiment resource names have the form:
         `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface CampaignExperimentOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the campaign experiment.
         Campaign experiment resource names have the form:
         `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public CampaignExperiment.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the campaign experiment.
         Campaign experiment resource names have the form:
         `customers/{customer_id}/campaignExperiments/{campaign_experiment_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 CampaignExperiment.Builder clearResourceName()
         Immutable. The resource name of the campaign experiment.
         Campaign experiment resource names have the form:
         `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public CampaignExperiment.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the campaign experiment.
         Campaign experiment resource names have the form:
         `customers/{customer_id}/campaignExperiments/{campaign_experiment_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 campaign experiment.
         This field is read-only.
         
        optional int64 id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface CampaignExperimentOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         Output only. The ID of the campaign experiment.
         This field is read-only.
         
        optional int64 id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface CampaignExperimentOrBuilder
        Returns:
        The id.
      • setId

        public CampaignExperiment.Builder setId​(long value)
         Output only. The ID of the campaign experiment.
         This field is read-only.
         
        optional int64 id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public CampaignExperiment.Builder clearId()
         Output only. The ID of the campaign experiment.
         This field is read-only.
         
        optional int64 id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCampaignDraft

        public boolean hasCampaignDraft()
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasCampaignDraft in interface CampaignExperimentOrBuilder
        Returns:
        Whether the campaignDraft field is set.
      • getCampaignDraft

        public java.lang.String getCampaignDraft()
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignDraft in interface CampaignExperimentOrBuilder
        Returns:
        The campaignDraft.
      • getCampaignDraftBytes

        public com.google.protobuf.ByteString getCampaignDraftBytes()
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignDraftBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for campaignDraft.
      • setCampaignDraft

        public CampaignExperiment.Builder setCampaignDraft​(java.lang.String value)
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The campaignDraft to set.
        Returns:
        This builder for chaining.
      • clearCampaignDraft

        public CampaignExperiment.Builder clearCampaignDraft()
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCampaignDraftBytes

        public CampaignExperiment.Builder setCampaignDraftBytes​(com.google.protobuf.ByteString value)
         Immutable. The campaign draft with staged changes to the base campaign.
         
        optional string campaign_draft = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for campaignDraft to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Specified by:
        hasName in interface CampaignExperimentOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Specified by:
        getName in interface CampaignExperimentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Specified by:
        getNameBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CampaignExperiment.Builder setName​(java.lang.String value)
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CampaignExperiment.Builder clearName()
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Returns:
        This builder for chaining.
      • setNameBytes

        public CampaignExperiment.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the campaign experiment.
         This field is required when creating new campaign experiments
         and must not conflict with the name of another non-removed
         campaign experiment or campaign.
         It must not contain any null (code point 0x0), NL line feed
         (code point 0xA) or carriage return (code point 0xD) characters.
         
        optional string name = 15;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         The description of the experiment.
         
        optional string description = 16;
        Specified by:
        hasDescription in interface CampaignExperimentOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         The description of the experiment.
         
        optional string description = 16;
        Specified by:
        getDescription in interface CampaignExperimentOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the experiment.
         
        optional string description = 16;
        Specified by:
        getDescriptionBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public CampaignExperiment.Builder setDescription​(java.lang.String value)
         The description of the experiment.
         
        optional string description = 16;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public CampaignExperiment.Builder clearDescription()
         The description of the experiment.
         
        optional string description = 16;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public CampaignExperiment.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the experiment.
         
        optional string description = 16;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasTrafficSplitPercent

        public boolean hasTrafficSplitPercent()
         Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
         99 inclusive. Base campaign receives the remainder of the traffic
         (100 - traffic_split_percent). Required for create.
         
        optional int64 traffic_split_percent = 17 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasTrafficSplitPercent in interface CampaignExperimentOrBuilder
        Returns:
        Whether the trafficSplitPercent field is set.
      • getTrafficSplitPercent

        public long getTrafficSplitPercent()
         Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
         99 inclusive. Base campaign receives the remainder of the traffic
         (100 - traffic_split_percent). Required for create.
         
        optional int64 traffic_split_percent = 17 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getTrafficSplitPercent in interface CampaignExperimentOrBuilder
        Returns:
        The trafficSplitPercent.
      • setTrafficSplitPercent

        public CampaignExperiment.Builder setTrafficSplitPercent​(long value)
         Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
         99 inclusive. Base campaign receives the remainder of the traffic
         (100 - traffic_split_percent). Required for create.
         
        optional int64 traffic_split_percent = 17 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The trafficSplitPercent to set.
        Returns:
        This builder for chaining.
      • clearTrafficSplitPercent

        public CampaignExperiment.Builder clearTrafficSplitPercent()
         Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
         99 inclusive. Base campaign receives the remainder of the traffic
         (100 - traffic_split_percent). Required for create.
         
        optional int64 traffic_split_percent = 17 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getTrafficSplitTypeValue

        public int getTrafficSplitTypeValue()
         Immutable. Determines the behavior of the traffic split.
         
        .google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getTrafficSplitTypeValue in interface CampaignExperimentOrBuilder
        Returns:
        The enum numeric value on the wire for trafficSplitType.
      • setTrafficSplitTypeValue

        public CampaignExperiment.Builder setTrafficSplitTypeValue​(int value)
         Immutable. Determines the behavior of the traffic split.
         
        .google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for trafficSplitType to set.
        Returns:
        This builder for chaining.
      • clearTrafficSplitType

        public CampaignExperiment.Builder clearTrafficSplitType()
         Immutable. Determines the behavior of the traffic split.
         
        .google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • hasExperimentCampaign

        public boolean hasExperimentCampaign()
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        hasExperimentCampaign in interface CampaignExperimentOrBuilder
        Returns:
        Whether the experimentCampaign field is set.
      • getExperimentCampaign

        public java.lang.String getExperimentCampaign()
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getExperimentCampaign in interface CampaignExperimentOrBuilder
        Returns:
        The experimentCampaign.
      • getExperimentCampaignBytes

        public com.google.protobuf.ByteString getExperimentCampaignBytes()
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getExperimentCampaignBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for experimentCampaign.
      • setExperimentCampaign

        public CampaignExperiment.Builder setExperimentCampaign​(java.lang.String value)
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The experimentCampaign to set.
        Returns:
        This builder for chaining.
      • clearExperimentCampaign

        public CampaignExperiment.Builder clearExperimentCampaign()
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setExperimentCampaignBytes

        public CampaignExperiment.Builder setExperimentCampaignBytes​(com.google.protobuf.ByteString value)
         Output only. The experiment campaign, as opposed to the base campaign.
         
        optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for experimentCampaign to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         Output only. The status of the campaign experiment. This field is read-only.
         
        .google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface CampaignExperimentOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public CampaignExperiment.Builder setStatusValue​(int value)
         Output only. The status of the campaign experiment. This field is read-only.
         
        .google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • setStatus

        public CampaignExperiment.Builder setStatus​(CampaignExperimentStatusEnum.CampaignExperimentStatus value)
         Output only. The status of the campaign experiment. This field is read-only.
         
        .google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public CampaignExperiment.Builder clearStatus()
         Output only. The status of the campaign experiment. This field is read-only.
         
        .google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasLongRunningOperation

        public boolean hasLongRunningOperation()
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasLongRunningOperation in interface CampaignExperimentOrBuilder
        Returns:
        Whether the longRunningOperation field is set.
      • getLongRunningOperation

        public java.lang.String getLongRunningOperation()
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLongRunningOperation in interface CampaignExperimentOrBuilder
        Returns:
        The longRunningOperation.
      • getLongRunningOperationBytes

        public com.google.protobuf.ByteString getLongRunningOperationBytes()
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLongRunningOperationBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for longRunningOperation.
      • setLongRunningOperation

        public CampaignExperiment.Builder setLongRunningOperation​(java.lang.String value)
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The longRunningOperation to set.
        Returns:
        This builder for chaining.
      • clearLongRunningOperation

        public CampaignExperiment.Builder clearLongRunningOperation()
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setLongRunningOperationBytes

        public CampaignExperiment.Builder setLongRunningOperationBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the long-running operation that can be used to poll
         for completion of experiment create or promote. The most recent long
         running operation is returned.
         
        optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for longRunningOperation to set.
        Returns:
        This builder for chaining.
      • hasStartDate

        public boolean hasStartDate()
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Specified by:
        hasStartDate in interface CampaignExperimentOrBuilder
        Returns:
        Whether the startDate field is set.
      • getStartDate

        public java.lang.String getStartDate()
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Specified by:
        getStartDate in interface CampaignExperimentOrBuilder
        Returns:
        The startDate.
      • getStartDateBytes

        public com.google.protobuf.ByteString getStartDateBytes()
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Specified by:
        getStartDateBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for startDate.
      • setStartDate

        public CampaignExperiment.Builder setStartDate​(java.lang.String value)
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Parameters:
        value - The startDate to set.
        Returns:
        This builder for chaining.
      • clearStartDate

        public CampaignExperiment.Builder clearStartDate()
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Returns:
        This builder for chaining.
      • setStartDateBytes

        public CampaignExperiment.Builder setStartDateBytes​(com.google.protobuf.ByteString value)
         Date when the campaign experiment starts. By default, the experiment starts
         now or on the campaign's start date, whichever is later. If this field is
         set, then the experiment starts at the beginning of the specified date in
         the customer's time zone. Cannot be changed once the experiment starts.
         Format: YYYY-MM-DD
         Example: 2019-03-14
         
        optional string start_date = 20;
        Parameters:
        value - The bytes for startDate to set.
        Returns:
        This builder for chaining.
      • hasEndDate

        public boolean hasEndDate()
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Specified by:
        hasEndDate in interface CampaignExperimentOrBuilder
        Returns:
        Whether the endDate field is set.
      • getEndDate

        public java.lang.String getEndDate()
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Specified by:
        getEndDate in interface CampaignExperimentOrBuilder
        Returns:
        The endDate.
      • getEndDateBytes

        public com.google.protobuf.ByteString getEndDateBytes()
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Specified by:
        getEndDateBytes in interface CampaignExperimentOrBuilder
        Returns:
        The bytes for endDate.
      • setEndDate

        public CampaignExperiment.Builder setEndDate​(java.lang.String value)
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Parameters:
        value - The endDate to set.
        Returns:
        This builder for chaining.
      • clearEndDate

        public CampaignExperiment.Builder clearEndDate()
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Returns:
        This builder for chaining.
      • setEndDateBytes

        public CampaignExperiment.Builder setEndDateBytes​(com.google.protobuf.ByteString value)
         The last day of the campaign experiment. By default, the experiment ends on
         the campaign's end date. If this field is set, then the experiment ends at
         the end of the specified date in the customer's time zone.
         Format: YYYY-MM-DD
         Example: 2019-04-18
         
        optional string end_date = 21;
        Parameters:
        value - The bytes for endDate to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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