Class CustomerFeed.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
com.google.ads.googleads.v18.resources.CustomerFeed.Builder
- All Implemented Interfaces:
CustomerFeedOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomerFeed
public static final class CustomerFeed.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
implements CustomerFeedOrBuilder
A customer feed.Protobuf type
google.ads.googleads.v18.resources.CustomerFeed-
Method Summary
Modifier and TypeMethodDescriptionaddAllPlaceholderTypes(Iterable<? extends PlaceholderTypeEnum.PlaceholderType> values) Indicates which placeholder types the feed may populate under the connected customer.addAllPlaceholderTypesValue(Iterable<Integer> values) Indicates which placeholder types the feed may populate under the connected customer.Indicates which placeholder types the feed may populate under the connected customer.addPlaceholderTypesValue(int value) Indicates which placeholder types the feed may populate under the connected customer.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Immutable.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Matching function associated with the CustomerFeed.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Indicates which placeholder types the feed may populate under the connected customer.Immutable.Output only.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFeed()Immutable.com.google.protobuf.ByteStringImmutable.Matching function associated with the CustomerFeed.Matching function associated with the CustomerFeed.Matching function associated with the CustomerFeed.getPlaceholderTypes(int index) Indicates which placeholder types the feed may populate under the connected customer.intIndicates which placeholder types the feed may populate under the connected customer.Indicates which placeholder types the feed may populate under the connected customer.intgetPlaceholderTypesValue(int index) Indicates which placeholder types the feed may populate under the connected customer.Indicates which placeholder types the feed may populate under the connected customer.Immutable.com.google.protobuf.ByteStringImmutable.Output only.intOutput only.booleanhasFeed()Immutable.booleanMatching function associated with the CustomerFeed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CustomerFeed other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Matching function associated with the CustomerFeed.final CustomerFeed.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Immutable.setFeedBytes(com.google.protobuf.ByteString value) Immutable.Matching function associated with the CustomerFeed.setMatchingFunction(MatchingFunction.Builder builderForValue) Matching function associated with the CustomerFeed.setPlaceholderTypes(int index, PlaceholderTypeEnum.PlaceholderType value) Indicates which placeholder types the feed may populate under the connected customer.setPlaceholderTypesValue(int index, int value) Indicates which placeholder types the feed may populate under the connected customer.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 CustomerFeed.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<CustomerFeed.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<CustomerFeed.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<CustomerFeed.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<CustomerFeed.Builder>
-
setField
public CustomerFeed.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<CustomerFeed.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
-
setRepeatedField
public CustomerFeed.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<CustomerFeed.Builder>
-
addRepeatedField
public CustomerFeed.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<CustomerFeed.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomerFeed.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
-
mergeFrom
public CustomerFeed.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<CustomerFeed.Builder>- Throws:
IOException
-
getResourceName
Immutable. The resource name of the customer feed. Customer feed resource names have the form: `customers/{customer_id}/customerFeeds/{feed_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCustomerFeedOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the customer feed. Customer feed resource names have the form: `customers/{customer_id}/customerFeeds/{feed_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCustomerFeedOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Immutable. The resource name of the customer feed. Customer feed resource names have the form: `customers/{customer_id}/customerFeeds/{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 customer feed. Customer feed resource names have the form: `customers/{customer_id}/customerFeeds/{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 customer feed. Customer feed resource names have the form: `customers/{customer_id}/customerFeeds/{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 being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
hasFeedin interfaceCustomerFeedOrBuilder- Returns:
- Whether the feed field is set.
-
getFeed
Immutable. The feed being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedin interfaceCustomerFeedOrBuilder- Returns:
- The feed.
-
getFeedBytes
public com.google.protobuf.ByteString getFeedBytes()Immutable. The feed being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getFeedBytesin interfaceCustomerFeedOrBuilder- Returns:
- The bytes for feed.
-
setFeed
Immutable. The feed being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The feed to set.- Returns:
- This builder for chaining.
-
clearFeed
Immutable. The feed being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setFeedBytes
Immutable. The feed being linked to the customer.
optional string feed = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for feed to set.- Returns:
- This builder for chaining.
-
getPlaceholderTypesList
Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Specified by:
getPlaceholderTypesListin interfaceCustomerFeedOrBuilder- Returns:
- A list containing the placeholderTypes.
-
getPlaceholderTypesCount
public int getPlaceholderTypesCount()Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Specified by:
getPlaceholderTypesCountin interfaceCustomerFeedOrBuilder- Returns:
- The count of placeholderTypes.
-
getPlaceholderTypes
Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Specified by:
getPlaceholderTypesin interfaceCustomerFeedOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The placeholderTypes at the given index.
-
setPlaceholderTypes
public CustomerFeed.Builder setPlaceholderTypes(int index, PlaceholderTypeEnum.PlaceholderType value) Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- 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 customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Parameters:
value- The placeholderTypes to add.- Returns:
- This builder for chaining.
-
addAllPlaceholderTypes
public CustomerFeed.Builder addAllPlaceholderTypes(Iterable<? extends PlaceholderTypeEnum.PlaceholderType> values) Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Parameters:
values- The placeholderTypes to add.- Returns:
- This builder for chaining.
-
clearPlaceholderTypes
Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Returns:
- This builder for chaining.
-
getPlaceholderTypesValueList
Indicates which placeholder types the feed may populate under the connected customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Specified by:
getPlaceholderTypesValueListin interfaceCustomerFeedOrBuilder- 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 customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- Specified by:
getPlaceholderTypesValuein interfaceCustomerFeedOrBuilder- 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 customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- 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 customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- 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 customer. Required.
repeated .google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3;- 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 CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4;- Specified by:
hasMatchingFunctionin interfaceCustomerFeedOrBuilder- Returns:
- Whether the matchingFunction field is set.
-
getMatchingFunction
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4;- Specified by:
getMatchingFunctionin interfaceCustomerFeedOrBuilder- Returns:
- The matchingFunction.
-
setMatchingFunction
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4; -
setMatchingFunction
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4; -
mergeMatchingFunction
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4; -
clearMatchingFunction
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4; -
getMatchingFunctionBuilder
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4; -
getMatchingFunctionOrBuilder
Matching function associated with the CustomerFeed. The matching function is used to filter the set of feed items selected. Required.
.google.ads.googleads.v18.common.MatchingFunction matching_function = 4;- Specified by:
getMatchingFunctionOrBuilderin interfaceCustomerFeedOrBuilder
-
getStatusValue
public int getStatusValue()Output only. Status of the customer feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCustomerFeedOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Status of the customer feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(.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 customer feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCustomerFeedOrBuilder- Returns:
- The status.
-
setStatus
Output only. Status of the customer feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Status of the customer feed. This field is read-only.
.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final CustomerFeed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
-
mergeUnknownFields
public final CustomerFeed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerFeed.Builder>
-