com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo 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/ad_type_infos.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A responsive search ad.
*
* Responsive search ads let you create an ad that adapts to show more text, and
* more relevant messages, to your customers. Enter multiple headlines and
* descriptions when creating a responsive search ad, and over time, Google Ads
* will automatically test different combinations and learn which combinations
* perform best. By adapting your ad's content to more closely match potential
* customers' search terms, responsive search ads may improve your campaign's
* performance.
*
* More information at https://support.google.com/google-ads/answer/7684791
*
*
* Protobuf type {@code google.ads.googleads.v17.common.ResponsiveSearchAdInfo}
*/
public final class ResponsiveSearchAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.ResponsiveSearchAdInfo)
ResponsiveSearchAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdInfo.newBuilder() to construct.
private ResponsiveSearchAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdInfo() {
headlines_ = java.util.Collections.emptyList();
descriptions_ = java.util.Collections.emptyList();
path1_ = "";
path2_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ResponsiveSearchAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ResponsiveSearchAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.class, com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.Builder.class);
}
private int bitField0_;
public static final int HEADLINES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List headlines_;
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List getHeadlinesList() {
return headlines_;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
return headlines_;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public int getHeadlinesCount() {
return headlines_.size();
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getHeadlines(int index) {
return headlines_.get(index);
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
int index) {
return headlines_.get(index);
}
public static final int DESCRIPTIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List descriptions_;
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
@java.lang.Override
public java.util.List getDescriptionsList() {
return descriptions_;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
return descriptions_;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
@java.lang.Override
public int getDescriptionsCount() {
return descriptions_.size();
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getDescriptions(int index) {
return descriptions_.get(index);
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
int index) {
return descriptions_.get(index);
}
public static final int PATH1_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object path1_ = "";
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return Whether the path1 field is set.
*/
@java.lang.Override
public boolean hasPath1() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return The path1.
*/
@java.lang.Override
public java.lang.String getPath1() {
java.lang.Object ref = path1_;
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();
path1_ = s;
return s;
}
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return The bytes for path1.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPath1Bytes() {
java.lang.Object ref = path1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH2_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object path2_ = "";
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return Whether the path2 field is set.
*/
@java.lang.Override
public boolean hasPath2() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return The path2.
*/
@java.lang.Override
public java.lang.String getPath2() {
java.lang.Object ref = path2_;
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();
path2_ = s;
return s;
}
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return The bytes for path2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPath2Bytes() {
java.lang.Object ref = path2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path2_ = 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 < headlines_.size(); i++) {
output.writeMessage(1, headlines_.get(i));
}
for (int i = 0; i < descriptions_.size(); i++) {
output.writeMessage(2, descriptions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, path1_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, path2_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < headlines_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, headlines_.get(i));
}
for (int i = 0; i < descriptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, descriptions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, path1_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, path2_);
}
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.ResponsiveSearchAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo other = (com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo) obj;
if (!getHeadlinesList()
.equals(other.getHeadlinesList())) return false;
if (!getDescriptionsList()
.equals(other.getDescriptionsList())) return false;
if (hasPath1() != other.hasPath1()) return false;
if (hasPath1()) {
if (!getPath1()
.equals(other.getPath1())) return false;
}
if (hasPath2() != other.hasPath2()) return false;
if (hasPath2()) {
if (!getPath2()
.equals(other.getPath2())) 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 (getHeadlinesCount() > 0) {
hash = (37 * hash) + HEADLINES_FIELD_NUMBER;
hash = (53 * hash) + getHeadlinesList().hashCode();
}
if (getDescriptionsCount() > 0) {
hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getDescriptionsList().hashCode();
}
if (hasPath1()) {
hash = (37 * hash) + PATH1_FIELD_NUMBER;
hash = (53 * hash) + getPath1().hashCode();
}
if (hasPath2()) {
hash = (37 * hash) + PATH2_FIELD_NUMBER;
hash = (53 * hash) + getPath2().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A responsive search ad.
*
* Responsive search ads let you create an ad that adapts to show more text, and
* more relevant messages, to your customers. Enter multiple headlines and
* descriptions when creating a responsive search ad, and over time, Google Ads
* will automatically test different combinations and learn which combinations
* perform best. By adapting your ad's content to more closely match potential
* customers' search terms, responsive search ads may improve your campaign's
* performance.
*
* More information at https://support.google.com/google-ads/answer/7684791
*
*
* Protobuf type {@code google.ads.googleads.v17.common.ResponsiveSearchAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.ResponsiveSearchAdInfo)
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ResponsiveSearchAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ResponsiveSearchAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.class, com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (headlinesBuilder_ == null) {
headlines_ = java.util.Collections.emptyList();
} else {
headlines_ = null;
headlinesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (descriptionsBuilder_ == null) {
descriptions_ = java.util.Collections.emptyList();
} else {
descriptions_ = null;
descriptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
path1_ = "";
path2_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ResponsiveSearchAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo build() {
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo buildPartial() {
com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo result = new com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo result) {
if (headlinesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
headlines_ = java.util.Collections.unmodifiableList(headlines_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.headlines_ = headlines_;
} else {
result.headlines_ = headlinesBuilder_.build();
}
if (descriptionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
descriptions_ = java.util.Collections.unmodifiableList(descriptions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.descriptions_ = descriptions_;
} else {
result.descriptions_ = descriptionsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.path1_ = path1_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.path2_ = path2_;
to_bitField0_ |= 0x00000002;
}
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.ResponsiveSearchAdInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo other) {
if (other == com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo.getDefaultInstance()) return this;
if (headlinesBuilder_ == null) {
if (!other.headlines_.isEmpty()) {
if (headlines_.isEmpty()) {
headlines_ = other.headlines_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHeadlinesIsMutable();
headlines_.addAll(other.headlines_);
}
onChanged();
}
} else {
if (!other.headlines_.isEmpty()) {
if (headlinesBuilder_.isEmpty()) {
headlinesBuilder_.dispose();
headlinesBuilder_ = null;
headlines_ = other.headlines_;
bitField0_ = (bitField0_ & ~0x00000001);
headlinesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeadlinesFieldBuilder() : null;
} else {
headlinesBuilder_.addAllMessages(other.headlines_);
}
}
}
if (descriptionsBuilder_ == null) {
if (!other.descriptions_.isEmpty()) {
if (descriptions_.isEmpty()) {
descriptions_ = other.descriptions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDescriptionsIsMutable();
descriptions_.addAll(other.descriptions_);
}
onChanged();
}
} else {
if (!other.descriptions_.isEmpty()) {
if (descriptionsBuilder_.isEmpty()) {
descriptionsBuilder_.dispose();
descriptionsBuilder_ = null;
descriptions_ = other.descriptions_;
bitField0_ = (bitField0_ & ~0x00000002);
descriptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDescriptionsFieldBuilder() : null;
} else {
descriptionsBuilder_.addAllMessages(other.descriptions_);
}
}
}
if (other.hasPath1()) {
path1_ = other.path1_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasPath2()) {
path2_ = other.path2_;
bitField0_ |= 0x00000008;
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 10: {
com.google.ads.googleads.v17.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdTextAsset.parser(),
extensionRegistry);
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(m);
} else {
headlinesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v17.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdTextAsset.parser(),
extensionRegistry);
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(m);
} else {
descriptionsBuilder_.addMessage(m);
}
break;
} // case 18
case 42: {
path1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 42
case 50: {
path2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 50
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.util.List headlines_ =
java.util.Collections.emptyList();
private void ensureHeadlinesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
headlines_ = new java.util.ArrayList(headlines_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder> headlinesBuilder_;
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public java.util.List getHeadlinesList() {
if (headlinesBuilder_ == null) {
return java.util.Collections.unmodifiableList(headlines_);
} else {
return headlinesBuilder_.getMessageList();
}
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public int getHeadlinesCount() {
if (headlinesBuilder_ == null) {
return headlines_.size();
} else {
return headlinesBuilder_.getCount();
}
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v17.common.AdTextAsset getHeadlines(int index) {
if (headlinesBuilder_ == null) {
return headlines_.get(index);
} else {
return headlinesBuilder_.getMessage(index);
}
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (headlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadlinesIsMutable();
headlines_.set(index, value);
onChanged();
} else {
headlinesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.set(index, builderForValue.build());
onChanged();
} else {
headlinesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (headlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadlinesIsMutable();
headlines_.add(value);
onChanged();
} else {
headlinesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (headlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadlinesIsMutable();
headlines_.add(index, value);
onChanged();
} else {
headlinesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(builderForValue.build());
onChanged();
} else {
headlinesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(index, builderForValue.build());
onChanged();
} else {
headlinesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder addAllHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdTextAsset> values) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, headlines_);
onChanged();
} else {
headlinesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder clearHeadlines() {
if (headlinesBuilder_ == null) {
headlines_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
headlinesBuilder_.clear();
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public Builder removeHeadlines(int index) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.remove(index);
onChanged();
} else {
headlinesBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
int index) {
if (headlinesBuilder_ == null) {
return headlines_.get(index); } else {
return headlinesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
if (headlinesBuilder_ != null) {
return headlinesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(headlines_);
}
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addHeadlinesBuilder() {
return getHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for headlines. When the ad serves the headlines will
* be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset headlines = 1;
*/
public java.util.List
getHeadlinesBuilderList() {
return getHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getHeadlinesFieldBuilder() {
if (headlinesBuilder_ == null) {
headlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>(
headlines_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
headlines_ = null;
}
return headlinesBuilder_;
}
private java.util.List descriptions_ =
java.util.Collections.emptyList();
private void ensureDescriptionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
descriptions_ = new java.util.ArrayList(descriptions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder> descriptionsBuilder_;
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public java.util.List getDescriptionsList() {
if (descriptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(descriptions_);
} else {
return descriptionsBuilder_.getMessageList();
}
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public int getDescriptionsCount() {
if (descriptionsBuilder_ == null) {
return descriptions_.size();
} else {
return descriptionsBuilder_.getCount();
}
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public com.google.ads.googleads.v17.common.AdTextAsset getDescriptions(int index) {
if (descriptionsBuilder_ == null) {
return descriptions_.get(index);
} else {
return descriptionsBuilder_.getMessage(index);
}
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (descriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescriptionsIsMutable();
descriptions_.set(index, value);
onChanged();
} else {
descriptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.set(index, builderForValue.build());
onChanged();
} else {
descriptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder addDescriptions(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (descriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescriptionsIsMutable();
descriptions_.add(value);
onChanged();
} else {
descriptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (descriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescriptionsIsMutable();
descriptions_.add(index, value);
onChanged();
} else {
descriptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder addDescriptions(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(builderForValue.build());
onChanged();
} else {
descriptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(index, builderForValue.build());
onChanged();
} else {
descriptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder addAllDescriptions(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdTextAsset> values) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, descriptions_);
onChanged();
} else {
descriptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder clearDescriptions() {
if (descriptionsBuilder_ == null) {
descriptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
descriptionsBuilder_.clear();
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public Builder removeDescriptions(int index) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.remove(index);
onChanged();
} else {
descriptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
int index) {
if (descriptionsBuilder_ == null) {
return descriptions_.get(index); } else {
return descriptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
if (descriptionsBuilder_ != null) {
return descriptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(descriptions_);
}
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addDescriptionsBuilder() {
return getDescriptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for descriptions. When the ad serves the descriptions
* will be selected from this list.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset descriptions = 2;
*/
public java.util.List
getDescriptionsBuilderList() {
return getDescriptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getDescriptionsFieldBuilder() {
if (descriptionsBuilder_ == null) {
descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>(
descriptions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
descriptions_ = null;
}
return descriptionsBuilder_;
}
private java.lang.Object path1_ = "";
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return Whether the path1 field is set.
*/
public boolean hasPath1() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return The path1.
*/
public java.lang.String getPath1() {
java.lang.Object ref = path1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return The bytes for path1.
*/
public com.google.protobuf.ByteString
getPath1Bytes() {
java.lang.Object ref = path1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @param value The path1 to set.
* @return This builder for chaining.
*/
public Builder setPath1(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path1_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @return This builder for chaining.
*/
public Builder clearPath1() {
path1_ = getDefaultInstance().getPath1();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* First part of text that can be appended to the URL in the ad.
*
*
* optional string path1 = 5;
* @param value The bytes for path1 to set.
* @return This builder for chaining.
*/
public Builder setPath1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path1_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object path2_ = "";
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return Whether the path2 field is set.
*/
public boolean hasPath2() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return The path2.
*/
public java.lang.String getPath2() {
java.lang.Object ref = path2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return The bytes for path2.
*/
public com.google.protobuf.ByteString
getPath2Bytes() {
java.lang.Object ref = path2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @param value The path2 to set.
* @return This builder for chaining.
*/
public Builder setPath2(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path2_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @return This builder for chaining.
*/
public Builder clearPath2() {
path2_ = getDefaultInstance().getPath2();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Second part of text that can be appended to the URL in the ad. This field
* can only be set when `path1` is also set.
*
*
* optional string path2 = 6;
* @param value The bytes for path2 to set.
* @return This builder for chaining.
*/
public Builder setPath2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path2_ = value;
bitField0_ |= 0x00000008;
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.ResponsiveSearchAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.ResponsiveSearchAdInfo)
private static final com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo();
}
public static com.google.ads.googleads.v17.common.ResponsiveSearchAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdInfo 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.ResponsiveSearchAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy