com.google.ads.googleads.v10.common.GmailTeaser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/common/ad_type_infos.proto
package com.google.ads.googleads.v10.common;
/**
*
* Gmail teaser data. The teaser is a small header that acts as an invitation
* to view the rest of the ad (the body).
*
*
* Protobuf type {@code google.ads.googleads.v10.common.GmailTeaser}
*/
public final class GmailTeaser extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.GmailTeaser)
GmailTeaserOrBuilder {
private static final long serialVersionUID = 0L;
// Use GmailTeaser.newBuilder() to construct.
private GmailTeaser(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GmailTeaser() {
headline_ = "";
description_ = "";
businessName_ = "";
logoImage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GmailTeaser();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailTeaser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailTeaser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.GmailTeaser.class, com.google.ads.googleads.v10.common.GmailTeaser.Builder.class);
}
private int bitField0_;
public static final int HEADLINE_FIELD_NUMBER = 5;
private volatile java.lang.Object headline_;
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @return Whether the headline field is set.
*/
@java.lang.Override
public boolean hasHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @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;
}
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @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 DESCRIPTION_FIELD_NUMBER = 6;
private volatile java.lang.Object description_;
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSINESS_NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object businessName_;
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return The businessName.
*/
@java.lang.Override
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
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();
businessName_ = s;
return s;
}
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return The bytes for businessName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGO_IMAGE_FIELD_NUMBER = 8;
private volatile java.lang.Object logoImage_;
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return Whether the logoImage field is set.
*/
@java.lang.Override
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return The logoImage.
*/
@java.lang.Override
public java.lang.String getLogoImage() {
java.lang.Object ref = logoImage_;
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();
logoImage_ = s;
return s;
}
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return The bytes for logoImage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoImageBytes() {
java.lang.Object ref = logoImage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoImage_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, headline_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, businessName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, logoImage_);
}
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.GeneratedMessageV3.computeStringSize(5, headline_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, businessName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, logoImage_);
}
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.GmailTeaser)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.GmailTeaser other = (com.google.ads.googleads.v10.common.GmailTeaser) 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 (hasBusinessName() != other.hasBusinessName()) return false;
if (hasBusinessName()) {
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
}
if (hasLogoImage() != other.hasLogoImage()) return false;
if (hasLogoImage()) {
if (!getLogoImage()
.equals(other.getLogoImage())) 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 (hasBusinessName()) {
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
}
if (hasLogoImage()) {
hash = (37 * hash) + LOGO_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getLogoImage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.GmailTeaser parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.GmailTeaser 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.GmailTeaser parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.GmailTeaser 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.GmailTeaser parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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.GmailTeaser 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;
}
/**
*
* Gmail teaser data. The teaser is a small header that acts as an invitation
* to view the rest of the ad (the body).
*
*
* Protobuf type {@code google.ads.googleads.v10.common.GmailTeaser}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.GmailTeaser)
com.google.ads.googleads.v10.common.GmailTeaserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailTeaser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailTeaser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.GmailTeaser.class, com.google.ads.googleads.v10.common.GmailTeaser.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.GmailTeaser.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
headline_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
businessName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
logoImage_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_GmailTeaser_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.GmailTeaser getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.GmailTeaser.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.GmailTeaser build() {
com.google.ads.googleads.v10.common.GmailTeaser result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.GmailTeaser buildPartial() {
com.google.ads.googleads.v10.common.GmailTeaser result = new com.google.ads.googleads.v10.common.GmailTeaser(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.headline_ = headline_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.businessName_ = businessName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.logoImage_ = logoImage_;
result.bitField0_ = to_bitField0_;
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.GmailTeaser) {
return mergeFrom((com.google.ads.googleads.v10.common.GmailTeaser)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.GmailTeaser other) {
if (other == com.google.ads.googleads.v10.common.GmailTeaser.getDefaultInstance()) return this;
if (other.hasHeadline()) {
bitField0_ |= 0x00000001;
headline_ = other.headline_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000002;
description_ = other.description_;
onChanged();
}
if (other.hasBusinessName()) {
bitField0_ |= 0x00000004;
businessName_ = other.businessName_;
onChanged();
}
if (other.hasLogoImage()) {
bitField0_ |= 0x00000008;
logoImage_ = other.logoImage_;
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 42: {
headline_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 42
case 50: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 50
case 58: {
businessName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 58
case 66: {
logoImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object headline_ = "";
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @return Whether the headline field is set.
*/
public boolean hasHeadline() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @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;
}
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @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;
}
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @param value The headline to set.
* @return This builder for chaining.
*/
public Builder setHeadline(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
headline_ = value;
onChanged();
return this;
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @return This builder for chaining.
*/
public Builder clearHeadline() {
bitField0_ = (bitField0_ & ~0x00000001);
headline_ = getDefaultInstance().getHeadline();
onChanged();
return this;
}
/**
*
* Headline of the teaser.
*
*
* optional string headline = 5;
* @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);
bitField0_ |= 0x00000001;
headline_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000002);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the teaser.
*
*
* optional string description = 6;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
private java.lang.Object businessName_ = "";
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return The businessName.
*/
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return The bytes for businessName.
*/
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @param value The businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
businessName_ = value;
onChanged();
return this;
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @return This builder for chaining.
*/
public Builder clearBusinessName() {
bitField0_ = (bitField0_ & ~0x00000004);
businessName_ = getDefaultInstance().getBusinessName();
onChanged();
return this;
}
/**
*
* Business name of the advertiser.
*
*
* optional string business_name = 7;
* @param value The bytes for businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
businessName_ = value;
onChanged();
return this;
}
private java.lang.Object logoImage_ = "";
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return Whether the logoImage field is set.
*/
public boolean hasLogoImage() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return The logoImage.
*/
public java.lang.String getLogoImage() {
java.lang.Object ref = logoImage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logoImage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return The bytes for logoImage.
*/
public com.google.protobuf.ByteString
getLogoImageBytes() {
java.lang.Object ref = logoImage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoImage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @param value The logoImage to set.
* @return This builder for chaining.
*/
public Builder setLogoImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
logoImage_ = value;
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @return This builder for chaining.
*/
public Builder clearLogoImage() {
bitField0_ = (bitField0_ & ~0x00000008);
logoImage_ = getDefaultInstance().getLogoImage();
onChanged();
return this;
}
/**
*
* The MediaFile resource name of the logo image. Valid image types are GIF,
* JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
* be 1:1 (+-1%).
*
*
* optional string logo_image = 8;
* @param value The bytes for logoImage to set.
* @return This builder for chaining.
*/
public Builder setLogoImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000008;
logoImage_ = 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.GmailTeaser)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.GmailTeaser)
private static final com.google.ads.googleads.v10.common.GmailTeaser DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.GmailTeaser();
}
public static com.google.ads.googleads.v10.common.GmailTeaser getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GmailTeaser 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.GmailTeaser getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy