Class CampaignConversionGoal.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CampaignConversionGoal.Builder>
-
- com.google.ads.googleads.v9.resources.CampaignConversionGoal.Builder
-
- All Implemented Interfaces:
CampaignConversionGoalOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CampaignConversionGoal
public static final class CampaignConversionGoal.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignConversionGoal.Builder> implements CampaignConversionGoalOrBuilder
The biddability setting for the specified campaign only for all conversion actions with a matching category and origin.
Protobuf typegoogle.ads.googleads.v9.resources.CampaignConversionGoal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignConversionGoal.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignConversionGoal
build()
CampaignConversionGoal
buildPartial()
CampaignConversionGoal.Builder
clear()
CampaignConversionGoal.Builder
clearBiddable()
The biddability of the campaign conversion goal.CampaignConversionGoal.Builder
clearCampaign()
Immutable.CampaignConversionGoal.Builder
clearCategory()
The conversion category of this campaign conversion goal.CampaignConversionGoal.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CampaignConversionGoal.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CampaignConversionGoal.Builder
clearOrigin()
The conversion origin of this campaign conversion goal.CampaignConversionGoal.Builder
clearResourceName()
Immutable.CampaignConversionGoal.Builder
clone()
boolean
getBiddable()
The biddability of the campaign conversion goal.java.lang.String
getCampaign()
Immutable.com.google.protobuf.ByteString
getCampaignBytes()
Immutable.ConversionActionCategoryEnum.ConversionActionCategory
getCategory()
The conversion category of this campaign conversion goal.int
getCategoryValue()
The conversion category of this campaign conversion goal.CampaignConversionGoal
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ConversionOriginEnum.ConversionOrigin
getOrigin()
The conversion origin of this campaign conversion goal.int
getOriginValue()
The conversion origin of this campaign conversion goal.java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CampaignConversionGoal.Builder
mergeFrom(CampaignConversionGoal other)
CampaignConversionGoal.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CampaignConversionGoal.Builder
mergeFrom(com.google.protobuf.Message other)
CampaignConversionGoal.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CampaignConversionGoal.Builder
setBiddable(boolean value)
The biddability of the campaign conversion goal.CampaignConversionGoal.Builder
setCampaign(java.lang.String value)
Immutable.CampaignConversionGoal.Builder
setCampaignBytes(com.google.protobuf.ByteString value)
Immutable.CampaignConversionGoal.Builder
setCategory(ConversionActionCategoryEnum.ConversionActionCategory value)
The conversion category of this campaign conversion goal.CampaignConversionGoal.Builder
setCategoryValue(int value)
The conversion category of this campaign conversion goal.CampaignConversionGoal.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignConversionGoal.Builder
setOrigin(ConversionOriginEnum.ConversionOrigin value)
The conversion origin of this campaign conversion goal.CampaignConversionGoal.Builder
setOriginValue(int value)
The conversion origin of this campaign conversion goal.CampaignConversionGoal.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CampaignConversionGoal.Builder
setResourceName(java.lang.String value)
Immutable.CampaignConversionGoal.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
clear
public CampaignConversionGoal.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<CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
getDefaultInstanceForType
public CampaignConversionGoal getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CampaignConversionGoal build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CampaignConversionGoal buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
setField
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
clearField
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
clearOneof
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
setRepeatedField
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
addRepeatedField
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
-
mergeFrom
public CampaignConversionGoal.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CampaignConversionGoal.Builder>
-
mergeFrom
public CampaignConversionGoal.Builder mergeFrom(CampaignConversionGoal other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignConversionGoal.Builder>
-
mergeFrom
public CampaignConversionGoal.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<CampaignConversionGoal.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the campaign conversion goal. Campaign conversion goal resource names have the form: `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the campaign conversion goal. Campaign conversion goal resource names have the form: `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public CampaignConversionGoal.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the campaign conversion goal. Campaign conversion goal resource names have the form: `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}`
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 CampaignConversionGoal.Builder clearResourceName()
Immutable. The resource name of the campaign conversion goal. Campaign conversion goal resource names have the form: `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CampaignConversionGoal.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the campaign conversion goal. Campaign conversion goal resource names have the form: `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}`
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.
-
getCampaign
public java.lang.String getCampaign()
Immutable. The campaign with which this campaign conversion goal is associated.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaign
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Immutable. The campaign with which this campaign conversion goal is associated.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaignBytes
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The bytes for campaign.
-
setCampaign
public CampaignConversionGoal.Builder setCampaign(java.lang.String value)
Immutable. The campaign with which this campaign conversion goal is associated.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
public CampaignConversionGoal.Builder clearCampaign()
Immutable. The campaign with which this campaign conversion goal is associated.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setCampaignBytes
public CampaignConversionGoal.Builder setCampaignBytes(com.google.protobuf.ByteString value)
Immutable. The campaign with which this campaign conversion goal is associated.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
getCategoryValue
public int getCategoryValue()
The conversion category of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 3;
- Specified by:
getCategoryValue
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
public CampaignConversionGoal.Builder setCategoryValue(int value)
The conversion category of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 3;
- Parameters:
value
- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
public ConversionActionCategoryEnum.ConversionActionCategory getCategory()
The conversion category of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 3;
- Specified by:
getCategory
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The category.
-
setCategory
public CampaignConversionGoal.Builder setCategory(ConversionActionCategoryEnum.ConversionActionCategory value)
The conversion category of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 3;
- Parameters:
value
- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
public CampaignConversionGoal.Builder clearCategory()
The conversion category of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 3;
- Returns:
- This builder for chaining.
-
getOriginValue
public int getOriginValue()
The conversion origin of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionOriginEnum.ConversionOrigin origin = 4;
- Specified by:
getOriginValue
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The enum numeric value on the wire for origin.
-
setOriginValue
public CampaignConversionGoal.Builder setOriginValue(int value)
The conversion origin of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionOriginEnum.ConversionOrigin origin = 4;
- Parameters:
value
- The enum numeric value on the wire for origin to set.- Returns:
- This builder for chaining.
-
getOrigin
public ConversionOriginEnum.ConversionOrigin getOrigin()
The conversion origin of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionOriginEnum.ConversionOrigin origin = 4;
- Specified by:
getOrigin
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The origin.
-
setOrigin
public CampaignConversionGoal.Builder setOrigin(ConversionOriginEnum.ConversionOrigin value)
The conversion origin of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionOriginEnum.ConversionOrigin origin = 4;
- Parameters:
value
- The origin to set.- Returns:
- This builder for chaining.
-
clearOrigin
public CampaignConversionGoal.Builder clearOrigin()
The conversion origin of this campaign conversion goal.
.google.ads.googleads.v9.enums.ConversionOriginEnum.ConversionOrigin origin = 4;
- Returns:
- This builder for chaining.
-
getBiddable
public boolean getBiddable()
The biddability of the campaign conversion goal.
bool biddable = 5;
- Specified by:
getBiddable
in interfaceCampaignConversionGoalOrBuilder
- Returns:
- The biddable.
-
setBiddable
public CampaignConversionGoal.Builder setBiddable(boolean value)
The biddability of the campaign conversion goal.
bool biddable = 5;
- Parameters:
value
- The biddable to set.- Returns:
- This builder for chaining.
-
clearBiddable
public CampaignConversionGoal.Builder clearBiddable()
The biddability of the campaign conversion goal.
bool biddable = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CampaignConversionGoal.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignConversionGoal.Builder>
-
mergeUnknownFields
public final CampaignConversionGoal.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignConversionGoal.Builder>
-
-