Class CampaignExperiment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
- com.google.ads.googleads.v10.resources.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 typegoogle.ads.googleads.v10.resources.CampaignExperiment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignExperiment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CampaignExperimentbuild()CampaignExperimentbuildPartial()CampaignExperiment.Builderclear()CampaignExperiment.BuilderclearCampaignDraft()Immutable.CampaignExperiment.BuilderclearDescription()The description of the experiment.CampaignExperiment.BuilderclearEndDate()The last day of the campaign experiment.CampaignExperiment.BuilderclearExperimentCampaign()Output only.CampaignExperiment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CampaignExperiment.BuilderclearId()Output only.CampaignExperiment.BuilderclearLongRunningOperation()Output only.CampaignExperiment.BuilderclearName()The name of the campaign experiment.CampaignExperiment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CampaignExperiment.BuilderclearResourceName()Immutable.CampaignExperiment.BuilderclearStartDate()Date when the campaign experiment starts.CampaignExperiment.BuilderclearStatus()Output only.CampaignExperiment.BuilderclearTrafficSplitPercent()Immutable.CampaignExperiment.BuilderclearTrafficSplitType()Immutable.CampaignExperiment.Builderclone()java.lang.StringgetCampaignDraft()Immutable.com.google.protobuf.ByteStringgetCampaignDraftBytes()Immutable.CampaignExperimentgetDefaultInstanceForType()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()The last day of the campaign experiment.com.google.protobuf.ByteStringgetEndDateBytes()The last day of the campaign experiment.java.lang.StringgetExperimentCampaign()Output only.com.google.protobuf.ByteStringgetExperimentCampaignBytes()Output only.longgetId()Output only.java.lang.StringgetLongRunningOperation()Output only.com.google.protobuf.ByteStringgetLongRunningOperationBytes()Output only.java.lang.StringgetName()The name of the campaign experiment.com.google.protobuf.ByteStringgetNameBytes()The name of the campaign experiment.java.lang.StringgetResourceName()Immutable.com.google.protobuf.ByteStringgetResourceNameBytes()Immutable.java.lang.StringgetStartDate()Date when the campaign experiment starts.com.google.protobuf.ByteStringgetStartDateBytes()Date when the campaign experiment starts.CampaignExperimentStatusEnum.CampaignExperimentStatusgetStatus()Output only.intgetStatusValue()Output only.longgetTrafficSplitPercent()Immutable.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitTypegetTrafficSplitType()Immutable.intgetTrafficSplitTypeValue()Immutable.booleanhasCampaignDraft()Immutable.booleanhasDescription()The description of the experiment.booleanhasEndDate()The last day of the campaign experiment.booleanhasExperimentCampaign()Output only.booleanhasId()Output only.booleanhasLongRunningOperation()Output only.booleanhasName()The name of the campaign experiment.booleanhasStartDate()Date when the campaign experiment starts.booleanhasTrafficSplitPercent()Immutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CampaignExperiment.BuildermergeFrom(CampaignExperiment other)CampaignExperiment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CampaignExperiment.BuildermergeFrom(com.google.protobuf.Message other)CampaignExperiment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CampaignExperiment.BuildersetCampaignDraft(java.lang.String value)Immutable.CampaignExperiment.BuildersetCampaignDraftBytes(com.google.protobuf.ByteString value)Immutable.CampaignExperiment.BuildersetDescription(java.lang.String value)The description of the experiment.CampaignExperiment.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the experiment.CampaignExperiment.BuildersetEndDate(java.lang.String value)The last day of the campaign experiment.CampaignExperiment.BuildersetEndDateBytes(com.google.protobuf.ByteString value)The last day of the campaign experiment.CampaignExperiment.BuildersetExperimentCampaign(java.lang.String value)Output only.CampaignExperiment.BuildersetExperimentCampaignBytes(com.google.protobuf.ByteString value)Output only.CampaignExperiment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CampaignExperiment.BuildersetId(long value)Output only.CampaignExperiment.BuildersetLongRunningOperation(java.lang.String value)Output only.CampaignExperiment.BuildersetLongRunningOperationBytes(com.google.protobuf.ByteString value)Output only.CampaignExperiment.BuildersetName(java.lang.String value)The name of the campaign experiment.CampaignExperiment.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the campaign experiment.CampaignExperiment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CampaignExperiment.BuildersetResourceName(java.lang.String value)Immutable.CampaignExperiment.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Immutable.CampaignExperiment.BuildersetStartDate(java.lang.String value)Date when the campaign experiment starts.CampaignExperiment.BuildersetStartDateBytes(com.google.protobuf.ByteString value)Date when the campaign experiment starts.CampaignExperiment.BuildersetStatus(CampaignExperimentStatusEnum.CampaignExperimentStatus value)Output only.CampaignExperiment.BuildersetStatusValue(int value)Output only.CampaignExperiment.BuildersetTrafficSplitPercent(long value)Immutable.CampaignExperiment.BuildersetTrafficSplitType(CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType value)Immutable.CampaignExperiment.BuildersetTrafficSplitTypeValue(int value)Immutable.CampaignExperiment.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<CampaignExperiment.Builder>
-
clear
public CampaignExperiment.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<CampaignExperiment.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<CampaignExperiment.Builder>
-
getDefaultInstanceForType
public CampaignExperiment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CampaignExperiment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CampaignExperiment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CampaignExperiment.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<CampaignExperiment.Builder>
-
setField
public CampaignExperiment.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<CampaignExperiment.Builder>
-
clearField
public CampaignExperiment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
clearOneof
public CampaignExperiment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
addRepeatedField
public CampaignExperiment.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<CampaignExperiment.Builder>
-
mergeFrom
public CampaignExperiment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignExperiment.Builder>
-
mergeFrom
public CampaignExperiment.Builder mergeFrom(CampaignExperiment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getResourceNamein interfaceCampaignExperimentOrBuilder- 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:
getResourceNameBytesin interfaceCampaignExperimentOrBuilder- 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:
hasIdin interfaceCampaignExperimentOrBuilder- 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:
getIdin interfaceCampaignExperimentOrBuilder- 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:
hasCampaignDraftin interfaceCampaignExperimentOrBuilder- 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:
getCampaignDraftin interfaceCampaignExperimentOrBuilder- 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:
getCampaignDraftBytesin interfaceCampaignExperimentOrBuilder- 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:
hasNamein interfaceCampaignExperimentOrBuilder- 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:
getNamein interfaceCampaignExperimentOrBuilder- 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:
getNameBytesin interfaceCampaignExperimentOrBuilder- 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:
hasDescriptionin interfaceCampaignExperimentOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public java.lang.String getDescription()
The description of the experiment.
optional string description = 16;- Specified by:
getDescriptionin interfaceCampaignExperimentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The description of the experiment.
optional string description = 16;- Specified by:
getDescriptionBytesin interfaceCampaignExperimentOrBuilder- 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:
hasTrafficSplitPercentin interfaceCampaignExperimentOrBuilder- 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:
getTrafficSplitPercentin interfaceCampaignExperimentOrBuilder- 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.v10.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTrafficSplitTypeValuein interfaceCampaignExperimentOrBuilder- 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.v10.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.
-
getTrafficSplitType
public CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType getTrafficSplitType()
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v10.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTrafficSplitTypein interfaceCampaignExperimentOrBuilder- Returns:
- The trafficSplitType.
-
setTrafficSplitType
public CampaignExperiment.Builder setTrafficSplitType(CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType value)
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v10.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The trafficSplitType to set.- Returns:
- This builder for chaining.
-
clearTrafficSplitType
public CampaignExperiment.Builder clearTrafficSplitType()
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v10.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:
hasExperimentCampaignin interfaceCampaignExperimentOrBuilder- 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:
getExperimentCampaignin interfaceCampaignExperimentOrBuilder- 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:
getExperimentCampaignBytesin interfaceCampaignExperimentOrBuilder- 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.v10.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCampaignExperimentOrBuilder- 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.v10.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.
-
getStatus
public CampaignExperimentStatusEnum.CampaignExperimentStatus getStatus()
Output only. The status of the campaign experiment. This field is read-only.
.google.ads.googleads.v10.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCampaignExperimentOrBuilder- Returns:
- The status.
-
setStatus
public CampaignExperiment.Builder setStatus(CampaignExperimentStatusEnum.CampaignExperimentStatus value)
Output only. The status of the campaign experiment. This field is read-only.
.google.ads.googleads.v10.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.v10.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:
hasLongRunningOperationin interfaceCampaignExperimentOrBuilder- 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:
getLongRunningOperationin interfaceCampaignExperimentOrBuilder- 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:
getLongRunningOperationBytesin interfaceCampaignExperimentOrBuilder- 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:
hasStartDatein interfaceCampaignExperimentOrBuilder- 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:
getStartDatein interfaceCampaignExperimentOrBuilder- 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:
getStartDateBytesin interfaceCampaignExperimentOrBuilder- 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:
hasEndDatein interfaceCampaignExperimentOrBuilder- 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:
getEndDatein interfaceCampaignExperimentOrBuilder- 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:
getEndDateBytesin interfaceCampaignExperimentOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
mergeUnknownFields
public final CampaignExperiment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
-