Class FeedItemSet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
- com.google.ads.googleads.v10.resources.FeedItemSet.Builder
-
- All Implemented Interfaces:
FeedItemSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- FeedItemSet
public static final class FeedItemSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder> implements FeedItemSetOrBuilder
Represents a set of feed items. The set can be used and shared among certain feed item features. For instance, the set can be referenced within the matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed.
Protobuf typegoogle.ads.googleads.v10.resources.FeedItemSet
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
clear
public FeedItemSet.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
getDefaultInstanceForType
public FeedItemSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FeedItemSet build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FeedItemSet buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FeedItemSet.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
setField
public FeedItemSet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
clearField
public FeedItemSet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
clearOneof
public FeedItemSet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
setRepeatedField
public FeedItemSet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
addRepeatedField
public FeedItemSet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
mergeFrom
public FeedItemSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedItemSet.Builder>
-
mergeFrom
public FeedItemSet.Builder mergeFrom(FeedItemSet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
mergeFrom
public FeedItemSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedItemSet.Builder>- Throws:
java.io.IOException
-
getDynamicSetFilterCase
public FeedItemSet.DynamicSetFilterCase getDynamicSetFilterCase()
- Specified by:
getDynamicSetFilterCasein interfaceFeedItemSetOrBuilder
-
clearDynamicSetFilter
public FeedItemSet.Builder clearDynamicSetFilter()
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the feed item set. Feed item set resource names have the form: `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceFeedItemSetOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the feed item set. Feed item set resource names have the form: `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceFeedItemSetOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public FeedItemSet.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the feed item set. Feed item set resource names have the form: `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_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 FeedItemSet.Builder clearResourceName()
Immutable. The resource name of the feed item set. Feed item set resource names have the form: `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public FeedItemSet.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the feed item set. Feed item set resource names have the form: `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_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.
-
getFeed
public java.lang.String getFeed()
Immutable. The resource name of the feed containing the feed items in the set. Immutable. Required.
string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedin interfaceFeedItemSetOrBuilder- Returns:
- The feed.
-
getFeedBytes
public com.google.protobuf.ByteString getFeedBytes()
Immutable. The resource name of the feed containing the feed items in the set. Immutable. Required.
string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedBytesin interfaceFeedItemSetOrBuilder- Returns:
- The bytes for feed.
-
setFeed
public FeedItemSet.Builder setFeed(java.lang.String value)
Immutable. The resource name of the feed containing the feed items in the set. Immutable. Required.
string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The feed to set.- Returns:
- This builder for chaining.
-
clearFeed
public FeedItemSet.Builder clearFeed()
Immutable. The resource name of the feed containing the feed items in the set. Immutable. Required.
string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setFeedBytes
public FeedItemSet.Builder setFeedBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the feed containing the feed items in the set. Immutable. Required.
string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for feed to set.- Returns:
- This builder for chaining.
-
getFeedItemSetId
public long getFeedItemSetId()
Output only. ID of the set.
int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFeedItemSetIdin interfaceFeedItemSetOrBuilder- Returns:
- The feedItemSetId.
-
setFeedItemSetId
public FeedItemSet.Builder setFeedItemSetId(long value)
Output only. ID of the set.
int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The feedItemSetId to set.- Returns:
- This builder for chaining.
-
clearFeedItemSetId
public FeedItemSet.Builder clearFeedItemSetId()
Output only. ID of the set.
int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDisplayName
public java.lang.String getDisplayName()
Name of the set. Must be unique within the account.
string display_name = 4;- Specified by:
getDisplayNamein interfaceFeedItemSetOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Name of the set. Must be unique within the account.
string display_name = 4;- Specified by:
getDisplayNameBytesin interfaceFeedItemSetOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public FeedItemSet.Builder setDisplayName(java.lang.String value)
Name of the set. Must be unique within the account.
string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public FeedItemSet.Builder clearDisplayName()
Name of the set. Must be unique within the account.
string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public FeedItemSet.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Name of the set. Must be unique within the account.
string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
Output only. Status of the feed item set. This field is read-only.
.google.ads.googleads.v10.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceFeedItemSetOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public FeedItemSet.Builder setStatusValue(int value)
Output only. Status of the feed item set. This field is read-only.
.google.ads.googleads.v10.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.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 FeedItemSetStatusEnum.FeedItemSetStatus getStatus()
Output only. Status of the feed item set. This field is read-only.
.google.ads.googleads.v10.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceFeedItemSetOrBuilder- Returns:
- The status.
-
setStatus
public FeedItemSet.Builder setStatus(FeedItemSetStatusEnum.FeedItemSetStatus value)
Output only. Status of the feed item set. This field is read-only.
.google.ads.googleads.v10.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public FeedItemSet.Builder clearStatus()
Output only. Status of the feed item set. This field is read-only.
.google.ads.googleads.v10.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasDynamicLocationSetFilter
public boolean hasDynamicLocationSetFilter()
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;- Specified by:
hasDynamicLocationSetFilterin interfaceFeedItemSetOrBuilder- Returns:
- Whether the dynamicLocationSetFilter field is set.
-
getDynamicLocationSetFilter
public DynamicLocationSetFilter getDynamicLocationSetFilter()
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;- Specified by:
getDynamicLocationSetFilterin interfaceFeedItemSetOrBuilder- Returns:
- The dynamicLocationSetFilter.
-
setDynamicLocationSetFilter
public FeedItemSet.Builder setDynamicLocationSetFilter(DynamicLocationSetFilter value)
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
-
setDynamicLocationSetFilter
public FeedItemSet.Builder setDynamicLocationSetFilter(DynamicLocationSetFilter.Builder builderForValue)
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
-
mergeDynamicLocationSetFilter
public FeedItemSet.Builder mergeDynamicLocationSetFilter(DynamicLocationSetFilter value)
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
-
clearDynamicLocationSetFilter
public FeedItemSet.Builder clearDynamicLocationSetFilter()
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
-
getDynamicLocationSetFilterBuilder
public DynamicLocationSetFilter.Builder getDynamicLocationSetFilterBuilder()
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
-
getDynamicLocationSetFilterOrBuilder
public DynamicLocationSetFilterOrBuilder getDynamicLocationSetFilterOrBuilder()
Filter for dynamic location set. It is only used for sets of locations.
.google.ads.googleads.v10.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;- Specified by:
getDynamicLocationSetFilterOrBuilderin interfaceFeedItemSetOrBuilder
-
hasDynamicAffiliateLocationSetFilter
public boolean hasDynamicAffiliateLocationSetFilter()
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;- Specified by:
hasDynamicAffiliateLocationSetFilterin interfaceFeedItemSetOrBuilder- Returns:
- Whether the dynamicAffiliateLocationSetFilter field is set.
-
getDynamicAffiliateLocationSetFilter
public DynamicAffiliateLocationSetFilter getDynamicAffiliateLocationSetFilter()
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;- Specified by:
getDynamicAffiliateLocationSetFilterin interfaceFeedItemSetOrBuilder- Returns:
- The dynamicAffiliateLocationSetFilter.
-
setDynamicAffiliateLocationSetFilter
public FeedItemSet.Builder setDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter value)
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
-
setDynamicAffiliateLocationSetFilter
public FeedItemSet.Builder setDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter.Builder builderForValue)
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
-
mergeDynamicAffiliateLocationSetFilter
public FeedItemSet.Builder mergeDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter value)
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
-
clearDynamicAffiliateLocationSetFilter
public FeedItemSet.Builder clearDynamicAffiliateLocationSetFilter()
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
-
getDynamicAffiliateLocationSetFilterBuilder
public DynamicAffiliateLocationSetFilter.Builder getDynamicAffiliateLocationSetFilterBuilder()
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
-
getDynamicAffiliateLocationSetFilterOrBuilder
public DynamicAffiliateLocationSetFilterOrBuilder getDynamicAffiliateLocationSetFilterOrBuilder()
Filter for dynamic affiliate location set. This field doesn't apply generally to feed item sets. It is only used for sets of affiliate locations.
.google.ads.googleads.v10.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;- Specified by:
getDynamicAffiliateLocationSetFilterOrBuilderin interfaceFeedItemSetOrBuilder
-
setUnknownFields
public final FeedItemSet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
mergeUnknownFields
public final FeedItemSet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder>
-
-