
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v9 Show documentation
Show all versions of google-ads-stubs-v9 Show documentation
Stubs for GAAPI version google-ads-stubs-v9
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/common/ad_type_infos.proto
package com.google.ads.googleads.v9.common;
/**
*
* A video responsive ad.
*
*
* Protobuf type {@code google.ads.googleads.v9.common.VideoResponsiveAdInfo}
*/
public final class VideoResponsiveAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v9.common.VideoResponsiveAdInfo)
VideoResponsiveAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use VideoResponsiveAdInfo.newBuilder() to construct.
private VideoResponsiveAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VideoResponsiveAdInfo() {
headlines_ = java.util.Collections.emptyList();
longHeadlines_ = java.util.Collections.emptyList();
descriptions_ = java.util.Collections.emptyList();
callToActions_ = java.util.Collections.emptyList();
videos_ = java.util.Collections.emptyList();
companionBanners_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VideoResponsiveAdInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VideoResponsiveAdInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
headlines_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
headlines_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdTextAsset.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
longHeadlines_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
longHeadlines_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdTextAsset.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
descriptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
descriptions_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdTextAsset.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
callToActions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
callToActions_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdTextAsset.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
videos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
videos_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdVideoAsset.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
companionBanners_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
companionBanners_.add(
input.readMessage(com.google.ads.googleads.v9.common.AdImageAsset.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
headlines_ = java.util.Collections.unmodifiableList(headlines_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
longHeadlines_ = java.util.Collections.unmodifiableList(longHeadlines_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
descriptions_ = java.util.Collections.unmodifiableList(descriptions_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
callToActions_ = java.util.Collections.unmodifiableList(callToActions_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
videos_ = java.util.Collections.unmodifiableList(videos_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
companionBanners_ = java.util.Collections.unmodifiableList(companionBanners_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v9.common.AdTypeInfosProto.internal_static_google_ads_googleads_v9_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v9.common.AdTypeInfosProto.internal_static_google_ads_googleads_v9_common_VideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.class, com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.Builder.class);
}
public static final int HEADLINES_FIELD_NUMBER = 1;
private java.util.List headlines_;
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List getHeadlinesList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public int getHeadlinesCount() {
return headlines_.size();
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAsset getHeadlines(int index) {
return headlines_.get(index);
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
int index) {
return headlines_.get(index);
}
public static final int LONG_HEADLINES_FIELD_NUMBER = 2;
private java.util.List longHeadlines_;
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public java.util.List getLongHeadlinesList() {
return longHeadlines_;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getLongHeadlinesOrBuilderList() {
return longHeadlines_;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public int getLongHeadlinesCount() {
return longHeadlines_.size();
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAsset getLongHeadlines(int index) {
return longHeadlines_.get(index);
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getLongHeadlinesOrBuilder(
int index) {
return longHeadlines_.get(index);
}
public static final int DESCRIPTIONS_FIELD_NUMBER = 3;
private java.util.List descriptions_;
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public java.util.List getDescriptionsList() {
return descriptions_;
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
return descriptions_;
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public int getDescriptionsCount() {
return descriptions_.size();
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAsset getDescriptions(int index) {
return descriptions_.get(index);
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
int index) {
return descriptions_.get(index);
}
public static final int CALL_TO_ACTIONS_FIELD_NUMBER = 4;
private java.util.List callToActions_;
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public java.util.List getCallToActionsList() {
return callToActions_;
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
return callToActions_;
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public int getCallToActionsCount() {
return callToActions_.size();
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAsset getCallToActions(int index) {
return callToActions_.get(index);
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getCallToActionsOrBuilder(
int index) {
return callToActions_.get(index);
}
public static final int VIDEOS_FIELD_NUMBER = 5;
private java.util.List videos_;
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public java.util.List getVideosList() {
return videos_;
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder>
getVideosOrBuilderList() {
return videos_;
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public int getVideosCount() {
return videos_.size();
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdVideoAsset getVideos(int index) {
return videos_.get(index);
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder getVideosOrBuilder(
int index) {
return videos_.get(index);
}
public static final int COMPANION_BANNERS_FIELD_NUMBER = 6;
private java.util.List companionBanners_;
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public java.util.List getCompanionBannersList() {
return companionBanners_;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v9.common.AdImageAssetOrBuilder>
getCompanionBannersOrBuilderList() {
return companionBanners_;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public int getCompanionBannersCount() {
return companionBanners_.size();
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdImageAsset getCompanionBanners(int index) {
return companionBanners_.get(index);
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v9.common.AdImageAssetOrBuilder getCompanionBannersOrBuilder(
int index) {
return companionBanners_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < headlines_.size(); i++) {
output.writeMessage(1, headlines_.get(i));
}
for (int i = 0; i < longHeadlines_.size(); i++) {
output.writeMessage(2, longHeadlines_.get(i));
}
for (int i = 0; i < descriptions_.size(); i++) {
output.writeMessage(3, descriptions_.get(i));
}
for (int i = 0; i < callToActions_.size(); i++) {
output.writeMessage(4, callToActions_.get(i));
}
for (int i = 0; i < videos_.size(); i++) {
output.writeMessage(5, videos_.get(i));
}
for (int i = 0; i < companionBanners_.size(); i++) {
output.writeMessage(6, companionBanners_.get(i));
}
unknownFields.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 < longHeadlines_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, longHeadlines_.get(i));
}
for (int i = 0; i < descriptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, descriptions_.get(i));
}
for (int i = 0; i < callToActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, callToActions_.get(i));
}
for (int i = 0; i < videos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, videos_.get(i));
}
for (int i = 0; i < companionBanners_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, companionBanners_.get(i));
}
size += unknownFields.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.v9.common.VideoResponsiveAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo other = (com.google.ads.googleads.v9.common.VideoResponsiveAdInfo) obj;
if (!getHeadlinesList()
.equals(other.getHeadlinesList())) return false;
if (!getLongHeadlinesList()
.equals(other.getLongHeadlinesList())) return false;
if (!getDescriptionsList()
.equals(other.getDescriptionsList())) return false;
if (!getCallToActionsList()
.equals(other.getCallToActionsList())) return false;
if (!getVideosList()
.equals(other.getVideosList())) return false;
if (!getCompanionBannersList()
.equals(other.getCompanionBannersList())) return false;
if (!unknownFields.equals(other.unknownFields)) 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 (getLongHeadlinesCount() > 0) {
hash = (37 * hash) + LONG_HEADLINES_FIELD_NUMBER;
hash = (53 * hash) + getLongHeadlinesList().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 (getVideosCount() > 0) {
hash = (37 * hash) + VIDEOS_FIELD_NUMBER;
hash = (53 * hash) + getVideosList().hashCode();
}
if (getCompanionBannersCount() > 0) {
hash = (37 * hash) + COMPANION_BANNERS_FIELD_NUMBER;
hash = (53 * hash) + getCompanionBannersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo 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.v9.common.VideoResponsiveAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo 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.v9.common.VideoResponsiveAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo 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.v9.common.VideoResponsiveAdInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo 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.v9.common.VideoResponsiveAdInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo 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.v9.common.VideoResponsiveAdInfo 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 video responsive ad.
*
*
* Protobuf type {@code google.ads.googleads.v9.common.VideoResponsiveAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v9.common.VideoResponsiveAdInfo)
com.google.ads.googleads.v9.common.VideoResponsiveAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v9.common.AdTypeInfosProto.internal_static_google_ads_googleads_v9_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v9.common.AdTypeInfosProto.internal_static_google_ads_googleads_v9_common_VideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.class, com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeadlinesFieldBuilder();
getLongHeadlinesFieldBuilder();
getDescriptionsFieldBuilder();
getCallToActionsFieldBuilder();
getVideosFieldBuilder();
getCompanionBannersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headlinesBuilder_ == null) {
headlines_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
headlinesBuilder_.clear();
}
if (longHeadlinesBuilder_ == null) {
longHeadlines_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
longHeadlinesBuilder_.clear();
}
if (descriptionsBuilder_ == null) {
descriptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
descriptionsBuilder_.clear();
}
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
callToActionsBuilder_.clear();
}
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
videosBuilder_.clear();
}
if (companionBannersBuilder_ == null) {
companionBanners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
companionBannersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v9.common.AdTypeInfosProto.internal_static_google_ads_googleads_v9_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v9.common.VideoResponsiveAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v9.common.VideoResponsiveAdInfo build() {
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v9.common.VideoResponsiveAdInfo buildPartial() {
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo result = new com.google.ads.googleads.v9.common.VideoResponsiveAdInfo(this);
int from_bitField0_ = bitField0_;
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 (longHeadlinesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
longHeadlines_ = java.util.Collections.unmodifiableList(longHeadlines_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.longHeadlines_ = longHeadlines_;
} else {
result.longHeadlines_ = longHeadlinesBuilder_.build();
}
if (descriptionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
descriptions_ = java.util.Collections.unmodifiableList(descriptions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.descriptions_ = descriptions_;
} else {
result.descriptions_ = descriptionsBuilder_.build();
}
if (callToActionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
callToActions_ = java.util.Collections.unmodifiableList(callToActions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.callToActions_ = callToActions_;
} else {
result.callToActions_ = callToActionsBuilder_.build();
}
if (videosBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
videos_ = java.util.Collections.unmodifiableList(videos_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.videos_ = videos_;
} else {
result.videos_ = videosBuilder_.build();
}
if (companionBannersBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
companionBanners_ = java.util.Collections.unmodifiableList(companionBanners_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.companionBanners_ = companionBanners_;
} else {
result.companionBanners_ = companionBannersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v9.common.VideoResponsiveAdInfo) {
return mergeFrom((com.google.ads.googleads.v9.common.VideoResponsiveAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v9.common.VideoResponsiveAdInfo other) {
if (other == com.google.ads.googleads.v9.common.VideoResponsiveAdInfo.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 (longHeadlinesBuilder_ == null) {
if (!other.longHeadlines_.isEmpty()) {
if (longHeadlines_.isEmpty()) {
longHeadlines_ = other.longHeadlines_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLongHeadlinesIsMutable();
longHeadlines_.addAll(other.longHeadlines_);
}
onChanged();
}
} else {
if (!other.longHeadlines_.isEmpty()) {
if (longHeadlinesBuilder_.isEmpty()) {
longHeadlinesBuilder_.dispose();
longHeadlinesBuilder_ = null;
longHeadlines_ = other.longHeadlines_;
bitField0_ = (bitField0_ & ~0x00000002);
longHeadlinesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLongHeadlinesFieldBuilder() : null;
} else {
longHeadlinesBuilder_.addAllMessages(other.longHeadlines_);
}
}
}
if (descriptionsBuilder_ == null) {
if (!other.descriptions_.isEmpty()) {
if (descriptions_.isEmpty()) {
descriptions_ = other.descriptions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDescriptionsIsMutable();
descriptions_.addAll(other.descriptions_);
}
onChanged();
}
} else {
if (!other.descriptions_.isEmpty()) {
if (descriptionsBuilder_.isEmpty()) {
descriptionsBuilder_.dispose();
descriptionsBuilder_ = null;
descriptions_ = other.descriptions_;
bitField0_ = (bitField0_ & ~0x00000004);
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_ & ~0x00000008);
} else {
ensureCallToActionsIsMutable();
callToActions_.addAll(other.callToActions_);
}
onChanged();
}
} else {
if (!other.callToActions_.isEmpty()) {
if (callToActionsBuilder_.isEmpty()) {
callToActionsBuilder_.dispose();
callToActionsBuilder_ = null;
callToActions_ = other.callToActions_;
bitField0_ = (bitField0_ & ~0x00000008);
callToActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCallToActionsFieldBuilder() : null;
} else {
callToActionsBuilder_.addAllMessages(other.callToActions_);
}
}
}
if (videosBuilder_ == null) {
if (!other.videos_.isEmpty()) {
if (videos_.isEmpty()) {
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureVideosIsMutable();
videos_.addAll(other.videos_);
}
onChanged();
}
} else {
if (!other.videos_.isEmpty()) {
if (videosBuilder_.isEmpty()) {
videosBuilder_.dispose();
videosBuilder_ = null;
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000010);
videosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVideosFieldBuilder() : null;
} else {
videosBuilder_.addAllMessages(other.videos_);
}
}
}
if (companionBannersBuilder_ == null) {
if (!other.companionBanners_.isEmpty()) {
if (companionBanners_.isEmpty()) {
companionBanners_ = other.companionBanners_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCompanionBannersIsMutable();
companionBanners_.addAll(other.companionBanners_);
}
onChanged();
}
} else {
if (!other.companionBanners_.isEmpty()) {
if (companionBannersBuilder_.isEmpty()) {
companionBannersBuilder_.dispose();
companionBannersBuilder_ = null;
companionBanners_ = other.companionBanners_;
bitField0_ = (bitField0_ & ~0x00000020);
companionBannersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCompanionBannersFieldBuilder() : null;
} else {
companionBannersBuilder_.addAllMessages(other.companionBanners_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.google.ads.googleads.v9.common.VideoResponsiveAdInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.ads.googleads.v9.common.VideoResponsiveAdInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder> headlinesBuilder_;
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public int getHeadlinesCount() {
if (headlinesBuilder_ == null) {
return headlines_.size();
} else {
return headlinesBuilder_.getCount();
}
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v9.common.AdTextAsset getHeadlines(int index) {
if (headlinesBuilder_ == null) {
return headlines_.get(index);
} else {
return headlinesBuilder_.getMessage(index);
}
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(builderForValue.build());
onChanged();
} else {
headlinesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public Builder addAllHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.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 used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder getHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
int index) {
if (headlinesBuilder_ == null) {
return headlines_.get(index); } else {
return headlinesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
if (headlinesBuilder_ != null) {
return headlinesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(headlines_);
}
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addHeadlinesBuilder() {
return getHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline, e.g. the "Call To Action"
* banner. Currently, only a single value for the short headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;
*/
public java.util.List
getHeadlinesBuilderList() {
return getHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getHeadlinesFieldBuilder() {
if (headlinesBuilder_ == null) {
headlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>(
headlines_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
headlines_ = null;
}
return headlinesBuilder_;
}
private java.util.List longHeadlines_ =
java.util.Collections.emptyList();
private void ensureLongHeadlinesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
longHeadlines_ = new java.util.ArrayList(longHeadlines_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder> longHeadlinesBuilder_;
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public java.util.List getLongHeadlinesList() {
if (longHeadlinesBuilder_ == null) {
return java.util.Collections.unmodifiableList(longHeadlines_);
} else {
return longHeadlinesBuilder_.getMessageList();
}
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public int getLongHeadlinesCount() {
if (longHeadlinesBuilder_ == null) {
return longHeadlines_.size();
} else {
return longHeadlinesBuilder_.getCount();
}
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v9.common.AdTextAsset getLongHeadlines(int index) {
if (longHeadlinesBuilder_ == null) {
return longHeadlines_.get(index);
} else {
return longHeadlinesBuilder_.getMessage(index);
}
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v9.common.AdTextAsset value) {
if (longHeadlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLongHeadlinesIsMutable();
longHeadlines_.set(index, value);
onChanged();
} else {
longHeadlinesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.set(index, builderForValue.build());
onChanged();
} else {
longHeadlinesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(com.google.ads.googleads.v9.common.AdTextAsset value) {
if (longHeadlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLongHeadlinesIsMutable();
longHeadlines_.add(value);
onChanged();
} else {
longHeadlinesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v9.common.AdTextAsset value) {
if (longHeadlinesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLongHeadlinesIsMutable();
longHeadlines_.add(index, value);
onChanged();
} else {
longHeadlinesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.add(builderForValue.build());
onChanged();
} else {
longHeadlinesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.add(index, builderForValue.build());
onChanged();
} else {
longHeadlinesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder addAllLongHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v9.common.AdTextAsset> values) {
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, longHeadlines_);
onChanged();
} else {
longHeadlinesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder clearLongHeadlines() {
if (longHeadlinesBuilder_ == null) {
longHeadlines_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
longHeadlinesBuilder_.clear();
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public Builder removeLongHeadlines(int index) {
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.remove(index);
onChanged();
} else {
longHeadlinesBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder getLongHeadlinesBuilder(
int index) {
return getLongHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getLongHeadlinesOrBuilder(
int index) {
if (longHeadlinesBuilder_ == null) {
return longHeadlines_.get(index); } else {
return longHeadlinesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getLongHeadlinesOrBuilderList() {
if (longHeadlinesBuilder_ != null) {
return longHeadlinesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(longHeadlines_);
}
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addLongHeadlinesBuilder() {
return getLongHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addLongHeadlinesBuilder(
int index) {
return getLongHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the long headline.
* Currently, only a single value for the long headline is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;
*/
public java.util.List
getLongHeadlinesBuilderList() {
return getLongHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getLongHeadlinesFieldBuilder() {
if (longHeadlinesBuilder_ == null) {
longHeadlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>(
longHeadlines_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
longHeadlines_ = null;
}
return longHeadlinesBuilder_;
}
private java.util.List descriptions_ =
java.util.Collections.emptyList();
private void ensureDescriptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
descriptions_ = new java.util.ArrayList(descriptions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder> descriptionsBuilder_;
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public java.util.List getDescriptionsList() {
if (descriptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(descriptions_);
} else {
return descriptionsBuilder_.getMessageList();
}
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public int getDescriptionsCount() {
if (descriptionsBuilder_ == null) {
return descriptions_.size();
} else {
return descriptionsBuilder_.getCount();
}
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v9.common.AdTextAsset getDescriptions(int index) {
if (descriptionsBuilder_ == null) {
return descriptions_.get(index);
} else {
return descriptionsBuilder_.getMessage(index);
}
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(builderForValue.build());
onChanged();
} else {
descriptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder addAllDescriptions(
java.lang.Iterable extends com.google.ads.googleads.v9.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 used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder clearDescriptions() {
if (descriptionsBuilder_ == null) {
descriptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
descriptionsBuilder_.clear();
}
return this;
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public Builder removeDescriptions(int index) {
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.remove(index);
onChanged();
} else {
descriptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder getDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
int index) {
if (descriptionsBuilder_ == null) {
return descriptions_.get(index); } else {
return descriptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
if (descriptionsBuilder_ != null) {
return descriptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(descriptions_);
}
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addDescriptionsBuilder() {
return getDescriptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the description.
* Currently, only a single value for the description is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;
*/
public java.util.List
getDescriptionsBuilderList() {
return getDescriptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getDescriptionsFieldBuilder() {
if (descriptionsBuilder_ == null) {
descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>(
descriptions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
descriptions_ = null;
}
return descriptionsBuilder_;
}
private java.util.List callToActions_ =
java.util.Collections.emptyList();
private void ensureCallToActionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
callToActions_ = new java.util.ArrayList(callToActions_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder> callToActionsBuilder_;
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public java.util.List getCallToActionsList() {
if (callToActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(callToActions_);
} else {
return callToActionsBuilder_.getMessageList();
}
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public int getCallToActionsCount() {
if (callToActionsBuilder_ == null) {
return callToActions_.size();
} else {
return callToActionsBuilder_.getCount();
}
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v9.common.AdTextAsset getCallToActions(int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index);
} else {
return callToActionsBuilder_.getMessage(index);
}
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
com.google.ads.googleads.v9.common.AdTextAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder addAllCallToActions(
java.lang.Iterable extends com.google.ads.googleads.v9.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 used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder clearCallToActions() {
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
callToActionsBuilder_.clear();
}
return this;
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public Builder removeCallToActions(int index) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.remove(index);
onChanged();
} else {
callToActionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder getCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v9.common.AdTextAssetOrBuilder getCallToActionsOrBuilder(
int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index); } else {
return callToActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
if (callToActionsBuilder_ != null) {
return callToActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callToActions_);
}
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addCallToActionsBuilder() {
return getCallToActionsFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v9.common.AdTextAsset.Builder addCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the button, e.g. the "Call To Action" button.
* Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;
*/
public java.util.List
getCallToActionsBuilderList() {
return getCallToActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>
getCallToActionsFieldBuilder() {
if (callToActionsBuilder_ == null) {
callToActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdTextAsset, com.google.ads.googleads.v9.common.AdTextAsset.Builder, com.google.ads.googleads.v9.common.AdTextAssetOrBuilder>(
callToActions_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
callToActions_ = null;
}
return callToActionsBuilder_;
}
private java.util.List videos_ =
java.util.Collections.emptyList();
private void ensureVideosIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
videos_ = new java.util.ArrayList(videos_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdVideoAsset, com.google.ads.googleads.v9.common.AdVideoAsset.Builder, com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder> videosBuilder_;
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public java.util.List getVideosList() {
if (videosBuilder_ == null) {
return java.util.Collections.unmodifiableList(videos_);
} else {
return videosBuilder_.getMessageList();
}
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public int getVideosCount() {
if (videosBuilder_ == null) {
return videos_.size();
} else {
return videosBuilder_.getCount();
}
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v9.common.AdVideoAsset getVideos(int index) {
if (videosBuilder_ == null) {
return videos_.get(index);
} else {
return videosBuilder_.getMessage(index);
}
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder addAllVideos(
java.lang.Iterable extends com.google.ads.googleads.v9.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 used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder clearVideos() {
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
videosBuilder_.clear();
}
return this;
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public Builder removeVideos(int index) {
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.remove(index);
onChanged();
} else {
videosBuilder_.remove(index);
}
return this;
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v9.common.AdVideoAsset.Builder getVideosBuilder(
int index) {
return getVideosFieldBuilder().getBuilder(index);
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder getVideosOrBuilder(
int index) {
if (videosBuilder_ == null) {
return videos_.get(index); } else {
return videosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder>
getVideosOrBuilderList() {
if (videosBuilder_ != null) {
return videosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(videos_);
}
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v9.common.AdVideoAsset.Builder addVideosBuilder() {
return getVideosFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v9.common.AdVideoAsset.Builder addVideosBuilder(
int index) {
return getVideosFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets used for the ad.
* Currently, only a single value for the YouTube video asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;
*/
public java.util.List
getVideosBuilderList() {
return getVideosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdVideoAsset, com.google.ads.googleads.v9.common.AdVideoAsset.Builder, com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder>
getVideosFieldBuilder() {
if (videosBuilder_ == null) {
videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdVideoAsset, com.google.ads.googleads.v9.common.AdVideoAsset.Builder, com.google.ads.googleads.v9.common.AdVideoAssetOrBuilder>(
videos_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
videos_ = null;
}
return videosBuilder_;
}
private java.util.List companionBanners_ =
java.util.Collections.emptyList();
private void ensureCompanionBannersIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
companionBanners_ = new java.util.ArrayList(companionBanners_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdImageAsset, com.google.ads.googleads.v9.common.AdImageAsset.Builder, com.google.ads.googleads.v9.common.AdImageAssetOrBuilder> companionBannersBuilder_;
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public java.util.List getCompanionBannersList() {
if (companionBannersBuilder_ == null) {
return java.util.Collections.unmodifiableList(companionBanners_);
} else {
return companionBannersBuilder_.getMessageList();
}
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public int getCompanionBannersCount() {
if (companionBannersBuilder_ == null) {
return companionBanners_.size();
} else {
return companionBannersBuilder_.getCount();
}
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v9.common.AdImageAsset getCompanionBanners(int index) {
if (companionBannersBuilder_ == null) {
return companionBanners_.get(index);
} else {
return companionBannersBuilder_.getMessage(index);
}
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder setCompanionBanners(
int index, com.google.ads.googleads.v9.common.AdImageAsset value) {
if (companionBannersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionBannersIsMutable();
companionBanners_.set(index, value);
onChanged();
} else {
companionBannersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder setCompanionBanners(
int index, com.google.ads.googleads.v9.common.AdImageAsset.Builder builderForValue) {
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
companionBanners_.set(index, builderForValue.build());
onChanged();
} else {
companionBannersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(com.google.ads.googleads.v9.common.AdImageAsset value) {
if (companionBannersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionBannersIsMutable();
companionBanners_.add(value);
onChanged();
} else {
companionBannersBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
int index, com.google.ads.googleads.v9.common.AdImageAsset value) {
if (companionBannersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionBannersIsMutable();
companionBanners_.add(index, value);
onChanged();
} else {
companionBannersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
com.google.ads.googleads.v9.common.AdImageAsset.Builder builderForValue) {
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
companionBanners_.add(builderForValue.build());
onChanged();
} else {
companionBannersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
int index, com.google.ads.googleads.v9.common.AdImageAsset.Builder builderForValue) {
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
companionBanners_.add(index, builderForValue.build());
onChanged();
} else {
companionBannersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder addAllCompanionBanners(
java.lang.Iterable extends com.google.ads.googleads.v9.common.AdImageAsset> values) {
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionBanners_);
onChanged();
} else {
companionBannersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder clearCompanionBanners() {
if (companionBannersBuilder_ == null) {
companionBanners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
companionBannersBuilder_.clear();
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public Builder removeCompanionBanners(int index) {
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
companionBanners_.remove(index);
onChanged();
} else {
companionBannersBuilder_.remove(index);
}
return this;
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v9.common.AdImageAsset.Builder getCompanionBannersBuilder(
int index) {
return getCompanionBannersFieldBuilder().getBuilder(index);
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v9.common.AdImageAssetOrBuilder getCompanionBannersOrBuilder(
int index) {
if (companionBannersBuilder_ == null) {
return companionBanners_.get(index); } else {
return companionBannersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public java.util.List extends com.google.ads.googleads.v9.common.AdImageAssetOrBuilder>
getCompanionBannersOrBuilderList() {
if (companionBannersBuilder_ != null) {
return companionBannersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(companionBanners_);
}
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v9.common.AdImageAsset.Builder addCompanionBannersBuilder() {
return getCompanionBannersFieldBuilder().addBuilder(
com.google.ads.googleads.v9.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v9.common.AdImageAsset.Builder addCompanionBannersBuilder(
int index) {
return getCompanionBannersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v9.common.AdImageAsset.getDefaultInstance());
}
/**
*
* List of image assets used for the companion banner.
* Currently, only a single value for the companion banner asset is supported.
*
*
* repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;
*/
public java.util.List
getCompanionBannersBuilderList() {
return getCompanionBannersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdImageAsset, com.google.ads.googleads.v9.common.AdImageAsset.Builder, com.google.ads.googleads.v9.common.AdImageAssetOrBuilder>
getCompanionBannersFieldBuilder() {
if (companionBannersBuilder_ == null) {
companionBannersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v9.common.AdImageAsset, com.google.ads.googleads.v9.common.AdImageAsset.Builder, com.google.ads.googleads.v9.common.AdImageAssetOrBuilder>(
companionBanners_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
companionBanners_ = null;
}
return companionBannersBuilder_;
}
@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.v9.common.VideoResponsiveAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v9.common.VideoResponsiveAdInfo)
private static final com.google.ads.googleads.v9.common.VideoResponsiveAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v9.common.VideoResponsiveAdInfo();
}
public static com.google.ads.googleads.v9.common.VideoResponsiveAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VideoResponsiveAdInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VideoResponsiveAdInfo(input, extensionRegistry);
}
};
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.v9.common.VideoResponsiveAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy