Class CampaignBidModifier.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CampaignBidModifier.Builder>
-
- com.google.ads.googleads.v9.resources.CampaignBidModifier.Builder
-
- All Implemented Interfaces:
CampaignBidModifierOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CampaignBidModifier
public static final class CampaignBidModifier.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignBidModifier.Builder> implements CampaignBidModifierOrBuilder
Represents a bid-modifiable only criterion at the campaign level.
Protobuf typegoogle.ads.googleads.v9.resources.CampaignBidModifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignBidModifier.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignBidModifier
build()
CampaignBidModifier
buildPartial()
CampaignBidModifier.Builder
clear()
CampaignBidModifier.Builder
clearBidModifier()
The modifier for the bid when the criterion matches.CampaignBidModifier.Builder
clearCampaign()
Output only.CampaignBidModifier.Builder
clearCriterion()
CampaignBidModifier.Builder
clearCriterionId()
Output only.CampaignBidModifier.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CampaignBidModifier.Builder
clearInteractionType()
Immutable.CampaignBidModifier.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CampaignBidModifier.Builder
clearResourceName()
Immutable.CampaignBidModifier.Builder
clone()
double
getBidModifier()
The modifier for the bid when the criterion matches.java.lang.String
getCampaign()
Output only.com.google.protobuf.ByteString
getCampaignBytes()
Output only.CampaignBidModifier.CriterionCase
getCriterionCase()
long
getCriterionId()
Output only.CampaignBidModifier
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
InteractionTypeInfo
getInteractionType()
Immutable.InteractionTypeInfo.Builder
getInteractionTypeBuilder()
Immutable.InteractionTypeInfoOrBuilder
getInteractionTypeOrBuilder()
Immutable.java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.boolean
hasBidModifier()
The modifier for the bid when the criterion matches.boolean
hasCampaign()
Output only.boolean
hasCriterionId()
Output only.boolean
hasInteractionType()
Immutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CampaignBidModifier.Builder
mergeFrom(CampaignBidModifier other)
CampaignBidModifier.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CampaignBidModifier.Builder
mergeFrom(com.google.protobuf.Message other)
CampaignBidModifier.Builder
mergeInteractionType(InteractionTypeInfo value)
Immutable.CampaignBidModifier.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CampaignBidModifier.Builder
setBidModifier(double value)
The modifier for the bid when the criterion matches.CampaignBidModifier.Builder
setCampaign(java.lang.String value)
Output only.CampaignBidModifier.Builder
setCampaignBytes(com.google.protobuf.ByteString value)
Output only.CampaignBidModifier.Builder
setCriterionId(long value)
Output only.CampaignBidModifier.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignBidModifier.Builder
setInteractionType(InteractionTypeInfo value)
Immutable.CampaignBidModifier.Builder
setInteractionType(InteractionTypeInfo.Builder builderForValue)
Immutable.CampaignBidModifier.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CampaignBidModifier.Builder
setResourceName(java.lang.String value)
Immutable.CampaignBidModifier.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.CampaignBidModifier.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<CampaignBidModifier.Builder>
-
clear
public CampaignBidModifier.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<CampaignBidModifier.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<CampaignBidModifier.Builder>
-
getDefaultInstanceForType
public CampaignBidModifier getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CampaignBidModifier build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CampaignBidModifier buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
setField
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
clearField
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
clearOneof
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
setRepeatedField
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
addRepeatedField
public CampaignBidModifier.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<CampaignBidModifier.Builder>
-
mergeFrom
public CampaignBidModifier.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CampaignBidModifier.Builder>
-
mergeFrom
public CampaignBidModifier.Builder mergeFrom(CampaignBidModifier other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignBidModifier.Builder>
-
mergeFrom
public CampaignBidModifier.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<CampaignBidModifier.Builder>
- Throws:
java.io.IOException
-
getCriterionCase
public CampaignBidModifier.CriterionCase getCriterionCase()
- Specified by:
getCriterionCase
in interfaceCampaignBidModifierOrBuilder
-
clearCriterion
public CampaignBidModifier.Builder clearCriterion()
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form: `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form: `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public CampaignBidModifier.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form: `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_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 CampaignBidModifier.Builder clearResourceName()
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form: `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CampaignBidModifier.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form: `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_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.
-
hasCampaign
public boolean hasCampaign()
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
hasCampaign
in interfaceCampaignBidModifierOrBuilder
- Returns:
- Whether the campaign field is set.
-
getCampaign
public java.lang.String getCampaign()
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaign
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaignBytes
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The bytes for campaign.
-
setCampaign
public CampaignBidModifier.Builder setCampaign(java.lang.String value)
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
public CampaignBidModifier.Builder clearCampaign()
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setCampaignBytes
public CampaignBidModifier.Builder setCampaignBytes(com.google.protobuf.ByteString value)
Output only. The campaign to which this criterion belongs.
optional string campaign = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
hasCriterionId
public boolean hasCriterionId()
Output only. The ID of the criterion to bid modify. This field is ignored for mutates.
optional int64 criterion_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCriterionId
in interfaceCampaignBidModifierOrBuilder
- Returns:
- Whether the criterionId field is set.
-
getCriterionId
public long getCriterionId()
Output only. The ID of the criterion to bid modify. This field is ignored for mutates.
optional int64 criterion_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCriterionId
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The criterionId.
-
setCriterionId
public CampaignBidModifier.Builder setCriterionId(long value)
Output only. The ID of the criterion to bid modify. This field is ignored for mutates.
optional int64 criterion_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The criterionId to set.- Returns:
- This builder for chaining.
-
clearCriterionId
public CampaignBidModifier.Builder clearCriterionId()
Output only. The ID of the criterion to bid modify. This field is ignored for mutates.
optional int64 criterion_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasBidModifier
public boolean hasBidModifier()
The modifier for the bid when the criterion matches.
optional double bid_modifier = 8;
- Specified by:
hasBidModifier
in interfaceCampaignBidModifierOrBuilder
- Returns:
- Whether the bidModifier field is set.
-
getBidModifier
public double getBidModifier()
The modifier for the bid when the criterion matches.
optional double bid_modifier = 8;
- Specified by:
getBidModifier
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The bidModifier.
-
setBidModifier
public CampaignBidModifier.Builder setBidModifier(double value)
The modifier for the bid when the criterion matches.
optional double bid_modifier = 8;
- Parameters:
value
- The bidModifier to set.- Returns:
- This builder for chaining.
-
clearBidModifier
public CampaignBidModifier.Builder clearBidModifier()
The modifier for the bid when the criterion matches.
optional double bid_modifier = 8;
- Returns:
- This builder for chaining.
-
hasInteractionType
public boolean hasInteractionType()
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasInteractionType
in interfaceCampaignBidModifierOrBuilder
- Returns:
- Whether the interactionType field is set.
-
getInteractionType
public InteractionTypeInfo getInteractionType()
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getInteractionType
in interfaceCampaignBidModifierOrBuilder
- Returns:
- The interactionType.
-
setInteractionType
public CampaignBidModifier.Builder setInteractionType(InteractionTypeInfo value)
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
setInteractionType
public CampaignBidModifier.Builder setInteractionType(InteractionTypeInfo.Builder builderForValue)
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
mergeInteractionType
public CampaignBidModifier.Builder mergeInteractionType(InteractionTypeInfo value)
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
clearInteractionType
public CampaignBidModifier.Builder clearInteractionType()
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
getInteractionTypeBuilder
public InteractionTypeInfo.Builder getInteractionTypeBuilder()
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
-
getInteractionTypeOrBuilder
public InteractionTypeInfoOrBuilder getInteractionTypeOrBuilder()
Immutable. Criterion for interaction type. Only supported for search campaigns.
.google.ads.googleads.v9.common.InteractionTypeInfo interaction_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getInteractionTypeOrBuilder
in interfaceCampaignBidModifierOrBuilder
-
setUnknownFields
public final CampaignBidModifier.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignBidModifier.Builder>
-
mergeUnknownFields
public final CampaignBidModifier.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignBidModifier.Builder>
-
-