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.v9.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.v9.resources.CampaignExperiment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignExperiment.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignExperiment
build()
CampaignExperiment
buildPartial()
CampaignExperiment.Builder
clear()
CampaignExperiment.Builder
clearCampaignDraft()
Immutable.CampaignExperiment.Builder
clearDescription()
The description of the experiment.CampaignExperiment.Builder
clearEndDate()
The last day of the campaign experiment.CampaignExperiment.Builder
clearExperimentCampaign()
Output only.CampaignExperiment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CampaignExperiment.Builder
clearId()
Output only.CampaignExperiment.Builder
clearLongRunningOperation()
Output only.CampaignExperiment.Builder
clearName()
The name of the campaign experiment.CampaignExperiment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CampaignExperiment.Builder
clearResourceName()
Immutable.CampaignExperiment.Builder
clearStartDate()
Date when the campaign experiment starts.CampaignExperiment.Builder
clearStatus()
Output only.CampaignExperiment.Builder
clearTrafficSplitPercent()
Immutable.CampaignExperiment.Builder
clearTrafficSplitType()
Immutable.CampaignExperiment.Builder
clone()
java.lang.String
getCampaignDraft()
Immutable.com.google.protobuf.ByteString
getCampaignDraftBytes()
Immutable.CampaignExperiment
getDefaultInstanceForType()
java.lang.String
getDescription()
The description of the experiment.com.google.protobuf.ByteString
getDescriptionBytes()
The description of the experiment.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getEndDate()
The last day of the campaign experiment.com.google.protobuf.ByteString
getEndDateBytes()
The last day of the campaign experiment.java.lang.String
getExperimentCampaign()
Output only.com.google.protobuf.ByteString
getExperimentCampaignBytes()
Output only.long
getId()
Output only.java.lang.String
getLongRunningOperation()
Output only.com.google.protobuf.ByteString
getLongRunningOperationBytes()
Output only.java.lang.String
getName()
The name of the campaign experiment.com.google.protobuf.ByteString
getNameBytes()
The name of the campaign experiment.java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.java.lang.String
getStartDate()
Date when the campaign experiment starts.com.google.protobuf.ByteString
getStartDateBytes()
Date when the campaign experiment starts.CampaignExperimentStatusEnum.CampaignExperimentStatus
getStatus()
Output only.int
getStatusValue()
Output only.long
getTrafficSplitPercent()
Immutable.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType
getTrafficSplitType()
Immutable.int
getTrafficSplitTypeValue()
Immutable.boolean
hasCampaignDraft()
Immutable.boolean
hasDescription()
The description of the experiment.boolean
hasEndDate()
The last day of the campaign experiment.boolean
hasExperimentCampaign()
Output only.boolean
hasId()
Output only.boolean
hasLongRunningOperation()
Output only.boolean
hasName()
The name of the campaign experiment.boolean
hasStartDate()
Date when the campaign experiment starts.boolean
hasTrafficSplitPercent()
Immutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CampaignExperiment.Builder
mergeFrom(CampaignExperiment other)
CampaignExperiment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CampaignExperiment.Builder
mergeFrom(com.google.protobuf.Message other)
CampaignExperiment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CampaignExperiment.Builder
setCampaignDraft(java.lang.String value)
Immutable.CampaignExperiment.Builder
setCampaignDraftBytes(com.google.protobuf.ByteString value)
Immutable.CampaignExperiment.Builder
setDescription(java.lang.String value)
The description of the experiment.CampaignExperiment.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the experiment.CampaignExperiment.Builder
setEndDate(java.lang.String value)
The last day of the campaign experiment.CampaignExperiment.Builder
setEndDateBytes(com.google.protobuf.ByteString value)
The last day of the campaign experiment.CampaignExperiment.Builder
setExperimentCampaign(java.lang.String value)
Output only.CampaignExperiment.Builder
setExperimentCampaignBytes(com.google.protobuf.ByteString value)
Output only.CampaignExperiment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignExperiment.Builder
setId(long value)
Output only.CampaignExperiment.Builder
setLongRunningOperation(java.lang.String value)
Output only.CampaignExperiment.Builder
setLongRunningOperationBytes(com.google.protobuf.ByteString value)
Output only.CampaignExperiment.Builder
setName(java.lang.String value)
The name of the campaign experiment.CampaignExperiment.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the campaign experiment.CampaignExperiment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CampaignExperiment.Builder
setResourceName(java.lang.String value)
Immutable.CampaignExperiment.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.CampaignExperiment.Builder
setStartDate(java.lang.String value)
Date when the campaign experiment starts.CampaignExperiment.Builder
setStartDateBytes(com.google.protobuf.ByteString value)
Date when the campaign experiment starts.CampaignExperiment.Builder
setStatus(CampaignExperimentStatusEnum.CampaignExperimentStatus value)
Output only.CampaignExperiment.Builder
setStatusValue(int value)
Output only.CampaignExperiment.Builder
setTrafficSplitPercent(long value)
Immutable.CampaignExperiment.Builder
setTrafficSplitType(CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType value)
Immutable.CampaignExperiment.Builder
setTrafficSplitTypeValue(int value)
Immutable.CampaignExperiment.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
clear
public CampaignExperiment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
getDefaultInstanceForType
public CampaignExperiment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CampaignExperiment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CampaignExperiment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CampaignExperiment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
setField
public CampaignExperiment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
clearField
public CampaignExperiment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
clearOneof
public CampaignExperiment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
addRepeatedField
public CampaignExperiment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
mergeFrom
public CampaignExperiment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CampaignExperiment.Builder>
-
mergeFrom
public CampaignExperiment.Builder mergeFrom(CampaignExperiment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getResourceName
in 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:
getResourceNameBytes
in 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:
hasId
in 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:
getId
in 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:
hasCampaignDraft
in 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:
getCampaignDraft
in 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:
getCampaignDraftBytes
in 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:
hasName
in 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:
getName
in 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:
getNameBytes
in 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:
hasDescription
in 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:
getDescription
in interfaceCampaignExperimentOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The description of the experiment.
optional string description = 16;
- Specified by:
getDescriptionBytes
in 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:
hasTrafficSplitPercent
in 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:
getTrafficSplitPercent
in 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.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getTrafficSplitTypeValue
in 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.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The enum numeric value on the wire for trafficSplitType to set.- Returns:
- This builder for chaining.
-
getTrafficSplitType
public CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType getTrafficSplitType()
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getTrafficSplitType
in interfaceCampaignExperimentOrBuilder
- Returns:
- The trafficSplitType.
-
setTrafficSplitType
public CampaignExperiment.Builder setTrafficSplitType(CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType value)
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The trafficSplitType to set.- Returns:
- This builder for chaining.
-
clearTrafficSplitType
public CampaignExperiment.Builder clearTrafficSplitType()
Immutable. Determines the behavior of the traffic split.
.google.ads.googleads.v9.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
hasExperimentCampaign
public boolean hasExperimentCampaign()
Output only. The experiment campaign, as opposed to the base campaign.
optional string experiment_campaign = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
hasExperimentCampaign
in 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:
getExperimentCampaign
in 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:
getExperimentCampaignBytes
in 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.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusValue
in 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.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public CampaignExperimentStatusEnum.CampaignExperimentStatus getStatus()
Output only. The status of the campaign experiment. This field is read-only.
.google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatus
in 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.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public CampaignExperiment.Builder clearStatus()
Output only. The status of the campaign experiment. This field is read-only.
.google.ads.googleads.v9.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasLongRunningOperation
public boolean hasLongRunningOperation()
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment create or promote. The most recent long running operation is returned.
optional string long_running_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasLongRunningOperation
in 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:
getLongRunningOperation
in 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:
getLongRunningOperationBytes
in 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:
hasStartDate
in 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:
getStartDate
in 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:
getStartDateBytes
in 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:
hasEndDate
in 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:
getEndDate
in 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:
getEndDateBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
mergeUnknownFields
public final CampaignExperiment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignExperiment.Builder>
-
-