Class Experiment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
com.google.ads.googleads.v18.resources.Experiment.Builder
- All Implemented Interfaces:
ExperimentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Experiment
public static final class Experiment.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
implements ExperimentOrBuilder
A Google ads experiment for users to experiment changes on multiple campaigns, compare the performance, and apply the effective changes.Protobuf type
google.ads.googleads.v18.resources.Experiment-
Method Summary
Modifier and TypeMethodDescriptionaddAllGoals(Iterable<? extends MetricGoal> values) The goals of this experiment.addGoals(int index, MetricGoal value) The goals of this experiment.addGoals(int index, MetricGoal.Builder builderForValue) The goals of this experiment.addGoals(MetricGoal value) The goals of this experiment.addGoals(MetricGoal.Builder builderForValue) The goals of this experiment.The goals of this experiment.addGoalsBuilder(int index) The goals of this experiment.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The description of the experiment.Date when the experiment ends.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The goals of this experiment.Output only.Required.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Immutable.Date when the experiment starts.The Advertiser-chosen status of this experiment.For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.Immutable.Required.clone()The description of the experiment.com.google.protobuf.ByteStringThe description of the experiment.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDate when the experiment ends.com.google.protobuf.ByteStringDate when the experiment ends.longOutput only.getGoals(int index) The goals of this experiment.getGoalsBuilder(int index) The goals of this experiment.The goals of this experiment.intThe goals of this experiment.The goals of this experiment.getGoalsOrBuilder(int index) The goals of this experiment.List<? extends MetricGoalOrBuilder>The goals of this experiment.Output only.com.google.protobuf.ByteStringOutput only.getName()Required.com.google.protobuf.ByteStringRequired.Output only.intOutput only.Immutable.com.google.protobuf.ByteStringImmutable.Date when the experiment starts.com.google.protobuf.ByteStringDate when the experiment starts.The Advertiser-chosen status of this experiment.intThe Advertiser-chosen status of this experiment.For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.com.google.protobuf.ByteStringFor system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.booleanImmutable.getType()Required.intRequired.booleanDate when the experiment ends.booleanOutput only.booleanOutput only.booleanDate when the experiment starts.booleanImmutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Experiment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Experiment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeGoals(int index) The goals of this experiment.setDescription(String value) The description of the experiment.setDescriptionBytes(com.google.protobuf.ByteString value) The description of the experiment.setEndDate(String value) Date when the experiment ends.setEndDateBytes(com.google.protobuf.ByteString value) Date when the experiment ends.setExperimentId(long value) Output only.setGoals(int index, MetricGoal value) The goals of this experiment.setGoals(int index, MetricGoal.Builder builderForValue) The goals of this experiment.setLongRunningOperation(String value) Output only.setLongRunningOperationBytes(com.google.protobuf.ByteString value) Output only.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Output only.setPromoteStatusValue(int value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.setStartDate(String value) Date when the experiment starts.setStartDateBytes(com.google.protobuf.ByteString value) Date when the experiment starts.The Advertiser-chosen status of this experiment.setStatusValue(int value) The Advertiser-chosen status of this experiment.For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.setSuffixBytes(com.google.protobuf.ByteString value) For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.setSyncEnabled(boolean value) Immutable.Required.setTypeValue(int value) Required.final Experiment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
setField
public Experiment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
setRepeatedField
public Experiment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
addRepeatedField
public Experiment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Experiment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
mergeFrom
public Experiment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Experiment.Builder>- Throws:
IOException
-
getResourceName
Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{experiment_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceExperimentOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{experiment_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{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
Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{experiment_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{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.
-
hasExperimentId
public boolean hasExperimentId()Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExperimentIdin interfaceExperimentOrBuilder- Returns:
- Whether the experimentId field is set.
-
getExperimentId
public long getExperimentId()Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExperimentIdin interfaceExperimentOrBuilder- Returns:
- The experimentId.
-
setExperimentId
Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The experimentId to set.- Returns:
- This builder for chaining.
-
clearExperimentId
Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getName
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceExperimentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Specified by:
getDescriptionin interfaceExperimentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Specified by:
getDescriptionBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for description.
-
setDescription
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Returns:
- This builder for chaining.
-
setDescriptionBytes
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getSuffix
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Specified by:
getSuffixin interfaceExperimentOrBuilder- Returns:
- The suffix.
-
getSuffixBytes
public com.google.protobuf.ByteString getSuffixBytes()For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Specified by:
getSuffixBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for suffix.
-
setSuffix
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Parameters:
value- The suffix to set.- Returns:
- This builder for chaining.
-
clearSuffix
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Returns:
- This builder for chaining.
-
setSuffixBytes
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Parameters:
value- The bytes for suffix to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceExperimentOrBuilder- Returns:
- The type.
-
setType
Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusin interfaceExperimentOrBuilder- Returns:
- The status.
-
setStatus
The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Returns:
- This builder for chaining.
-
hasStartDate
public boolean hasStartDate()Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
hasStartDatein interfaceExperimentOrBuilder- Returns:
- Whether the startDate field is set.
-
getStartDate
Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
getStartDatein interfaceExperimentOrBuilder- Returns:
- The startDate.
-
getStartDateBytes
public com.google.protobuf.ByteString getStartDateBytes()Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
getStartDateBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for startDate.
-
setStartDate
Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Parameters:
value- The startDate to set.- Returns:
- This builder for chaining.
-
clearStartDate
Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Returns:
- This builder for chaining.
-
setStartDateBytes
Date when the 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. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Parameters:
value- The bytes for startDate to set.- Returns:
- This builder for chaining.
-
hasEndDate
public boolean hasEndDate()Date when the experiment ends. 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 = 16;- Specified by:
hasEndDatein interfaceExperimentOrBuilder- Returns:
- Whether the endDate field is set.
-
getEndDate
Date when the experiment ends. 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 = 16;- Specified by:
getEndDatein interfaceExperimentOrBuilder- Returns:
- The endDate.
-
getEndDateBytes
public com.google.protobuf.ByteString getEndDateBytes()Date when the experiment ends. 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 = 16;- Specified by:
getEndDateBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for endDate.
-
setEndDate
Date when the experiment ends. 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 = 16;- Parameters:
value- The endDate to set.- Returns:
- This builder for chaining.
-
clearEndDate
Date when the experiment ends. 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 = 16;- Returns:
- This builder for chaining.
-
setEndDateBytes
Date when the experiment ends. 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 = 16;- Parameters:
value- The bytes for endDate to set.- Returns:
- This builder for chaining.
-
getGoalsList
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsListin interfaceExperimentOrBuilder
-
getGoalsCount
public int getGoalsCount()The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsCountin interfaceExperimentOrBuilder
-
getGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsin interfaceExperimentOrBuilder
-
setGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
setGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addAllGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
clearGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
removeGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
getGoalsBuilder
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
getGoalsOrBuilder
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderin interfaceExperimentOrBuilder
-
getGoalsOrBuilderList
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderListin interfaceExperimentOrBuilder
-
addGoalsBuilder
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
addGoalsBuilder
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
getGoalsBuilderList
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17; -
hasLongRunningOperation
public boolean hasLongRunningOperation()Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLongRunningOperationin interfaceExperimentOrBuilder- Returns:
- Whether the longRunningOperation field is set.
-
getLongRunningOperation
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLongRunningOperationin interfaceExperimentOrBuilder- 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 schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLongRunningOperationBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for longRunningOperation.
-
setLongRunningOperation
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The longRunningOperation to set.- Returns:
- This builder for chaining.
-
clearLongRunningOperation
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLongRunningOperationBytes
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for longRunningOperation to set.- Returns:
- This builder for chaining.
-
getPromoteStatusValue
public int getPromoteStatusValue()Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromoteStatusValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for promoteStatus.
-
setPromoteStatusValue
Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for promoteStatus to set.- Returns:
- This builder for chaining.
-
getPromoteStatus
Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromoteStatusin interfaceExperimentOrBuilder- Returns:
- The promoteStatus.
-
setPromoteStatus
Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The promoteStatus to set.- Returns:
- This builder for chaining.
-
clearPromoteStatus
Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasSyncEnabled
public boolean hasSyncEnabled()Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasSyncEnabledin interfaceExperimentOrBuilder- Returns:
- Whether the syncEnabled field is set.
-
getSyncEnabled
public boolean getSyncEnabled()Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSyncEnabledin interfaceExperimentOrBuilder- Returns:
- The syncEnabled.
-
setSyncEnabled
Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The syncEnabled to set.- Returns:
- This builder for chaining.
-
clearSyncEnabled
Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
mergeUnknownFields
public final Experiment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-