com.google.ads.googleads.v17.common.DemandGenProductAdInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/ad_type_infos.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A Demand Gen product ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DemandGenProductAdInfo}
*/
public final class DemandGenProductAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.DemandGenProductAdInfo)
DemandGenProductAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DemandGenProductAdInfo.newBuilder() to construct.
private DemandGenProductAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DemandGenProductAdInfo() {
breadcrumb1_ = "";
breadcrumb2_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DemandGenProductAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_DemandGenProductAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_DemandGenProductAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DemandGenProductAdInfo.class, com.google.ads.googleads.v17.common.DemandGenProductAdInfo.Builder.class);
}
private int bitField0_;
public static final int HEADLINE_FIELD_NUMBER = 1;
private com.google.ads.googleads.v17.common.AdTextAsset headline_;
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the headline field is set.
*/
@java.lang.Override
public boolean hasHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The headline.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getHeadline() {
return headline_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : headline_;
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getHeadlineOrBuilder() {
return headline_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : headline_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private com.google.ads.googleads.v17.common.AdTextAsset description_;
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The description.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getDescription() {
return description_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : description_;
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getDescriptionOrBuilder() {
return description_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : description_;
}
public static final int LOGO_IMAGE_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.common.AdImageAsset logoImage_;
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the logoImage field is set.
*/
@java.lang.Override
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The logoImage.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAsset getLogoImage() {
return logoImage_ == null ? com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance() : logoImage_;
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getLogoImageOrBuilder() {
return logoImage_ == null ? com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance() : logoImage_;
}
public static final int BREADCRUMB1_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object breadcrumb1_ = "";
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 4;
* @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 = 4;
* @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 = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object breadcrumb2_ = "";
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 5;
* @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 = 5;
* @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 = 6;
private com.google.ads.googleads.v17.common.AdTextAsset businessName_;
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
* @return The businessName.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAsset getBusinessName() {
return businessName_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : businessName_;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getBusinessNameOrBuilder() {
return businessName_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : businessName_;
}
public static final int CALL_TO_ACTION_FIELD_NUMBER = 7;
private com.google.ads.googleads.v17.common.AdCallToActionAsset callToAction_;
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
* @return Whether the callToAction field is set.
*/
@java.lang.Override
public boolean hasCallToAction() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
* @return The callToAction.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdCallToActionAsset getCallToAction() {
return callToAction_ == null ? com.google.ads.googleads.v17.common.AdCallToActionAsset.getDefaultInstance() : callToAction_;
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdCallToActionAssetOrBuilder getCallToActionOrBuilder() {
return callToAction_ == null ? com.google.ads.googleads.v17.common.AdCallToActionAsset.getDefaultInstance() : callToAction_;
}
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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getHeadline());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getDescription());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getLogoImage());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, breadcrumb2_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getBusinessName());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getCallToAction());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeadline());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDescription());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLogoImage());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb1_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, breadcrumb1_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breadcrumb2_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, breadcrumb2_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getBusinessName());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getCallToAction());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.DemandGenProductAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.DemandGenProductAdInfo other = (com.google.ads.googleads.v17.common.DemandGenProductAdInfo) obj;
if (hasHeadline() != other.hasHeadline()) return false;
if (hasHeadline()) {
if (!getHeadline()
.equals(other.getHeadline())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasLogoImage() != other.hasLogoImage()) return false;
if (hasLogoImage()) {
if (!getLogoImage()
.equals(other.getLogoImage())) 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 (hasCallToAction() != other.hasCallToAction()) return false;
if (hasCallToAction()) {
if (!getCallToAction()
.equals(other.getCallToAction())) 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 (hasHeadline()) {
hash = (37 * hash) + HEADLINE_FIELD_NUMBER;
hash = (53 * hash) + getHeadline().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasLogoImage()) {
hash = (37 * hash) + LOGO_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getLogoImage().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 (hasCallToAction()) {
hash = (37 * hash) + CALL_TO_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getCallToAction().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.common.DemandGenProductAdInfo 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 product ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DemandGenProductAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.DemandGenProductAdInfo)
com.google.ads.googleads.v17.common.DemandGenProductAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_DemandGenProductAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_DemandGenProductAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DemandGenProductAdInfo.class, com.google.ads.googleads.v17.common.DemandGenProductAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.DemandGenProductAdInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeadlineFieldBuilder();
getDescriptionFieldBuilder();
getLogoImageFieldBuilder();
getBusinessNameFieldBuilder();
getCallToActionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
headline_ = null;
if (headlineBuilder_ != null) {
headlineBuilder_.dispose();
headlineBuilder_ = null;
}
description_ = null;
if (descriptionBuilder_ != null) {
descriptionBuilder_.dispose();
descriptionBuilder_ = null;
}
logoImage_ = null;
if (logoImageBuilder_ != null) {
logoImageBuilder_.dispose();
logoImageBuilder_ = null;
}
breadcrumb1_ = "";
breadcrumb2_ = "";
businessName_ = null;
if (businessNameBuilder_ != null) {
businessNameBuilder_.dispose();
businessNameBuilder_ = null;
}
callToAction_ = null;
if (callToActionBuilder_ != null) {
callToActionBuilder_.dispose();
callToActionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_DemandGenProductAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenProductAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.DemandGenProductAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenProductAdInfo build() {
com.google.ads.googleads.v17.common.DemandGenProductAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenProductAdInfo buildPartial() {
com.google.ads.googleads.v17.common.DemandGenProductAdInfo result = new com.google.ads.googleads.v17.common.DemandGenProductAdInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.DemandGenProductAdInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.headline_ = headlineBuilder_ == null
? headline_
: headlineBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = descriptionBuilder_ == null
? description_
: descriptionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.logoImage_ = logoImageBuilder_ == null
? logoImage_
: logoImageBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.breadcrumb1_ = breadcrumb1_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.breadcrumb2_ = breadcrumb2_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.businessName_ = businessNameBuilder_ == null
? businessName_
: businessNameBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.callToAction_ = callToActionBuilder_ == null
? callToAction_
: callToActionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.DemandGenProductAdInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.DemandGenProductAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.DemandGenProductAdInfo other) {
if (other == com.google.ads.googleads.v17.common.DemandGenProductAdInfo.getDefaultInstance()) return this;
if (other.hasHeadline()) {
mergeHeadline(other.getHeadline());
}
if (other.hasDescription()) {
mergeDescription(other.getDescription());
}
if (other.hasLogoImage()) {
mergeLogoImage(other.getLogoImage());
}
if (!other.getBreadcrumb1().isEmpty()) {
breadcrumb1_ = other.breadcrumb1_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getBreadcrumb2().isEmpty()) {
breadcrumb2_ = other.breadcrumb2_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasBusinessName()) {
mergeBusinessName(other.getBusinessName());
}
if (other.hasCallToAction()) {
mergeCallToAction(other.getCallToAction());
}
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: {
input.readMessage(
getHeadlineFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getDescriptionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getLogoImageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
breadcrumb1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
breadcrumb2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getBusinessNameFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getCallToActionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
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 com.google.ads.googleads.v17.common.AdTextAsset headline_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder> headlineBuilder_;
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the headline field is set.
*/
public boolean hasHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The headline.
*/
public com.google.ads.googleads.v17.common.AdTextAsset getHeadline() {
if (headlineBuilder_ == null) {
return headline_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : headline_;
} else {
return headlineBuilder_.getMessage();
}
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setHeadline(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (headlineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headline_ = value;
} else {
headlineBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setHeadline(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (headlineBuilder_ == null) {
headline_ = builderForValue.build();
} else {
headlineBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeHeadline(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (headlineBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
headline_ != null &&
headline_ != com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance()) {
getHeadlineBuilder().mergeFrom(value);
} else {
headline_ = value;
}
} else {
headlineBuilder_.mergeFrom(value);
}
if (headline_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearHeadline() {
bitField0_ = (bitField0_ & ~0x00000001);
headline_ = null;
if (headlineBuilder_ != null) {
headlineBuilder_.dispose();
headlineBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getHeadlineBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeadlineFieldBuilder().getBuilder();
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getHeadlineOrBuilder() {
if (headlineBuilder_ != null) {
return headlineBuilder_.getMessageOrBuilder();
} else {
return headline_ == null ?
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : headline_;
}
}
/**
*
* Required. Text asset used for the short headline.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getHeadlineFieldBuilder() {
if (headlineBuilder_ == null) {
headlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>(
getHeadline(),
getParentForChildren(),
isClean());
headline_ = null;
}
return headlineBuilder_;
}
private com.google.ads.googleads.v17.common.AdTextAsset description_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder> descriptionBuilder_;
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The description.
*/
public com.google.ads.googleads.v17.common.AdTextAsset getDescription() {
if (descriptionBuilder_ == null) {
return description_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : description_;
} else {
return descriptionBuilder_.getMessage();
}
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setDescription(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (descriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
} else {
descriptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setDescription(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (descriptionBuilder_ == null) {
description_ = builderForValue.build();
} else {
descriptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeDescription(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (descriptionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
description_ != null &&
description_ != com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance()) {
getDescriptionBuilder().mergeFrom(value);
} else {
description_ = value;
}
} else {
descriptionBuilder_.mergeFrom(value);
}
if (description_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000002);
description_ = null;
if (descriptionBuilder_ != null) {
descriptionBuilder_.dispose();
descriptionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getDescriptionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDescriptionFieldBuilder().getBuilder();
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getDescriptionOrBuilder() {
if (descriptionBuilder_ != null) {
return descriptionBuilder_.getMessageOrBuilder();
} else {
return description_ == null ?
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : description_;
}
}
/**
*
* Required. Text asset used for the description.
*
*
* optional .google.ads.googleads.v17.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getDescriptionFieldBuilder() {
if (descriptionBuilder_ == null) {
descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>(
getDescription(),
getParentForChildren(),
isClean());
description_ = null;
}
return descriptionBuilder_;
}
private com.google.ads.googleads.v17.common.AdImageAsset logoImage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder> logoImageBuilder_;
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the logoImage field is set.
*/
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The logoImage.
*/
public com.google.ads.googleads.v17.common.AdImageAsset getLogoImage() {
if (logoImageBuilder_ == null) {
return logoImage_ == null ? com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance() : logoImage_;
} else {
return logoImageBuilder_.getMessage();
}
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setLogoImage(com.google.ads.googleads.v17.common.AdImageAsset value) {
if (logoImageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logoImage_ = value;
} else {
logoImageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setLogoImage(
com.google.ads.googleads.v17.common.AdImageAsset.Builder builderForValue) {
if (logoImageBuilder_ == null) {
logoImage_ = builderForValue.build();
} else {
logoImageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeLogoImage(com.google.ads.googleads.v17.common.AdImageAsset value) {
if (logoImageBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
logoImage_ != null &&
logoImage_ != com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance()) {
getLogoImageBuilder().mergeFrom(value);
} else {
logoImage_ = value;
}
} else {
logoImageBuilder_.mergeFrom(value);
}
if (logoImage_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearLogoImage() {
bitField0_ = (bitField0_ & ~0x00000004);
logoImage_ = null;
if (logoImageBuilder_ != null) {
logoImageBuilder_.dispose();
logoImageBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdImageAsset.Builder getLogoImageBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLogoImageFieldBuilder().getBuilder();
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdImageAssetOrBuilder getLogoImageOrBuilder() {
if (logoImageBuilder_ != null) {
return logoImageBuilder_.getMessageOrBuilder();
} else {
return logoImage_ == null ?
com.google.ads.googleads.v17.common.AdImageAsset.getDefaultInstance() : logoImage_;
}
}
/**
*
* Required. 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%).
*
*
* optional .google.ads.googleads.v17.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>
getLogoImageFieldBuilder() {
if (logoImageBuilder_ == null) {
logoImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdImageAsset, com.google.ads.googleads.v17.common.AdImageAsset.Builder, com.google.ads.googleads.v17.common.AdImageAssetOrBuilder>(
getLogoImage(),
getParentForChildren(),
isClean());
logoImage_ = null;
}
return logoImageBuilder_;
}
private java.lang.Object breadcrumb1_ = "";
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 4;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb1() {
breadcrumb1_ = getDefaultInstance().getBreadcrumb1();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* First part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb1 = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object breadcrumb2_ = "";
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 5;
* @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 = 5;
* @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 = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 5;
* @return This builder for chaining.
*/
public Builder clearBreadcrumb2() {
breadcrumb2_ = getDefaultInstance().getBreadcrumb2();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Second part of text that appears in the ad with the displayed URL.
*
*
* string breadcrumb2 = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.AdTextAsset businessName_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder> businessNameBuilder_;
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
* @return The businessName.
*/
public com.google.ads.googleads.v17.common.AdTextAsset getBusinessName() {
if (businessNameBuilder_ == null) {
return businessName_ == null ? com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : businessName_;
} else {
return businessNameBuilder_.getMessage();
}
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBusinessName(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (businessNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
businessName_ = value;
} else {
businessNameBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setBusinessName(
com.google.ads.googleads.v17.common.AdTextAsset.Builder builderForValue) {
if (businessNameBuilder_ == null) {
businessName_ = builderForValue.build();
} else {
businessNameBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeBusinessName(com.google.ads.googleads.v17.common.AdTextAsset value) {
if (businessNameBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
businessName_ != null &&
businessName_ != com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance()) {
getBusinessNameBuilder().mergeFrom(value);
} else {
businessName_ = value;
}
} else {
businessNameBuilder_.mergeFrom(value);
}
if (businessName_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearBusinessName() {
bitField0_ = (bitField0_ & ~0x00000020);
businessName_ = null;
if (businessNameBuilder_ != null) {
businessNameBuilder_.dispose();
businessNameBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAsset.Builder getBusinessNameBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getBusinessNameFieldBuilder().getBuilder();
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.common.AdTextAssetOrBuilder getBusinessNameOrBuilder() {
if (businessNameBuilder_ != null) {
return businessNameBuilder_.getMessageOrBuilder();
} else {
return businessName_ == null ?
com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance() : businessName_;
}
}
/**
*
* Required. The advertiser/brand name.
*
*
* .google.ads.googleads.v17.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>
getBusinessNameFieldBuilder() {
if (businessNameBuilder_ == null) {
businessNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdTextAsset, com.google.ads.googleads.v17.common.AdTextAsset.Builder, com.google.ads.googleads.v17.common.AdTextAssetOrBuilder>(
getBusinessName(),
getParentForChildren(),
isClean());
businessName_ = null;
}
return businessNameBuilder_;
}
private com.google.ads.googleads.v17.common.AdCallToActionAsset callToAction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdCallToActionAsset, com.google.ads.googleads.v17.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v17.common.AdCallToActionAssetOrBuilder> callToActionBuilder_;
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
* @return Whether the callToAction field is set.
*/
public boolean hasCallToAction() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
* @return The callToAction.
*/
public com.google.ads.googleads.v17.common.AdCallToActionAsset getCallToAction() {
if (callToActionBuilder_ == null) {
return callToAction_ == null ? com.google.ads.googleads.v17.common.AdCallToActionAsset.getDefaultInstance() : callToAction_;
} else {
return callToActionBuilder_.getMessage();
}
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public Builder setCallToAction(com.google.ads.googleads.v17.common.AdCallToActionAsset value) {
if (callToActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callToAction_ = value;
} else {
callToActionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public Builder setCallToAction(
com.google.ads.googleads.v17.common.AdCallToActionAsset.Builder builderForValue) {
if (callToActionBuilder_ == null) {
callToAction_ = builderForValue.build();
} else {
callToActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public Builder mergeCallToAction(com.google.ads.googleads.v17.common.AdCallToActionAsset value) {
if (callToActionBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
callToAction_ != null &&
callToAction_ != com.google.ads.googleads.v17.common.AdCallToActionAsset.getDefaultInstance()) {
getCallToActionBuilder().mergeFrom(value);
} else {
callToAction_ = value;
}
} else {
callToActionBuilder_.mergeFrom(value);
}
if (callToAction_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public Builder clearCallToAction() {
bitField0_ = (bitField0_ & ~0x00000040);
callToAction_ = null;
if (callToActionBuilder_ != null) {
callToActionBuilder_.dispose();
callToActionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public com.google.ads.googleads.v17.common.AdCallToActionAsset.Builder getCallToActionBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getCallToActionFieldBuilder().getBuilder();
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
public com.google.ads.googleads.v17.common.AdCallToActionAssetOrBuilder getCallToActionOrBuilder() {
if (callToActionBuilder_ != null) {
return callToActionBuilder_.getMessageOrBuilder();
} else {
return callToAction_ == null ?
com.google.ads.googleads.v17.common.AdCallToActionAsset.getDefaultInstance() : callToAction_;
}
}
/**
*
* Asset of type CallToActionAsset used for the "Call To Action" button.
*
*
* optional .google.ads.googleads.v17.common.AdCallToActionAsset call_to_action = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdCallToActionAsset, com.google.ads.googleads.v17.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v17.common.AdCallToActionAssetOrBuilder>
getCallToActionFieldBuilder() {
if (callToActionBuilder_ == null) {
callToActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdCallToActionAsset, com.google.ads.googleads.v17.common.AdCallToActionAsset.Builder, com.google.ads.googleads.v17.common.AdCallToActionAssetOrBuilder>(
getCallToAction(),
getParentForChildren(),
isClean());
callToAction_ = null;
}
return callToActionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.DemandGenProductAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.DemandGenProductAdInfo)
private static final com.google.ads.googleads.v17.common.DemandGenProductAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.DemandGenProductAdInfo();
}
public static com.google.ads.googleads.v17.common.DemandGenProductAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DemandGenProductAdInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenProductAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy