com.google.ads.googleads.v17.common.SitelinkFeedItem 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 a sitelink.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.SitelinkFeedItem}
*/
public final class SitelinkFeedItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.SitelinkFeedItem)
SitelinkFeedItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use SitelinkFeedItem.newBuilder() to construct.
private SitelinkFeedItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SitelinkFeedItem() {
linkText_ = "";
line1_ = "";
line2_ = "";
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 SitelinkFeedItem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_SitelinkFeedItem_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_SitelinkFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.SitelinkFeedItem.class, com.google.ads.googleads.v17.common.SitelinkFeedItem.Builder.class);
}
private int bitField0_;
public static final int LINK_TEXT_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object linkText_ = "";
/**
*
* URL display text for the sitelink.
* 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);
}
/**
*
* URL display text for the sitelink.
* 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;
}
}
/**
*
* URL display text for the sitelink.
* 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 LINE1_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object line1_ = "";
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return Whether the line1 field is set.
*/
@java.lang.Override
public boolean hasLine1() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return The line1.
*/
@java.lang.Override
public java.lang.String getLine1() {
java.lang.Object ref = line1_;
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();
line1_ = s;
return s;
}
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return The bytes for line1.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLine1Bytes() {
java.lang.Object ref = line1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
line1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LINE2_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object line2_ = "";
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return Whether the line2 field is set.
*/
@java.lang.Override
public boolean hasLine2() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return The line2.
*/
@java.lang.Override
public java.lang.String getLine2() {
java.lang.Object ref = line2_;
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();
line2_ = s;
return s;
}
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return The bytes for line2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLine2Bytes() {
java.lang.Object ref = line2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
line2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FINAL_URLS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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 = 13;
@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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object trackingUrlTemplate_ = "";
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 14;
* @return Whether the trackingUrlTemplate field is set.
*/
@java.lang.Override
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 14;
* @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.
*
*
* optional string tracking_url_template = 14;
* @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 = 15;
@SuppressWarnings("serial")
private volatile java.lang.Object finalUrlSuffix_ = "";
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @return Whether the finalUrlSuffix field is set.
*/
@java.lang.Override
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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;
}
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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 {
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, line1_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, line2_);
}
for (int i = 0; i < finalUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, finalUrls_.getRaw(i));
}
for (int i = 0; i < finalMobileUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, finalMobileUrls_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, finalUrlSuffix_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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, line1_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, line2_);
}
{
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_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, trackingUrlTemplate_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, 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.SitelinkFeedItem)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.SitelinkFeedItem other = (com.google.ads.googleads.v17.common.SitelinkFeedItem) obj;
if (hasLinkText() != other.hasLinkText()) return false;
if (hasLinkText()) {
if (!getLinkText()
.equals(other.getLinkText())) return false;
}
if (hasLine1() != other.hasLine1()) return false;
if (hasLine1()) {
if (!getLine1()
.equals(other.getLine1())) return false;
}
if (hasLine2() != other.hasLine2()) return false;
if (hasLine2()) {
if (!getLine2()
.equals(other.getLine2())) 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 (hasLine1()) {
hash = (37 * hash) + LINE1_FIELD_NUMBER;
hash = (53 * hash) + getLine1().hashCode();
}
if (hasLine2()) {
hash = (37 * hash) + LINE2_FIELD_NUMBER;
hash = (53 * hash) + getLine2().hashCode();
}
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.SitelinkFeedItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.SitelinkFeedItem 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.SitelinkFeedItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.SitelinkFeedItem 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.SitelinkFeedItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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.SitelinkFeedItem 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 a sitelink.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.SitelinkFeedItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.SitelinkFeedItem)
com.google.ads.googleads.v17.common.SitelinkFeedItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_SitelinkFeedItem_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_SitelinkFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.SitelinkFeedItem.class, com.google.ads.googleads.v17.common.SitelinkFeedItem.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.SitelinkFeedItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
linkText_ = "";
line1_ = "";
line2_ = "";
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_SitelinkFeedItem_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkFeedItem getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.SitelinkFeedItem.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkFeedItem build() {
com.google.ads.googleads.v17.common.SitelinkFeedItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkFeedItem buildPartial() {
com.google.ads.googleads.v17.common.SitelinkFeedItem result = new com.google.ads.googleads.v17.common.SitelinkFeedItem(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.SitelinkFeedItem 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.SitelinkFeedItem 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.line1_ = line1_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.line2_ = line2_;
to_bitField0_ |= 0x00000004;
}
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_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.finalUrlSuffix_ = finalUrlSuffix_;
to_bitField0_ |= 0x00000010;
}
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.SitelinkFeedItem) {
return mergeFrom((com.google.ads.googleads.v17.common.SitelinkFeedItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.SitelinkFeedItem other) {
if (other == com.google.ads.googleads.v17.common.SitelinkFeedItem.getDefaultInstance()) return this;
if (other.hasLinkText()) {
linkText_ = other.linkText_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLine1()) {
line1_ = other.line1_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasLine2()) {
line2_ = other.line2_;
bitField0_ |= 0x00000004;
onChanged();
}
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 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: {
line1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
case 90: {
line2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalUrlsIsMutable();
finalUrls_.add(s);
break;
} // case 98
case 106: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(s);
break;
} // case 106
case 114: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 114
case 122: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 122
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_ = "";
/**
*
* URL display text for the sitelink.
* 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);
}
/**
*
* URL display text for the sitelink.
* 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;
}
}
/**
*
* URL display text for the sitelink.
* 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;
}
}
/**
*
* URL display text for the sitelink.
* 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;
}
/**
*
* URL display text for the sitelink.
* 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;
}
/**
*
* URL display text for the sitelink.
* 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 line1_ = "";
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return Whether the line1 field is set.
*/
public boolean hasLine1() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return The line1.
*/
public java.lang.String getLine1() {
java.lang.Object ref = line1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
line1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return The bytes for line1.
*/
public com.google.protobuf.ByteString
getLine1Bytes() {
java.lang.Object ref = line1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
line1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @param value The line1 to set.
* @return This builder for chaining.
*/
public Builder setLine1(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
line1_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @return This builder for chaining.
*/
public Builder clearLine1() {
line1_ = getDefaultInstance().getLine1();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* First line of the description for the sitelink.
* If this value is set, line2 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line1 = 10;
* @param value The bytes for line1 to set.
* @return This builder for chaining.
*/
public Builder setLine1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
line1_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object line2_ = "";
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return Whether the line2 field is set.
*/
public boolean hasLine2() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return The line2.
*/
public java.lang.String getLine2() {
java.lang.Object ref = line2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
line2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return The bytes for line2.
*/
public com.google.protobuf.ByteString
getLine2Bytes() {
java.lang.Object ref = line2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
line2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @param value The line2 to set.
* @return This builder for chaining.
*/
public Builder setLine2(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
line2_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @return This builder for chaining.
*/
public Builder clearLine2() {
line2_ = getDefaultInstance().getLine2();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Second line of the description for the sitelink.
* If this value is set, line1 must also be set.
* The length of this string should be between 0 and 35, inclusive.
*
*
* optional string line2 = 11;
* @param value The bytes for line2 to set.
* @return This builder for chaining.
*/
public Builder setLine2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
line2_ = value;
bitField0_ |= 0x00000004;
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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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.
*
*
* repeated string final_urls = 12;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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 = 13;
* @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.
*
*
* optional string tracking_url_template = 14;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 14;
* @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.
*
*
* optional string tracking_url_template = 14;
* @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.
*
*
* optional string tracking_url_template = 14;
* @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.
*
*
* optional string tracking_url_template = 14;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 14;
* @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_ = "";
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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;
}
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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;
}
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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;
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Final URL suffix to be appended to landing page URLs served with
* parallel tracking.
*
*
* optional string final_url_suffix = 15;
* @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.SitelinkFeedItem)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.SitelinkFeedItem)
private static final com.google.ads.googleads.v17.common.SitelinkFeedItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.SitelinkFeedItem();
}
public static com.google.ads.googleads.v17.common.SitelinkFeedItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SitelinkFeedItem 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.SitelinkFeedItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy