com.google.ads.googleads.v17.common.TextMessageFeedItem 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/extensions.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* An extension that users can click on to send a text message to the
* advertiser.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TextMessageFeedItem}
*/
public final class TextMessageFeedItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.TextMessageFeedItem)
TextMessageFeedItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextMessageFeedItem.newBuilder() to construct.
private TextMessageFeedItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextMessageFeedItem() {
businessName_ = "";
countryCode_ = "";
phoneNumber_ = "";
text_ = "";
extensionText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextMessageFeedItem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_TextMessageFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_TextMessageFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TextMessageFeedItem.class, com.google.ads.googleads.v17.common.TextMessageFeedItem.Builder.class);
}
private int bitField0_;
public static final int BUSINESS_NAME_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object businessName_ = "";
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @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;
}
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @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 COUNTRY_CODE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object countryCode_ = "";
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return Whether the countryCode field is set.
*/
@java.lang.Override
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return The countryCode.
*/
@java.lang.Override
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
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();
countryCode_ = s;
return s;
}
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return The bytes for countryCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PHONE_NUMBER_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object phoneNumber_ = "";
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return Whether the phoneNumber field is set.
*/
@java.lang.Override
public boolean hasPhoneNumber() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return The phoneNumber.
*/
@java.lang.Override
public java.lang.String getPhoneNumber() {
java.lang.Object ref = phoneNumber_;
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();
phoneNumber_ = s;
return s;
}
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return The bytes for phoneNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPhoneNumberBytes() {
java.lang.Object ref = phoneNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phoneNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEXT_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
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();
text_ = s;
return s;
}
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTENSION_TEXT_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object extensionText_ = "";
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return Whether the extensionText field is set.
*/
@java.lang.Override
public boolean hasExtensionText() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return The extensionText.
*/
@java.lang.Override
public java.lang.String getExtensionText() {
java.lang.Object ref = extensionText_;
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();
extensionText_ = s;
return s;
}
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return The bytes for extensionText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExtensionTextBytes() {
java.lang.Object ref = extensionText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extensionText_ = 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, 6, businessName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, countryCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, phoneNumber_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, text_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, extensionText_);
}
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(6, businessName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, countryCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, phoneNumber_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, text_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, extensionText_);
}
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.TextMessageFeedItem)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.TextMessageFeedItem other = (com.google.ads.googleads.v17.common.TextMessageFeedItem) obj;
if (hasBusinessName() != other.hasBusinessName()) return false;
if (hasBusinessName()) {
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
}
if (hasCountryCode() != other.hasCountryCode()) return false;
if (hasCountryCode()) {
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
}
if (hasPhoneNumber() != other.hasPhoneNumber()) return false;
if (hasPhoneNumber()) {
if (!getPhoneNumber()
.equals(other.getPhoneNumber())) return false;
}
if (hasText() != other.hasText()) return false;
if (hasText()) {
if (!getText()
.equals(other.getText())) return false;
}
if (hasExtensionText() != other.hasExtensionText()) return false;
if (hasExtensionText()) {
if (!getExtensionText()
.equals(other.getExtensionText())) 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 (hasBusinessName()) {
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
}
if (hasCountryCode()) {
hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
}
if (hasPhoneNumber()) {
hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getPhoneNumber().hashCode();
}
if (hasText()) {
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
}
if (hasExtensionText()) {
hash = (37 * hash) + EXTENSION_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getExtensionText().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.TextMessageFeedItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TextMessageFeedItem 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.TextMessageFeedItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TextMessageFeedItem 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.TextMessageFeedItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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.TextMessageFeedItem 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;
}
/**
*
* An extension that users can click on to send a text message to the
* advertiser.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TextMessageFeedItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.TextMessageFeedItem)
com.google.ads.googleads.v17.common.TextMessageFeedItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_TextMessageFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_TextMessageFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TextMessageFeedItem.class, com.google.ads.googleads.v17.common.TextMessageFeedItem.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.TextMessageFeedItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
businessName_ = "";
countryCode_ = "";
phoneNumber_ = "";
text_ = "";
extensionText_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_TextMessageFeedItem_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TextMessageFeedItem getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.TextMessageFeedItem.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TextMessageFeedItem build() {
com.google.ads.googleads.v17.common.TextMessageFeedItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TextMessageFeedItem buildPartial() {
com.google.ads.googleads.v17.common.TextMessageFeedItem result = new com.google.ads.googleads.v17.common.TextMessageFeedItem(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.TextMessageFeedItem result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.businessName_ = businessName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.countryCode_ = countryCode_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.phoneNumber_ = phoneNumber_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.text_ = text_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.extensionText_ = extensionText_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.TextMessageFeedItem) {
return mergeFrom((com.google.ads.googleads.v17.common.TextMessageFeedItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.TextMessageFeedItem other) {
if (other == com.google.ads.googleads.v17.common.TextMessageFeedItem.getDefaultInstance()) return this;
if (other.hasBusinessName()) {
businessName_ = other.businessName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCountryCode()) {
countryCode_ = other.countryCode_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPhoneNumber()) {
phoneNumber_ = other.phoneNumber_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasText()) {
text_ = other.text_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasExtensionText()) {
extensionText_ = other.extensionText_;
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 50: {
businessName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 50
case 58: {
countryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
case 66: {
phoneNumber_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
case 74: {
text_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 74
case 82: {
extensionText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 82
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 businessName_ = "";
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @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;
}
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @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;
}
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @param value The businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
businessName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @return This builder for chaining.
*/
public Builder clearBusinessName() {
businessName_ = getDefaultInstance().getBusinessName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The business name to prepend to the message text.
* This field is required.
*
*
* optional string business_name = 6;
* @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);
businessName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object countryCode_ = "";
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return Whether the countryCode field is set.
*/
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return The countryCode.
*/
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return The bytes for countryCode.
*/
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @param value The countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Uppercase two-letter country code of the advertiser's phone number.
* This field is required.
*
*
* optional string country_code = 7;
* @param value The bytes for countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object phoneNumber_ = "";
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return Whether the phoneNumber field is set.
*/
public boolean hasPhoneNumber() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return The phoneNumber.
*/
public java.lang.String getPhoneNumber() {
java.lang.Object ref = phoneNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
phoneNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return The bytes for phoneNumber.
*/
public com.google.protobuf.ByteString
getPhoneNumberBytes() {
java.lang.Object ref = phoneNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phoneNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @param value The phoneNumber to set.
* @return This builder for chaining.
*/
public Builder setPhoneNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
phoneNumber_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @return This builder for chaining.
*/
public Builder clearPhoneNumber() {
phoneNumber_ = getDefaultInstance().getPhoneNumber();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The advertiser's phone number the message will be sent to. Required.
*
*
* optional string phone_number = 8;
* @param value The bytes for phoneNumber to set.
* @return This builder for chaining.
*/
public Builder setPhoneNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
phoneNumber_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return Whether the text field is set.
*/
public boolean hasText() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
text_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The text to show in the ad.
* This field is required.
*
*
* optional string text = 9;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
text_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object extensionText_ = "";
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return Whether the extensionText field is set.
*/
public boolean hasExtensionText() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return The extensionText.
*/
public java.lang.String getExtensionText() {
java.lang.Object ref = extensionText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extensionText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return The bytes for extensionText.
*/
public com.google.protobuf.ByteString
getExtensionTextBytes() {
java.lang.Object ref = extensionText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extensionText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @param value The extensionText to set.
* @return This builder for chaining.
*/
public Builder setExtensionText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
extensionText_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @return This builder for chaining.
*/
public Builder clearExtensionText() {
extensionText_ = getDefaultInstance().getExtensionText();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* The message extension_text populated in the messaging app.
*
*
* optional string extension_text = 10;
* @param value The bytes for extensionText to set.
* @return This builder for chaining.
*/
public Builder setExtensionTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
extensionText_ = 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.TextMessageFeedItem)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.TextMessageFeedItem)
private static final com.google.ads.googleads.v17.common.TextMessageFeedItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.TextMessageFeedItem();
}
public static com.google.ads.googleads.v17.common.TextMessageFeedItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextMessageFeedItem 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.TextMessageFeedItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy