com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/common/asset_types.proto
package com.google.ads.googleads.v10.common;
/**
*
* A Discovery Carousel Card asset.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.DiscoveryCarouselCardAsset}
*/
public final class DiscoveryCarouselCardAsset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.DiscoveryCarouselCardAsset)
DiscoveryCarouselCardAssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiscoveryCarouselCardAsset.newBuilder() to construct.
private DiscoveryCarouselCardAsset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiscoveryCarouselCardAsset() {
marketingImageAsset_ = "";
squareMarketingImageAsset_ = "";
portraitMarketingImageAsset_ = "";
headline_ = "";
callToActionText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiscoveryCarouselCardAsset();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AssetTypesProto.internal_static_google_ads_googleads_v10_common_DiscoveryCarouselCardAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AssetTypesProto.internal_static_google_ads_googleads_v10_common_DiscoveryCarouselCardAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.class, com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.Builder.class);
}
public static final int MARKETING_IMAGE_ASSET_FIELD_NUMBER = 1;
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;
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;
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;
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;
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.v10.common.DiscoveryCarouselCardAsset)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset other = (com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset) 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.v10.common.DiscoveryCarouselCardAsset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset 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 Discovery Carousel Card asset.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.DiscoveryCarouselCardAsset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.DiscoveryCarouselCardAsset)
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AssetTypesProto.internal_static_google_ads_googleads_v10_common_DiscoveryCarouselCardAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AssetTypesProto.internal_static_google_ads_googleads_v10_common_DiscoveryCarouselCardAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.class, com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
marketingImageAsset_ = "";
squareMarketingImageAsset_ = "";
portraitMarketingImageAsset_ = "";
headline_ = "";
callToActionText_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.AssetTypesProto.internal_static_google_ads_googleads_v10_common_DiscoveryCarouselCardAsset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset build() {
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset buildPartial() {
com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset result = new com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset(this);
result.marketingImageAsset_ = marketingImageAsset_;
result.squareMarketingImageAsset_ = squareMarketingImageAsset_;
result.portraitMarketingImageAsset_ = portraitMarketingImageAsset_;
result.headline_ = headline_;
result.callToActionText_ = callToActionText_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset) {
return mergeFrom((com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset other) {
if (other == com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset.getDefaultInstance()) return this;
if (!other.getMarketingImageAsset().isEmpty()) {
marketingImageAsset_ = other.marketingImageAsset_;
onChanged();
}
if (!other.getSquareMarketingImageAsset().isEmpty()) {
squareMarketingImageAsset_ = other.squareMarketingImageAsset_;
onChanged();
}
if (!other.getPortraitMarketingImageAsset().isEmpty()) {
portraitMarketingImageAsset_ = other.portraitMarketingImageAsset_;
onChanged();
}
if (!other.getHeadline().isEmpty()) {
headline_ = other.headline_;
onChanged();
}
if (!other.getCallToActionText().isEmpty()) {
callToActionText_ = other.callToActionText_;
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();
break;
} // case 10
case 18: {
squareMarketingImageAsset_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
portraitMarketingImageAsset_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
headline_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
callToActionText_ = input.readStringRequireUtf8();
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 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;
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();
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;
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;
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();
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;
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;
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();
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;
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;
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();
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;
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;
onChanged();
return this;
}
/**
*
* Call to action text.
*
*
* string call_to_action_text = 5;
* @return This builder for chaining.
*/
public Builder clearCallToActionText() {
callToActionText_ = getDefaultInstance().getCallToActionText();
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;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.DiscoveryCarouselCardAsset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.DiscoveryCarouselCardAsset)
private static final com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset();
}
public static com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiscoveryCarouselCardAsset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DiscoveryCarouselCardAsset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy