All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v10.resources.ExtensionFeedItem Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/resources/extension_feed_item.proto

package com.google.ads.googleads.v10.resources;

/**
 * 
 * An extension feed item.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.ExtensionFeedItem} */ public final class ExtensionFeedItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.ExtensionFeedItem) ExtensionFeedItemOrBuilder { private static final long serialVersionUID = 0L; // Use ExtensionFeedItem.newBuilder() to construct. private ExtensionFeedItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtensionFeedItem() { resourceName_ = ""; extensionType_ = 0; startDateTime_ = ""; endDateTime_ = ""; adSchedules_ = java.util.Collections.emptyList(); device_ = 0; targetedGeoTargetConstant_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtensionFeedItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ExtensionFeedItemProto.internal_static_google_ads_googleads_v10_resources_ExtensionFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ExtensionFeedItemProto.internal_static_google_ads_googleads_v10_resources_ExtensionFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ExtensionFeedItem.class, com.google.ads.googleads.v10.resources.ExtensionFeedItem.Builder.class); } private int bitField0_; private int extensionCase_ = 0; private java.lang.Object extension_; public enum ExtensionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SITELINK_FEED_ITEM(2), STRUCTURED_SNIPPET_FEED_ITEM(3), APP_FEED_ITEM(7), CALL_FEED_ITEM(8), CALLOUT_FEED_ITEM(9), TEXT_MESSAGE_FEED_ITEM(10), PRICE_FEED_ITEM(11), PROMOTION_FEED_ITEM(12), LOCATION_FEED_ITEM(14), AFFILIATE_LOCATION_FEED_ITEM(15), HOTEL_CALLOUT_FEED_ITEM(23), IMAGE_FEED_ITEM(31), EXTENSION_NOT_SET(0); private final int value; private ExtensionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExtensionCase valueOf(int value) { return forNumber(value); } public static ExtensionCase forNumber(int value) { switch (value) { case 2: return SITELINK_FEED_ITEM; case 3: return STRUCTURED_SNIPPET_FEED_ITEM; case 7: return APP_FEED_ITEM; case 8: return CALL_FEED_ITEM; case 9: return CALLOUT_FEED_ITEM; case 10: return TEXT_MESSAGE_FEED_ITEM; case 11: return PRICE_FEED_ITEM; case 12: return PROMOTION_FEED_ITEM; case 14: return LOCATION_FEED_ITEM; case 15: return AFFILIATE_LOCATION_FEED_ITEM; case 23: return HOTEL_CALLOUT_FEED_ITEM; case 31: return IMAGE_FEED_ITEM; case 0: return EXTENSION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ExtensionCase getExtensionCase() { return ExtensionCase.forNumber( extensionCase_); } private int servingResourceTargetingCase_ = 0; private java.lang.Object servingResourceTargeting_; public enum ServingResourceTargetingCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TARGETED_CAMPAIGN(28), TARGETED_AD_GROUP(29), SERVINGRESOURCETARGETING_NOT_SET(0); private final int value; private ServingResourceTargetingCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ServingResourceTargetingCase valueOf(int value) { return forNumber(value); } public static ServingResourceTargetingCase forNumber(int value) { switch (value) { case 28: return TARGETED_CAMPAIGN; case 29: return TARGETED_AD_GROUP; case 0: return SERVINGRESOURCETARGETING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ServingResourceTargetingCase getServingResourceTargetingCase() { return ServingResourceTargetingCase.forNumber( servingResourceTargetingCase_); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Immutable. The resource name of the extension feed item.
   * Extension feed item resource names have the form:
   * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** *
   * Immutable. The resource name of the extension feed item.
   * Extension feed item resource names have the form:
   * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 25; private long id_; /** *
   * Output only. The ID of this feed item. Read-only.
   * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The ID of this feed item. Read-only.
   * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int EXTENSION_TYPE_FIELD_NUMBER = 13; private int extensionType_; /** *
   * Output only. The extension type of the extension feed item.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for extensionType. */ @java.lang.Override public int getExtensionTypeValue() { return extensionType_; } /** *
   * Output only. The extension type of the extension feed item.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The extensionType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType getExtensionType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType result = com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.valueOf(extensionType_); return result == null ? com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.UNRECOGNIZED : result; } public static final int START_DATE_TIME_FIELD_NUMBER = 26; private volatile java.lang.Object startDateTime_; /** *
   * Start time in which this feed item is effective and can begin serving. The
   * time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string start_date_time = 26; * @return Whether the startDateTime field is set. */ @java.lang.Override public boolean hasStartDateTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Start time in which this feed item is effective and can begin serving. The
   * time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string start_date_time = 26; * @return The startDateTime. */ @java.lang.Override public java.lang.String getStartDateTime() { java.lang.Object ref = startDateTime_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startDateTime_ = s; return s; } } /** *
   * Start time in which this feed item is effective and can begin serving. The
   * time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string start_date_time = 26; * @return The bytes for startDateTime. */ @java.lang.Override public com.google.protobuf.ByteString getStartDateTimeBytes() { java.lang.Object ref = startDateTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int END_DATE_TIME_FIELD_NUMBER = 27; private volatile java.lang.Object endDateTime_; /** *
   * End time in which this feed item is no longer effective and will stop
   * serving. The time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string end_date_time = 27; * @return Whether the endDateTime field is set. */ @java.lang.Override public boolean hasEndDateTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * End time in which this feed item is no longer effective and will stop
   * serving. The time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string end_date_time = 27; * @return The endDateTime. */ @java.lang.Override public java.lang.String getEndDateTime() { java.lang.Object ref = endDateTime_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endDateTime_ = s; return s; } } /** *
   * End time in which this feed item is no longer effective and will stop
   * serving. The time is in the customer's time zone.
   * The format is "YYYY-MM-DD HH:MM:SS".
   * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
   * 
* * optional string end_date_time = 27; * @return The bytes for endDateTime. */ @java.lang.Override public com.google.protobuf.ByteString getEndDateTimeBytes() { java.lang.Object ref = endDateTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AD_SCHEDULES_FIELD_NUMBER = 16; private java.util.List adSchedules_; /** *
   * List of non-overlapping schedules specifying all time intervals
   * for which the feed item may serve. There can be a maximum of 6 schedules
   * per day.
   * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ @java.lang.Override public java.util.List getAdSchedulesList() { return adSchedules_; } /** *
   * List of non-overlapping schedules specifying all time intervals
   * for which the feed item may serve. There can be a maximum of 6 schedules
   * per day.
   * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ @java.lang.Override public java.util.List getAdSchedulesOrBuilderList() { return adSchedules_; } /** *
   * List of non-overlapping schedules specifying all time intervals
   * for which the feed item may serve. There can be a maximum of 6 schedules
   * per day.
   * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ @java.lang.Override public int getAdSchedulesCount() { return adSchedules_.size(); } /** *
   * List of non-overlapping schedules specifying all time intervals
   * for which the feed item may serve. There can be a maximum of 6 schedules
   * per day.
   * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedules(int index) { return adSchedules_.get(index); } /** *
   * List of non-overlapping schedules specifying all time intervals
   * for which the feed item may serve. There can be a maximum of 6 schedules
   * per day.
   * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdSchedulesOrBuilder( int index) { return adSchedules_.get(index); } public static final int DEVICE_FIELD_NUMBER = 17; private int device_; /** *
   * The targeted device.
   * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @return The enum numeric value on the wire for device. */ @java.lang.Override public int getDeviceValue() { return device_; } /** *
   * The targeted device.
   * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @return The device. */ @java.lang.Override public com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice getDevice() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice result = com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.valueOf(device_); return result == null ? com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.UNRECOGNIZED : result; } public static final int TARGETED_GEO_TARGET_CONSTANT_FIELD_NUMBER = 30; private volatile java.lang.Object targetedGeoTargetConstant_; /** *
   * The targeted geo target constant.
   * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return Whether the targetedGeoTargetConstant field is set. */ @java.lang.Override public boolean hasTargetedGeoTargetConstant() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The targeted geo target constant.
   * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return The targetedGeoTargetConstant. */ @java.lang.Override public java.lang.String getTargetedGeoTargetConstant() { java.lang.Object ref = targetedGeoTargetConstant_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetedGeoTargetConstant_ = s; return s; } } /** *
   * The targeted geo target constant.
   * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedGeoTargetConstant. */ @java.lang.Override public com.google.protobuf.ByteString getTargetedGeoTargetConstantBytes() { java.lang.Object ref = targetedGeoTargetConstant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetedGeoTargetConstant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TARGETED_KEYWORD_FIELD_NUMBER = 22; private com.google.ads.googleads.v10.common.KeywordInfo targetedKeyword_; /** *
   * The targeted keyword.
   * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; * @return Whether the targetedKeyword field is set. */ @java.lang.Override public boolean hasTargetedKeyword() { return targetedKeyword_ != null; } /** *
   * The targeted keyword.
   * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; * @return The targetedKeyword. */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfo getTargetedKeyword() { return targetedKeyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : targetedKeyword_; } /** *
   * The targeted keyword.
   * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getTargetedKeywordOrBuilder() { return getTargetedKeyword(); } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** *
   * Output only. Status of the feed item.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
   * Output only. Status of the feed item.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus result = com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNRECOGNIZED : result; } public static final int SITELINK_FEED_ITEM_FIELD_NUMBER = 2; /** *
   * Sitelink extension.
   * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; * @return Whether the sitelinkFeedItem field is set. */ @java.lang.Override public boolean hasSitelinkFeedItem() { return extensionCase_ == 2; } /** *
   * Sitelink extension.
   * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; * @return The sitelinkFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItem getSitelinkFeedItem() { if (extensionCase_ == 2) { return (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_; } return com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } /** *
   * Sitelink extension.
   * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getSitelinkFeedItemOrBuilder() { if (extensionCase_ == 2) { return (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_; } return com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } public static final int STRUCTURED_SNIPPET_FEED_ITEM_FIELD_NUMBER = 3; /** *
   * Structured snippet extension.
   * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; * @return Whether the structuredSnippetFeedItem field is set. */ @java.lang.Override public boolean hasStructuredSnippetFeedItem() { return extensionCase_ == 3; } /** *
   * Structured snippet extension.
   * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; * @return The structuredSnippetFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.StructuredSnippetFeedItem getStructuredSnippetFeedItem() { if (extensionCase_ == 3) { return (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_; } return com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } /** *
   * Structured snippet extension.
   * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.StructuredSnippetFeedItemOrBuilder getStructuredSnippetFeedItemOrBuilder() { if (extensionCase_ == 3) { return (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_; } return com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } public static final int APP_FEED_ITEM_FIELD_NUMBER = 7; /** *
   * App extension.
   * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; * @return Whether the appFeedItem field is set. */ @java.lang.Override public boolean hasAppFeedItem() { return extensionCase_ == 7; } /** *
   * App extension.
   * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; * @return The appFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.AppFeedItem getAppFeedItem() { if (extensionCase_ == 7) { return (com.google.ads.googleads.v10.common.AppFeedItem) extension_; } return com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } /** *
   * App extension.
   * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ @java.lang.Override public com.google.ads.googleads.v10.common.AppFeedItemOrBuilder getAppFeedItemOrBuilder() { if (extensionCase_ == 7) { return (com.google.ads.googleads.v10.common.AppFeedItem) extension_; } return com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } public static final int CALL_FEED_ITEM_FIELD_NUMBER = 8; /** *
   * Call extension.
   * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; * @return Whether the callFeedItem field is set. */ @java.lang.Override public boolean hasCallFeedItem() { return extensionCase_ == 8; } /** *
   * Call extension.
   * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; * @return The callFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem getCallFeedItem() { if (extensionCase_ == 8) { return (com.google.ads.googleads.v10.common.CallFeedItem) extension_; } return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } /** *
   * Call extension.
   * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getCallFeedItemOrBuilder() { if (extensionCase_ == 8) { return (com.google.ads.googleads.v10.common.CallFeedItem) extension_; } return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } public static final int CALLOUT_FEED_ITEM_FIELD_NUMBER = 9; /** *
   * Callout extension.
   * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; * @return Whether the calloutFeedItem field is set. */ @java.lang.Override public boolean hasCalloutFeedItem() { return extensionCase_ == 9; } /** *
   * Callout extension.
   * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; * @return The calloutFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItem getCalloutFeedItem() { if (extensionCase_ == 9) { return (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } /** *
   * Callout extension.
   * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getCalloutFeedItemOrBuilder() { if (extensionCase_ == 9) { return (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } public static final int TEXT_MESSAGE_FEED_ITEM_FIELD_NUMBER = 10; /** *
   * Text message extension.
   * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; * @return Whether the textMessageFeedItem field is set. */ @java.lang.Override public boolean hasTextMessageFeedItem() { return extensionCase_ == 10; } /** *
   * Text message extension.
   * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; * @return The textMessageFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.TextMessageFeedItem getTextMessageFeedItem() { if (extensionCase_ == 10) { return (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_; } return com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } /** *
   * Text message extension.
   * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ @java.lang.Override public com.google.ads.googleads.v10.common.TextMessageFeedItemOrBuilder getTextMessageFeedItemOrBuilder() { if (extensionCase_ == 10) { return (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_; } return com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } public static final int PRICE_FEED_ITEM_FIELD_NUMBER = 11; /** *
   * Price extension.
   * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; * @return Whether the priceFeedItem field is set. */ @java.lang.Override public boolean hasPriceFeedItem() { return extensionCase_ == 11; } /** *
   * Price extension.
   * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; * @return The priceFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.PriceFeedItem getPriceFeedItem() { if (extensionCase_ == 11) { return (com.google.ads.googleads.v10.common.PriceFeedItem) extension_; } return com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } /** *
   * Price extension.
   * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ @java.lang.Override public com.google.ads.googleads.v10.common.PriceFeedItemOrBuilder getPriceFeedItemOrBuilder() { if (extensionCase_ == 11) { return (com.google.ads.googleads.v10.common.PriceFeedItem) extension_; } return com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } public static final int PROMOTION_FEED_ITEM_FIELD_NUMBER = 12; /** *
   * Promotion extension.
   * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; * @return Whether the promotionFeedItem field is set. */ @java.lang.Override public boolean hasPromotionFeedItem() { return extensionCase_ == 12; } /** *
   * Promotion extension.
   * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; * @return The promotionFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.PromotionFeedItem getPromotionFeedItem() { if (extensionCase_ == 12) { return (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_; } return com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } /** *
   * Promotion extension.
   * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ @java.lang.Override public com.google.ads.googleads.v10.common.PromotionFeedItemOrBuilder getPromotionFeedItemOrBuilder() { if (extensionCase_ == 12) { return (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_; } return com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } public static final int LOCATION_FEED_ITEM_FIELD_NUMBER = 14; /** *
   * Output only. Location extension. Locations are synced from a Business Profile into a
   * feed. This field is read-only.
   * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the locationFeedItem field is set. */ @java.lang.Override public boolean hasLocationFeedItem() { return extensionCase_ == 14; } /** *
   * Output only. Location extension. Locations are synced from a Business Profile into a
   * feed. This field is read-only.
   * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The locationFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.LocationFeedItem getLocationFeedItem() { if (extensionCase_ == 14) { return (com.google.ads.googleads.v10.common.LocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } /** *
   * Output only. Location extension. Locations are synced from a Business Profile into a
   * feed. This field is read-only.
   * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.LocationFeedItemOrBuilder getLocationFeedItemOrBuilder() { if (extensionCase_ == 14) { return (com.google.ads.googleads.v10.common.LocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } public static final int AFFILIATE_LOCATION_FEED_ITEM_FIELD_NUMBER = 15; /** *
   * Output only. Affiliate location extension. Feed locations are populated by Google Ads
   * based on a chain ID.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the affiliateLocationFeedItem field is set. */ @java.lang.Override public boolean hasAffiliateLocationFeedItem() { return extensionCase_ == 15; } /** *
   * Output only. Affiliate location extension. Feed locations are populated by Google Ads
   * based on a chain ID.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The affiliateLocationFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.AffiliateLocationFeedItem getAffiliateLocationFeedItem() { if (extensionCase_ == 15) { return (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } /** *
   * Output only. Affiliate location extension. Feed locations are populated by Google Ads
   * based on a chain ID.
   * This field is read-only.
   * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.AffiliateLocationFeedItemOrBuilder getAffiliateLocationFeedItemOrBuilder() { if (extensionCase_ == 15) { return (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } public static final int HOTEL_CALLOUT_FEED_ITEM_FIELD_NUMBER = 23; /** *
   * Hotel Callout extension.
   * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; * @return Whether the hotelCalloutFeedItem field is set. */ @java.lang.Override public boolean hasHotelCalloutFeedItem() { return extensionCase_ == 23; } /** *
   * Hotel Callout extension.
   * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; * @return The hotelCalloutFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.HotelCalloutFeedItem getHotelCalloutFeedItem() { if (extensionCase_ == 23) { return (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } /** *
   * Hotel Callout extension.
   * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ @java.lang.Override public com.google.ads.googleads.v10.common.HotelCalloutFeedItemOrBuilder getHotelCalloutFeedItemOrBuilder() { if (extensionCase_ == 23) { return (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } public static final int IMAGE_FEED_ITEM_FIELD_NUMBER = 31; /** *
   * Immutable. Advertiser provided image extension.
   * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the imageFeedItem field is set. */ @java.lang.Override public boolean hasImageFeedItem() { return extensionCase_ == 31; } /** *
   * Immutable. Advertiser provided image extension.
   * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; * @return The imageFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.ImageFeedItem getImageFeedItem() { if (extensionCase_ == 31) { return (com.google.ads.googleads.v10.common.ImageFeedItem) extension_; } return com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } /** *
   * Immutable. Advertiser provided image extension.
   * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v10.common.ImageFeedItemOrBuilder getImageFeedItemOrBuilder() { if (extensionCase_ == 31) { return (com.google.ads.googleads.v10.common.ImageFeedItem) extension_; } return com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } public static final int TARGETED_CAMPAIGN_FIELD_NUMBER = 28; /** *
   * The targeted campaign.
   * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return Whether the targetedCampaign field is set. */ public boolean hasTargetedCampaign() { return servingResourceTargetingCase_ == 28; } /** *
   * The targeted campaign.
   * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return The targetedCampaign. */ public java.lang.String getTargetedCampaign() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 28) { ref = servingResourceTargeting_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (servingResourceTargetingCase_ == 28) { servingResourceTargeting_ = s; } return s; } } /** *
   * The targeted campaign.
   * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedCampaign. */ public com.google.protobuf.ByteString getTargetedCampaignBytes() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 28) { ref = servingResourceTargeting_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (servingResourceTargetingCase_ == 28) { servingResourceTargeting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TARGETED_AD_GROUP_FIELD_NUMBER = 29; /** *
   * The targeted ad group.
   * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return Whether the targetedAdGroup field is set. */ public boolean hasTargetedAdGroup() { return servingResourceTargetingCase_ == 29; } /** *
   * The targeted ad group.
   * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return The targetedAdGroup. */ public java.lang.String getTargetedAdGroup() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 29) { ref = servingResourceTargeting_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (servingResourceTargetingCase_ == 29) { servingResourceTargeting_ = s; } return s; } } /** *
   * The targeted ad group.
   * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedAdGroup. */ public com.google.protobuf.ByteString getTargetedAdGroupBytes() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 29) { ref = servingResourceTargeting_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (servingResourceTargetingCase_ == 29) { servingResourceTargeting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (extensionCase_ == 2) { output.writeMessage(2, (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_); } if (extensionCase_ == 3) { output.writeMessage(3, (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_); } if (status_ != com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNSPECIFIED.getNumber()) { output.writeEnum(4, status_); } if (extensionCase_ == 7) { output.writeMessage(7, (com.google.ads.googleads.v10.common.AppFeedItem) extension_); } if (extensionCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v10.common.CallFeedItem) extension_); } if (extensionCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_); } if (extensionCase_ == 10) { output.writeMessage(10, (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_); } if (extensionCase_ == 11) { output.writeMessage(11, (com.google.ads.googleads.v10.common.PriceFeedItem) extension_); } if (extensionCase_ == 12) { output.writeMessage(12, (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_); } if (extensionType_ != com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.UNSPECIFIED.getNumber()) { output.writeEnum(13, extensionType_); } if (extensionCase_ == 14) { output.writeMessage(14, (com.google.ads.googleads.v10.common.LocationFeedItem) extension_); } if (extensionCase_ == 15) { output.writeMessage(15, (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_); } for (int i = 0; i < adSchedules_.size(); i++) { output.writeMessage(16, adSchedules_.get(i)); } if (device_ != com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.UNSPECIFIED.getNumber()) { output.writeEnum(17, device_); } if (targetedKeyword_ != null) { output.writeMessage(22, getTargetedKeyword()); } if (extensionCase_ == 23) { output.writeMessage(23, (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(25, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, startDateTime_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, endDateTime_); } if (servingResourceTargetingCase_ == 28) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, servingResourceTargeting_); } if (servingResourceTargetingCase_ == 29) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, servingResourceTargeting_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, targetedGeoTargetConstant_); } if (extensionCase_ == 31) { output.writeMessage(31, (com.google.ads.googleads.v10.common.ImageFeedItem) extension_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (extensionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_); } if (extensionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_); } if (status_ != com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, status_); } if (extensionCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.ads.googleads.v10.common.AppFeedItem) extension_); } if (extensionCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v10.common.CallFeedItem) extension_); } if (extensionCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_); } if (extensionCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_); } if (extensionCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.google.ads.googleads.v10.common.PriceFeedItem) extension_); } if (extensionCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_); } if (extensionType_ != com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, extensionType_); } if (extensionCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.google.ads.googleads.v10.common.LocationFeedItem) extension_); } if (extensionCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_); } for (int i = 0; i < adSchedules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, adSchedules_.get(i)); } if (device_ != com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, device_); } if (targetedKeyword_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, getTargetedKeyword()); } if (extensionCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(25, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, startDateTime_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, endDateTime_); } if (servingResourceTargetingCase_ == 28) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, servingResourceTargeting_); } if (servingResourceTargetingCase_ == 29) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, servingResourceTargeting_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, targetedGeoTargetConstant_); } if (extensionCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.google.ads.googleads.v10.common.ImageFeedItem) extension_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.ExtensionFeedItem)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ExtensionFeedItem other = (com.google.ads.googleads.v10.resources.ExtensionFeedItem) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (extensionType_ != other.extensionType_) return false; if (hasStartDateTime() != other.hasStartDateTime()) return false; if (hasStartDateTime()) { if (!getStartDateTime() .equals(other.getStartDateTime())) return false; } if (hasEndDateTime() != other.hasEndDateTime()) return false; if (hasEndDateTime()) { if (!getEndDateTime() .equals(other.getEndDateTime())) return false; } if (!getAdSchedulesList() .equals(other.getAdSchedulesList())) return false; if (device_ != other.device_) return false; if (hasTargetedGeoTargetConstant() != other.hasTargetedGeoTargetConstant()) return false; if (hasTargetedGeoTargetConstant()) { if (!getTargetedGeoTargetConstant() .equals(other.getTargetedGeoTargetConstant())) return false; } if (hasTargetedKeyword() != other.hasTargetedKeyword()) return false; if (hasTargetedKeyword()) { if (!getTargetedKeyword() .equals(other.getTargetedKeyword())) return false; } if (status_ != other.status_) return false; if (!getExtensionCase().equals(other.getExtensionCase())) return false; switch (extensionCase_) { case 2: if (!getSitelinkFeedItem() .equals(other.getSitelinkFeedItem())) return false; break; case 3: if (!getStructuredSnippetFeedItem() .equals(other.getStructuredSnippetFeedItem())) return false; break; case 7: if (!getAppFeedItem() .equals(other.getAppFeedItem())) return false; break; case 8: if (!getCallFeedItem() .equals(other.getCallFeedItem())) return false; break; case 9: if (!getCalloutFeedItem() .equals(other.getCalloutFeedItem())) return false; break; case 10: if (!getTextMessageFeedItem() .equals(other.getTextMessageFeedItem())) return false; break; case 11: if (!getPriceFeedItem() .equals(other.getPriceFeedItem())) return false; break; case 12: if (!getPromotionFeedItem() .equals(other.getPromotionFeedItem())) return false; break; case 14: if (!getLocationFeedItem() .equals(other.getLocationFeedItem())) return false; break; case 15: if (!getAffiliateLocationFeedItem() .equals(other.getAffiliateLocationFeedItem())) return false; break; case 23: if (!getHotelCalloutFeedItem() .equals(other.getHotelCalloutFeedItem())) return false; break; case 31: if (!getImageFeedItem() .equals(other.getImageFeedItem())) return false; break; case 0: default: } if (!getServingResourceTargetingCase().equals(other.getServingResourceTargetingCase())) return false; switch (servingResourceTargetingCase_) { case 28: if (!getTargetedCampaign() .equals(other.getTargetedCampaign())) return false; break; case 29: if (!getTargetedAdGroup() .equals(other.getTargetedAdGroup())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } hash = (37 * hash) + EXTENSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + extensionType_; if (hasStartDateTime()) { hash = (37 * hash) + START_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartDateTime().hashCode(); } if (hasEndDateTime()) { hash = (37 * hash) + END_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndDateTime().hashCode(); } if (getAdSchedulesCount() > 0) { hash = (37 * hash) + AD_SCHEDULES_FIELD_NUMBER; hash = (53 * hash) + getAdSchedulesList().hashCode(); } hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + device_; if (hasTargetedGeoTargetConstant()) { hash = (37 * hash) + TARGETED_GEO_TARGET_CONSTANT_FIELD_NUMBER; hash = (53 * hash) + getTargetedGeoTargetConstant().hashCode(); } if (hasTargetedKeyword()) { hash = (37 * hash) + TARGETED_KEYWORD_FIELD_NUMBER; hash = (53 * hash) + getTargetedKeyword().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; switch (extensionCase_) { case 2: hash = (37 * hash) + SITELINK_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getSitelinkFeedItem().hashCode(); break; case 3: hash = (37 * hash) + STRUCTURED_SNIPPET_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getStructuredSnippetFeedItem().hashCode(); break; case 7: hash = (37 * hash) + APP_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getAppFeedItem().hashCode(); break; case 8: hash = (37 * hash) + CALL_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getCallFeedItem().hashCode(); break; case 9: hash = (37 * hash) + CALLOUT_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getCalloutFeedItem().hashCode(); break; case 10: hash = (37 * hash) + TEXT_MESSAGE_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getTextMessageFeedItem().hashCode(); break; case 11: hash = (37 * hash) + PRICE_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getPriceFeedItem().hashCode(); break; case 12: hash = (37 * hash) + PROMOTION_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getPromotionFeedItem().hashCode(); break; case 14: hash = (37 * hash) + LOCATION_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getLocationFeedItem().hashCode(); break; case 15: hash = (37 * hash) + AFFILIATE_LOCATION_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getAffiliateLocationFeedItem().hashCode(); break; case 23: hash = (37 * hash) + HOTEL_CALLOUT_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getHotelCalloutFeedItem().hashCode(); break; case 31: hash = (37 * hash) + IMAGE_FEED_ITEM_FIELD_NUMBER; hash = (53 * hash) + getImageFeedItem().hashCode(); break; case 0: default: } switch (servingResourceTargetingCase_) { case 28: hash = (37 * hash) + TARGETED_CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getTargetedCampaign().hashCode(); break; case 29: hash = (37 * hash) + TARGETED_AD_GROUP_FIELD_NUMBER; hash = (53 * hash) + getTargetedAdGroup().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.ExtensionFeedItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * An extension feed item.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.ExtensionFeedItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ExtensionFeedItem) com.google.ads.googleads.v10.resources.ExtensionFeedItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ExtensionFeedItemProto.internal_static_google_ads_googleads_v10_resources_ExtensionFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ExtensionFeedItemProto.internal_static_google_ads_googleads_v10_resources_ExtensionFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ExtensionFeedItem.class, com.google.ads.googleads.v10.resources.ExtensionFeedItem.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ExtensionFeedItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); extensionType_ = 0; startDateTime_ = ""; bitField0_ = (bitField0_ & ~0x00000002); endDateTime_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (adSchedulesBuilder_ == null) { adSchedules_ = java.util.Collections.emptyList(); } else { adSchedules_ = null; adSchedulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); device_ = 0; targetedGeoTargetConstant_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (targetedKeywordBuilder_ == null) { targetedKeyword_ = null; } else { targetedKeyword_ = null; targetedKeywordBuilder_ = null; } status_ = 0; if (sitelinkFeedItemBuilder_ != null) { sitelinkFeedItemBuilder_.clear(); } if (structuredSnippetFeedItemBuilder_ != null) { structuredSnippetFeedItemBuilder_.clear(); } if (appFeedItemBuilder_ != null) { appFeedItemBuilder_.clear(); } if (callFeedItemBuilder_ != null) { callFeedItemBuilder_.clear(); } if (calloutFeedItemBuilder_ != null) { calloutFeedItemBuilder_.clear(); } if (textMessageFeedItemBuilder_ != null) { textMessageFeedItemBuilder_.clear(); } if (priceFeedItemBuilder_ != null) { priceFeedItemBuilder_.clear(); } if (promotionFeedItemBuilder_ != null) { promotionFeedItemBuilder_.clear(); } if (locationFeedItemBuilder_ != null) { locationFeedItemBuilder_.clear(); } if (affiliateLocationFeedItemBuilder_ != null) { affiliateLocationFeedItemBuilder_.clear(); } if (hotelCalloutFeedItemBuilder_ != null) { hotelCalloutFeedItemBuilder_.clear(); } if (imageFeedItemBuilder_ != null) { imageFeedItemBuilder_.clear(); } extensionCase_ = 0; extension_ = null; servingResourceTargetingCase_ = 0; servingResourceTargeting_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.ExtensionFeedItemProto.internal_static_google_ads_googleads_v10_resources_ExtensionFeedItem_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ExtensionFeedItem getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ExtensionFeedItem.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ExtensionFeedItem build() { com.google.ads.googleads.v10.resources.ExtensionFeedItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ExtensionFeedItem buildPartial() { com.google.ads.googleads.v10.resources.ExtensionFeedItem result = new com.google.ads.googleads.v10.resources.ExtensionFeedItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.resourceName_ = resourceName_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } result.extensionType_ = extensionType_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.startDateTime_ = startDateTime_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.endDateTime_ = endDateTime_; if (adSchedulesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { adSchedules_ = java.util.Collections.unmodifiableList(adSchedules_); bitField0_ = (bitField0_ & ~0x00000008); } result.adSchedules_ = adSchedules_; } else { result.adSchedules_ = adSchedulesBuilder_.build(); } result.device_ = device_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000008; } result.targetedGeoTargetConstant_ = targetedGeoTargetConstant_; if (targetedKeywordBuilder_ == null) { result.targetedKeyword_ = targetedKeyword_; } else { result.targetedKeyword_ = targetedKeywordBuilder_.build(); } result.status_ = status_; if (extensionCase_ == 2) { if (sitelinkFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = sitelinkFeedItemBuilder_.build(); } } if (extensionCase_ == 3) { if (structuredSnippetFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = structuredSnippetFeedItemBuilder_.build(); } } if (extensionCase_ == 7) { if (appFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = appFeedItemBuilder_.build(); } } if (extensionCase_ == 8) { if (callFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = callFeedItemBuilder_.build(); } } if (extensionCase_ == 9) { if (calloutFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = calloutFeedItemBuilder_.build(); } } if (extensionCase_ == 10) { if (textMessageFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = textMessageFeedItemBuilder_.build(); } } if (extensionCase_ == 11) { if (priceFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = priceFeedItemBuilder_.build(); } } if (extensionCase_ == 12) { if (promotionFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = promotionFeedItemBuilder_.build(); } } if (extensionCase_ == 14) { if (locationFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = locationFeedItemBuilder_.build(); } } if (extensionCase_ == 15) { if (affiliateLocationFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = affiliateLocationFeedItemBuilder_.build(); } } if (extensionCase_ == 23) { if (hotelCalloutFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = hotelCalloutFeedItemBuilder_.build(); } } if (extensionCase_ == 31) { if (imageFeedItemBuilder_ == null) { result.extension_ = extension_; } else { result.extension_ = imageFeedItemBuilder_.build(); } } if (servingResourceTargetingCase_ == 28) { result.servingResourceTargeting_ = servingResourceTargeting_; } if (servingResourceTargetingCase_ == 29) { result.servingResourceTargeting_ = servingResourceTargeting_; } result.bitField0_ = to_bitField0_; result.extensionCase_ = extensionCase_; result.servingResourceTargetingCase_ = servingResourceTargetingCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ExtensionFeedItem) { return mergeFrom((com.google.ads.googleads.v10.resources.ExtensionFeedItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ExtensionFeedItem other) { if (other == com.google.ads.googleads.v10.resources.ExtensionFeedItem.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.extensionType_ != 0) { setExtensionTypeValue(other.getExtensionTypeValue()); } if (other.hasStartDateTime()) { bitField0_ |= 0x00000002; startDateTime_ = other.startDateTime_; onChanged(); } if (other.hasEndDateTime()) { bitField0_ |= 0x00000004; endDateTime_ = other.endDateTime_; onChanged(); } if (adSchedulesBuilder_ == null) { if (!other.adSchedules_.isEmpty()) { if (adSchedules_.isEmpty()) { adSchedules_ = other.adSchedules_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAdSchedulesIsMutable(); adSchedules_.addAll(other.adSchedules_); } onChanged(); } } else { if (!other.adSchedules_.isEmpty()) { if (adSchedulesBuilder_.isEmpty()) { adSchedulesBuilder_.dispose(); adSchedulesBuilder_ = null; adSchedules_ = other.adSchedules_; bitField0_ = (bitField0_ & ~0x00000008); adSchedulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAdSchedulesFieldBuilder() : null; } else { adSchedulesBuilder_.addAllMessages(other.adSchedules_); } } } if (other.device_ != 0) { setDeviceValue(other.getDeviceValue()); } if (other.hasTargetedGeoTargetConstant()) { bitField0_ |= 0x00000010; targetedGeoTargetConstant_ = other.targetedGeoTargetConstant_; onChanged(); } if (other.hasTargetedKeyword()) { mergeTargetedKeyword(other.getTargetedKeyword()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } switch (other.getExtensionCase()) { case SITELINK_FEED_ITEM: { mergeSitelinkFeedItem(other.getSitelinkFeedItem()); break; } case STRUCTURED_SNIPPET_FEED_ITEM: { mergeStructuredSnippetFeedItem(other.getStructuredSnippetFeedItem()); break; } case APP_FEED_ITEM: { mergeAppFeedItem(other.getAppFeedItem()); break; } case CALL_FEED_ITEM: { mergeCallFeedItem(other.getCallFeedItem()); break; } case CALLOUT_FEED_ITEM: { mergeCalloutFeedItem(other.getCalloutFeedItem()); break; } case TEXT_MESSAGE_FEED_ITEM: { mergeTextMessageFeedItem(other.getTextMessageFeedItem()); break; } case PRICE_FEED_ITEM: { mergePriceFeedItem(other.getPriceFeedItem()); break; } case PROMOTION_FEED_ITEM: { mergePromotionFeedItem(other.getPromotionFeedItem()); break; } case LOCATION_FEED_ITEM: { mergeLocationFeedItem(other.getLocationFeedItem()); break; } case AFFILIATE_LOCATION_FEED_ITEM: { mergeAffiliateLocationFeedItem(other.getAffiliateLocationFeedItem()); break; } case HOTEL_CALLOUT_FEED_ITEM: { mergeHotelCalloutFeedItem(other.getHotelCalloutFeedItem()); break; } case IMAGE_FEED_ITEM: { mergeImageFeedItem(other.getImageFeedItem()); break; } case EXTENSION_NOT_SET: { break; } } switch (other.getServingResourceTargetingCase()) { case TARGETED_CAMPAIGN: { servingResourceTargetingCase_ = 28; servingResourceTargeting_ = other.servingResourceTargeting_; onChanged(); break; } case TARGETED_AD_GROUP: { servingResourceTargetingCase_ = 29; servingResourceTargeting_ = other.servingResourceTargeting_; onChanged(); break; } case SERVINGRESOURCETARGETING_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getSitelinkFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 2; break; } // case 18 case 26: { input.readMessage( getStructuredSnippetFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 3; break; } // case 26 case 32: { status_ = input.readEnum(); break; } // case 32 case 58: { input.readMessage( getAppFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 7; break; } // case 58 case 66: { input.readMessage( getCallFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 8; break; } // case 66 case 74: { input.readMessage( getCalloutFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 9; break; } // case 74 case 82: { input.readMessage( getTextMessageFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 10; break; } // case 82 case 90: { input.readMessage( getPriceFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 11; break; } // case 90 case 98: { input.readMessage( getPromotionFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 12; break; } // case 98 case 104: { extensionType_ = input.readEnum(); break; } // case 104 case 114: { input.readMessage( getLocationFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 14; break; } // case 114 case 122: { input.readMessage( getAffiliateLocationFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 15; break; } // case 122 case 130: { com.google.ads.googleads.v10.common.AdScheduleInfo m = input.readMessage( com.google.ads.googleads.v10.common.AdScheduleInfo.parser(), extensionRegistry); if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); adSchedules_.add(m); } else { adSchedulesBuilder_.addMessage(m); } break; } // case 130 case 136: { device_ = input.readEnum(); break; } // case 136 case 178: { input.readMessage( getTargetedKeywordFieldBuilder().getBuilder(), extensionRegistry); break; } // case 178 case 186: { input.readMessage( getHotelCalloutFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 23; break; } // case 186 case 200: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 200 case 210: { startDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 210 case 218: { endDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 218 case 226: { java.lang.String s = input.readStringRequireUtf8(); servingResourceTargetingCase_ = 28; servingResourceTargeting_ = s; break; } // case 226 case 234: { java.lang.String s = input.readStringRequireUtf8(); servingResourceTargetingCase_ = 29; servingResourceTargeting_ = s; break; } // case 234 case 242: { targetedGeoTargetConstant_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 242 case 250: { input.readMessage( getImageFeedItemFieldBuilder().getBuilder(), extensionRegistry); extensionCase_ = 31; break; } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int extensionCase_ = 0; private java.lang.Object extension_; public ExtensionCase getExtensionCase() { return ExtensionCase.forNumber( extensionCase_); } public Builder clearExtension() { extensionCase_ = 0; extension_ = null; onChanged(); return this; } private int servingResourceTargetingCase_ = 0; private java.lang.Object servingResourceTargeting_; public ServingResourceTargetingCase getServingResourceTargetingCase() { return ServingResourceTargetingCase.forNumber( servingResourceTargetingCase_); } public Builder clearServingResourceTargeting() { servingResourceTargetingCase_ = 0; servingResourceTargeting_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the extension feed item.
     * Extension feed item resource names have the form:
     * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The resource name of the extension feed item.
     * Extension feed item resource names have the form:
     * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The resource name of the extension feed item.
     * Extension feed item resource names have the form:
     * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; onChanged(); return this; } /** *
     * Immutable. The resource name of the extension feed item.
     * Extension feed item resource names have the form:
     * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Immutable. The resource name of the extension feed item.
     * Extension feed item resource names have the form:
     * `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; onChanged(); return this; } private long id_ ; /** *
     * Output only. The ID of this feed item. Read-only.
     * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The ID of this feed item. Read-only.
     * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of this feed item. Read-only.
     * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * Output only. The ID of this feed item. Read-only.
     * 
* * optional int64 id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private int extensionType_ = 0; /** *
     * Output only. The extension type of the extension feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for extensionType. */ @java.lang.Override public int getExtensionTypeValue() { return extensionType_; } /** *
     * Output only. The extension type of the extension feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for extensionType to set. * @return This builder for chaining. */ public Builder setExtensionTypeValue(int value) { extensionType_ = value; onChanged(); return this; } /** *
     * Output only. The extension type of the extension feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The extensionType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType getExtensionType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType result = com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.valueOf(extensionType_); return result == null ? com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType.UNRECOGNIZED : result; } /** *
     * Output only. The extension type of the extension feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The extensionType to set. * @return This builder for chaining. */ public Builder setExtensionType(com.google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType value) { if (value == null) { throw new NullPointerException(); } extensionType_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The extension type of the extension feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExtensionType() { extensionType_ = 0; onChanged(); return this; } private java.lang.Object startDateTime_ = ""; /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @return Whether the startDateTime field is set. */ public boolean hasStartDateTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @return The startDateTime. */ public java.lang.String getStartDateTime() { java.lang.Object ref = startDateTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startDateTime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @return The bytes for startDateTime. */ public com.google.protobuf.ByteString getStartDateTimeBytes() { java.lang.Object ref = startDateTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @param value The startDateTime to set. * @return This builder for chaining. */ public Builder setStartDateTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; startDateTime_ = value; onChanged(); return this; } /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @return This builder for chaining. */ public Builder clearStartDateTime() { bitField0_ = (bitField0_ & ~0x00000002); startDateTime_ = getDefaultInstance().getStartDateTime(); onChanged(); return this; } /** *
     * Start time in which this feed item is effective and can begin serving. The
     * time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string start_date_time = 26; * @param value The bytes for startDateTime to set. * @return This builder for chaining. */ public Builder setStartDateTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; startDateTime_ = value; onChanged(); return this; } private java.lang.Object endDateTime_ = ""; /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @return Whether the endDateTime field is set. */ public boolean hasEndDateTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @return The endDateTime. */ public java.lang.String getEndDateTime() { java.lang.Object ref = endDateTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endDateTime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @return The bytes for endDateTime. */ public com.google.protobuf.ByteString getEndDateTimeBytes() { java.lang.Object ref = endDateTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @param value The endDateTime to set. * @return This builder for chaining. */ public Builder setEndDateTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; endDateTime_ = value; onChanged(); return this; } /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @return This builder for chaining. */ public Builder clearEndDateTime() { bitField0_ = (bitField0_ & ~0x00000004); endDateTime_ = getDefaultInstance().getEndDateTime(); onChanged(); return this; } /** *
     * End time in which this feed item is no longer effective and will stop
     * serving. The time is in the customer's time zone.
     * The format is "YYYY-MM-DD HH:MM:SS".
     * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
     * 
* * optional string end_date_time = 27; * @param value The bytes for endDateTime to set. * @return This builder for chaining. */ public Builder setEndDateTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; endDateTime_ = value; onChanged(); return this; } private java.util.List adSchedules_ = java.util.Collections.emptyList(); private void ensureAdSchedulesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { adSchedules_ = new java.util.ArrayList(adSchedules_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder> adSchedulesBuilder_; /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public java.util.List getAdSchedulesList() { if (adSchedulesBuilder_ == null) { return java.util.Collections.unmodifiableList(adSchedules_); } else { return adSchedulesBuilder_.getMessageList(); } } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public int getAdSchedulesCount() { if (adSchedulesBuilder_ == null) { return adSchedules_.size(); } else { return adSchedulesBuilder_.getCount(); } } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedules(int index) { if (adSchedulesBuilder_ == null) { return adSchedules_.get(index); } else { return adSchedulesBuilder_.getMessage(index); } } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder setAdSchedules( int index, com.google.ads.googleads.v10.common.AdScheduleInfo value) { if (adSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdSchedulesIsMutable(); adSchedules_.set(index, value); onChanged(); } else { adSchedulesBuilder_.setMessage(index, value); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder setAdSchedules( int index, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) { if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); adSchedules_.set(index, builderForValue.build()); onChanged(); } else { adSchedulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder addAdSchedules(com.google.ads.googleads.v10.common.AdScheduleInfo value) { if (adSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdSchedulesIsMutable(); adSchedules_.add(value); onChanged(); } else { adSchedulesBuilder_.addMessage(value); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder addAdSchedules( int index, com.google.ads.googleads.v10.common.AdScheduleInfo value) { if (adSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdSchedulesIsMutable(); adSchedules_.add(index, value); onChanged(); } else { adSchedulesBuilder_.addMessage(index, value); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder addAdSchedules( com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) { if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); adSchedules_.add(builderForValue.build()); onChanged(); } else { adSchedulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder addAdSchedules( int index, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) { if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); adSchedules_.add(index, builderForValue.build()); onChanged(); } else { adSchedulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder addAllAdSchedules( java.lang.Iterable values) { if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, adSchedules_); onChanged(); } else { adSchedulesBuilder_.addAllMessages(values); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder clearAdSchedules() { if (adSchedulesBuilder_ == null) { adSchedules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { adSchedulesBuilder_.clear(); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public Builder removeAdSchedules(int index) { if (adSchedulesBuilder_ == null) { ensureAdSchedulesIsMutable(); adSchedules_.remove(index); onChanged(); } else { adSchedulesBuilder_.remove(index); } return this; } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder getAdSchedulesBuilder( int index) { return getAdSchedulesFieldBuilder().getBuilder(index); } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdSchedulesOrBuilder( int index) { if (adSchedulesBuilder_ == null) { return adSchedules_.get(index); } else { return adSchedulesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public java.util.List getAdSchedulesOrBuilderList() { if (adSchedulesBuilder_ != null) { return adSchedulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(adSchedules_); } } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder addAdSchedulesBuilder() { return getAdSchedulesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance()); } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder addAdSchedulesBuilder( int index) { return getAdSchedulesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance()); } /** *
     * List of non-overlapping schedules specifying all time intervals
     * for which the feed item may serve. There can be a maximum of 6 schedules
     * per day.
     * 
* * repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 16; */ public java.util.List getAdSchedulesBuilderList() { return getAdSchedulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder> getAdSchedulesFieldBuilder() { if (adSchedulesBuilder_ == null) { adSchedulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>( adSchedules_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); adSchedules_ = null; } return adSchedulesBuilder_; } private int device_ = 0; /** *
     * The targeted device.
     * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @return The enum numeric value on the wire for device. */ @java.lang.Override public int getDeviceValue() { return device_; } /** *
     * The targeted device.
     * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @param value The enum numeric value on the wire for device to set. * @return This builder for chaining. */ public Builder setDeviceValue(int value) { device_ = value; onChanged(); return this; } /** *
     * The targeted device.
     * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @return The device. */ @java.lang.Override public com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice getDevice() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice result = com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.valueOf(device_); return result == null ? com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice.UNRECOGNIZED : result; } /** *
     * The targeted device.
     * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @param value The device to set. * @return This builder for chaining. */ public Builder setDevice(com.google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice value) { if (value == null) { throw new NullPointerException(); } device_ = value.getNumber(); onChanged(); return this; } /** *
     * The targeted device.
     * 
* * .google.ads.googleads.v10.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; * @return This builder for chaining. */ public Builder clearDevice() { device_ = 0; onChanged(); return this; } private java.lang.Object targetedGeoTargetConstant_ = ""; /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return Whether the targetedGeoTargetConstant field is set. */ public boolean hasTargetedGeoTargetConstant() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return The targetedGeoTargetConstant. */ public java.lang.String getTargetedGeoTargetConstant() { java.lang.Object ref = targetedGeoTargetConstant_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetedGeoTargetConstant_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedGeoTargetConstant. */ public com.google.protobuf.ByteString getTargetedGeoTargetConstantBytes() { java.lang.Object ref = targetedGeoTargetConstant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetedGeoTargetConstant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @param value The targetedGeoTargetConstant to set. * @return This builder for chaining. */ public Builder setTargetedGeoTargetConstant( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; targetedGeoTargetConstant_ = value; onChanged(); return this; } /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTargetedGeoTargetConstant() { bitField0_ = (bitField0_ & ~0x00000010); targetedGeoTargetConstant_ = getDefaultInstance().getTargetedGeoTargetConstant(); onChanged(); return this; } /** *
     * The targeted geo target constant.
     * 
* * optional string targeted_geo_target_constant = 30 [(.google.api.resource_reference) = { ... } * @param value The bytes for targetedGeoTargetConstant to set. * @return This builder for chaining. */ public Builder setTargetedGeoTargetConstantBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000010; targetedGeoTargetConstant_ = value; onChanged(); return this; } private com.google.ads.googleads.v10.common.KeywordInfo targetedKeyword_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> targetedKeywordBuilder_; /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; * @return Whether the targetedKeyword field is set. */ public boolean hasTargetedKeyword() { return targetedKeywordBuilder_ != null || targetedKeyword_ != null; } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; * @return The targetedKeyword. */ public com.google.ads.googleads.v10.common.KeywordInfo getTargetedKeyword() { if (targetedKeywordBuilder_ == null) { return targetedKeyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : targetedKeyword_; } else { return targetedKeywordBuilder_.getMessage(); } } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public Builder setTargetedKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (targetedKeywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetedKeyword_ = value; onChanged(); } else { targetedKeywordBuilder_.setMessage(value); } return this; } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public Builder setTargetedKeyword( com.google.ads.googleads.v10.common.KeywordInfo.Builder builderForValue) { if (targetedKeywordBuilder_ == null) { targetedKeyword_ = builderForValue.build(); onChanged(); } else { targetedKeywordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public Builder mergeTargetedKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (targetedKeywordBuilder_ == null) { if (targetedKeyword_ != null) { targetedKeyword_ = com.google.ads.googleads.v10.common.KeywordInfo.newBuilder(targetedKeyword_).mergeFrom(value).buildPartial(); } else { targetedKeyword_ = value; } onChanged(); } else { targetedKeywordBuilder_.mergeFrom(value); } return this; } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public Builder clearTargetedKeyword() { if (targetedKeywordBuilder_ == null) { targetedKeyword_ = null; onChanged(); } else { targetedKeyword_ = null; targetedKeywordBuilder_ = null; } return this; } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public com.google.ads.googleads.v10.common.KeywordInfo.Builder getTargetedKeywordBuilder() { onChanged(); return getTargetedKeywordFieldBuilder().getBuilder(); } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getTargetedKeywordOrBuilder() { if (targetedKeywordBuilder_ != null) { return targetedKeywordBuilder_.getMessageOrBuilder(); } else { return targetedKeyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : targetedKeyword_; } } /** *
     * The targeted keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo targeted_keyword = 22; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> getTargetedKeywordFieldBuilder() { if (targetedKeywordBuilder_ == null) { targetedKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder>( getTargetedKeyword(), getParentForChildren(), isClean()); targetedKeyword_ = null; } return targetedKeywordBuilder_; } private int status_ = 0; /** *
     * Output only. Status of the feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Output only. Status of the feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
     * Output only. Status of the feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus result = com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNRECOGNIZED : result; } /** *
     * Output only. Status of the feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Status of the feed item.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder> sitelinkFeedItemBuilder_; /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; * @return Whether the sitelinkFeedItem field is set. */ @java.lang.Override public boolean hasSitelinkFeedItem() { return extensionCase_ == 2; } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; * @return The sitelinkFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItem getSitelinkFeedItem() { if (sitelinkFeedItemBuilder_ == null) { if (extensionCase_ == 2) { return (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_; } return com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 2) { return sitelinkFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ public Builder setSitelinkFeedItem(com.google.ads.googleads.v10.common.SitelinkFeedItem value) { if (sitelinkFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { sitelinkFeedItemBuilder_.setMessage(value); } extensionCase_ = 2; return this; } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ public Builder setSitelinkFeedItem( com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) { if (sitelinkFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { sitelinkFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 2; return this; } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ public Builder mergeSitelinkFeedItem(com.google.ads.googleads.v10.common.SitelinkFeedItem value) { if (sitelinkFeedItemBuilder_ == null) { if (extensionCase_ == 2 && extension_ != com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.SitelinkFeedItem.newBuilder((com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 2) { sitelinkFeedItemBuilder_.mergeFrom(value); } else { sitelinkFeedItemBuilder_.setMessage(value); } } extensionCase_ = 2; return this; } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ public Builder clearSitelinkFeedItem() { if (sitelinkFeedItemBuilder_ == null) { if (extensionCase_ == 2) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 2) { extensionCase_ = 0; extension_ = null; } sitelinkFeedItemBuilder_.clear(); } return this; } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder getSitelinkFeedItemBuilder() { return getSitelinkFeedItemFieldBuilder().getBuilder(); } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getSitelinkFeedItemOrBuilder() { if ((extensionCase_ == 2) && (sitelinkFeedItemBuilder_ != null)) { return sitelinkFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 2) { return (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_; } return com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } } /** *
     * Sitelink extension.
     * 
* * .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_feed_item = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder> getSitelinkFeedItemFieldBuilder() { if (sitelinkFeedItemBuilder_ == null) { if (!(extensionCase_ == 2)) { extension_ = com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance(); } sitelinkFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.SitelinkFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 2; onChanged();; return sitelinkFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.StructuredSnippetFeedItem, com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.Builder, com.google.ads.googleads.v10.common.StructuredSnippetFeedItemOrBuilder> structuredSnippetFeedItemBuilder_; /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; * @return Whether the structuredSnippetFeedItem field is set. */ @java.lang.Override public boolean hasStructuredSnippetFeedItem() { return extensionCase_ == 3; } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; * @return The structuredSnippetFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.StructuredSnippetFeedItem getStructuredSnippetFeedItem() { if (structuredSnippetFeedItemBuilder_ == null) { if (extensionCase_ == 3) { return (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_; } return com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 3) { return structuredSnippetFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ public Builder setStructuredSnippetFeedItem(com.google.ads.googleads.v10.common.StructuredSnippetFeedItem value) { if (structuredSnippetFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { structuredSnippetFeedItemBuilder_.setMessage(value); } extensionCase_ = 3; return this; } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ public Builder setStructuredSnippetFeedItem( com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.Builder builderForValue) { if (structuredSnippetFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { structuredSnippetFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 3; return this; } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ public Builder mergeStructuredSnippetFeedItem(com.google.ads.googleads.v10.common.StructuredSnippetFeedItem value) { if (structuredSnippetFeedItemBuilder_ == null) { if (extensionCase_ == 3 && extension_ != com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.newBuilder((com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 3) { structuredSnippetFeedItemBuilder_.mergeFrom(value); } else { structuredSnippetFeedItemBuilder_.setMessage(value); } } extensionCase_ = 3; return this; } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ public Builder clearStructuredSnippetFeedItem() { if (structuredSnippetFeedItemBuilder_ == null) { if (extensionCase_ == 3) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 3) { extensionCase_ = 0; extension_ = null; } structuredSnippetFeedItemBuilder_.clear(); } return this; } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ public com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.Builder getStructuredSnippetFeedItemBuilder() { return getStructuredSnippetFeedItemFieldBuilder().getBuilder(); } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.StructuredSnippetFeedItemOrBuilder getStructuredSnippetFeedItemOrBuilder() { if ((extensionCase_ == 3) && (structuredSnippetFeedItemBuilder_ != null)) { return structuredSnippetFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 3) { return (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_; } return com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } } /** *
     * Structured snippet extension.
     * 
* * .google.ads.googleads.v10.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.StructuredSnippetFeedItem, com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.Builder, com.google.ads.googleads.v10.common.StructuredSnippetFeedItemOrBuilder> getStructuredSnippetFeedItemFieldBuilder() { if (structuredSnippetFeedItemBuilder_ == null) { if (!(extensionCase_ == 3)) { extension_ = com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.getDefaultInstance(); } structuredSnippetFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.StructuredSnippetFeedItem, com.google.ads.googleads.v10.common.StructuredSnippetFeedItem.Builder, com.google.ads.googleads.v10.common.StructuredSnippetFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.StructuredSnippetFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 3; onChanged();; return structuredSnippetFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AppFeedItem, com.google.ads.googleads.v10.common.AppFeedItem.Builder, com.google.ads.googleads.v10.common.AppFeedItemOrBuilder> appFeedItemBuilder_; /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; * @return Whether the appFeedItem field is set. */ @java.lang.Override public boolean hasAppFeedItem() { return extensionCase_ == 7; } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; * @return The appFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.AppFeedItem getAppFeedItem() { if (appFeedItemBuilder_ == null) { if (extensionCase_ == 7) { return (com.google.ads.googleads.v10.common.AppFeedItem) extension_; } return com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 7) { return appFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ public Builder setAppFeedItem(com.google.ads.googleads.v10.common.AppFeedItem value) { if (appFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { appFeedItemBuilder_.setMessage(value); } extensionCase_ = 7; return this; } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ public Builder setAppFeedItem( com.google.ads.googleads.v10.common.AppFeedItem.Builder builderForValue) { if (appFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { appFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 7; return this; } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ public Builder mergeAppFeedItem(com.google.ads.googleads.v10.common.AppFeedItem value) { if (appFeedItemBuilder_ == null) { if (extensionCase_ == 7 && extension_ != com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.AppFeedItem.newBuilder((com.google.ads.googleads.v10.common.AppFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 7) { appFeedItemBuilder_.mergeFrom(value); } else { appFeedItemBuilder_.setMessage(value); } } extensionCase_ = 7; return this; } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ public Builder clearAppFeedItem() { if (appFeedItemBuilder_ == null) { if (extensionCase_ == 7) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 7) { extensionCase_ = 0; extension_ = null; } appFeedItemBuilder_.clear(); } return this; } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ public com.google.ads.googleads.v10.common.AppFeedItem.Builder getAppFeedItemBuilder() { return getAppFeedItemFieldBuilder().getBuilder(); } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ @java.lang.Override public com.google.ads.googleads.v10.common.AppFeedItemOrBuilder getAppFeedItemOrBuilder() { if ((extensionCase_ == 7) && (appFeedItemBuilder_ != null)) { return appFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 7) { return (com.google.ads.googleads.v10.common.AppFeedItem) extension_; } return com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } } /** *
     * App extension.
     * 
* * .google.ads.googleads.v10.common.AppFeedItem app_feed_item = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AppFeedItem, com.google.ads.googleads.v10.common.AppFeedItem.Builder, com.google.ads.googleads.v10.common.AppFeedItemOrBuilder> getAppFeedItemFieldBuilder() { if (appFeedItemBuilder_ == null) { if (!(extensionCase_ == 7)) { extension_ = com.google.ads.googleads.v10.common.AppFeedItem.getDefaultInstance(); } appFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AppFeedItem, com.google.ads.googleads.v10.common.AppFeedItem.Builder, com.google.ads.googleads.v10.common.AppFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.AppFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 7; onChanged();; return appFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder> callFeedItemBuilder_; /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; * @return Whether the callFeedItem field is set. */ @java.lang.Override public boolean hasCallFeedItem() { return extensionCase_ == 8; } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; * @return The callFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem getCallFeedItem() { if (callFeedItemBuilder_ == null) { if (extensionCase_ == 8) { return (com.google.ads.googleads.v10.common.CallFeedItem) extension_; } return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 8) { return callFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ public Builder setCallFeedItem(com.google.ads.googleads.v10.common.CallFeedItem value) { if (callFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { callFeedItemBuilder_.setMessage(value); } extensionCase_ = 8; return this; } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ public Builder setCallFeedItem( com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) { if (callFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { callFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 8; return this; } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ public Builder mergeCallFeedItem(com.google.ads.googleads.v10.common.CallFeedItem value) { if (callFeedItemBuilder_ == null) { if (extensionCase_ == 8 && extension_ != com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.CallFeedItem.newBuilder((com.google.ads.googleads.v10.common.CallFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 8) { callFeedItemBuilder_.mergeFrom(value); } else { callFeedItemBuilder_.setMessage(value); } } extensionCase_ = 8; return this; } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ public Builder clearCallFeedItem() { if (callFeedItemBuilder_ == null) { if (extensionCase_ == 8) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 8) { extensionCase_ = 0; extension_ = null; } callFeedItemBuilder_.clear(); } return this; } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ public com.google.ads.googleads.v10.common.CallFeedItem.Builder getCallFeedItemBuilder() { return getCallFeedItemFieldBuilder().getBuilder(); } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getCallFeedItemOrBuilder() { if ((extensionCase_ == 8) && (callFeedItemBuilder_ != null)) { return callFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 8) { return (com.google.ads.googleads.v10.common.CallFeedItem) extension_; } return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } } /** *
     * Call extension.
     * 
* * .google.ads.googleads.v10.common.CallFeedItem call_feed_item = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder> getCallFeedItemFieldBuilder() { if (callFeedItemBuilder_ == null) { if (!(extensionCase_ == 8)) { extension_ = com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } callFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.CallFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 8; onChanged();; return callFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder> calloutFeedItemBuilder_; /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; * @return Whether the calloutFeedItem field is set. */ @java.lang.Override public boolean hasCalloutFeedItem() { return extensionCase_ == 9; } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; * @return The calloutFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItem getCalloutFeedItem() { if (calloutFeedItemBuilder_ == null) { if (extensionCase_ == 9) { return (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 9) { return calloutFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ public Builder setCalloutFeedItem(com.google.ads.googleads.v10.common.CalloutFeedItem value) { if (calloutFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { calloutFeedItemBuilder_.setMessage(value); } extensionCase_ = 9; return this; } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ public Builder setCalloutFeedItem( com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) { if (calloutFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { calloutFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 9; return this; } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ public Builder mergeCalloutFeedItem(com.google.ads.googleads.v10.common.CalloutFeedItem value) { if (calloutFeedItemBuilder_ == null) { if (extensionCase_ == 9 && extension_ != com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.CalloutFeedItem.newBuilder((com.google.ads.googleads.v10.common.CalloutFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 9) { calloutFeedItemBuilder_.mergeFrom(value); } else { calloutFeedItemBuilder_.setMessage(value); } } extensionCase_ = 9; return this; } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ public Builder clearCalloutFeedItem() { if (calloutFeedItemBuilder_ == null) { if (extensionCase_ == 9) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 9) { extensionCase_ = 0; extension_ = null; } calloutFeedItemBuilder_.clear(); } return this; } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder getCalloutFeedItemBuilder() { return getCalloutFeedItemFieldBuilder().getBuilder(); } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getCalloutFeedItemOrBuilder() { if ((extensionCase_ == 9) && (calloutFeedItemBuilder_ != null)) { return calloutFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 9) { return (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } } /** *
     * Callout extension.
     * 
* * .google.ads.googleads.v10.common.CalloutFeedItem callout_feed_item = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder> getCalloutFeedItemFieldBuilder() { if (calloutFeedItemBuilder_ == null) { if (!(extensionCase_ == 9)) { extension_ = com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance(); } calloutFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.CalloutFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 9; onChanged();; return calloutFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.TextMessageFeedItem, com.google.ads.googleads.v10.common.TextMessageFeedItem.Builder, com.google.ads.googleads.v10.common.TextMessageFeedItemOrBuilder> textMessageFeedItemBuilder_; /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; * @return Whether the textMessageFeedItem field is set. */ @java.lang.Override public boolean hasTextMessageFeedItem() { return extensionCase_ == 10; } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; * @return The textMessageFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.TextMessageFeedItem getTextMessageFeedItem() { if (textMessageFeedItemBuilder_ == null) { if (extensionCase_ == 10) { return (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_; } return com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 10) { return textMessageFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ public Builder setTextMessageFeedItem(com.google.ads.googleads.v10.common.TextMessageFeedItem value) { if (textMessageFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { textMessageFeedItemBuilder_.setMessage(value); } extensionCase_ = 10; return this; } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ public Builder setTextMessageFeedItem( com.google.ads.googleads.v10.common.TextMessageFeedItem.Builder builderForValue) { if (textMessageFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { textMessageFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 10; return this; } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ public Builder mergeTextMessageFeedItem(com.google.ads.googleads.v10.common.TextMessageFeedItem value) { if (textMessageFeedItemBuilder_ == null) { if (extensionCase_ == 10 && extension_ != com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.TextMessageFeedItem.newBuilder((com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 10) { textMessageFeedItemBuilder_.mergeFrom(value); } else { textMessageFeedItemBuilder_.setMessage(value); } } extensionCase_ = 10; return this; } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ public Builder clearTextMessageFeedItem() { if (textMessageFeedItemBuilder_ == null) { if (extensionCase_ == 10) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 10) { extensionCase_ = 0; extension_ = null; } textMessageFeedItemBuilder_.clear(); } return this; } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ public com.google.ads.googleads.v10.common.TextMessageFeedItem.Builder getTextMessageFeedItemBuilder() { return getTextMessageFeedItemFieldBuilder().getBuilder(); } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ @java.lang.Override public com.google.ads.googleads.v10.common.TextMessageFeedItemOrBuilder getTextMessageFeedItemOrBuilder() { if ((extensionCase_ == 10) && (textMessageFeedItemBuilder_ != null)) { return textMessageFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 10) { return (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_; } return com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } } /** *
     * Text message extension.
     * 
* * .google.ads.googleads.v10.common.TextMessageFeedItem text_message_feed_item = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.TextMessageFeedItem, com.google.ads.googleads.v10.common.TextMessageFeedItem.Builder, com.google.ads.googleads.v10.common.TextMessageFeedItemOrBuilder> getTextMessageFeedItemFieldBuilder() { if (textMessageFeedItemBuilder_ == null) { if (!(extensionCase_ == 10)) { extension_ = com.google.ads.googleads.v10.common.TextMessageFeedItem.getDefaultInstance(); } textMessageFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.TextMessageFeedItem, com.google.ads.googleads.v10.common.TextMessageFeedItem.Builder, com.google.ads.googleads.v10.common.TextMessageFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.TextMessageFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 10; onChanged();; return textMessageFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PriceFeedItem, com.google.ads.googleads.v10.common.PriceFeedItem.Builder, com.google.ads.googleads.v10.common.PriceFeedItemOrBuilder> priceFeedItemBuilder_; /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; * @return Whether the priceFeedItem field is set. */ @java.lang.Override public boolean hasPriceFeedItem() { return extensionCase_ == 11; } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; * @return The priceFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.PriceFeedItem getPriceFeedItem() { if (priceFeedItemBuilder_ == null) { if (extensionCase_ == 11) { return (com.google.ads.googleads.v10.common.PriceFeedItem) extension_; } return com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 11) { return priceFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ public Builder setPriceFeedItem(com.google.ads.googleads.v10.common.PriceFeedItem value) { if (priceFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { priceFeedItemBuilder_.setMessage(value); } extensionCase_ = 11; return this; } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ public Builder setPriceFeedItem( com.google.ads.googleads.v10.common.PriceFeedItem.Builder builderForValue) { if (priceFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { priceFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 11; return this; } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ public Builder mergePriceFeedItem(com.google.ads.googleads.v10.common.PriceFeedItem value) { if (priceFeedItemBuilder_ == null) { if (extensionCase_ == 11 && extension_ != com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.PriceFeedItem.newBuilder((com.google.ads.googleads.v10.common.PriceFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 11) { priceFeedItemBuilder_.mergeFrom(value); } else { priceFeedItemBuilder_.setMessage(value); } } extensionCase_ = 11; return this; } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ public Builder clearPriceFeedItem() { if (priceFeedItemBuilder_ == null) { if (extensionCase_ == 11) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 11) { extensionCase_ = 0; extension_ = null; } priceFeedItemBuilder_.clear(); } return this; } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ public com.google.ads.googleads.v10.common.PriceFeedItem.Builder getPriceFeedItemBuilder() { return getPriceFeedItemFieldBuilder().getBuilder(); } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ @java.lang.Override public com.google.ads.googleads.v10.common.PriceFeedItemOrBuilder getPriceFeedItemOrBuilder() { if ((extensionCase_ == 11) && (priceFeedItemBuilder_ != null)) { return priceFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 11) { return (com.google.ads.googleads.v10.common.PriceFeedItem) extension_; } return com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } } /** *
     * Price extension.
     * 
* * .google.ads.googleads.v10.common.PriceFeedItem price_feed_item = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PriceFeedItem, com.google.ads.googleads.v10.common.PriceFeedItem.Builder, com.google.ads.googleads.v10.common.PriceFeedItemOrBuilder> getPriceFeedItemFieldBuilder() { if (priceFeedItemBuilder_ == null) { if (!(extensionCase_ == 11)) { extension_ = com.google.ads.googleads.v10.common.PriceFeedItem.getDefaultInstance(); } priceFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PriceFeedItem, com.google.ads.googleads.v10.common.PriceFeedItem.Builder, com.google.ads.googleads.v10.common.PriceFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.PriceFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 11; onChanged();; return priceFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PromotionFeedItem, com.google.ads.googleads.v10.common.PromotionFeedItem.Builder, com.google.ads.googleads.v10.common.PromotionFeedItemOrBuilder> promotionFeedItemBuilder_; /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; * @return Whether the promotionFeedItem field is set. */ @java.lang.Override public boolean hasPromotionFeedItem() { return extensionCase_ == 12; } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; * @return The promotionFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.PromotionFeedItem getPromotionFeedItem() { if (promotionFeedItemBuilder_ == null) { if (extensionCase_ == 12) { return (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_; } return com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 12) { return promotionFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ public Builder setPromotionFeedItem(com.google.ads.googleads.v10.common.PromotionFeedItem value) { if (promotionFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { promotionFeedItemBuilder_.setMessage(value); } extensionCase_ = 12; return this; } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ public Builder setPromotionFeedItem( com.google.ads.googleads.v10.common.PromotionFeedItem.Builder builderForValue) { if (promotionFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { promotionFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 12; return this; } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ public Builder mergePromotionFeedItem(com.google.ads.googleads.v10.common.PromotionFeedItem value) { if (promotionFeedItemBuilder_ == null) { if (extensionCase_ == 12 && extension_ != com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.PromotionFeedItem.newBuilder((com.google.ads.googleads.v10.common.PromotionFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 12) { promotionFeedItemBuilder_.mergeFrom(value); } else { promotionFeedItemBuilder_.setMessage(value); } } extensionCase_ = 12; return this; } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ public Builder clearPromotionFeedItem() { if (promotionFeedItemBuilder_ == null) { if (extensionCase_ == 12) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 12) { extensionCase_ = 0; extension_ = null; } promotionFeedItemBuilder_.clear(); } return this; } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ public com.google.ads.googleads.v10.common.PromotionFeedItem.Builder getPromotionFeedItemBuilder() { return getPromotionFeedItemFieldBuilder().getBuilder(); } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ @java.lang.Override public com.google.ads.googleads.v10.common.PromotionFeedItemOrBuilder getPromotionFeedItemOrBuilder() { if ((extensionCase_ == 12) && (promotionFeedItemBuilder_ != null)) { return promotionFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 12) { return (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_; } return com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } } /** *
     * Promotion extension.
     * 
* * .google.ads.googleads.v10.common.PromotionFeedItem promotion_feed_item = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PromotionFeedItem, com.google.ads.googleads.v10.common.PromotionFeedItem.Builder, com.google.ads.googleads.v10.common.PromotionFeedItemOrBuilder> getPromotionFeedItemFieldBuilder() { if (promotionFeedItemBuilder_ == null) { if (!(extensionCase_ == 12)) { extension_ = com.google.ads.googleads.v10.common.PromotionFeedItem.getDefaultInstance(); } promotionFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.PromotionFeedItem, com.google.ads.googleads.v10.common.PromotionFeedItem.Builder, com.google.ads.googleads.v10.common.PromotionFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.PromotionFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 12; onChanged();; return promotionFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.LocationFeedItem, com.google.ads.googleads.v10.common.LocationFeedItem.Builder, com.google.ads.googleads.v10.common.LocationFeedItemOrBuilder> locationFeedItemBuilder_; /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the locationFeedItem field is set. */ @java.lang.Override public boolean hasLocationFeedItem() { return extensionCase_ == 14; } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The locationFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.LocationFeedItem getLocationFeedItem() { if (locationFeedItemBuilder_ == null) { if (extensionCase_ == 14) { return (com.google.ads.googleads.v10.common.LocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 14) { return locationFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLocationFeedItem(com.google.ads.googleads.v10.common.LocationFeedItem value) { if (locationFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { locationFeedItemBuilder_.setMessage(value); } extensionCase_ = 14; return this; } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLocationFeedItem( com.google.ads.googleads.v10.common.LocationFeedItem.Builder builderForValue) { if (locationFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { locationFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 14; return this; } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLocationFeedItem(com.google.ads.googleads.v10.common.LocationFeedItem value) { if (locationFeedItemBuilder_ == null) { if (extensionCase_ == 14 && extension_ != com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.LocationFeedItem.newBuilder((com.google.ads.googleads.v10.common.LocationFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 14) { locationFeedItemBuilder_.mergeFrom(value); } else { locationFeedItemBuilder_.setMessage(value); } } extensionCase_ = 14; return this; } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLocationFeedItem() { if (locationFeedItemBuilder_ == null) { if (extensionCase_ == 14) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 14) { extensionCase_ = 0; extension_ = null; } locationFeedItemBuilder_.clear(); } return this; } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.LocationFeedItem.Builder getLocationFeedItemBuilder() { return getLocationFeedItemFieldBuilder().getBuilder(); } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.LocationFeedItemOrBuilder getLocationFeedItemOrBuilder() { if ((extensionCase_ == 14) && (locationFeedItemBuilder_ != null)) { return locationFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 14) { return (com.google.ads.googleads.v10.common.LocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } } /** *
     * Output only. Location extension. Locations are synced from a Business Profile into a
     * feed. This field is read-only.
     * 
* * .google.ads.googleads.v10.common.LocationFeedItem location_feed_item = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.LocationFeedItem, com.google.ads.googleads.v10.common.LocationFeedItem.Builder, com.google.ads.googleads.v10.common.LocationFeedItemOrBuilder> getLocationFeedItemFieldBuilder() { if (locationFeedItemBuilder_ == null) { if (!(extensionCase_ == 14)) { extension_ = com.google.ads.googleads.v10.common.LocationFeedItem.getDefaultInstance(); } locationFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.LocationFeedItem, com.google.ads.googleads.v10.common.LocationFeedItem.Builder, com.google.ads.googleads.v10.common.LocationFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.LocationFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 14; onChanged();; return locationFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AffiliateLocationFeedItem, com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.Builder, com.google.ads.googleads.v10.common.AffiliateLocationFeedItemOrBuilder> affiliateLocationFeedItemBuilder_; /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the affiliateLocationFeedItem field is set. */ @java.lang.Override public boolean hasAffiliateLocationFeedItem() { return extensionCase_ == 15; } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The affiliateLocationFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.AffiliateLocationFeedItem getAffiliateLocationFeedItem() { if (affiliateLocationFeedItemBuilder_ == null) { if (extensionCase_ == 15) { return (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 15) { return affiliateLocationFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAffiliateLocationFeedItem(com.google.ads.googleads.v10.common.AffiliateLocationFeedItem value) { if (affiliateLocationFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { affiliateLocationFeedItemBuilder_.setMessage(value); } extensionCase_ = 15; return this; } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAffiliateLocationFeedItem( com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.Builder builderForValue) { if (affiliateLocationFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { affiliateLocationFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 15; return this; } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAffiliateLocationFeedItem(com.google.ads.googleads.v10.common.AffiliateLocationFeedItem value) { if (affiliateLocationFeedItemBuilder_ == null) { if (extensionCase_ == 15 && extension_ != com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.newBuilder((com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 15) { affiliateLocationFeedItemBuilder_.mergeFrom(value); } else { affiliateLocationFeedItemBuilder_.setMessage(value); } } extensionCase_ = 15; return this; } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAffiliateLocationFeedItem() { if (affiliateLocationFeedItemBuilder_ == null) { if (extensionCase_ == 15) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 15) { extensionCase_ = 0; extension_ = null; } affiliateLocationFeedItemBuilder_.clear(); } return this; } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.Builder getAffiliateLocationFeedItemBuilder() { return getAffiliateLocationFeedItemFieldBuilder().getBuilder(); } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.AffiliateLocationFeedItemOrBuilder getAffiliateLocationFeedItemOrBuilder() { if ((extensionCase_ == 15) && (affiliateLocationFeedItemBuilder_ != null)) { return affiliateLocationFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 15) { return (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_; } return com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } } /** *
     * Output only. Affiliate location extension. Feed locations are populated by Google Ads
     * based on a chain ID.
     * This field is read-only.
     * 
* * .google.ads.googleads.v10.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AffiliateLocationFeedItem, com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.Builder, com.google.ads.googleads.v10.common.AffiliateLocationFeedItemOrBuilder> getAffiliateLocationFeedItemFieldBuilder() { if (affiliateLocationFeedItemBuilder_ == null) { if (!(extensionCase_ == 15)) { extension_ = com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.getDefaultInstance(); } affiliateLocationFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AffiliateLocationFeedItem, com.google.ads.googleads.v10.common.AffiliateLocationFeedItem.Builder, com.google.ads.googleads.v10.common.AffiliateLocationFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.AffiliateLocationFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 15; onChanged();; return affiliateLocationFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.HotelCalloutFeedItem, com.google.ads.googleads.v10.common.HotelCalloutFeedItem.Builder, com.google.ads.googleads.v10.common.HotelCalloutFeedItemOrBuilder> hotelCalloutFeedItemBuilder_; /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; * @return Whether the hotelCalloutFeedItem field is set. */ @java.lang.Override public boolean hasHotelCalloutFeedItem() { return extensionCase_ == 23; } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; * @return The hotelCalloutFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.HotelCalloutFeedItem getHotelCalloutFeedItem() { if (hotelCalloutFeedItemBuilder_ == null) { if (extensionCase_ == 23) { return (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 23) { return hotelCalloutFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ public Builder setHotelCalloutFeedItem(com.google.ads.googleads.v10.common.HotelCalloutFeedItem value) { if (hotelCalloutFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { hotelCalloutFeedItemBuilder_.setMessage(value); } extensionCase_ = 23; return this; } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ public Builder setHotelCalloutFeedItem( com.google.ads.googleads.v10.common.HotelCalloutFeedItem.Builder builderForValue) { if (hotelCalloutFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { hotelCalloutFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 23; return this; } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ public Builder mergeHotelCalloutFeedItem(com.google.ads.googleads.v10.common.HotelCalloutFeedItem value) { if (hotelCalloutFeedItemBuilder_ == null) { if (extensionCase_ == 23 && extension_ != com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.HotelCalloutFeedItem.newBuilder((com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 23) { hotelCalloutFeedItemBuilder_.mergeFrom(value); } else { hotelCalloutFeedItemBuilder_.setMessage(value); } } extensionCase_ = 23; return this; } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ public Builder clearHotelCalloutFeedItem() { if (hotelCalloutFeedItemBuilder_ == null) { if (extensionCase_ == 23) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 23) { extensionCase_ = 0; extension_ = null; } hotelCalloutFeedItemBuilder_.clear(); } return this; } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ public com.google.ads.googleads.v10.common.HotelCalloutFeedItem.Builder getHotelCalloutFeedItemBuilder() { return getHotelCalloutFeedItemFieldBuilder().getBuilder(); } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ @java.lang.Override public com.google.ads.googleads.v10.common.HotelCalloutFeedItemOrBuilder getHotelCalloutFeedItemOrBuilder() { if ((extensionCase_ == 23) && (hotelCalloutFeedItemBuilder_ != null)) { return hotelCalloutFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 23) { return (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_; } return com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } } /** *
     * Hotel Callout extension.
     * 
* * .google.ads.googleads.v10.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.HotelCalloutFeedItem, com.google.ads.googleads.v10.common.HotelCalloutFeedItem.Builder, com.google.ads.googleads.v10.common.HotelCalloutFeedItemOrBuilder> getHotelCalloutFeedItemFieldBuilder() { if (hotelCalloutFeedItemBuilder_ == null) { if (!(extensionCase_ == 23)) { extension_ = com.google.ads.googleads.v10.common.HotelCalloutFeedItem.getDefaultInstance(); } hotelCalloutFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.HotelCalloutFeedItem, com.google.ads.googleads.v10.common.HotelCalloutFeedItem.Builder, com.google.ads.googleads.v10.common.HotelCalloutFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.HotelCalloutFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 23; onChanged();; return hotelCalloutFeedItemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.ImageFeedItem, com.google.ads.googleads.v10.common.ImageFeedItem.Builder, com.google.ads.googleads.v10.common.ImageFeedItemOrBuilder> imageFeedItemBuilder_; /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the imageFeedItem field is set. */ @java.lang.Override public boolean hasImageFeedItem() { return extensionCase_ == 31; } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; * @return The imageFeedItem. */ @java.lang.Override public com.google.ads.googleads.v10.common.ImageFeedItem getImageFeedItem() { if (imageFeedItemBuilder_ == null) { if (extensionCase_ == 31) { return (com.google.ads.googleads.v10.common.ImageFeedItem) extension_; } return com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } else { if (extensionCase_ == 31) { return imageFeedItemBuilder_.getMessage(); } return com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setImageFeedItem(com.google.ads.googleads.v10.common.ImageFeedItem value) { if (imageFeedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); } else { imageFeedItemBuilder_.setMessage(value); } extensionCase_ = 31; return this; } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setImageFeedItem( com.google.ads.googleads.v10.common.ImageFeedItem.Builder builderForValue) { if (imageFeedItemBuilder_ == null) { extension_ = builderForValue.build(); onChanged(); } else { imageFeedItemBuilder_.setMessage(builderForValue.build()); } extensionCase_ = 31; return this; } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeImageFeedItem(com.google.ads.googleads.v10.common.ImageFeedItem value) { if (imageFeedItemBuilder_ == null) { if (extensionCase_ == 31 && extension_ != com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance()) { extension_ = com.google.ads.googleads.v10.common.ImageFeedItem.newBuilder((com.google.ads.googleads.v10.common.ImageFeedItem) extension_) .mergeFrom(value).buildPartial(); } else { extension_ = value; } onChanged(); } else { if (extensionCase_ == 31) { imageFeedItemBuilder_.mergeFrom(value); } else { imageFeedItemBuilder_.setMessage(value); } } extensionCase_ = 31; return this; } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearImageFeedItem() { if (imageFeedItemBuilder_ == null) { if (extensionCase_ == 31) { extensionCase_ = 0; extension_ = null; onChanged(); } } else { if (extensionCase_ == 31) { extensionCase_ = 0; extension_ = null; } imageFeedItemBuilder_.clear(); } return this; } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v10.common.ImageFeedItem.Builder getImageFeedItemBuilder() { return getImageFeedItemFieldBuilder().getBuilder(); } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v10.common.ImageFeedItemOrBuilder getImageFeedItemOrBuilder() { if ((extensionCase_ == 31) && (imageFeedItemBuilder_ != null)) { return imageFeedItemBuilder_.getMessageOrBuilder(); } else { if (extensionCase_ == 31) { return (com.google.ads.googleads.v10.common.ImageFeedItem) extension_; } return com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } } /** *
     * Immutable. Advertiser provided image extension.
     * 
* * .google.ads.googleads.v10.common.ImageFeedItem image_feed_item = 31 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.ImageFeedItem, com.google.ads.googleads.v10.common.ImageFeedItem.Builder, com.google.ads.googleads.v10.common.ImageFeedItemOrBuilder> getImageFeedItemFieldBuilder() { if (imageFeedItemBuilder_ == null) { if (!(extensionCase_ == 31)) { extension_ = com.google.ads.googleads.v10.common.ImageFeedItem.getDefaultInstance(); } imageFeedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.ImageFeedItem, com.google.ads.googleads.v10.common.ImageFeedItem.Builder, com.google.ads.googleads.v10.common.ImageFeedItemOrBuilder>( (com.google.ads.googleads.v10.common.ImageFeedItem) extension_, getParentForChildren(), isClean()); extension_ = null; } extensionCase_ = 31; onChanged();; return imageFeedItemBuilder_; } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return Whether the targetedCampaign field is set. */ @java.lang.Override public boolean hasTargetedCampaign() { return servingResourceTargetingCase_ == 28; } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return The targetedCampaign. */ @java.lang.Override public java.lang.String getTargetedCampaign() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 28) { ref = servingResourceTargeting_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (servingResourceTargetingCase_ == 28) { servingResourceTargeting_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedCampaign. */ @java.lang.Override public com.google.protobuf.ByteString getTargetedCampaignBytes() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 28) { ref = servingResourceTargeting_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (servingResourceTargetingCase_ == 28) { servingResourceTargeting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @param value The targetedCampaign to set. * @return This builder for chaining. */ public Builder setTargetedCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } servingResourceTargetingCase_ = 28; servingResourceTargeting_ = value; onChanged(); return this; } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTargetedCampaign() { if (servingResourceTargetingCase_ == 28) { servingResourceTargetingCase_ = 0; servingResourceTargeting_ = null; onChanged(); } return this; } /** *
     * The targeted campaign.
     * 
* * string targeted_campaign = 28 [(.google.api.resource_reference) = { ... } * @param value The bytes for targetedCampaign to set. * @return This builder for chaining. */ public Builder setTargetedCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingResourceTargetingCase_ = 28; servingResourceTargeting_ = value; onChanged(); return this; } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return Whether the targetedAdGroup field is set. */ @java.lang.Override public boolean hasTargetedAdGroup() { return servingResourceTargetingCase_ == 29; } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return The targetedAdGroup. */ @java.lang.Override public java.lang.String getTargetedAdGroup() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 29) { ref = servingResourceTargeting_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (servingResourceTargetingCase_ == 29) { servingResourceTargeting_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return The bytes for targetedAdGroup. */ @java.lang.Override public com.google.protobuf.ByteString getTargetedAdGroupBytes() { java.lang.Object ref = ""; if (servingResourceTargetingCase_ == 29) { ref = servingResourceTargeting_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (servingResourceTargetingCase_ == 29) { servingResourceTargeting_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @param value The targetedAdGroup to set. * @return This builder for chaining. */ public Builder setTargetedAdGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } servingResourceTargetingCase_ = 29; servingResourceTargeting_ = value; onChanged(); return this; } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTargetedAdGroup() { if (servingResourceTargetingCase_ == 29) { servingResourceTargetingCase_ = 0; servingResourceTargeting_ = null; onChanged(); } return this; } /** *
     * The targeted ad group.
     * 
* * string targeted_ad_group = 29 [(.google.api.resource_reference) = { ... } * @param value The bytes for targetedAdGroup to set. * @return This builder for chaining. */ public Builder setTargetedAdGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingResourceTargetingCase_ = 29; servingResourceTargeting_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.ExtensionFeedItem) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ExtensionFeedItem) private static final com.google.ads.googleads.v10.resources.ExtensionFeedItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ExtensionFeedItem(); } public static com.google.ads.googleads.v10.resources.ExtensionFeedItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExtensionFeedItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.ExtensionFeedItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy