com.google.ads.googleads.v17.common.LocalAdInfo 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 local ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocalAdInfo}
*/
public final class LocalAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LocalAdInfo)
LocalAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalAdInfo.newBuilder() to construct.
private LocalAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocalAdInfo() {
headlines_ = java.util.Collections.emptyList();
descriptions_ = java.util.Collections.emptyList();
callToActions_ = java.util.Collections.emptyList();
marketingImages_ = java.util.Collections.emptyList();
logoImages_ = java.util.Collections.emptyList();
videos_ = java.util.Collections.emptyList();
path1_ = "";
path2_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocalAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LocalAdInfo_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_LocalAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocalAdInfo.class, com.google.ads.googleads.v17.common.LocalAdInfo.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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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 CALL_TO_ACTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List callToActions_;
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
@java.lang.Override
public java.util.List getCallToActionsList() {
return callToActions_;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
return callToActions_;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
@java.lang.Override
public int getCallToActionsCount() {
return callToActions_.size();
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getCallToActions(int index) {
return callToActions_.get(index);
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getCallToActionsOrBuilder(
int index) {
return callToActions_.get(index);
}
public static final int MARKETING_IMAGES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List marketingImages_;
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
@java.lang.Override
public java.util.List getMarketingImagesList() {
return marketingImages_;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getMarketingImagesOrBuilderList() {
return marketingImages_;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
@java.lang.Override
public int getMarketingImagesCount() {
return marketingImages_.size();
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAsset getMarketingImages(int index) {
return marketingImages_.get(index);
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getMarketingImagesOrBuilder(
int index) {
return marketingImages_.get(index);
}
public static final int LOGO_IMAGES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List logoImages_;
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public java.util.List getLogoImagesList() {
return logoImages_;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getLogoImagesOrBuilderList() {
return logoImages_;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public int getLogoImagesCount() {
return logoImages_.size();
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAsset getLogoImages(int index) {
return logoImages_.get(index);
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getLogoImagesOrBuilder(
int index) {
return logoImages_.get(index);
}
public static final int VIDEOS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List videos_;
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
@java.lang.Override
public java.util.List getVideosList() {
return videos_;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>
getVideosOrBuilderList() {
return videos_;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
@java.lang.Override
public int getVideosCount() {
return videos_.size();
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdVideoAsset getVideos(int index) {
return videos_.get(index);
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder getVideosOrBuilder(
int index) {
return videos_.get(index);
}
public static final int PATH1_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object path1_ = "";
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @return Whether the path1 field is set.
*/
@java.lang.Override
public boolean hasPath1() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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 optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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 = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object path2_ = "";
/**
*
* Second part of optional 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 = 10;
* @return Whether the path2 field is set.
*/
@java.lang.Override
public boolean hasPath2() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Second part of optional 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 = 10;
* @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 optional 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 = 10;
* @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));
}
for (int i = 0; i < callToActions_.size(); i++) {
output.writeMessage(3, callToActions_.get(i));
}
for (int i = 0; i < marketingImages_.size(); i++) {
output.writeMessage(4, marketingImages_.get(i));
}
for (int i = 0; i < logoImages_.size(); i++) {
output.writeMessage(5, logoImages_.get(i));
}
for (int i = 0; i < videos_.size(); i++) {
output.writeMessage(6, videos_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, path1_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, 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));
}
for (int i = 0; i < callToActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, callToActions_.get(i));
}
for (int i = 0; i < marketingImages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, marketingImages_.get(i));
}
for (int i = 0; i < logoImages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, logoImages_.get(i));
}
for (int i = 0; i < videos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, videos_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, path1_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, 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.LocalAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.LocalAdInfo other = (com.google.ads.googleads.v17.common.LocalAdInfo) obj;
if (!getHeadlinesList()
.equals(other.getHeadlinesList())) return false;
if (!getDescriptionsList()
.equals(other.getDescriptionsList())) return false;
if (!getCallToActionsList()
.equals(other.getCallToActionsList())) return false;
if (!getMarketingImagesList()
.equals(other.getMarketingImagesList())) return false;
if (!getLogoImagesList()
.equals(other.getLogoImagesList())) return false;
if (!getVideosList()
.equals(other.getVideosList())) 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 (getCallToActionsCount() > 0) {
hash = (37 * hash) + CALL_TO_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionsList().hashCode();
}
if (getMarketingImagesCount() > 0) {
hash = (37 * hash) + MARKETING_IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getMarketingImagesList().hashCode();
}
if (getLogoImagesCount() > 0) {
hash = (37 * hash) + LOGO_IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getLogoImagesList().hashCode();
}
if (getVideosCount() > 0) {
hash = (37 * hash) + VIDEOS_FIELD_NUMBER;
hash = (53 * hash) + getVideosList().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.LocalAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocalAdInfo 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.LocalAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocalAdInfo 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.LocalAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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.LocalAdInfo 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 local ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocalAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LocalAdInfo)
com.google.ads.googleads.v17.common.LocalAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_LocalAdInfo_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_LocalAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocalAdInfo.class, com.google.ads.googleads.v17.common.LocalAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.LocalAdInfo.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);
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
} else {
callToActions_ = null;
callToActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (marketingImagesBuilder_ == null) {
marketingImages_ = java.util.Collections.emptyList();
} else {
marketingImages_ = null;
marketingImagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (logoImagesBuilder_ == null) {
logoImages_ = java.util.Collections.emptyList();
} else {
logoImages_ = null;
logoImagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
} else {
videos_ = null;
videosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
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_LocalAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocalAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.LocalAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocalAdInfo build() {
com.google.ads.googleads.v17.common.LocalAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocalAdInfo buildPartial() {
com.google.ads.googleads.v17.common.LocalAdInfo result = new com.google.ads.googleads.v17.common.LocalAdInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.LocalAdInfo 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();
}
if (callToActionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
callToActions_ = java.util.Collections.unmodifiableList(callToActions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.callToActions_ = callToActions_;
} else {
result.callToActions_ = callToActionsBuilder_.build();
}
if (marketingImagesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
marketingImages_ = java.util.Collections.unmodifiableList(marketingImages_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.marketingImages_ = marketingImages_;
} else {
result.marketingImages_ = marketingImagesBuilder_.build();
}
if (logoImagesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
logoImages_ = java.util.Collections.unmodifiableList(logoImages_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.logoImages_ = logoImages_;
} else {
result.logoImages_ = logoImagesBuilder_.build();
}
if (videosBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
videos_ = java.util.Collections.unmodifiableList(videos_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.videos_ = videos_;
} else {
result.videos_ = videosBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.LocalAdInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.path1_ = path1_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 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.LocalAdInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.LocalAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.LocalAdInfo other) {
if (other == com.google.ads.googleads.v17.common.LocalAdInfo.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 (callToActionsBuilder_ == null) {
if (!other.callToActions_.isEmpty()) {
if (callToActions_.isEmpty()) {
callToActions_ = other.callToActions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCallToActionsIsMutable();
callToActions_.addAll(other.callToActions_);
}
onChanged();
}
} else {
if (!other.callToActions_.isEmpty()) {
if (callToActionsBuilder_.isEmpty()) {
callToActionsBuilder_.dispose();
callToActionsBuilder_ = null;
callToActions_ = other.callToActions_;
bitField0_ = (bitField0_ & ~0x00000004);
callToActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCallToActionsFieldBuilder() : null;
} else {
callToActionsBuilder_.addAllMessages(other.callToActions_);
}
}
}
if (marketingImagesBuilder_ == null) {
if (!other.marketingImages_.isEmpty()) {
if (marketingImages_.isEmpty()) {
marketingImages_ = other.marketingImages_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureMarketingImagesIsMutable();
marketingImages_.addAll(other.marketingImages_);
}
onChanged();
}
} else {
if (!other.marketingImages_.isEmpty()) {
if (marketingImagesBuilder_.isEmpty()) {
marketingImagesBuilder_.dispose();
marketingImagesBuilder_ = null;
marketingImages_ = other.marketingImages_;
bitField0_ = (bitField0_ & ~0x00000008);
marketingImagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMarketingImagesFieldBuilder() : null;
} else {
marketingImagesBuilder_.addAllMessages(other.marketingImages_);
}
}
}
if (logoImagesBuilder_ == null) {
if (!other.logoImages_.isEmpty()) {
if (logoImages_.isEmpty()) {
logoImages_ = other.logoImages_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureLogoImagesIsMutable();
logoImages_.addAll(other.logoImages_);
}
onChanged();
}
} else {
if (!other.logoImages_.isEmpty()) {
if (logoImagesBuilder_.isEmpty()) {
logoImagesBuilder_.dispose();
logoImagesBuilder_ = null;
logoImages_ = other.logoImages_;
bitField0_ = (bitField0_ & ~0x00000010);
logoImagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogoImagesFieldBuilder() : null;
} else {
logoImagesBuilder_.addAllMessages(other.logoImages_);
}
}
}
if (videosBuilder_ == null) {
if (!other.videos_.isEmpty()) {
if (videos_.isEmpty()) {
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureVideosIsMutable();
videos_.addAll(other.videos_);
}
onChanged();
}
} else {
if (!other.videos_.isEmpty()) {
if (videosBuilder_.isEmpty()) {
videosBuilder_.dispose();
videosBuilder_ = null;
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000020);
videosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVideosFieldBuilder() : null;
} else {
videosBuilder_.addAllMessages(other.videos_);
}
}
}
if (other.hasPath1()) {
path1_ = other.path1_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasPath2()) {
path2_ = other.path2_;
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 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 26: {
com.google.ads.googleads.v17.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdTextAsset.parser(),
extensionRegistry);
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(m);
} else {
callToActionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
com.google.ads.googleads.v17.common.AdImageAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdImageAsset.parser(),
extensionRegistry);
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
marketingImages_.add(m);
} else {
marketingImagesBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.google.ads.googleads.v17.common.AdImageAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdImageAsset.parser(),
extensionRegistry);
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(m);
} else {
logoImagesBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
com.google.ads.googleads.v17.common.AdVideoAsset m =
input.readMessage(
com.google.ads.googleads.v17.common.AdVideoAsset.parser(),
extensionRegistry);
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.add(m);
} else {
videosBuilder_.addMessage(m);
}
break;
} // case 50
case 74: {
path1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 74
case 82: {
path2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 82
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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 headlines must be
* specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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. At least 1 and at most 5 descriptions must
* be specified.
*
*
* 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.util.List callToActions_ =
java.util.Collections.emptyList();
private void ensureCallToActionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
callToActions_ = new java.util.ArrayList(callToActions_);
bitField0_ |= 0x00000004;
}
}
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> callToActionsBuilder_;
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public java.util.List getCallToActionsList() {
if (callToActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(callToActions_);
} else {
return callToActionsBuilder_.getMessageList();
}
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public int getCallToActionsCount() {
if (callToActionsBuilder_ == null) {
return callToActions_.size();
} else {
return callToActionsBuilder_.getCount();
}
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public com.google.ads.googleads.v17.common.AdTextAsset getCallToActions(int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index);
} else {
return callToActionsBuilder_.getMessage(index);
}
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.set(index, value);
onChanged();
} else {
callToActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.set(index, builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder addCallToActions(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.add(value);
onChanged();
} else {
callToActionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v17.common.AdTextAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.add(index, value);
onChanged();
} else {
callToActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder addCallToActions(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(index, builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder addAllCallToActions(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdTextAsset> values) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, callToActions_);
onChanged();
} else {
callToActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder clearCallToActions() {
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
callToActionsBuilder_.clear();
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public Builder removeCallToActions(int index) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.remove(index);
onChanged();
} else {
callToActionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getCallToActionsOrBuilder(
int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index); } else {
return callToActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
if (callToActionsBuilder_ != null) {
return callToActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callToActions_);
}
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addCallToActionsBuilder() {
return getCallToActionsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder addCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets for call-to-actions. When the ad serves the
* call-to-actions will be selected from this list. At least 1 and at most
* 5 call-to-actions must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdTextAsset call_to_actions = 3;
*/
public java.util.List
getCallToActionsBuilderList() {
return getCallToActionsFieldBuilder().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>
getCallToActionsFieldBuilder() {
if (callToActionsBuilder_ == null) {
callToActionsBuilder_ = 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>(
callToActions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
callToActions_ = null;
}
return callToActionsBuilder_;
}
private java.util.List marketingImages_ =
java.util.Collections.emptyList();
private void ensureMarketingImagesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
marketingImages_ = new java.util.ArrayList(marketingImages_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder> marketingImagesBuilder_;
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public java.util.List getMarketingImagesList() {
if (marketingImagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(marketingImages_);
} else {
return marketingImagesBuilder_.getMessageList();
}
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public int getMarketingImagesCount() {
if (marketingImagesBuilder_ == null) {
return marketingImages_.size();
} else {
return marketingImagesBuilder_.getCount();
}
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public com.google.ads.googleads.v17.common.AdImageAsset getMarketingImages(int index) {
if (marketingImagesBuilder_ == null) {
return marketingImages_.get(index);
} else {
return marketingImagesBuilder_.getMessage(index);
}
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder setMarketingImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset value) {
if (marketingImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarketingImagesIsMutable();
marketingImages_.set(index, value);
onChanged();
} else {
marketingImagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder setMarketingImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
marketingImages_.set(index, builderForValue.build());
onChanged();
} else {
marketingImagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder addMarketingImages(com.google.ads.googleads.v17.common.AdImageAsset value) {
if (marketingImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarketingImagesIsMutable();
marketingImages_.add(value);
onChanged();
} else {
marketingImagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder addMarketingImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset value) {
if (marketingImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarketingImagesIsMutable();
marketingImages_.add(index, value);
onChanged();
} else {
marketingImagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder addMarketingImages(
com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
marketingImages_.add(builderForValue.build());
onChanged();
} else {
marketingImagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder addMarketingImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
marketingImages_.add(index, builderForValue.build());
onChanged();
} else {
marketingImagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder addAllMarketingImages(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdImageAsset> values) {
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, marketingImages_);
onChanged();
} else {
marketingImagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder clearMarketingImages() {
if (marketingImagesBuilder_ == null) {
marketingImages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
marketingImagesBuilder_.clear();
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public Builder removeMarketingImages(int index) {
if (marketingImagesBuilder_ == null) {
ensureMarketingImagesIsMutable();
marketingImages_.remove(index);
onChanged();
} else {
marketingImagesBuilder_.remove(index);
}
return this;
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder getMarketingImagesBuilder(
int index) {
return getMarketingImagesFieldBuilder().getBuilder(index);
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getMarketingImagesOrBuilder(
int index) {
if (marketingImagesBuilder_ == null) {
return marketingImages_.get(index); } else {
return marketingImagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getMarketingImagesOrBuilderList() {
if (marketingImagesBuilder_ != null) {
return marketingImagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(marketingImages_);
}
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder addMarketingImagesBuilder() {
return getMarketingImagesFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder addMarketingImagesBuilder(
int index) {
return getMarketingImagesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of marketing image assets that may be displayed with the ad. The
* images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
* 20 image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset marketing_images = 4;
*/
public java.util.List
getMarketingImagesBuilderList() {
return getMarketingImagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getMarketingImagesFieldBuilder() {
if (marketingImagesBuilder_ == null) {
marketingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>(
marketingImages_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
marketingImages_ = null;
}
return marketingImagesBuilder_;
}
private java.util.List logoImages_ =
java.util.Collections.emptyList();
private void ensureLogoImagesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
logoImages_ = new java.util.ArrayList(logoImages_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder> logoImagesBuilder_;
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public java.util.List getLogoImagesList() {
if (logoImagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(logoImages_);
} else {
return logoImagesBuilder_.getMessageList();
}
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public int getLogoImagesCount() {
if (logoImagesBuilder_ == null) {
return logoImages_.size();
} else {
return logoImagesBuilder_.getCount();
}
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v17.common.AdImageAsset getLogoImages(int index) {
if (logoImagesBuilder_ == null) {
return logoImages_.get(index);
} else {
return logoImagesBuilder_.getMessage(index);
}
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder setLogoImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.set(index, value);
onChanged();
} else {
logoImagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder setLogoImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.set(index, builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(com.google.ads.googleads.v17.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.add(value);
onChanged();
} else {
logoImagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.add(index, value);
onChanged();
} else {
logoImagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
int index, com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(index, builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder addAllLogoImages(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdImageAsset> values) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, logoImages_);
onChanged();
} else {
logoImagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder clearLogoImages() {
if (logoImagesBuilder_ == null) {
logoImages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
logoImagesBuilder_.clear();
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public Builder removeLogoImages(int index) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.remove(index);
onChanged();
} else {
logoImagesBuilder_.remove(index);
}
return this;
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder getLogoImagesBuilder(
int index) {
return getLogoImagesFieldBuilder().getBuilder(index);
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getLogoImagesOrBuilder(
int index) {
if (logoImagesBuilder_ == null) {
return logoImages_.get(index); } else {
return logoImagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getLogoImagesOrBuilderList() {
if (logoImagesBuilder_ != null) {
return logoImagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logoImages_);
}
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder addLogoImagesBuilder() {
return getLogoImagesFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder addLogoImagesBuilder(
int index) {
return getLogoImagesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of logo image assets that may be displayed with the ad. The images
* must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
* image assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdImageAsset logo_images = 5;
*/
public java.util.List
getLogoImagesBuilderList() {
return getLogoImagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getLogoImagesFieldBuilder() {
if (logoImagesBuilder_ == null) {
logoImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>(
logoImages_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
logoImages_ = null;
}
return logoImagesBuilder_;
}
private java.util.List videos_ =
java.util.Collections.emptyList();
private void ensureVideosIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
videos_ = new java.util.ArrayList(videos_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder> videosBuilder_;
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public java.util.List getVideosList() {
if (videosBuilder_ == null) {
return java.util.Collections.unmodifiableList(videos_);
} else {
return videosBuilder_.getMessageList();
}
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public int getVideosCount() {
if (videosBuilder_ == null) {
return videos_.size();
} else {
return videosBuilder_.getCount();
}
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public com.google.ads.googleads.v17.common.AdVideoAsset getVideos(int index) {
if (videosBuilder_ == null) {
return videos_.get(index);
} else {
return videosBuilder_.getMessage(index);
}
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v17.common.AdVideoAsset value) {
if (videosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVideosIsMutable();
videos_.set(index, value);
onChanged();
} else {
videosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v17.common.AdVideoAsset.Builder builderForValue) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.set(index, builderForValue.build());
onChanged();
} else {
videosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder addVideos(com.google.ads.googleads.v17.common.AdVideoAsset value) {
if (videosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVideosIsMutable();
videos_.add(value);
onChanged();
} else {
videosBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v17.common.AdVideoAsset value) {
if (videosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVideosIsMutable();
videos_.add(index, value);
onChanged();
} else {
videosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder addVideos(
com.google.ads.googleads.v17.common.AdVideoAsset.Builder builderForValue) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.add(builderForValue.build());
onChanged();
} else {
videosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v17.common.AdVideoAsset.Builder builderForValue) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.add(index, builderForValue.build());
onChanged();
} else {
videosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder addAllVideos(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdVideoAsset> values) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, videos_);
onChanged();
} else {
videosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder clearVideos() {
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
videosBuilder_.clear();
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public Builder removeVideos(int index) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.remove(index);
onChanged();
} else {
videosBuilder_.remove(index);
}
return this;
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public com.google.ads.googleads.v17.common.AdVideoAsset.Builder getVideosBuilder(
int index) {
return getVideosFieldBuilder().getBuilder(index);
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder getVideosOrBuilder(
int index) {
if (videosBuilder_ == null) {
return videos_.get(index); } else {
return videosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>
getVideosOrBuilderList() {
if (videosBuilder_ != null) {
return videosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(videos_);
}
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public com.google.ads.googleads.v17.common.AdVideoAsset.Builder addVideosBuilder() {
return getVideosFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public com.google.ads.googleads.v17.common.AdVideoAsset.Builder addVideosBuilder(
int index) {
return getVideosFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets that may be displayed with the ad. At least 1
* and at most 20 video assets must be specified.
*
*
* repeated .google.ads.googleads.v17.common.AdVideoAsset videos = 6;
*/
public java.util.List
getVideosBuilderList() {
return getVideosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>
getVideosFieldBuilder() {
if (videosBuilder_ == null) {
videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>(
videos_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
videos_ = null;
}
return videosBuilder_;
}
private java.lang.Object path1_ = "";
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @return Whether the path1 field is set.
*/
public boolean hasPath1() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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 optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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 optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @return This builder for chaining.
*/
public Builder clearPath1() {
path1_ = getDefaultInstance().getPath1();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* First part of optional text that can be appended to the URL in the ad.
*
*
* optional string path1 = 9;
* @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_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object path2_ = "";
/**
*
* Second part of optional 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 = 10;
* @return Whether the path2 field is set.
*/
public boolean hasPath2() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Second part of optional 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 = 10;
* @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 optional 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 = 10;
* @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 optional 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 = 10;
* @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_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Second part of optional 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 = 10;
* @return This builder for chaining.
*/
public Builder clearPath2() {
path2_ = getDefaultInstance().getPath2();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Second part of optional 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 = 10;
* @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_ |= 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.LocalAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LocalAdInfo)
private static final com.google.ads.googleads.v17.common.LocalAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LocalAdInfo();
}
public static com.google.ads.googleads.v17.common.LocalAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocalAdInfo 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.LocalAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy