com.google.ads.googleads.v10.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-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/common/ad_type_infos.proto
package com.google.ads.googleads.v10.common;
/**
*
* A video responsive ad.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.VideoResponsiveAdInfo}
*/
public final class VideoResponsiveAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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();
breadcrumb1_ = "";
breadcrumb2_ = "";
}
@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;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_VideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.VideoResponsiveAdInfo.class, com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List getHeadlinesList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public int getHeadlinesCount() {
return headlines_.size();
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) {
return headlines_.get(index);
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.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.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.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.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public java.util.List getCallToActionsList() {
return callToActions_;
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
return callToActions_;
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public int getCallToActionsCount() {
return callToActions_.size();
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdTextAsset getCallToActions(int index) {
return callToActions_.get(index);
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.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.v10.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.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.v10.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.v10.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.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.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getCompanionBannersOrBuilder(
int index) {
return companionBanners_.get(index);
}
public static final int BREADCRUMB1_FIELD_NUMBER = 7;
private volatile java.lang.Object breadcrumb1_;
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @return The breadcrumb1.
*/
@java.lang.Override
public java.lang.String getBreadcrumb1() {
java.lang.Object ref = breadcrumb1_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
breadcrumb1_ = s;
return s;
}
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @return The bytes for breadcrumb1.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBreadcrumb1Bytes() {
java.lang.Object ref = breadcrumb1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
breadcrumb1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BREADCRUMB2_FIELD_NUMBER = 8;
private volatile java.lang.Object breadcrumb2_;
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @return The breadcrumb2.
*/
@java.lang.Override
public java.lang.String getBreadcrumb2() {
java.lang.Object ref = breadcrumb2_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
breadcrumb2_ = s;
return s;
}
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @return The bytes for breadcrumb2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBreadcrumb2Bytes() {
java.lang.Object ref = breadcrumb2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
breadcrumb2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < headlines_.size(); i++) {
output.writeMessage(1, headlines_.get(i));
}
for (int i = 0; i < 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));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, breadcrumb2_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < headlines_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, headlines_.get(i));
}
for (int i = 0; i < 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));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, breadcrumb2_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.common.VideoResponsiveAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.VideoResponsiveAdInfo other = (com.google.ads.googleads.v10.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 (!getBreadcrumb1()
.equals(other.getBreadcrumb1())) return false;
if (!getBreadcrumb2()
.equals(other.getBreadcrumb2())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getHeadlinesCount() > 0) {
hash = (37 * hash) + HEADLINES_FIELD_NUMBER;
hash = (53 * hash) + getHeadlinesList().hashCode();
}
if (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 = (37 * hash) + BREADCRUMB1_FIELD_NUMBER;
hash = (53 * hash) + getBreadcrumb1().hashCode();
hash = (37 * hash) + BREADCRUMB2_FIELD_NUMBER;
hash = (53 * hash) + getBreadcrumb2().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.VideoResponsiveAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.common.VideoResponsiveAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.common.VideoResponsiveAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.common.VideoResponsiveAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.VideoResponsiveAdInfo)
com.google.ads.googleads.v10.common.VideoResponsiveAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_VideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.VideoResponsiveAdInfo.class, com.google.ads.googleads.v10.common.VideoResponsiveAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.VideoResponsiveAdInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headlinesBuilder_ == null) {
headlines_ = java.util.Collections.emptyList();
} else {
headlines_ = null;
headlinesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (longHeadlinesBuilder_ == null) {
longHeadlines_ = java.util.Collections.emptyList();
} else {
longHeadlines_ = null;
longHeadlinesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (descriptionsBuilder_ == null) {
descriptions_ = java.util.Collections.emptyList();
} else {
descriptions_ = null;
descriptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
} else {
callToActions_ = null;
callToActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
} else {
videos_ = null;
videosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (companionBannersBuilder_ == null) {
companionBanners_ = java.util.Collections.emptyList();
} else {
companionBanners_ = null;
companionBannersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
breadcrumb1_ = "";
breadcrumb2_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_VideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.VideoResponsiveAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.VideoResponsiveAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.VideoResponsiveAdInfo build() {
com.google.ads.googleads.v10.common.VideoResponsiveAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.VideoResponsiveAdInfo buildPartial() {
com.google.ads.googleads.v10.common.VideoResponsiveAdInfo result = new com.google.ads.googleads.v10.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();
}
result.breadcrumb1_ = breadcrumb1_;
result.breadcrumb2_ = breadcrumb2_;
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.v10.common.VideoResponsiveAdInfo) {
return mergeFrom((com.google.ads.googleads.v10.common.VideoResponsiveAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.VideoResponsiveAdInfo other) {
if (other == com.google.ads.googleads.v10.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_);
}
}
}
if (!other.getBreadcrumb1().isEmpty()) {
breadcrumb1_ = other.breadcrumb1_;
onChanged();
}
if (!other.getBreadcrumb2().isEmpty()) {
breadcrumb2_ = other.breadcrumb2_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v10.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdTextAsset.parser(),
extensionRegistry);
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(m);
} else {
headlinesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v10.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdTextAsset.parser(),
extensionRegistry);
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.add(m);
} else {
longHeadlinesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.google.ads.googleads.v10.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdTextAsset.parser(),
extensionRegistry);
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(m);
} else {
descriptionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
com.google.ads.googleads.v10.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdTextAsset.parser(),
extensionRegistry);
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(m);
} else {
callToActionsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.google.ads.googleads.v10.common.AdVideoAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdVideoAsset.parser(),
extensionRegistry);
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.add(m);
} else {
videosBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
com.google.ads.googleads.v10.common.AdImageAsset m =
input.readMessage(
com.google.ads.googleads.v10.common.AdImageAsset.parser(),
extensionRegistry);
if (companionBannersBuilder_ == null) {
ensureCompanionBannersIsMutable();
companionBanners_.add(m);
} else {
companionBannersBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
breadcrumb1_ = input.readStringRequireUtf8();
break;
} // case 58
case 66: {
breadcrumb2_ = input.readStringRequireUtf8();
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List headlines_ =
java.util.Collections.emptyList();
private void ensureHeadlinesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
headlines_ = new java.util.ArrayList(headlines_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> headlinesBuilder_;
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public Builder addAllHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder getHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public java.util.List extends com.google.ads.googleads.v10.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, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder() {
return getHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline, for example, the "Call To
* Action" banner. Currently, only a single value for the short headline is
* supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
*/
public java.util.List
getHeadlinesBuilderList() {
return getHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getHeadlinesFieldBuilder() {
if (headlinesBuilder_ == null) {
headlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public Builder addAllLongHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public java.util.List extends com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addLongHeadlinesBuilder() {
return getLongHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addLongHeadlinesBuilder(
int index) {
return getLongHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset long_headlines = 2;
*/
public java.util.List
getLongHeadlinesBuilderList() {
return getLongHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getLongHeadlinesFieldBuilder() {
if (longHeadlinesBuilder_ == null) {
longHeadlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public Builder addAllDescriptions(
java.lang.Iterable extends com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public java.util.List extends com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder() {
return getDescriptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.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.v10.common.AdTextAsset descriptions = 3;
*/
public java.util.List
getDescriptionsBuilderList() {
return getDescriptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getDescriptionsFieldBuilder() {
if (descriptionsBuilder_ == null) {
descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> callToActionsBuilder_;
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public Builder addAllCallToActions(
java.lang.Iterable extends com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder getCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v10.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, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public java.util.List extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getCallToActionsOrBuilderList() {
if (callToActionsBuilder_ != null) {
return callToActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callToActions_);
}
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addCallToActionsBuilder() {
return getCallToActionsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public com.google.ads.googleads.v10.common.AdTextAsset.Builder addCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the button, for example, the "Call To Action"
* button. Currently, only a single value for the button is supported.
*
*
* repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 4;
*/
public java.util.List
getCallToActionsBuilderList() {
return getCallToActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>
getCallToActionsFieldBuilder() {
if (callToActionsBuilder_ == null) {
callToActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public Builder addAllVideos(
java.lang.Iterable extends com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public java.util.List extends com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addVideosBuilder() {
return getVideosFieldBuilder().addBuilder(
com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addVideosBuilder(
int index) {
return getVideosFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.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.v10.common.AdVideoAsset videos = 5;
*/
public java.util.List
getVideosBuilderList() {
return getVideosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder>
getVideosFieldBuilder() {
if (videosBuilder_ == null) {
videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.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.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder setCompanionBanners(
int index, com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder setCompanionBanners(
int index, com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
int index, com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder addCompanionBanners(
int index, com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public Builder addAllCompanionBanners(
java.lang.Iterable extends com.google.ads.googleads.v10.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.v10.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.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public java.util.List extends com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v10.common.AdImageAsset.Builder addCompanionBannersBuilder() {
return getCompanionBannersFieldBuilder().addBuilder(
com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public com.google.ads.googleads.v10.common.AdImageAsset.Builder addCompanionBannersBuilder(
int index) {
return getCompanionBannersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banners = 6;
*/
public java.util.List
getCompanionBannersBuilderList() {
return getCompanionBannersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>
getCompanionBannersFieldBuilder() {
if (companionBannersBuilder_ == null) {
companionBannersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>(
companionBanners_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
companionBanners_ = null;
}
return companionBannersBuilder_;
}
private java.lang.Object breadcrumb1_ = "";
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @return The breadcrumb1.
*/
public java.lang.String getBreadcrumb1() {
java.lang.Object ref = breadcrumb1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
breadcrumb1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @return The bytes for breadcrumb1.
*/
public com.google.protobuf.ByteString
getBreadcrumb1Bytes() {
java.lang.Object ref = breadcrumb1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
breadcrumb1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @param value The breadcrumb1 to set.
* @return This builder for chaining.
*/
public Builder setBreadcrumb1(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
breadcrumb1_ = value;
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb1() {
breadcrumb1_ = getDefaultInstance().getBreadcrumb1();
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 7;
* @param value The bytes for breadcrumb1 to set.
* @return This builder for chaining.
*/
public Builder setBreadcrumb1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
breadcrumb1_ = value;
onChanged();
return this;
}
private java.lang.Object breadcrumb2_ = "";
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @return The breadcrumb2.
*/
public java.lang.String getBreadcrumb2() {
java.lang.Object ref = breadcrumb2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
breadcrumb2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @return The bytes for breadcrumb2.
*/
public com.google.protobuf.ByteString
getBreadcrumb2Bytes() {
java.lang.Object ref = breadcrumb2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
breadcrumb2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @param value The breadcrumb2 to set.
* @return This builder for chaining.
*/
public Builder setBreadcrumb2(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
breadcrumb2_ = value;
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb2() {
breadcrumb2_ = getDefaultInstance().getBreadcrumb2();
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 8;
* @param value The bytes for breadcrumb2 to set.
* @return This builder for chaining.
*/
public Builder setBreadcrumb2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
breadcrumb2_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.VideoResponsiveAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.VideoResponsiveAdInfo)
private static final com.google.ads.googleads.v10.common.VideoResponsiveAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.VideoResponsiveAdInfo();
}
public static com.google.ads.googleads.v10.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.VideoResponsiveAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy