com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset 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/asset_types.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A Demand Gen Carousel Card asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DemandGenCarouselCardAsset}
*/
public final class DemandGenCarouselCardAsset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.DemandGenCarouselCardAsset)
DemandGenCarouselCardAssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DemandGenCarouselCardAsset.newBuilder() to construct.
private DemandGenCarouselCardAsset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DemandGenCarouselCardAsset() {
marketingImageAsset_ = "";
squareMarketingImageAsset_ = "";
portraitMarketingImageAsset_ = "";
headline_ = "";
callToActionText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DemandGenCarouselCardAsset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DemandGenCarouselCardAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DemandGenCarouselCardAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.class, com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder.class);
}
public static final int MARKETING_IMAGE_ASSET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object marketingImageAsset_ = "";
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @return The marketingImageAsset.
*/
@java.lang.Override
public java.lang.String getMarketingImageAsset() {
java.lang.Object ref = marketingImageAsset_;
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();
marketingImageAsset_ = s;
return s;
}
}
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @return The bytes for marketingImageAsset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMarketingImageAssetBytes() {
java.lang.Object ref = marketingImageAsset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
marketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SQUARE_MARKETING_IMAGE_ASSET_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object squareMarketingImageAsset_ = "";
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @return The squareMarketingImageAsset.
*/
@java.lang.Override
public java.lang.String getSquareMarketingImageAsset() {
java.lang.Object ref = squareMarketingImageAsset_;
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();
squareMarketingImageAsset_ = s;
return s;
}
}
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @return The bytes for squareMarketingImageAsset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSquareMarketingImageAssetBytes() {
java.lang.Object ref = squareMarketingImageAsset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareMarketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORTRAIT_MARKETING_IMAGE_ASSET_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object portraitMarketingImageAsset_ = "";
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @return The portraitMarketingImageAsset.
*/
@java.lang.Override
public java.lang.String getPortraitMarketingImageAsset() {
java.lang.Object ref = portraitMarketingImageAsset_;
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();
portraitMarketingImageAsset_ = s;
return s;
}
}
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @return The bytes for portraitMarketingImageAsset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortraitMarketingImageAssetBytes() {
java.lang.Object ref = portraitMarketingImageAsset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portraitMarketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEADLINE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object headline_ = "";
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The headline.
*/
@java.lang.Override
public java.lang.String getHeadline() {
java.lang.Object ref = headline_;
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();
headline_ = s;
return s;
}
}
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for headline.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHeadlineBytes() {
java.lang.Object ref = headline_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALL_TO_ACTION_TEXT_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object callToActionText_ = "";
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return The callToActionText.
*/
@java.lang.Override
public java.lang.String getCallToActionText() {
java.lang.Object ref = callToActionText_;
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();
callToActionText_ = s;
return s;
}
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return The bytes for callToActionText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCallToActionTextBytes() {
java.lang.Object ref = callToActionText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callToActionText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(marketingImageAsset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(squareMarketingImageAsset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, squareMarketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(portraitMarketingImageAsset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, portraitMarketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, headline_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callToActionText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, callToActionText_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(marketingImageAsset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(squareMarketingImageAsset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, squareMarketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(portraitMarketingImageAsset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, portraitMarketingImageAsset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headline_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, headline_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callToActionText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, callToActionText_);
}
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.DemandGenCarouselCardAsset)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset other = (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) obj;
if (!getMarketingImageAsset()
.equals(other.getMarketingImageAsset())) return false;
if (!getSquareMarketingImageAsset()
.equals(other.getSquareMarketingImageAsset())) return false;
if (!getPortraitMarketingImageAsset()
.equals(other.getPortraitMarketingImageAsset())) return false;
if (!getHeadline()
.equals(other.getHeadline())) return false;
if (!getCallToActionText()
.equals(other.getCallToActionText())) 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();
hash = (37 * hash) + MARKETING_IMAGE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getMarketingImageAsset().hashCode();
hash = (37 * hash) + SQUARE_MARKETING_IMAGE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getSquareMarketingImageAsset().hashCode();
hash = (37 * hash) + PORTRAIT_MARKETING_IMAGE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getPortraitMarketingImageAsset().hashCode();
hash = (37 * hash) + HEADLINE_FIELD_NUMBER;
hash = (53 * hash) + getHeadline().hashCode();
hash = (37 * hash) + CALL_TO_ACTION_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionText().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset 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 Carousel Card asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DemandGenCarouselCardAsset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.DemandGenCarouselCardAsset)
com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DemandGenCarouselCardAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DemandGenCarouselCardAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.class, com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
marketingImageAsset_ = "";
squareMarketingImageAsset_ = "";
portraitMarketingImageAsset_ = "";
headline_ = "";
callToActionText_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DemandGenCarouselCardAsset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset build() {
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset buildPartial() {
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset result = new com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.marketingImageAsset_ = marketingImageAsset_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.squareMarketingImageAsset_ = squareMarketingImageAsset_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.portraitMarketingImageAsset_ = portraitMarketingImageAsset_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.headline_ = headline_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.callToActionText_ = callToActionText_;
}
}
@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.DemandGenCarouselCardAsset) {
return mergeFrom((com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset other) {
if (other == com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance()) return this;
if (!other.getMarketingImageAsset().isEmpty()) {
marketingImageAsset_ = other.marketingImageAsset_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSquareMarketingImageAsset().isEmpty()) {
squareMarketingImageAsset_ = other.squareMarketingImageAsset_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPortraitMarketingImageAsset().isEmpty()) {
portraitMarketingImageAsset_ = other.portraitMarketingImageAsset_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getHeadline().isEmpty()) {
headline_ = other.headline_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getCallToActionText().isEmpty()) {
callToActionText_ = other.callToActionText_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
marketingImageAsset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
squareMarketingImageAsset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
portraitMarketingImageAsset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
headline_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
callToActionText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
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.lang.Object marketingImageAsset_ = "";
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @return The marketingImageAsset.
*/
public java.lang.String getMarketingImageAsset() {
java.lang.Object ref = marketingImageAsset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
marketingImageAsset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @return The bytes for marketingImageAsset.
*/
public com.google.protobuf.ByteString
getMarketingImageAssetBytes() {
java.lang.Object ref = marketingImageAsset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
marketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @param value The marketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setMarketingImageAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
marketingImageAsset_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @return This builder for chaining.
*/
public Builder clearMarketingImageAsset() {
marketingImageAsset_ = getDefaultInstance().getMarketingImageAsset();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Asset resource name of the associated 1.91:1 marketing image. This and/or
* square marketing image asset is required.
*
*
* string marketing_image_asset = 1;
* @param value The bytes for marketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setMarketingImageAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
marketingImageAsset_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object squareMarketingImageAsset_ = "";
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @return The squareMarketingImageAsset.
*/
public java.lang.String getSquareMarketingImageAsset() {
java.lang.Object ref = squareMarketingImageAsset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
squareMarketingImageAsset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @return The bytes for squareMarketingImageAsset.
*/
public com.google.protobuf.ByteString
getSquareMarketingImageAssetBytes() {
java.lang.Object ref = squareMarketingImageAsset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
squareMarketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @param value The squareMarketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setSquareMarketingImageAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
squareMarketingImageAsset_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @return This builder for chaining.
*/
public Builder clearSquareMarketingImageAsset() {
squareMarketingImageAsset_ = getDefaultInstance().getSquareMarketingImageAsset();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Asset resource name of the associated square marketing image. This
* and/or a marketing image asset is required.
*
*
* string square_marketing_image_asset = 2;
* @param value The bytes for squareMarketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setSquareMarketingImageAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
squareMarketingImageAsset_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object portraitMarketingImageAsset_ = "";
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @return The portraitMarketingImageAsset.
*/
public java.lang.String getPortraitMarketingImageAsset() {
java.lang.Object ref = portraitMarketingImageAsset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portraitMarketingImageAsset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @return The bytes for portraitMarketingImageAsset.
*/
public com.google.protobuf.ByteString
getPortraitMarketingImageAssetBytes() {
java.lang.Object ref = portraitMarketingImageAsset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portraitMarketingImageAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @param value The portraitMarketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setPortraitMarketingImageAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
portraitMarketingImageAsset_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @return This builder for chaining.
*/
public Builder clearPortraitMarketingImageAsset() {
portraitMarketingImageAsset_ = getDefaultInstance().getPortraitMarketingImageAsset();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Asset resource name of the associated 4:5 portrait marketing image.
*
*
* string portrait_marketing_image_asset = 3;
* @param value The bytes for portraitMarketingImageAsset to set.
* @return This builder for chaining.
*/
public Builder setPortraitMarketingImageAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
portraitMarketingImageAsset_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object headline_ = "";
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The headline.
*/
public java.lang.String getHeadline() {
java.lang.Object ref = headline_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
headline_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for headline.
*/
public com.google.protobuf.ByteString
getHeadlineBytes() {
java.lang.Object ref = headline_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headline_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @param value The headline to set.
* @return This builder for chaining.
*/
public Builder setHeadline(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
headline_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearHeadline() {
headline_ = getDefaultInstance().getHeadline();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Required. Headline of the carousel card.
*
*
* string headline = 4 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for headline to set.
* @return This builder for chaining.
*/
public Builder setHeadlineBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
headline_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object callToActionText_ = "";
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return The callToActionText.
*/
public java.lang.String getCallToActionText() {
java.lang.Object ref = callToActionText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callToActionText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return The bytes for callToActionText.
*/
public com.google.protobuf.ByteString
getCallToActionTextBytes() {
java.lang.Object ref = callToActionText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callToActionText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @param value The callToActionText to set.
* @return This builder for chaining.
*/
public Builder setCallToActionText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
callToActionText_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return This builder for chaining.
*/
public Builder clearCallToActionText() {
callToActionText_ = getDefaultInstance().getCallToActionText();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @param value The bytes for callToActionText to set.
* @return This builder for chaining.
*/
public Builder setCallToActionTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
callToActionText_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.DemandGenCarouselCardAsset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.DemandGenCarouselCardAsset)
private static final com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset();
}
public static com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DemandGenCarouselCardAsset 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.DemandGenCarouselCardAsset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy