com.google.ads.googleads.v17.common.AppFeedItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/extensions.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Represents an App extension.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.AppFeedItem}
*/
public final class AppFeedItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.AppFeedItem)
AppFeedItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use AppFeedItem.newBuilder() to construct.
private AppFeedItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AppFeedItem() {
linkText_ = "";
appId_ = "";
appStore_ = 0;
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
trackingUrlTemplate_ = "";
urlCustomParameters_ = java.util.Collections.emptyList();
finalUrlSuffix_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AppFeedItem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AppFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AppFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.AppFeedItem.class, com.google.ads.googleads.v17.common.AppFeedItem.Builder.class);
}
private int bitField0_;
public static final int LINK_TEXT_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object linkText_ = "";
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return Whether the linkText field is set.
*/
@java.lang.Override
public boolean hasLinkText() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return The linkText.
*/
@java.lang.Override
public java.lang.String getLinkText() {
java.lang.Object ref = linkText_;
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();
linkText_ = s;
return s;
}
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return The bytes for linkText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLinkTextBytes() {
java.lang.Object ref = linkText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
linkText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_ID_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object appId_ = "";
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return The appId.
*/
@java.lang.Override
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
appId_ = s;
return s;
}
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_STORE_FIELD_NUMBER = 3;
private int appStore_ = 0;
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @return The enum numeric value on the wire for appStore.
*/
@java.lang.Override public int getAppStoreValue() {
return appStore_;
}
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @return The appStore.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore getAppStore() {
com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore result = com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.forNumber(appStore_);
return result == null ? com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.UNRECOGNIZED : result;
}
public static final int FINAL_URLS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
return finalUrls_;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
public static final int FINAL_MOBILE_URLS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
return finalMobileUrls_;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object trackingUrlTemplate_ = "";
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return Whether the trackingUrlTemplate field is set.
*/
@java.lang.Override
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return The trackingUrlTemplate.
*/
@java.lang.Override
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
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();
trackingUrlTemplate_ = s;
return s;
}
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return The bytes for trackingUrlTemplate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List urlCustomParameters_;
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
@java.lang.Override
public java.util.List getUrlCustomParametersList() {
return urlCustomParameters_;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
return urlCustomParameters_;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
@java.lang.Override
public int getUrlCustomParametersCount() {
return urlCustomParameters_.size();
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CustomParameter getUrlCustomParameters(int index) {
return urlCustomParameters_.get(index);
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
return urlCustomParameters_.get(index);
}
public static final int FINAL_URL_SUFFIX_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object finalUrlSuffix_ = "";
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return Whether the finalUrlSuffix field is set.
*/
@java.lang.Override
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return The finalUrlSuffix.
*/
@java.lang.Override
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
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();
finalUrlSuffix_ = s;
return s;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return The bytes for finalUrlSuffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (appStore_ != com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.UNSPECIFIED.getNumber()) {
output.writeEnum(3, appStore_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
output.writeMessage(7, urlCustomParameters_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkText_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, appId_);
}
for (int i = 0; i < finalUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, finalUrls_.getRaw(i));
}
for (int i = 0; i < finalMobileUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, finalMobileUrls_.getRaw(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, finalUrlSuffix_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (appStore_ != com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, appStore_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, urlCustomParameters_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkText_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, appId_);
}
{
int dataSize = 0;
for (int i = 0; i < finalUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalUrls_.getRaw(i));
}
size += dataSize;
size += 1 * getFinalUrlsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < finalMobileUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalMobileUrls_.getRaw(i));
}
size += dataSize;
size += 1 * getFinalMobileUrlsList().size();
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, finalUrlSuffix_);
}
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.v17.common.AppFeedItem)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.AppFeedItem other = (com.google.ads.googleads.v17.common.AppFeedItem) obj;
if (hasLinkText() != other.hasLinkText()) return false;
if (hasLinkText()) {
if (!getLinkText()
.equals(other.getLinkText())) return false;
}
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (appStore_ != other.appStore_) return false;
if (!getFinalUrlsList()
.equals(other.getFinalUrlsList())) return false;
if (!getFinalMobileUrlsList()
.equals(other.getFinalMobileUrlsList())) return false;
if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false;
if (hasTrackingUrlTemplate()) {
if (!getTrackingUrlTemplate()
.equals(other.getTrackingUrlTemplate())) return false;
}
if (!getUrlCustomParametersList()
.equals(other.getUrlCustomParametersList())) return false;
if (hasFinalUrlSuffix() != other.hasFinalUrlSuffix()) return false;
if (hasFinalUrlSuffix()) {
if (!getFinalUrlSuffix()
.equals(other.getFinalUrlSuffix())) 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();
if (hasLinkText()) {
hash = (37 * hash) + LINK_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getLinkText().hashCode();
}
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
hash = (37 * hash) + APP_STORE_FIELD_NUMBER;
hash = (53 * hash) + appStore_;
if (getFinalUrlsCount() > 0) {
hash = (37 * hash) + FINAL_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlsList().hashCode();
}
if (getFinalMobileUrlsCount() > 0) {
hash = (37 * hash) + FINAL_MOBILE_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalMobileUrlsList().hashCode();
}
if (hasTrackingUrlTemplate()) {
hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrlTemplate().hashCode();
}
if (getUrlCustomParametersCount() > 0) {
hash = (37 * hash) + URL_CUSTOM_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getUrlCustomParametersList().hashCode();
}
if (hasFinalUrlSuffix()) {
hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlSuffix().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.AppFeedItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AppFeedItem 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.v17.common.AppFeedItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AppFeedItem 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.v17.common.AppFeedItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AppFeedItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.AppFeedItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.AppFeedItem 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.v17.common.AppFeedItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.AppFeedItem 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.v17.common.AppFeedItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.AppFeedItem 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.v17.common.AppFeedItem 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;
}
/**
*
* Represents an App extension.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.AppFeedItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.AppFeedItem)
com.google.ads.googleads.v17.common.AppFeedItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AppFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AppFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.AppFeedItem.class, com.google.ads.googleads.v17.common.AppFeedItem.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.AppFeedItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
linkText_ = "";
appId_ = "";
appStore_ = 0;
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
trackingUrlTemplate_ = "";
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
} else {
urlCustomParameters_ = null;
urlCustomParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
finalUrlSuffix_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AppFeedItem_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AppFeedItem getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.AppFeedItem.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AppFeedItem build() {
com.google.ads.googleads.v17.common.AppFeedItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AppFeedItem buildPartial() {
com.google.ads.googleads.v17.common.AppFeedItem result = new com.google.ads.googleads.v17.common.AppFeedItem(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.AppFeedItem result) {
if (urlCustomParametersBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.urlCustomParameters_ = urlCustomParameters_;
} else {
result.urlCustomParameters_ = urlCustomParametersBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.AppFeedItem result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.linkText_ = linkText_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.appId_ = appId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.appStore_ = appStore_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
finalUrls_.makeImmutable();
result.finalUrls_ = finalUrls_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
finalMobileUrls_.makeImmutable();
result.finalMobileUrls_ = finalMobileUrls_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.trackingUrlTemplate_ = trackingUrlTemplate_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.finalUrlSuffix_ = finalUrlSuffix_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.v17.common.AppFeedItem) {
return mergeFrom((com.google.ads.googleads.v17.common.AppFeedItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.AppFeedItem other) {
if (other == com.google.ads.googleads.v17.common.AppFeedItem.getDefaultInstance()) return this;
if (other.hasLinkText()) {
linkText_ = other.linkText_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasAppId()) {
appId_ = other.appId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.appStore_ != 0) {
setAppStoreValue(other.getAppStoreValue());
}
if (!other.finalUrls_.isEmpty()) {
if (finalUrls_.isEmpty()) {
finalUrls_ = other.finalUrls_;
bitField0_ |= 0x00000008;
} else {
ensureFinalUrlsIsMutable();
finalUrls_.addAll(other.finalUrls_);
}
onChanged();
}
if (!other.finalMobileUrls_.isEmpty()) {
if (finalMobileUrls_.isEmpty()) {
finalMobileUrls_ = other.finalMobileUrls_;
bitField0_ |= 0x00000010;
} else {
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.addAll(other.finalMobileUrls_);
}
onChanged();
}
if (other.hasTrackingUrlTemplate()) {
trackingUrlTemplate_ = other.trackingUrlTemplate_;
bitField0_ |= 0x00000020;
onChanged();
}
if (urlCustomParametersBuilder_ == null) {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParameters_.isEmpty()) {
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.addAll(other.urlCustomParameters_);
}
onChanged();
}
} else {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParametersBuilder_.isEmpty()) {
urlCustomParametersBuilder_.dispose();
urlCustomParametersBuilder_ = null;
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000040);
urlCustomParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUrlCustomParametersFieldBuilder() : null;
} else {
urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_);
}
}
}
if (other.hasFinalUrlSuffix()) {
finalUrlSuffix_ = other.finalUrlSuffix_;
bitField0_ |= 0x00000080;
onChanged();
}
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 24: {
appStore_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 58: {
com.google.ads.googleads.v17.common.CustomParameter m =
input.readMessage(
com.google.ads.googleads.v17.common.CustomParameter.parser(),
extensionRegistry);
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(m);
} else {
urlCustomParametersBuilder_.addMessage(m);
}
break;
} // case 58
case 74: {
linkText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 74
case 82: {
appId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalUrlsIsMutable();
finalUrls_.add(s);
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(s);
break;
} // case 98
case 106: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 106
case 114: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
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 linkText_ = "";
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return Whether the linkText field is set.
*/
public boolean hasLinkText() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return The linkText.
*/
public java.lang.String getLinkText() {
java.lang.Object ref = linkText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
linkText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return The bytes for linkText.
*/
public com.google.protobuf.ByteString
getLinkTextBytes() {
java.lang.Object ref = linkText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
linkText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @param value The linkText to set.
* @return This builder for chaining.
*/
public Builder setLinkText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
linkText_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @return This builder for chaining.
*/
public Builder clearLinkText() {
linkText_ = getDefaultInstance().getLinkText();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The visible text displayed when the link is rendered in an ad.
* This string must not be empty, and the length of this string should
* be between 1 and 25, inclusive.
*
*
* optional string link_text = 9;
* @param value The bytes for linkText to set.
* @return This builder for chaining.
*/
public Builder setLinkTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
linkText_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return Whether the appId field is set.
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
appId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The store-specific ID for the target application.
* This string must not be empty.
*
*
* optional string app_id = 10;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
appId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int appStore_ = 0;
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @return The enum numeric value on the wire for appStore.
*/
@java.lang.Override public int getAppStoreValue() {
return appStore_;
}
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @param value The enum numeric value on the wire for appStore to set.
* @return This builder for chaining.
*/
public Builder setAppStoreValue(int value) {
appStore_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @return The appStore.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore getAppStore() {
com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore result = com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.forNumber(appStore_);
return result == null ? com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore.UNRECOGNIZED : result;
}
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @param value The appStore to set.
* @return This builder for chaining.
*/
public Builder setAppStore(com.google.ads.googleads.v17.enums.AppStoreEnum.AppStore value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appStore_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The application store that the target application belongs to.
* This field is required.
*
*
* .google.ads.googleads.v17.enums.AppStoreEnum.AppStore app_store = 3;
* @return This builder for chaining.
*/
public Builder clearAppStore() {
bitField0_ = (bitField0_ & ~0x00000004);
appStore_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFinalUrlsIsMutable() {
if (!finalUrls_.isModifiable()) {
finalUrls_ = new com.google.protobuf.LazyStringArrayList(finalUrls_);
}
bitField0_ |= 0x00000008;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
finalUrls_.makeImmutable();
return finalUrls_;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param index The index to set the value at.
* @param value The finalUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalUrls(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalUrlsIsMutable();
finalUrls_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param value The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrls(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param values The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalUrls(
java.lang.Iterable values) {
ensureFinalUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalUrls_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @return This builder for chaining.
*/
public Builder clearFinalUrls() {
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
* This list must not be empty.
*
*
* repeated string final_urls = 11;
* @param value The bytes of the finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFinalMobileUrlsIsMutable() {
if (!finalMobileUrls_.isModifiable()) {
finalMobileUrls_ = new com.google.protobuf.LazyStringArrayList(finalMobileUrls_);
}
bitField0_ |= 0x00000010;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
finalMobileUrls_.makeImmutable();
return finalMobileUrls_;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param index The index to set the value at.
* @param value The finalMobileUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalMobileUrls(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param value The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrls(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param values The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalMobileUrls(
java.lang.Iterable values) {
ensureFinalMobileUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalMobileUrls_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @return This builder for chaining.
*/
public Builder clearFinalMobileUrls() {
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 12;
* @param value The bytes of the finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object trackingUrlTemplate_ = "";
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return The trackingUrlTemplate.
*/
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackingUrlTemplate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return The bytes for trackingUrlTemplate.
*/
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @param value The trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* URL template for constructing a tracking URL. Default value is "{lpurl}".
*
*
* optional string tracking_url_template = 13;
* @param value The bytes for trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.util.List urlCustomParameters_ =
java.util.Collections.emptyList();
private void ensureUrlCustomParametersIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder> urlCustomParametersBuilder_;
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public java.util.List getUrlCustomParametersList() {
if (urlCustomParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
} else {
return urlCustomParametersBuilder_.getMessageList();
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public int getUrlCustomParametersCount() {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.size();
} else {
return urlCustomParametersBuilder_.getCount();
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public com.google.ads.googleads.v17.common.CustomParameter getUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index);
} else {
return urlCustomParametersBuilder_.getMessage(index);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v17.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;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder addUrlCustomParameters(com.google.ads.googleads.v17.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v17.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;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder addUrlCustomParameters(
com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder addAllUrlCustomParameters(
java.lang.Iterable extends com.google.ads.googleads.v17.common.CustomParameter> values) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, urlCustomParameters_);
onChanged();
} else {
urlCustomParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder clearUrlCustomParameters() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
urlCustomParametersBuilder_.clear();
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public Builder removeUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.remove(index);
onChanged();
} else {
urlCustomParametersBuilder_.remove(index);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder getUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().getBuilder(index);
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public com.google.ads.googleads.v17.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index); } else {
return urlCustomParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public java.util.List extends com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
if (urlCustomParametersBuilder_ != null) {
return urlCustomParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder addUrlCustomParametersBuilder() {
return getUrlCustomParametersFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.CustomParameter.getDefaultInstance());
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder addUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.CustomParameter.getDefaultInstance());
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 7;
*/
public java.util.List
getUrlCustomParametersBuilderList() {
return getUrlCustomParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersFieldBuilder() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder>(
urlCustomParameters_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
urlCustomParameters_ = null;
}
return urlCustomParametersBuilder_;
}
private java.lang.Object finalUrlSuffix_ = "";
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return The finalUrlSuffix.
*/
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
finalUrlSuffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return The bytes for finalUrlSuffix.
*/
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @param value The finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
finalUrlSuffix_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 14;
* @param value The bytes for finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
finalUrlSuffix_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.AppFeedItem)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.AppFeedItem)
private static final com.google.ads.googleads.v17.common.AppFeedItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.AppFeedItem();
}
public static com.google.ads.googleads.v17.common.AppFeedItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AppFeedItem 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.v17.common.AppFeedItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy