Class Experiment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
- com.google.ads.googleads.v10.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,java.lang.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 typegoogle.ads.googleads.v10.resources.Experiment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Experiment.BuilderaddAllGoals(java.lang.Iterable<? extends MetricGoal> values)The goals of this experiment.Experiment.BuilderaddGoals(int index, MetricGoal value)The goals of this experiment.Experiment.BuilderaddGoals(int index, MetricGoal.Builder builderForValue)The goals of this experiment.Experiment.BuilderaddGoals(MetricGoal value)The goals of this experiment.Experiment.BuilderaddGoals(MetricGoal.Builder builderForValue)The goals of this experiment.MetricGoal.BuilderaddGoalsBuilder()The goals of this experiment.MetricGoal.BuilderaddGoalsBuilder(int index)The goals of this experiment.Experiment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Experimentbuild()ExperimentbuildPartial()Experiment.Builderclear()Experiment.BuilderclearDescription()The description of the experiment.Experiment.BuilderclearEndDate()Date when the experiment ends.Experiment.BuilderclearExperimentId()Output only.Experiment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Experiment.BuilderclearGoals()The goals of this experiment.Experiment.BuilderclearLongRunningOperation()Output only.Experiment.BuilderclearName()Required.Experiment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Experiment.BuilderclearPromoteStatus()Output only.Experiment.BuilderclearResourceName()Immutable.Experiment.BuilderclearStartDate()Date when the experiment starts.Experiment.BuilderclearStatus()The Advertiser-desired status of this experiment.Experiment.BuilderclearSuffix()For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.Experiment.BuilderclearType()The product/feature that uses this experiment.Experiment.Builderclone()ExperimentgetDefaultInstanceForType()java.lang.StringgetDescription()The description of the experiment.com.google.protobuf.ByteStringgetDescriptionBytes()The description of the experiment.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetEndDate()Date when the experiment ends.com.google.protobuf.ByteStringgetEndDateBytes()Date when the experiment ends.longgetExperimentId()Output only.MetricGoalgetGoals(int index)The goals of this experiment.MetricGoal.BuildergetGoalsBuilder(int index)The goals of this experiment.java.util.List<MetricGoal.Builder>getGoalsBuilderList()The goals of this experiment.intgetGoalsCount()The goals of this experiment.java.util.List<MetricGoal>getGoalsList()The goals of this experiment.MetricGoalOrBuildergetGoalsOrBuilder(int index)The goals of this experiment.java.util.List<? extends MetricGoalOrBuilder>getGoalsOrBuilderList()The goals of this experiment.java.lang.StringgetLongRunningOperation()Output only.com.google.protobuf.ByteStringgetLongRunningOperationBytes()Output only.java.lang.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.AsyncActionStatusEnum.AsyncActionStatusgetPromoteStatus()Output only.intgetPromoteStatusValue()Output only.java.lang.StringgetResourceName()Immutable.com.google.protobuf.ByteStringgetResourceNameBytes()Immutable.java.lang.StringgetStartDate()Date when the experiment starts.com.google.protobuf.ByteStringgetStartDateBytes()Date when the experiment starts.ExperimentStatusEnum.ExperimentStatusgetStatus()The Advertiser-desired status of this experiment.intgetStatusValue()The Advertiser-desired status of this experiment.java.lang.StringgetSuffix()For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.com.google.protobuf.ByteStringgetSuffixBytes()For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.ExperimentTypeEnum.ExperimentTypegetType()The product/feature that uses this experiment.intgetTypeValue()The product/feature that uses this experiment.booleanhasEndDate()Date when the experiment ends.booleanhasExperimentId()Output only.booleanhasLongRunningOperation()Output only.booleanhasStartDate()Date when the experiment starts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Experiment.BuildermergeFrom(Experiment other)Experiment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Experiment.BuildermergeFrom(com.google.protobuf.Message other)Experiment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Experiment.BuilderremoveGoals(int index)The goals of this experiment.Experiment.BuildersetDescription(java.lang.String value)The description of the experiment.Experiment.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the experiment.Experiment.BuildersetEndDate(java.lang.String value)Date when the experiment ends.Experiment.BuildersetEndDateBytes(com.google.protobuf.ByteString value)Date when the experiment ends.Experiment.BuildersetExperimentId(long value)Output only.Experiment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Experiment.BuildersetGoals(int index, MetricGoal value)The goals of this experiment.Experiment.BuildersetGoals(int index, MetricGoal.Builder builderForValue)The goals of this experiment.Experiment.BuildersetLongRunningOperation(java.lang.String value)Output only.Experiment.BuildersetLongRunningOperationBytes(com.google.protobuf.ByteString value)Output only.Experiment.BuildersetName(java.lang.String value)Required.Experiment.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Experiment.BuildersetPromoteStatus(AsyncActionStatusEnum.AsyncActionStatus value)Output only.Experiment.BuildersetPromoteStatusValue(int value)Output only.Experiment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Experiment.BuildersetResourceName(java.lang.String value)Immutable.Experiment.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Immutable.Experiment.BuildersetStartDate(java.lang.String value)Date when the experiment starts.Experiment.BuildersetStartDateBytes(com.google.protobuf.ByteString value)Date when the experiment starts.Experiment.BuildersetStatus(ExperimentStatusEnum.ExperimentStatus value)The Advertiser-desired status of this experiment.Experiment.BuildersetStatusValue(int value)The Advertiser-desired status of this experiment.Experiment.BuildersetSuffix(java.lang.String value)For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.Experiment.BuildersetSuffixBytes(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.Experiment.BuildersetType(ExperimentTypeEnum.ExperimentType value)The product/feature that uses this experiment.Experiment.BuildersetTypeValue(int value)The product/feature that uses this experiment.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public Experiment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Experiment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Experiment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Experiment.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
clearField
public Experiment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
clearOneof
public Experiment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Experiment.Builder>
-
mergeFrom
public Experiment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Experiment.Builder>
-
mergeFrom
public Experiment.Builder mergeFrom(Experiment other)
-
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 java.io.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:
java.io.IOException
-
getResourceName
public java.lang.String 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
public Experiment.Builder setResourceName(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
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
public Experiment.Builder setExperimentId(long value)
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
public Experiment.Builder 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
public java.lang.String 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
public Experiment.Builder setName(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public Experiment.Builder setDescription(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public Experiment.Builder setSuffix(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder 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. 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()
The product/feature that uses this experiment.
.google.ads.googleads.v10.enums.ExperimentTypeEnum.ExperimentType type = 13;- Specified by:
getTypeValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Experiment.Builder setTypeValue(int value)
The product/feature that uses this experiment.
.google.ads.googleads.v10.enums.ExperimentTypeEnum.ExperimentType type = 13;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public ExperimentTypeEnum.ExperimentType getType()
The product/feature that uses this experiment.
.google.ads.googleads.v10.enums.ExperimentTypeEnum.ExperimentType type = 13;- Specified by:
getTypein interfaceExperimentOrBuilder- Returns:
- The type.
-
setType
public Experiment.Builder setType(ExperimentTypeEnum.ExperimentType value)
The product/feature that uses this experiment.
.google.ads.googleads.v10.enums.ExperimentTypeEnum.ExperimentType type = 13;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Experiment.Builder clearType()
The product/feature that uses this experiment.
.google.ads.googleads.v10.enums.ExperimentTypeEnum.ExperimentType type = 13;- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
The Advertiser-desired status of this experiment.
.google.ads.googleads.v10.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public Experiment.Builder setStatusValue(int value)
The Advertiser-desired status of this experiment.
.google.ads.googleads.v10.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public ExperimentStatusEnum.ExperimentStatus getStatus()
The Advertiser-desired status of this experiment.
.google.ads.googleads.v10.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusin interfaceExperimentOrBuilder- Returns:
- The status.
-
setStatus
public Experiment.Builder setStatus(ExperimentStatusEnum.ExperimentStatus value)
The Advertiser-desired status of this experiment.
.google.ads.googleads.v10.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public Experiment.Builder clearStatus()
The Advertiser-desired status of this experiment.
.google.ads.googleads.v10.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
public java.lang.String 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
public Experiment.Builder setStartDate(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder setStartDateBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public Experiment.Builder setEndDate(java.lang.String value)
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
public Experiment.Builder 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
public Experiment.Builder setEndDateBytes(com.google.protobuf.ByteString value)
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
public java.util.List<MetricGoal> getGoalsList()
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;- Specified by:
getGoalsListin interfaceExperimentOrBuilder
-
getGoalsCount
public int getGoalsCount()
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;- Specified by:
getGoalsCountin interfaceExperimentOrBuilder
-
getGoals
public MetricGoal getGoals(int index)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;- Specified by:
getGoalsin interfaceExperimentOrBuilder
-
setGoals
public Experiment.Builder setGoals(int index, MetricGoal value)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
setGoals
public Experiment.Builder setGoals(int index, MetricGoal.Builder builderForValue)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addGoals
public Experiment.Builder addGoals(MetricGoal value)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addGoals
public Experiment.Builder addGoals(int index, MetricGoal value)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addGoals
public Experiment.Builder addGoals(MetricGoal.Builder builderForValue)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addGoals
public Experiment.Builder addGoals(int index, MetricGoal.Builder builderForValue)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addAllGoals
public Experiment.Builder addAllGoals(java.lang.Iterable<? extends MetricGoal> values)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
clearGoals
public Experiment.Builder clearGoals()
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
removeGoals
public Experiment.Builder removeGoals(int index)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
getGoalsBuilder
public MetricGoal.Builder getGoalsBuilder(int index)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
getGoalsOrBuilder
public MetricGoalOrBuilder getGoalsOrBuilder(int index)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderin interfaceExperimentOrBuilder
-
getGoalsOrBuilderList
public java.util.List<? extends MetricGoalOrBuilder> getGoalsOrBuilderList()
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderListin interfaceExperimentOrBuilder
-
addGoalsBuilder
public MetricGoal.Builder addGoalsBuilder()
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
addGoalsBuilder
public MetricGoal.Builder addGoalsBuilder(int index)
The goals of this experiment.
repeated .google.ads.googleads.v10.common.MetricGoal goals = 17;
-
getGoalsBuilderList
public java.util.List<MetricGoal.Builder> getGoalsBuilderList()
The goals of this experiment.
repeated .google.ads.googleads.v10.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
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 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
public Experiment.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 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
public Experiment.Builder 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
public Experiment.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 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.v10.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
public Experiment.Builder setPromoteStatusValue(int value)
Output only. The status of the experiment promotion process.
.google.ads.googleads.v10.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
public AsyncActionStatusEnum.AsyncActionStatus getPromoteStatus()
Output only. The status of the experiment promotion process.
.google.ads.googleads.v10.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromoteStatusin interfaceExperimentOrBuilder- Returns:
- The promoteStatus.
-
setPromoteStatus
public Experiment.Builder setPromoteStatus(AsyncActionStatusEnum.AsyncActionStatus value)
Output only. The status of the experiment promotion process.
.google.ads.googleads.v10.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The promoteStatus to set.- Returns:
- This builder for chaining.
-
clearPromoteStatus
public Experiment.Builder clearPromoteStatus()
Output only. The status of the experiment promotion process.
.google.ads.googleads.v10.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Experiment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 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>
-
-