Class FeedItemTarget.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FeedItemTarget.Builder>
-
- com.google.ads.googleads.v9.resources.FeedItemTarget.Builder
-
- All Implemented Interfaces:
FeedItemTargetOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- FeedItemTarget
public static final class FeedItemTarget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FeedItemTarget.Builder> implements FeedItemTargetOrBuilder
A feed item target.
Protobuf typegoogle.ads.googleads.v9.resources.FeedItemTarget
-
-
Method Summary
-
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<FeedItemTarget.Builder>
-
clear
public FeedItemTarget.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<FeedItemTarget.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<FeedItemTarget.Builder>
-
getDefaultInstanceForType
public FeedItemTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FeedItemTarget build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FeedItemTarget buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FeedItemTarget.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<FeedItemTarget.Builder>
-
setField
public FeedItemTarget.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<FeedItemTarget.Builder>
-
clearField
public FeedItemTarget.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<FeedItemTarget.Builder>
-
clearOneof
public FeedItemTarget.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<FeedItemTarget.Builder>
-
setRepeatedField
public FeedItemTarget.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<FeedItemTarget.Builder>
-
addRepeatedField
public FeedItemTarget.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<FeedItemTarget.Builder>
-
mergeFrom
public FeedItemTarget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FeedItemTarget.Builder>
-
mergeFrom
public FeedItemTarget.Builder mergeFrom(FeedItemTarget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemTarget.Builder>
-
mergeFrom
public FeedItemTarget.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<FeedItemTarget.Builder>
- Throws:
java.io.IOException
-
getTargetCase
public FeedItemTarget.TargetCase getTargetCase()
- Specified by:
getTargetCase
in interfaceFeedItemTargetOrBuilder
-
clearTarget
public FeedItemTarget.Builder clearTarget()
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the feed item target. Feed item target resource names have the form: `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceFeedItemTargetOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the feed item target. Feed item target resource names have the form: `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceFeedItemTargetOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public FeedItemTarget.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the feed item target. Feed item target resource names have the form: `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_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 FeedItemTarget.Builder clearResourceName()
Immutable. The resource name of the feed item target. Feed item target resource names have the form: `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public FeedItemTarget.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the feed item target. Feed item target resource names have the form: `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_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.
-
hasFeedItem
public boolean hasFeedItem()
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
hasFeedItem
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the feedItem field is set.
-
getFeedItem
public java.lang.String getFeedItem()
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getFeedItem
in interfaceFeedItemTargetOrBuilder
- Returns:
- The feedItem.
-
getFeedItemBytes
public com.google.protobuf.ByteString getFeedItemBytes()
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getFeedItemBytes
in interfaceFeedItemTargetOrBuilder
- Returns:
- The bytes for feedItem.
-
setFeedItem
public FeedItemTarget.Builder setFeedItem(java.lang.String value)
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The feedItem to set.- Returns:
- This builder for chaining.
-
clearFeedItem
public FeedItemTarget.Builder clearFeedItem()
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setFeedItemBytes
public FeedItemTarget.Builder setFeedItemBytes(com.google.protobuf.ByteString value)
Immutable. The feed item to which this feed item target belongs.
optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for feedItem to set.- Returns:
- This builder for chaining.
-
getFeedItemTargetTypeValue
public int getFeedItemTargetTypeValue()
Output only. The target type of this feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFeedItemTargetTypeValue
in interfaceFeedItemTargetOrBuilder
- Returns:
- The enum numeric value on the wire for feedItemTargetType.
-
setFeedItemTargetTypeValue
public FeedItemTarget.Builder setFeedItemTargetTypeValue(int value)
Output only. The target type of this feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for feedItemTargetType to set.- Returns:
- This builder for chaining.
-
getFeedItemTargetType
public FeedItemTargetTypeEnum.FeedItemTargetType getFeedItemTargetType()
Output only. The target type of this feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFeedItemTargetType
in interfaceFeedItemTargetOrBuilder
- Returns:
- The feedItemTargetType.
-
setFeedItemTargetType
public FeedItemTarget.Builder setFeedItemTargetType(FeedItemTargetTypeEnum.FeedItemTargetType value)
Output only. The target type of this feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The feedItemTargetType to set.- Returns:
- This builder for chaining.
-
clearFeedItemTargetType
public FeedItemTarget.Builder clearFeedItemTargetType()
Output only. The target type of this feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasFeedItemTargetId
public boolean hasFeedItemTargetId()
Output only. The ID of the targeted resource. This field is read-only.
optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasFeedItemTargetId
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the feedItemTargetId field is set.
-
getFeedItemTargetId
public long getFeedItemTargetId()
Output only. The ID of the targeted resource. This field is read-only.
optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFeedItemTargetId
in interfaceFeedItemTargetOrBuilder
- Returns:
- The feedItemTargetId.
-
setFeedItemTargetId
public FeedItemTarget.Builder setFeedItemTargetId(long value)
Output only. The ID of the targeted resource. This field is read-only.
optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The feedItemTargetId to set.- Returns:
- This builder for chaining.
-
clearFeedItemTargetId
public FeedItemTarget.Builder clearFeedItemTargetId()
Output only. The ID of the targeted resource. This field is read-only.
optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
Output only. Status of the feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusValue
in interfaceFeedItemTargetOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public FeedItemTarget.Builder setStatusValue(int value)
Output only. Status of the feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.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 FeedItemTargetStatusEnum.FeedItemTargetStatus getStatus()
Output only. Status of the feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatus
in interfaceFeedItemTargetOrBuilder
- Returns:
- The status.
-
setStatus
public FeedItemTarget.Builder setStatus(FeedItemTargetStatusEnum.FeedItemTargetStatus value)
Output only. Status of the feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public FeedItemTarget.Builder clearStatus()
Output only. Status of the feed item target. This field is read-only.
.google.ads.googleads.v9.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasCampaign
public boolean hasCampaign()
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
hasCampaign
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the campaign field is set.
-
getCampaign
public java.lang.String getCampaign()
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaign
in interfaceFeedItemTargetOrBuilder
- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaignBytes
in interfaceFeedItemTargetOrBuilder
- Returns:
- The bytes for campaign.
-
setCampaign
public FeedItemTarget.Builder setCampaign(java.lang.String value)
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
public FeedItemTarget.Builder clearCampaign()
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setCampaignBytes
public FeedItemTarget.Builder setCampaignBytes(com.google.protobuf.ByteString value)
Immutable. The targeted campaign.
string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
hasAdGroup
public boolean hasAdGroup()
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
hasAdGroup
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the adGroup field is set.
-
getAdGroup
public java.lang.String getAdGroup()
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getAdGroup
in interfaceFeedItemTargetOrBuilder
- Returns:
- The adGroup.
-
getAdGroupBytes
public com.google.protobuf.ByteString getAdGroupBytes()
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getAdGroupBytes
in interfaceFeedItemTargetOrBuilder
- Returns:
- The bytes for adGroup.
-
setAdGroup
public FeedItemTarget.Builder setAdGroup(java.lang.String value)
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The adGroup to set.- Returns:
- This builder for chaining.
-
clearAdGroup
public FeedItemTarget.Builder clearAdGroup()
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setAdGroupBytes
public FeedItemTarget.Builder setAdGroupBytes(com.google.protobuf.ByteString value)
Immutable. The targeted ad group.
string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for adGroup to set.- Returns:
- This builder for chaining.
-
hasKeyword
public boolean hasKeyword()
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasKeyword
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the keyword field is set.
-
getKeyword
public KeywordInfo getKeyword()
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getKeyword
in interfaceFeedItemTargetOrBuilder
- Returns:
- The keyword.
-
setKeyword
public FeedItemTarget.Builder setKeyword(KeywordInfo value)
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
-
setKeyword
public FeedItemTarget.Builder setKeyword(KeywordInfo.Builder builderForValue)
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
-
mergeKeyword
public FeedItemTarget.Builder mergeKeyword(KeywordInfo value)
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
-
clearKeyword
public FeedItemTarget.Builder clearKeyword()
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
-
getKeywordBuilder
public KeywordInfo.Builder getKeywordBuilder()
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
-
getKeywordOrBuilder
public KeywordInfoOrBuilder getKeywordOrBuilder()
Immutable. The targeted keyword.
.google.ads.googleads.v9.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getKeywordOrBuilder
in interfaceFeedItemTargetOrBuilder
-
hasGeoTargetConstant
public boolean hasGeoTargetConstant()
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
hasGeoTargetConstant
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the geoTargetConstant field is set.
-
getGeoTargetConstant
public java.lang.String getGeoTargetConstant()
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getGeoTargetConstant
in interfaceFeedItemTargetOrBuilder
- Returns:
- The geoTargetConstant.
-
getGeoTargetConstantBytes
public com.google.protobuf.ByteString getGeoTargetConstantBytes()
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getGeoTargetConstantBytes
in interfaceFeedItemTargetOrBuilder
- Returns:
- The bytes for geoTargetConstant.
-
setGeoTargetConstant
public FeedItemTarget.Builder setGeoTargetConstant(java.lang.String value)
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The geoTargetConstant to set.- Returns:
- This builder for chaining.
-
clearGeoTargetConstant
public FeedItemTarget.Builder clearGeoTargetConstant()
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setGeoTargetConstantBytes
public FeedItemTarget.Builder setGeoTargetConstantBytes(com.google.protobuf.ByteString value)
Immutable. The targeted geo target constant resource name.
string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for geoTargetConstant to set.- Returns:
- This builder for chaining.
-
hasDevice
public boolean hasDevice()
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasDevice
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the device field is set.
-
getDeviceValue
public int getDeviceValue()
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getDeviceValue
in interfaceFeedItemTargetOrBuilder
- Returns:
- The enum numeric value on the wire for device.
-
setDeviceValue
public FeedItemTarget.Builder setDeviceValue(int value)
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The enum numeric value on the wire for device to set.- Returns:
- This builder for chaining.
-
getDevice
public FeedItemTargetDeviceEnum.FeedItemTargetDevice getDevice()
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getDevice
in interfaceFeedItemTargetOrBuilder
- Returns:
- The device.
-
setDevice
public FeedItemTarget.Builder setDevice(FeedItemTargetDeviceEnum.FeedItemTargetDevice value)
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The device to set.- Returns:
- This builder for chaining.
-
clearDevice
public FeedItemTarget.Builder clearDevice()
Immutable. The targeted device.
.google.ads.googleads.v9.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
hasAdSchedule
public boolean hasAdSchedule()
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasAdSchedule
in interfaceFeedItemTargetOrBuilder
- Returns:
- Whether the adSchedule field is set.
-
getAdSchedule
public AdScheduleInfo getAdSchedule()
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getAdSchedule
in interfaceFeedItemTargetOrBuilder
- Returns:
- The adSchedule.
-
setAdSchedule
public FeedItemTarget.Builder setAdSchedule(AdScheduleInfo value)
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
-
setAdSchedule
public FeedItemTarget.Builder setAdSchedule(AdScheduleInfo.Builder builderForValue)
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
-
mergeAdSchedule
public FeedItemTarget.Builder mergeAdSchedule(AdScheduleInfo value)
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
-
clearAdSchedule
public FeedItemTarget.Builder clearAdSchedule()
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
-
getAdScheduleBuilder
public AdScheduleInfo.Builder getAdScheduleBuilder()
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
-
getAdScheduleOrBuilder
public AdScheduleInfoOrBuilder getAdScheduleOrBuilder()
Immutable. The targeted schedule.
.google.ads.googleads.v9.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getAdScheduleOrBuilder
in interfaceFeedItemTargetOrBuilder
-
setUnknownFields
public final FeedItemTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemTarget.Builder>
-
mergeUnknownFields
public final FeedItemTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemTarget.Builder>
-
-