Class CampaignFeed.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
com.google.ads.googleads.v18.resources.CampaignFeed.Builder
- All Implemented Interfaces:
CampaignFeedOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CampaignFeed
public static final class CampaignFeed.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
implements CampaignFeedOrBuilder
A campaign feed.Protobuf type
google.ads.googleads.v18.resources.CampaignFeed-
Method Summary
Modifier and TypeMethodDescriptionaddAllPlaceholderTypes(Iterable<? extends PlaceholderTypeEnum.PlaceholderType> values) Indicates which placeholder types the feed may populate under the connected campaign.addAllPlaceholderTypesValue(Iterable<Integer> values) Indicates which placeholder types the feed may populate under the connected campaign.Indicates which placeholder types the feed may populate under the connected campaign.addPlaceholderTypesValue(int value) Indicates which placeholder types the feed may populate under the connected campaign.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Immutable.Immutable.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Matching function associated with the CampaignFeed.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Indicates which placeholder types the feed may populate under the connected campaign.Immutable.Output only.clone()Immutable.com.google.protobuf.ByteStringImmutable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFeed()Immutable.com.google.protobuf.ByteStringImmutable.Matching function associated with the CampaignFeed.Matching function associated with the CampaignFeed.Matching function associated with the CampaignFeed.getPlaceholderTypes(int index) Indicates which placeholder types the feed may populate under the connected campaign.intIndicates which placeholder types the feed may populate under the connected campaign.Indicates which placeholder types the feed may populate under the connected campaign.intgetPlaceholderTypesValue(int index) Indicates which placeholder types the feed may populate under the connected campaign.Indicates which placeholder types the feed may populate under the connected campaign.Immutable.com.google.protobuf.ByteStringImmutable.Output only.intOutput only.booleanImmutable.booleanhasFeed()Immutable.booleanMatching function associated with the CampaignFeed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CampaignFeed other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Matching function associated with the CampaignFeed.final CampaignFeed.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCampaign(String value) Immutable.setCampaignBytes(com.google.protobuf.ByteString value) Immutable.Immutable.setFeedBytes(com.google.protobuf.ByteString value) Immutable.Matching function associated with the CampaignFeed.setMatchingFunction(MatchingFunction.Builder builderForValue) Matching function associated with the CampaignFeed.setPlaceholderTypes(int index, PlaceholderTypeEnum.PlaceholderType value) Indicates which placeholder types the feed may populate under the connected campaign.setPlaceholderTypesValue(int index, int value) Indicates which placeholder types the feed may populate under the connected campaign.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setStatusValue(int value) Output only.final CampaignFeed.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<CampaignFeed.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<CampaignFeed.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<CampaignFeed.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<CampaignFeed.Builder>
-
setField
public CampaignFeed.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
setRepeatedField
public CampaignFeed.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
addRepeatedField
public CampaignFeed.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignFeed.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
mergeFrom
public CampaignFeed.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignFeed.Builder>- Throws:
IOException
-
getResourceName
Immutable. The resource name of the campaign feed. Campaign feed resource names have the form: `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCampaignFeedOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the campaign feed. Campaign feed resource names have the form: `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCampaignFeedOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Immutable. The resource name of the campaign feed. Campaign feed resource names have the form: `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_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
Immutable. The resource name of the campaign feed. Campaign feed resource names have the form: `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Immutable. The resource name of the campaign feed. Campaign feed resource names have the form: `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_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.
-
hasFeed
public boolean hasFeed()Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
hasFeedin interfaceCampaignFeedOrBuilder- Returns:
- Whether the feed field is set.
-
getFeed
Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedin interfaceCampaignFeedOrBuilder- Returns:
- The feed.
-
getFeedBytes
public com.google.protobuf.ByteString getFeedBytes()Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedBytesin interfaceCampaignFeedOrBuilder- Returns:
- The bytes for feed.
-
setFeed
Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The feed to set.- Returns:
- This builder for chaining.
-
clearFeed
Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setFeedBytes
Immutable. The feed to which the CampaignFeed belongs.
optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for feed to set.- Returns:
- This builder for chaining.
-
hasCampaign
public boolean hasCampaign()Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
hasCampaignin interfaceCampaignFeedOrBuilder- Returns:
- Whether the campaign field is set.
-
getCampaign
Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignin interfaceCampaignFeedOrBuilder- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignBytesin interfaceCampaignFeedOrBuilder- Returns:
- The bytes for campaign.
-
setCampaign
Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setCampaignBytes
Immutable. The campaign to which the CampaignFeed belongs.
optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
getPlaceholderTypesList
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Specified by:
getPlaceholderTypesListin interfaceCampaignFeedOrBuilder- Returns:
- A list containing the placeholderTypes.
-
getPlaceholderTypesCount
public int getPlaceholderTypesCount()Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Specified by:
getPlaceholderTypesCountin interfaceCampaignFeedOrBuilder- Returns:
- The count of placeholderTypes.
-
getPlaceholderTypes
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Specified by:
getPlaceholderTypesin interfaceCampaignFeedOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The placeholderTypes at the given index.
-
setPlaceholderTypes
public CampaignFeed.Builder setPlaceholderTypes(int index, PlaceholderTypeEnum.PlaceholderType value) Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
index- The index to set the value at.value- The placeholderTypes to set.- Returns:
- This builder for chaining.
-
addPlaceholderTypes
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
value- The placeholderTypes to add.- Returns:
- This builder for chaining.
-
addAllPlaceholderTypes
public CampaignFeed.Builder addAllPlaceholderTypes(Iterable<? extends PlaceholderTypeEnum.PlaceholderType> values) Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
values- The placeholderTypes to add.- Returns:
- This builder for chaining.
-
clearPlaceholderTypes
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Returns:
- This builder for chaining.
-
getPlaceholderTypesValueList
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Specified by:
getPlaceholderTypesValueListin interfaceCampaignFeedOrBuilder- Returns:
- A list containing the enum numeric values on the wire for placeholderTypes.
-
getPlaceholderTypesValue
public int getPlaceholderTypesValue(int index) Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Specified by:
getPlaceholderTypesValuein interfaceCampaignFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of placeholderTypes at the given index.
-
setPlaceholderTypesValue
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for placeholderTypes to set.- Returns:
- This builder for chaining.
-
addPlaceholderTypesValue
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
value- The enum numeric value on the wire for placeholderTypes to add.- Returns:
- This builder for chaining.
-
addAllPlaceholderTypesValue
Indicates which placeholder types the feed may populate under the connected campaign. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;- Parameters:
values- The enum numeric values on the wire for placeholderTypes to add.- Returns:
- This builder for chaining.
-
hasMatchingFunction
public boolean hasMatchingFunction()Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5;- Specified by:
hasMatchingFunctionin interfaceCampaignFeedOrBuilder- Returns:
- Whether the matchingFunction field is set.
-
getMatchingFunction
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5;- Specified by:
getMatchingFunctionin interfaceCampaignFeedOrBuilder- Returns:
- The matchingFunction.
-
setMatchingFunction
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5; -
setMatchingFunction
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5; -
mergeMatchingFunction
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5; -
clearMatchingFunction
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5; -
getMatchingFunctionBuilder
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5; -
getMatchingFunctionOrBuilder
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 5;- Specified by:
getMatchingFunctionOrBuilderin interfaceCampaignFeedOrBuilder
-
getStatusValue
public int getStatusValue()Output only. Status of the campaign feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCampaignFeedOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Status of the campaign feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.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
Output only. Status of the campaign feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCampaignFeedOrBuilder- Returns:
- The status.
-
setStatus
Output only. Status of the campaign feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Status of the campaign feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final CampaignFeed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-
mergeUnknownFields
public final CampaignFeed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
-