
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v18 Show documentation
Show all versions of google-ads-stubs-v18 Show documentation
Stubs for GAAPI version google-ads-stubs-v18
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v18/common/ad_type_infos.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.common;
/**
*
* A Demand Gen video responsive ad.
*
*
* Protobuf type {@code google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo}
*/
public final class DemandGenVideoResponsiveAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo)
DemandGenVideoResponsiveAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DemandGenVideoResponsiveAdInfo.newBuilder() to construct.
private DemandGenVideoResponsiveAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DemandGenVideoResponsiveAdInfo() {
headlines_ = java.util.Collections.emptyList();
longHeadlines_ = java.util.Collections.emptyList();
descriptions_ = java.util.Collections.emptyList();
videos_ = java.util.Collections.emptyList();
logoImages_ = java.util.Collections.emptyList();
breadcrumb1_ = "";
breadcrumb2_ = "";
callToActions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DemandGenVideoResponsiveAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.common.AdTypeInfosProto.internal_static_google_ads_googleads_v18_common_DemandGenVideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.common.AdTypeInfosProto.internal_static_google_ads_googleads_v18_common_DemandGenVideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.class, com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.Builder.class);
}
private int bitField0_;
public static final int HEADLINES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List headlines_;
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List getHeadlinesList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getHeadlinesOrBuilderList() {
return headlines_;
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public int getHeadlinesCount() {
return headlines_.size();
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAsset getHeadlines(int index) {
return headlines_.get(index);
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
int index) {
return headlines_.get(index);
}
public static final int LONG_HEADLINES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List longHeadlines_;
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public java.util.List getLongHeadlinesList() {
return longHeadlines_;
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getLongHeadlinesOrBuilderList() {
return longHeadlines_;
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public int getLongHeadlinesCount() {
return longHeadlines_.size();
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAsset getLongHeadlines(int index) {
return longHeadlines_.get(index);
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAssetOrBuilder getLongHeadlinesOrBuilder(
int index) {
return longHeadlines_.get(index);
}
public static final int DESCRIPTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List descriptions_;
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public java.util.List getDescriptionsList() {
return descriptions_;
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
return descriptions_;
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public int getDescriptionsCount() {
return descriptions_.size();
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAsset getDescriptions(int index) {
return descriptions_.get(index);
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
int index) {
return descriptions_.get(index);
}
public static final int VIDEOS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List videos_;
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
@java.lang.Override
public java.util.List getVideosList() {
return videos_;
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdVideoAssetOrBuilder>
getVideosOrBuilderList() {
return videos_;
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
@java.lang.Override
public int getVideosCount() {
return videos_.size();
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdVideoAsset getVideos(int index) {
return videos_.get(index);
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdVideoAssetOrBuilder getVideosOrBuilder(
int index) {
return videos_.get(index);
}
public static final int LOGO_IMAGES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List logoImages_;
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public java.util.List getLogoImagesList() {
return logoImages_;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdImageAssetOrBuilder>
getLogoImagesOrBuilderList() {
return logoImages_;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public int getLogoImagesCount() {
return logoImages_.size();
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdImageAsset getLogoImages(int index) {
return logoImages_.get(index);
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdImageAssetOrBuilder getLogoImagesOrBuilder(
int index) {
return logoImages_.get(index);
}
public static final int BREADCRUMB1_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object breadcrumb1_ = "";
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 6;
* @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 = 6;
* @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 = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object breadcrumb2_ = "";
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 7;
* @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 = 7;
* @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;
}
}
public static final int BUSINESS_NAME_FIELD_NUMBER = 8;
private com.google.ads.googleads.v18.common.AdTextAsset businessName_;
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
* @return The businessName.
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAsset getBusinessName() {
return businessName_ == null ? com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance() : businessName_;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdTextAssetOrBuilder getBusinessNameOrBuilder() {
return businessName_ == null ? com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance() : businessName_;
}
public static final int CALL_TO_ACTIONS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List callToActions_;
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
@java.lang.Override
public java.util.List getCallToActionsList() {
return callToActions_;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder>
getCallToActionsOrBuilderList() {
return callToActions_;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
@java.lang.Override
public int getCallToActionsCount() {
return callToActions_.size();
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdCallToActionAsset getCallToActions(int index) {
return callToActions_.get(index);
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder getCallToActionsOrBuilder(
int index) {
return callToActions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < headlines_.size(); i++) {
output.writeMessage(1, headlines_.get(i));
}
for (int i = 0; i < longHeadlines_.size(); i++) {
output.writeMessage(2, longHeadlines_.get(i));
}
for (int i = 0; i < descriptions_.size(); i++) {
output.writeMessage(3, descriptions_.get(i));
}
for (int i = 0; i < videos_.size(); i++) {
output.writeMessage(4, videos_.get(i));
}
for (int i = 0; i < logoImages_.size(); i++) {
output.writeMessage(5, logoImages_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, breadcrumb2_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(8, getBusinessName());
}
for (int i = 0; i < callToActions_.size(); i++) {
output.writeMessage(9, callToActions_.get(i));
}
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 < videos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, videos_.get(i));
}
for (int i = 0; i < logoImages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, logoImages_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, breadcrumb2_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getBusinessName());
}
for (int i = 0; i < callToActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, callToActions_.get(i));
}
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.v18.common.DemandGenVideoResponsiveAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo other = (com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo) obj;
if (!getHeadlinesList()
.equals(other.getHeadlinesList())) return false;
if (!getLongHeadlinesList()
.equals(other.getLongHeadlinesList())) return false;
if (!getDescriptionsList()
.equals(other.getDescriptionsList())) return false;
if (!getVideosList()
.equals(other.getVideosList())) return false;
if (!getLogoImagesList()
.equals(other.getLogoImagesList())) return false;
if (!getBreadcrumb1()
.equals(other.getBreadcrumb1())) return false;
if (!getBreadcrumb2()
.equals(other.getBreadcrumb2())) return false;
if (hasBusinessName() != other.hasBusinessName()) return false;
if (hasBusinessName()) {
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
}
if (!getCallToActionsList()
.equals(other.getCallToActionsList())) 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 (getVideosCount() > 0) {
hash = (37 * hash) + VIDEOS_FIELD_NUMBER;
hash = (53 * hash) + getVideosList().hashCode();
}
if (getLogoImagesCount() > 0) {
hash = (37 * hash) + LOGO_IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getLogoImagesList().hashCode();
}
hash = (37 * hash) + BREADCRUMB1_FIELD_NUMBER;
hash = (53 * hash) + getBreadcrumb1().hashCode();
hash = (37 * hash) + BREADCRUMB2_FIELD_NUMBER;
hash = (53 * hash) + getBreadcrumb2().hashCode();
if (hasBusinessName()) {
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
}
if (getCallToActionsCount() > 0) {
hash = (37 * hash) + CALL_TO_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo 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 Demand Gen video responsive ad.
*
*
* Protobuf type {@code google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo)
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.common.AdTypeInfosProto.internal_static_google_ads_googleads_v18_common_DemandGenVideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.common.AdTypeInfosProto.internal_static_google_ads_googleads_v18_common_DemandGenVideoResponsiveAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.class, com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeadlinesFieldBuilder();
getLongHeadlinesFieldBuilder();
getDescriptionsFieldBuilder();
getVideosFieldBuilder();
getLogoImagesFieldBuilder();
getBusinessNameFieldBuilder();
getCallToActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (headlinesBuilder_ == null) {
headlines_ = java.util.Collections.emptyList();
} else {
headlines_ = null;
headlinesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (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 (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
} else {
videos_ = null;
videosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (logoImagesBuilder_ == null) {
logoImages_ = java.util.Collections.emptyList();
} else {
logoImages_ = null;
logoImagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
breadcrumb1_ = "";
breadcrumb2_ = "";
businessName_ = null;
if (businessNameBuilder_ != null) {
businessNameBuilder_.dispose();
businessNameBuilder_ = null;
}
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
} else {
callToActions_ = null;
callToActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.common.AdTypeInfosProto.internal_static_google_ads_googleads_v18_common_DemandGenVideoResponsiveAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo build() {
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo buildPartial() {
com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo result = new com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo result) {
if (headlinesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
headlines_ = java.util.Collections.unmodifiableList(headlines_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.headlines_ = headlines_;
} else {
result.headlines_ = headlinesBuilder_.build();
}
if (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 (videosBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
videos_ = java.util.Collections.unmodifiableList(videos_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.videos_ = videos_;
} else {
result.videos_ = videosBuilder_.build();
}
if (logoImagesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
logoImages_ = java.util.Collections.unmodifiableList(logoImages_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.logoImages_ = logoImages_;
} else {
result.logoImages_ = logoImagesBuilder_.build();
}
if (callToActionsBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
callToActions_ = java.util.Collections.unmodifiableList(callToActions_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.callToActions_ = callToActions_;
} else {
result.callToActions_ = callToActionsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.breadcrumb1_ = breadcrumb1_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.breadcrumb2_ = breadcrumb2_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.businessName_ = businessNameBuilder_ == null
? businessName_
: businessNameBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo) {
return mergeFrom((com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo other) {
if (other == com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo.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 (videosBuilder_ == null) {
if (!other.videos_.isEmpty()) {
if (videos_.isEmpty()) {
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureVideosIsMutable();
videos_.addAll(other.videos_);
}
onChanged();
}
} else {
if (!other.videos_.isEmpty()) {
if (videosBuilder_.isEmpty()) {
videosBuilder_.dispose();
videosBuilder_ = null;
videos_ = other.videos_;
bitField0_ = (bitField0_ & ~0x00000008);
videosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVideosFieldBuilder() : null;
} else {
videosBuilder_.addAllMessages(other.videos_);
}
}
}
if (logoImagesBuilder_ == null) {
if (!other.logoImages_.isEmpty()) {
if (logoImages_.isEmpty()) {
logoImages_ = other.logoImages_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureLogoImagesIsMutable();
logoImages_.addAll(other.logoImages_);
}
onChanged();
}
} else {
if (!other.logoImages_.isEmpty()) {
if (logoImagesBuilder_.isEmpty()) {
logoImagesBuilder_.dispose();
logoImagesBuilder_ = null;
logoImages_ = other.logoImages_;
bitField0_ = (bitField0_ & ~0x00000010);
logoImagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogoImagesFieldBuilder() : null;
} else {
logoImagesBuilder_.addAllMessages(other.logoImages_);
}
}
}
if (!other.getBreadcrumb1().isEmpty()) {
breadcrumb1_ = other.breadcrumb1_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getBreadcrumb2().isEmpty()) {
breadcrumb2_ = other.breadcrumb2_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasBusinessName()) {
mergeBusinessName(other.getBusinessName());
}
if (callToActionsBuilder_ == null) {
if (!other.callToActions_.isEmpty()) {
if (callToActions_.isEmpty()) {
callToActions_ = other.callToActions_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureCallToActionsIsMutable();
callToActions_.addAll(other.callToActions_);
}
onChanged();
}
} else {
if (!other.callToActions_.isEmpty()) {
if (callToActionsBuilder_.isEmpty()) {
callToActionsBuilder_.dispose();
callToActionsBuilder_ = null;
callToActions_ = other.callToActions_;
bitField0_ = (bitField0_ & ~0x00000100);
callToActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCallToActionsFieldBuilder() : null;
} else {
callToActionsBuilder_.addAllMessages(other.callToActions_);
}
}
}
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.v18.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdTextAsset.parser(),
extensionRegistry);
if (headlinesBuilder_ == null) {
ensureHeadlinesIsMutable();
headlines_.add(m);
} else {
headlinesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v18.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdTextAsset.parser(),
extensionRegistry);
if (longHeadlinesBuilder_ == null) {
ensureLongHeadlinesIsMutable();
longHeadlines_.add(m);
} else {
longHeadlinesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.google.ads.googleads.v18.common.AdTextAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdTextAsset.parser(),
extensionRegistry);
if (descriptionsBuilder_ == null) {
ensureDescriptionsIsMutable();
descriptions_.add(m);
} else {
descriptionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
com.google.ads.googleads.v18.common.AdVideoAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdVideoAsset.parser(),
extensionRegistry);
if (videosBuilder_ == null) {
ensureVideosIsMutable();
videos_.add(m);
} else {
videosBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.google.ads.googleads.v18.common.AdImageAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdImageAsset.parser(),
extensionRegistry);
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(m);
} else {
logoImagesBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
breadcrumb1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
breadcrumb2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getBusinessNameFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
com.google.ads.googleads.v18.common.AdCallToActionAsset m =
input.readMessage(
com.google.ads.googleads.v18.common.AdCallToActionAsset.parser(),
extensionRegistry);
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(m);
} else {
callToActionsBuilder_.addMessage(m);
}
break;
} // case 74
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.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder> headlinesBuilder_;
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder setHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder addHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public Builder addAllHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder getHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public java.util.List extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addHeadlinesBuilder() {
return getHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addHeadlinesBuilder(
int index) {
return getHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the short headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
*/
public java.util.List
getHeadlinesBuilderList() {
return getHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getHeadlinesFieldBuilder() {
if (headlinesBuilder_ == null) {
headlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.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.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder> longHeadlinesBuilder_;
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder setLongHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder addLongHeadlines(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public Builder addAllLongHeadlines(
java.lang.Iterable extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder getLongHeadlinesBuilder(
int index) {
return getLongHeadlinesFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public java.util.List extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addLongHeadlinesBuilder() {
return getLongHeadlinesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addLongHeadlinesBuilder(
int index) {
return getLongHeadlinesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the long headline.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset long_headlines = 2;
*/
public java.util.List
getLongHeadlinesBuilderList() {
return getLongHeadlinesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getLongHeadlinesFieldBuilder() {
if (longHeadlinesBuilder_ == null) {
longHeadlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.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.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder> descriptionsBuilder_;
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder setDescriptions(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder addDescriptions(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public Builder addAllDescriptions(
java.lang.Iterable extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder getDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public java.util.List extends com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getDescriptionsOrBuilderList() {
if (descriptionsBuilder_ != null) {
return descriptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(descriptions_);
}
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addDescriptionsBuilder() {
return getDescriptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder addDescriptionsBuilder(
int index) {
return getDescriptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance());
}
/**
*
* List of text assets used for the description.
*
*
* repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 3;
*/
public java.util.List
getDescriptionsBuilderList() {
return getDescriptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getDescriptionsFieldBuilder() {
if (descriptionsBuilder_ == null) {
descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>(
descriptions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
descriptions_ = null;
}
return descriptionsBuilder_;
}
private java.util.List videos_ =
java.util.Collections.emptyList();
private void ensureVideosIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
videos_ = new java.util.ArrayList(videos_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdVideoAsset, com.google.ads.googleads.v18.common.AdVideoAsset.Builder, com.google.ads.googleads.v18.common.AdVideoAssetOrBuilder> videosBuilder_;
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public int getVideosCount() {
if (videosBuilder_ == null) {
return videos_.size();
} else {
return videosBuilder_.getCount();
}
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder setVideos(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder addVideos(com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder addVideos(
com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder addVideos(
int index, com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder addAllVideos(
java.lang.Iterable extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public Builder clearVideos() {
if (videosBuilder_ == null) {
videos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
videosBuilder_.clear();
}
return this;
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public com.google.ads.googleads.v18.common.AdVideoAsset.Builder getVideosBuilder(
int index) {
return getVideosFieldBuilder().getBuilder(index);
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public java.util.List extends com.google.ads.googleads.v18.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.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public com.google.ads.googleads.v18.common.AdVideoAsset.Builder addVideosBuilder() {
return getVideosFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public com.google.ads.googleads.v18.common.AdVideoAsset.Builder addVideosBuilder(
int index) {
return getVideosFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdVideoAsset.getDefaultInstance());
}
/**
*
* List of YouTube video assets used for the ad.
*
*
* repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 4;
*/
public java.util.List
getVideosBuilderList() {
return getVideosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdVideoAsset, com.google.ads.googleads.v18.common.AdVideoAsset.Builder, com.google.ads.googleads.v18.common.AdVideoAssetOrBuilder>
getVideosFieldBuilder() {
if (videosBuilder_ == null) {
videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdVideoAsset, com.google.ads.googleads.v18.common.AdVideoAsset.Builder, com.google.ads.googleads.v18.common.AdVideoAssetOrBuilder>(
videos_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
videos_ = null;
}
return videosBuilder_;
}
private java.util.List logoImages_ =
java.util.Collections.emptyList();
private void ensureLogoImagesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
logoImages_ = new java.util.ArrayList(logoImages_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdImageAsset, com.google.ads.googleads.v18.common.AdImageAsset.Builder, com.google.ads.googleads.v18.common.AdImageAssetOrBuilder> logoImagesBuilder_;
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public java.util.List getLogoImagesList() {
if (logoImagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(logoImages_);
} else {
return logoImagesBuilder_.getMessageList();
}
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public int getLogoImagesCount() {
if (logoImagesBuilder_ == null) {
return logoImages_.size();
} else {
return logoImagesBuilder_.getCount();
}
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v18.common.AdImageAsset getLogoImages(int index) {
if (logoImagesBuilder_ == null) {
return logoImages_.get(index);
} else {
return logoImagesBuilder_.getMessage(index);
}
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder setLogoImages(
int index, com.google.ads.googleads.v18.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.set(index, value);
onChanged();
} else {
logoImagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder setLogoImages(
int index, com.google.ads.googleads.v18.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.set(index, builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(com.google.ads.googleads.v18.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.add(value);
onChanged();
} else {
logoImagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
int index, com.google.ads.googleads.v18.common.AdImageAsset value) {
if (logoImagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogoImagesIsMutable();
logoImages_.add(index, value);
onChanged();
} else {
logoImagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
com.google.ads.googleads.v18.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder addLogoImages(
int index, com.google.ads.googleads.v18.common.AdImageAsset.Builder builderForValue) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.add(index, builderForValue.build());
onChanged();
} else {
logoImagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder addAllLogoImages(
java.lang.Iterable extends com.google.ads.googleads.v18.common.AdImageAsset> values) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, logoImages_);
onChanged();
} else {
logoImagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder clearLogoImages() {
if (logoImagesBuilder_ == null) {
logoImages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
logoImagesBuilder_.clear();
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public Builder removeLogoImages(int index) {
if (logoImagesBuilder_ == null) {
ensureLogoImagesIsMutable();
logoImages_.remove(index);
onChanged();
} else {
logoImagesBuilder_.remove(index);
}
return this;
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v18.common.AdImageAsset.Builder getLogoImagesBuilder(
int index) {
return getLogoImagesFieldBuilder().getBuilder(index);
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v18.common.AdImageAssetOrBuilder getLogoImagesOrBuilder(
int index) {
if (logoImagesBuilder_ == null) {
return logoImages_.get(index); } else {
return logoImagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public java.util.List extends com.google.ads.googleads.v18.common.AdImageAssetOrBuilder>
getLogoImagesOrBuilderList() {
if (logoImagesBuilder_ != null) {
return logoImagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logoImages_);
}
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v18.common.AdImageAsset.Builder addLogoImagesBuilder() {
return getLogoImagesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdImageAsset.getDefaultInstance());
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public com.google.ads.googleads.v18.common.AdImageAsset.Builder addLogoImagesBuilder(
int index) {
return getLogoImagesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdImageAsset.getDefaultInstance());
}
/**
*
* Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
* The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
*
*
* repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
*/
public java.util.List
getLogoImagesBuilderList() {
return getLogoImagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdImageAsset, com.google.ads.googleads.v18.common.AdImageAsset.Builder, com.google.ads.googleads.v18.common.AdImageAssetOrBuilder>
getLogoImagesFieldBuilder() {
if (logoImagesBuilder_ == null) {
logoImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdImageAsset, com.google.ads.googleads.v18.common.AdImageAsset.Builder, com.google.ads.googleads.v18.common.AdImageAssetOrBuilder>(
logoImages_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
logoImages_ = null;
}
return logoImagesBuilder_;
}
private java.lang.Object breadcrumb1_ = "";
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 6;
* @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 = 6;
* @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 = 6;
* @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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 6;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb1() {
breadcrumb1_ = getDefaultInstance().getBreadcrumb1();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 6;
* @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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object breadcrumb2_ = "";
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 7;
* @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 = 7;
* @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 = 7;
* @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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 7;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb2() {
breadcrumb2_ = getDefaultInstance().getBreadcrumb2();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 7;
* @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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.ads.googleads.v18.common.AdTextAsset businessName_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder> businessNameBuilder_;
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
* @return The businessName.
*/
public com.google.ads.googleads.v18.common.AdTextAsset getBusinessName() {
if (businessNameBuilder_ == null) {
return businessName_ == null ? com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance() : businessName_;
} else {
return businessNameBuilder_.getMessage();
}
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBusinessName(com.google.ads.googleads.v18.common.AdTextAsset value) {
if (businessNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
businessName_ = value;
} else {
businessNameBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBusinessName(
com.google.ads.googleads.v18.common.AdTextAsset.Builder builderForValue) {
if (businessNameBuilder_ == null) {
businessName_ = builderForValue.build();
} else {
businessNameBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeBusinessName(com.google.ads.googleads.v18.common.AdTextAsset value) {
if (businessNameBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
businessName_ != null &&
businessName_ != com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance()) {
getBusinessNameBuilder().mergeFrom(value);
} else {
businessName_ = value;
}
} else {
businessNameBuilder_.mergeFrom(value);
}
if (businessName_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearBusinessName() {
bitField0_ = (bitField0_ & ~0x00000080);
businessName_ = null;
if (businessNameBuilder_ != null) {
businessNameBuilder_.dispose();
businessNameBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.AdTextAsset.Builder getBusinessNameBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getBusinessNameFieldBuilder().getBuilder();
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.AdTextAssetOrBuilder getBusinessNameOrBuilder() {
if (businessNameBuilder_ != null) {
return businessNameBuilder_.getMessageOrBuilder();
} else {
return businessName_ == null ?
com.google.ads.googleads.v18.common.AdTextAsset.getDefaultInstance() : businessName_;
}
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v18.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>
getBusinessNameFieldBuilder() {
if (businessNameBuilder_ == null) {
businessNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.AdTextAsset, com.google.ads.googleads.v18.common.AdTextAsset.Builder, com.google.ads.googleads.v18.common.AdTextAssetOrBuilder>(
getBusinessName(),
getParentForChildren(),
isClean());
businessName_ = null;
}
return businessNameBuilder_;
}
private java.util.List callToActions_ =
java.util.Collections.emptyList();
private void ensureCallToActionsIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
callToActions_ = new java.util.ArrayList(callToActions_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdCallToActionAsset, com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder> callToActionsBuilder_;
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public java.util.List getCallToActionsList() {
if (callToActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(callToActions_);
} else {
return callToActionsBuilder_.getMessageList();
}
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public int getCallToActionsCount() {
if (callToActionsBuilder_ == null) {
return callToActions_.size();
} else {
return callToActionsBuilder_.getCount();
}
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public com.google.ads.googleads.v18.common.AdCallToActionAsset getCallToActions(int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index);
} else {
return callToActionsBuilder_.getMessage(index);
}
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v18.common.AdCallToActionAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.set(index, value);
onChanged();
} else {
callToActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder setCallToActions(
int index, com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.set(index, builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder addCallToActions(com.google.ads.googleads.v18.common.AdCallToActionAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.add(value);
onChanged();
} else {
callToActionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v18.common.AdCallToActionAsset value) {
if (callToActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallToActionsIsMutable();
callToActions_.add(index, value);
onChanged();
} else {
callToActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder addCallToActions(
com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder addCallToActions(
int index, com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder builderForValue) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.add(index, builderForValue.build());
onChanged();
} else {
callToActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder addAllCallToActions(
java.lang.Iterable extends com.google.ads.googleads.v18.common.AdCallToActionAsset> values) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, callToActions_);
onChanged();
} else {
callToActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder clearCallToActions() {
if (callToActionsBuilder_ == null) {
callToActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
callToActionsBuilder_.clear();
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public Builder removeCallToActions(int index) {
if (callToActionsBuilder_ == null) {
ensureCallToActionsIsMutable();
callToActions_.remove(index);
onChanged();
} else {
callToActionsBuilder_.remove(index);
}
return this;
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder getCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().getBuilder(index);
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder getCallToActionsOrBuilder(
int index) {
if (callToActionsBuilder_ == null) {
return callToActions_.get(index); } else {
return callToActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public java.util.List extends com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder>
getCallToActionsOrBuilderList() {
if (callToActionsBuilder_ != null) {
return callToActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callToActions_);
}
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder addCallToActionsBuilder() {
return getCallToActionsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AdCallToActionAsset.getDefaultInstance());
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder addCallToActionsBuilder(
int index) {
return getCallToActionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AdCallToActionAsset.getDefaultInstance());
}
/**
*
* Assets of type CallToActionAsset used for the "Call To Action" button.
*
*
* repeated .google.ads.googleads.v18.common.AdCallToActionAsset call_to_actions = 9;
*/
public java.util.List
getCallToActionsBuilderList() {
return getCallToActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdCallToActionAsset, com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder>
getCallToActionsFieldBuilder() {
if (callToActionsBuilder_ == null) {
callToActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AdCallToActionAsset, com.google.ads.googleads.v18.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v18.common.AdCallToActionAssetOrBuilder>(
callToActions_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
callToActions_ = null;
}
return callToActionsBuilder_;
}
@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.v18.common.DemandGenVideoResponsiveAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo)
private static final com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo();
}
public static com.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DemandGenVideoResponsiveAdInfo 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.v18.common.DemandGenVideoResponsiveAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy