com.google.ads.googleads.v10.resources.FeedItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/feed_item.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A feed item.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.FeedItem}
*/
public final class FeedItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.FeedItem)
FeedItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeedItem.newBuilder() to construct.
private FeedItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FeedItem() {
resourceName_ = "";
feed_ = "";
startDateTime_ = "";
endDateTime_ = "";
attributeValues_ = java.util.Collections.emptyList();
geoTargetingRestriction_ = 0;
urlCustomParameters_ = java.util.Collections.emptyList();
status_ = 0;
policyInfos_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeedItem();
}
@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.FeedItemProto.internal_static_google_ads_googleads_v10_resources_FeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedItemProto.internal_static_google_ads_googleads_v10_resources_FeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.FeedItem.class, com.google.ads.googleads.v10.resources.FeedItem.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
*
* Immutable. The resource name of the feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 FEED_FIELD_NUMBER = 11;
private volatile java.lang.Object feed_;
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the feed field is set.
*/
@java.lang.Override
public boolean hasFeed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The feed.
*/
@java.lang.Override
public java.lang.String getFeed() {
java.lang.Object ref = feed_;
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();
feed_ = s;
return s;
}
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for feed.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedBytes() {
java.lang.Object ref = feed_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 12;
private long id_;
/**
*
* Output only. The ID of this feed item.
*
*
* optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of this feed item.
*
*
* optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int START_DATE_TIME_FIELD_NUMBER = 13;
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 = 13;
* @return Whether the startDateTime field is set.
*/
@java.lang.Override
public boolean hasStartDateTime() {
return ((bitField0_ & 0x00000004) != 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 = 13;
* @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 = 13;
* @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 = 14;
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 = 14;
* @return Whether the endDateTime field is set.
*/
@java.lang.Override
public boolean hasEndDateTime() {
return ((bitField0_ & 0x00000008) != 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 = 14;
* @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 = 14;
* @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 ATTRIBUTE_VALUES_FIELD_NUMBER = 6;
private java.util.List attributeValues_;
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
@java.lang.Override
public java.util.List getAttributeValuesList() {
return attributeValues_;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder>
getAttributeValuesOrBuilderList() {
return attributeValues_;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
@java.lang.Override
public int getAttributeValuesCount() {
return attributeValues_.size();
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItemAttributeValue getAttributeValues(int index) {
return attributeValues_.get(index);
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder getAttributeValuesOrBuilder(
int index) {
return attributeValues_.get(index);
}
public static final int GEO_TARGETING_RESTRICTION_FIELD_NUMBER = 7;
private int geoTargetingRestriction_;
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @return The enum numeric value on the wire for geoTargetingRestriction.
*/
@java.lang.Override public int getGeoTargetingRestrictionValue() {
return geoTargetingRestriction_;
}
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @return The geoTargetingRestriction.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction getGeoTargetingRestriction() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction result = com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.valueOf(geoTargetingRestriction_);
return result == null ? com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.UNRECOGNIZED : result;
}
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER = 8;
private java.util.List urlCustomParameters_;
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
@java.lang.Override
public java.util.List getUrlCustomParametersList() {
return urlCustomParameters_;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
return urlCustomParameters_;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
@java.lang.Override
public int getUrlCustomParametersCount() {
return urlCustomParameters_.size();
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomParameter getUrlCustomParameters(int index) {
return urlCustomParameters_.get(index);
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
return urlCustomParameters_.get(index);
}
public static final int STATUS_FIELD_NUMBER = 9;
private int status_;
/**
*
* Output only. Status of the feed item.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(.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 = 9 [(.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 POLICY_INFOS_FIELD_NUMBER = 10;
private java.util.List policyInfos_;
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getPolicyInfosList() {
return policyInfos_;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder>
getPolicyInfosOrBuilderList() {
return policyInfos_;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getPolicyInfosCount() {
return policyInfos_.size();
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo getPolicyInfos(int index) {
return policyInfos_.get(index);
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder(
int index) {
return policyInfos_.get(index);
}
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_);
}
for (int i = 0; i < attributeValues_.size(); i++) {
output.writeMessage(6, attributeValues_.get(i));
}
if (geoTargetingRestriction_ != com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.UNSPECIFIED.getNumber()) {
output.writeEnum(7, geoTargetingRestriction_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
output.writeMessage(8, urlCustomParameters_.get(i));
}
if (status_ != com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(9, status_);
}
for (int i = 0; i < policyInfos_.size(); i++) {
output.writeMessage(10, policyInfos_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, feed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(12, id_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, startDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, endDateTime_);
}
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_);
}
for (int i = 0; i < attributeValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, attributeValues_.get(i));
}
if (geoTargetingRestriction_ != com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, geoTargetingRestriction_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, urlCustomParameters_.get(i));
}
if (status_ != com.google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, status_);
}
for (int i = 0; i < policyInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, policyInfos_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, feed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, id_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, startDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, endDateTime_);
}
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.FeedItem)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.FeedItem other = (com.google.ads.googleads.v10.resources.FeedItem) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasFeed() != other.hasFeed()) return false;
if (hasFeed()) {
if (!getFeed()
.equals(other.getFeed())) return false;
}
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) 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 (!getAttributeValuesList()
.equals(other.getAttributeValuesList())) return false;
if (geoTargetingRestriction_ != other.geoTargetingRestriction_) return false;
if (!getUrlCustomParametersList()
.equals(other.getUrlCustomParametersList())) return false;
if (status_ != other.status_) return false;
if (!getPolicyInfosList()
.equals(other.getPolicyInfosList())) return false;
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 (hasFeed()) {
hash = (37 * hash) + FEED_FIELD_NUMBER;
hash = (53 * hash) + getFeed().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
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 (getAttributeValuesCount() > 0) {
hash = (37 * hash) + ATTRIBUTE_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getAttributeValuesList().hashCode();
}
hash = (37 * hash) + GEO_TARGETING_RESTRICTION_FIELD_NUMBER;
hash = (53 * hash) + geoTargetingRestriction_;
if (getUrlCustomParametersCount() > 0) {
hash = (37 * hash) + URL_CUSTOM_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getUrlCustomParametersList().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getPolicyInfosCount() > 0) {
hash = (37 * hash) + POLICY_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getPolicyInfosList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.FeedItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.FeedItem 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.FeedItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.FeedItem 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.FeedItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.FeedItem 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.FeedItem 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.FeedItem 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.FeedItem 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.FeedItem 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.FeedItem 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.FeedItem 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.FeedItem 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;
}
/**
*
* A feed item.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.FeedItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.FeedItem)
com.google.ads.googleads.v10.resources.FeedItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedItemProto.internal_static_google_ads_googleads_v10_resources_FeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedItemProto.internal_static_google_ads_googleads_v10_resources_FeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.FeedItem.class, com.google.ads.googleads.v10.resources.FeedItem.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.FeedItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
feed_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
startDateTime_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
endDateTime_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (attributeValuesBuilder_ == null) {
attributeValues_ = java.util.Collections.emptyList();
} else {
attributeValues_ = null;
attributeValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
geoTargetingRestriction_ = 0;
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
} else {
urlCustomParameters_ = null;
urlCustomParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 0;
if (policyInfosBuilder_ == null) {
policyInfos_ = java.util.Collections.emptyList();
} else {
policyInfos_ = null;
policyInfosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.FeedItemProto.internal_static_google_ads_googleads_v10_resources_FeedItem_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItem getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.FeedItem.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItem build() {
com.google.ads.googleads.v10.resources.FeedItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedItem buildPartial() {
com.google.ads.googleads.v10.resources.FeedItem result = new com.google.ads.googleads.v10.resources.FeedItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.feed_ = feed_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.startDateTime_ = startDateTime_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.endDateTime_ = endDateTime_;
if (attributeValuesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
attributeValues_ = java.util.Collections.unmodifiableList(attributeValues_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.attributeValues_ = attributeValues_;
} else {
result.attributeValues_ = attributeValuesBuilder_.build();
}
result.geoTargetingRestriction_ = geoTargetingRestriction_;
if (urlCustomParametersBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.urlCustomParameters_ = urlCustomParameters_;
} else {
result.urlCustomParameters_ = urlCustomParametersBuilder_.build();
}
result.status_ = status_;
if (policyInfosBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
policyInfos_ = java.util.Collections.unmodifiableList(policyInfos_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.policyInfos_ = policyInfos_;
} else {
result.policyInfos_ = policyInfosBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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.FeedItem) {
return mergeFrom((com.google.ads.googleads.v10.resources.FeedItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.FeedItem other) {
if (other == com.google.ads.googleads.v10.resources.FeedItem.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasFeed()) {
bitField0_ |= 0x00000001;
feed_ = other.feed_;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasStartDateTime()) {
bitField0_ |= 0x00000004;
startDateTime_ = other.startDateTime_;
onChanged();
}
if (other.hasEndDateTime()) {
bitField0_ |= 0x00000008;
endDateTime_ = other.endDateTime_;
onChanged();
}
if (attributeValuesBuilder_ == null) {
if (!other.attributeValues_.isEmpty()) {
if (attributeValues_.isEmpty()) {
attributeValues_ = other.attributeValues_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAttributeValuesIsMutable();
attributeValues_.addAll(other.attributeValues_);
}
onChanged();
}
} else {
if (!other.attributeValues_.isEmpty()) {
if (attributeValuesBuilder_.isEmpty()) {
attributeValuesBuilder_.dispose();
attributeValuesBuilder_ = null;
attributeValues_ = other.attributeValues_;
bitField0_ = (bitField0_ & ~0x00000010);
attributeValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributeValuesFieldBuilder() : null;
} else {
attributeValuesBuilder_.addAllMessages(other.attributeValues_);
}
}
}
if (other.geoTargetingRestriction_ != 0) {
setGeoTargetingRestrictionValue(other.getGeoTargetingRestrictionValue());
}
if (urlCustomParametersBuilder_ == null) {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParameters_.isEmpty()) {
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.addAll(other.urlCustomParameters_);
}
onChanged();
}
} else {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParametersBuilder_.isEmpty()) {
urlCustomParametersBuilder_.dispose();
urlCustomParametersBuilder_ = null;
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000020);
urlCustomParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUrlCustomParametersFieldBuilder() : null;
} else {
urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_);
}
}
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (policyInfosBuilder_ == null) {
if (!other.policyInfos_.isEmpty()) {
if (policyInfos_.isEmpty()) {
policyInfos_ = other.policyInfos_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensurePolicyInfosIsMutable();
policyInfos_.addAll(other.policyInfos_);
}
onChanged();
}
} else {
if (!other.policyInfos_.isEmpty()) {
if (policyInfosBuilder_.isEmpty()) {
policyInfosBuilder_.dispose();
policyInfosBuilder_ = null;
policyInfos_ = other.policyInfos_;
bitField0_ = (bitField0_ & ~0x00000040);
policyInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPolicyInfosFieldBuilder() : null;
} else {
policyInfosBuilder_.addAllMessages(other.policyInfos_);
}
}
}
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 50: {
com.google.ads.googleads.v10.resources.FeedItemAttributeValue m =
input.readMessage(
com.google.ads.googleads.v10.resources.FeedItemAttributeValue.parser(),
extensionRegistry);
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
attributeValues_.add(m);
} else {
attributeValuesBuilder_.addMessage(m);
}
break;
} // case 50
case 56: {
geoTargetingRestriction_ = input.readEnum();
break;
} // case 56
case 66: {
com.google.ads.googleads.v10.common.CustomParameter m =
input.readMessage(
com.google.ads.googleads.v10.common.CustomParameter.parser(),
extensionRegistry);
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(m);
} else {
urlCustomParametersBuilder_.addMessage(m);
}
break;
} // case 66
case 72: {
status_ = input.readEnum();
break;
} // case 72
case 82: {
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo m =
input.readMessage(
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.parser(),
extensionRegistry);
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
policyInfos_.add(m);
} else {
policyInfosBuilder_.addMessage(m);
}
break;
} // case 82
case 90: {
feed_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 90
case 96: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 96
case 106: {
startDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 106
case 114: {
endDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 114
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 bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 feed item.
* Feed item resource names have the form:
* `customers/{customer_id}/feedItems/{feed_id}~{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 java.lang.Object feed_ = "";
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the feed field is set.
*/
public boolean hasFeed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The feed.
*/
public java.lang.String getFeed() {
java.lang.Object ref = feed_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feed_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for feed.
*/
public com.google.protobuf.ByteString
getFeedBytes() {
java.lang.Object ref = feed_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The feed to set.
* @return This builder for chaining.
*/
public Builder setFeed(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
feed_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearFeed() {
bitField0_ = (bitField0_ & ~0x00000001);
feed_ = getDefaultInstance().getFeed();
onChanged();
return this;
}
/**
*
* Immutable. The feed to which this feed item belongs.
*
*
* optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for feed to set.
* @return This builder for chaining.
*/
public Builder setFeedBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
feed_ = value;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of this feed item.
*
*
* optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of this feed item.
*
*
* optional int64 id = 12 [(.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.
*
*
* optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
/**
*
* Output only. The ID of this feed item.
*
*
* optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
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 = 13;
* @return Whether the startDateTime field is set.
*/
public boolean hasStartDateTime() {
return ((bitField0_ & 0x00000004) != 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 = 13;
* @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 = 13;
* @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 = 13;
* @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_ |= 0x00000004;
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 = 13;
* @return This builder for chaining.
*/
public Builder clearStartDateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
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 = 13;
* @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_ |= 0x00000004;
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 = 14;
* @return Whether the endDateTime field is set.
*/
public boolean hasEndDateTime() {
return ((bitField0_ & 0x00000008) != 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 = 14;
* @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 = 14;
* @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 = 14;
* @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_ |= 0x00000008;
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 = 14;
* @return This builder for chaining.
*/
public Builder clearEndDateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
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 = 14;
* @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_ |= 0x00000008;
endDateTime_ = value;
onChanged();
return this;
}
private java.util.List attributeValues_ =
java.util.Collections.emptyList();
private void ensureAttributeValuesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
attributeValues_ = new java.util.ArrayList(attributeValues_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemAttributeValue, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder, com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder> attributeValuesBuilder_;
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public java.util.List getAttributeValuesList() {
if (attributeValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributeValues_);
} else {
return attributeValuesBuilder_.getMessageList();
}
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public int getAttributeValuesCount() {
if (attributeValuesBuilder_ == null) {
return attributeValues_.size();
} else {
return attributeValuesBuilder_.getCount();
}
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public com.google.ads.googleads.v10.resources.FeedItemAttributeValue getAttributeValues(int index) {
if (attributeValuesBuilder_ == null) {
return attributeValues_.get(index);
} else {
return attributeValuesBuilder_.getMessage(index);
}
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder setAttributeValues(
int index, com.google.ads.googleads.v10.resources.FeedItemAttributeValue value) {
if (attributeValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeValuesIsMutable();
attributeValues_.set(index, value);
onChanged();
} else {
attributeValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder setAttributeValues(
int index, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder builderForValue) {
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
attributeValues_.set(index, builderForValue.build());
onChanged();
} else {
attributeValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder addAttributeValues(com.google.ads.googleads.v10.resources.FeedItemAttributeValue value) {
if (attributeValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeValuesIsMutable();
attributeValues_.add(value);
onChanged();
} else {
attributeValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder addAttributeValues(
int index, com.google.ads.googleads.v10.resources.FeedItemAttributeValue value) {
if (attributeValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeValuesIsMutable();
attributeValues_.add(index, value);
onChanged();
} else {
attributeValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder addAttributeValues(
com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder builderForValue) {
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
attributeValues_.add(builderForValue.build());
onChanged();
} else {
attributeValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder addAttributeValues(
int index, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder builderForValue) {
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
attributeValues_.add(index, builderForValue.build());
onChanged();
} else {
attributeValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder addAllAttributeValues(
java.lang.Iterable extends com.google.ads.googleads.v10.resources.FeedItemAttributeValue> values) {
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributeValues_);
onChanged();
} else {
attributeValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder clearAttributeValues() {
if (attributeValuesBuilder_ == null) {
attributeValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
attributeValuesBuilder_.clear();
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public Builder removeAttributeValues(int index) {
if (attributeValuesBuilder_ == null) {
ensureAttributeValuesIsMutable();
attributeValues_.remove(index);
onChanged();
} else {
attributeValuesBuilder_.remove(index);
}
return this;
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder getAttributeValuesBuilder(
int index) {
return getAttributeValuesFieldBuilder().getBuilder(index);
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder getAttributeValuesOrBuilder(
int index) {
if (attributeValuesBuilder_ == null) {
return attributeValues_.get(index); } else {
return attributeValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public java.util.List extends com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder>
getAttributeValuesOrBuilderList() {
if (attributeValuesBuilder_ != null) {
return attributeValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributeValues_);
}
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder addAttributeValuesBuilder() {
return getAttributeValuesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.resources.FeedItemAttributeValue.getDefaultInstance());
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder addAttributeValuesBuilder(
int index) {
return getAttributeValuesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.getDefaultInstance());
}
/**
*
* The feed item's attribute values.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemAttributeValue attribute_values = 6;
*/
public java.util.List
getAttributeValuesBuilderList() {
return getAttributeValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemAttributeValue, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder, com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder>
getAttributeValuesFieldBuilder() {
if (attributeValuesBuilder_ == null) {
attributeValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemAttributeValue, com.google.ads.googleads.v10.resources.FeedItemAttributeValue.Builder, com.google.ads.googleads.v10.resources.FeedItemAttributeValueOrBuilder>(
attributeValues_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
attributeValues_ = null;
}
return attributeValuesBuilder_;
}
private int geoTargetingRestriction_ = 0;
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @return The enum numeric value on the wire for geoTargetingRestriction.
*/
@java.lang.Override public int getGeoTargetingRestrictionValue() {
return geoTargetingRestriction_;
}
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @param value The enum numeric value on the wire for geoTargetingRestriction to set.
* @return This builder for chaining.
*/
public Builder setGeoTargetingRestrictionValue(int value) {
geoTargetingRestriction_ = value;
onChanged();
return this;
}
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @return The geoTargetingRestriction.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction getGeoTargetingRestriction() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction result = com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.valueOf(geoTargetingRestriction_);
return result == null ? com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction.UNRECOGNIZED : result;
}
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @param value The geoTargetingRestriction to set.
* @return This builder for chaining.
*/
public Builder setGeoTargetingRestriction(com.google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction value) {
if (value == null) {
throw new NullPointerException();
}
geoTargetingRestriction_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Geo targeting restriction specifies the type of location that can be used
* for targeting.
*
*
* .google.ads.googleads.v10.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
* @return This builder for chaining.
*/
public Builder clearGeoTargetingRestriction() {
geoTargetingRestriction_ = 0;
onChanged();
return this;
}
private java.util.List urlCustomParameters_ =
java.util.Collections.emptyList();
private void ensureUrlCustomParametersIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder> urlCustomParametersBuilder_;
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public java.util.List getUrlCustomParametersList() {
if (urlCustomParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
} else {
return urlCustomParametersBuilder_.getMessageList();
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public int getUrlCustomParametersCount() {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.size();
} else {
return urlCustomParametersBuilder_.getCount();
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public com.google.ads.googleads.v10.common.CustomParameter getUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index);
} else {
return urlCustomParametersBuilder_.getMessage(index);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder addUrlCustomParameters(com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder addUrlCustomParameters(
com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder addAllUrlCustomParameters(
java.lang.Iterable extends com.google.ads.googleads.v10.common.CustomParameter> values) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, urlCustomParameters_);
onChanged();
} else {
urlCustomParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder clearUrlCustomParameters() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
urlCustomParametersBuilder_.clear();
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public Builder removeUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.remove(index);
onChanged();
} else {
urlCustomParametersBuilder_.remove(index);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder getUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().getBuilder(index);
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public com.google.ads.googleads.v10.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index); } else {
return urlCustomParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
if (urlCustomParametersBuilder_ != null) {
return urlCustomParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder() {
return getUrlCustomParametersFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.CustomParameter.getDefaultInstance());
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.CustomParameter.getDefaultInstance());
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 8;
*/
public java.util.List
getUrlCustomParametersBuilderList() {
return getUrlCustomParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersFieldBuilder() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>(
urlCustomParameters_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
urlCustomParameters_ = null;
}
return urlCustomParametersBuilder_;
}
private int status_ = 0;
/**
*
* Output only. Status of the feed item.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(.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 = 9 [(.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 = 9 [(.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 = 9 [(.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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.util.List policyInfos_ =
java.util.Collections.emptyList();
private void ensurePolicyInfosIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
policyInfos_ = new java.util.ArrayList(policyInfos_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder> policyInfosBuilder_;
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getPolicyInfosList() {
if (policyInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(policyInfos_);
} else {
return policyInfosBuilder_.getMessageList();
}
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getPolicyInfosCount() {
if (policyInfosBuilder_ == null) {
return policyInfos_.size();
} else {
return policyInfosBuilder_.getCount();
}
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo getPolicyInfos(int index) {
if (policyInfosBuilder_ == null) {
return policyInfos_.get(index);
} else {
return policyInfosBuilder_.getMessage(index);
}
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPolicyInfos(
int index, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo value) {
if (policyInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyInfosIsMutable();
policyInfos_.set(index, value);
onChanged();
} else {
policyInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPolicyInfos(
int index, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) {
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
policyInfos_.set(index, builderForValue.build());
onChanged();
} else {
policyInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addPolicyInfos(com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo value) {
if (policyInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyInfosIsMutable();
policyInfos_.add(value);
onChanged();
} else {
policyInfosBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addPolicyInfos(
int index, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo value) {
if (policyInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyInfosIsMutable();
policyInfos_.add(index, value);
onChanged();
} else {
policyInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addPolicyInfos(
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) {
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
policyInfos_.add(builderForValue.build());
onChanged();
} else {
policyInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addPolicyInfos(
int index, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) {
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
policyInfos_.add(index, builderForValue.build());
onChanged();
} else {
policyInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllPolicyInfos(
java.lang.Iterable extends com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo> values) {
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, policyInfos_);
onChanged();
} else {
policyInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearPolicyInfos() {
if (policyInfosBuilder_ == null) {
policyInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
policyInfosBuilder_.clear();
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removePolicyInfos(int index) {
if (policyInfosBuilder_ == null) {
ensurePolicyInfosIsMutable();
policyInfos_.remove(index);
onChanged();
} else {
policyInfosBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder getPolicyInfosBuilder(
int index) {
return getPolicyInfosFieldBuilder().getBuilder(index);
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder(
int index) {
if (policyInfosBuilder_ == null) {
return policyInfos_.get(index); } else {
return policyInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder>
getPolicyInfosOrBuilderList() {
if (policyInfosBuilder_ != null) {
return policyInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(policyInfos_);
}
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder addPolicyInfosBuilder() {
return getPolicyInfosFieldBuilder().addBuilder(
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance());
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder addPolicyInfosBuilder(
int index) {
return getPolicyInfosFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance());
}
/**
*
* Output only. List of info about a feed item's validation and approval state for active
* feed mappings. There will be an entry in the list for each type of feed
* mapping associated with the feed, for example, a feed with a sitelink and a
* call feed mapping would cause every feed item associated with that feed to
* have an entry in this list for both sitelink and call. This field is
* read-only.
*
*
* repeated .google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getPolicyInfosBuilderList() {
return getPolicyInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder>
getPolicyInfosFieldBuilder() {
if (policyInfosBuilder_ == null) {
policyInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v10.resources.FeedItemPlaceholderPolicyInfoOrBuilder>(
policyInfos_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
policyInfos_ = null;
}
return policyInfosBuilder_;
}
@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.FeedItem)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.FeedItem)
private static final com.google.ads.googleads.v10.resources.FeedItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.FeedItem();
}
public static com.google.ads.googleads.v10.resources.FeedItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeedItem 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.FeedItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy