All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.common.ExpandedTextAdInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/ad_type_infos.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * An expanded text ad.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.ExpandedTextAdInfo} */ public final class ExpandedTextAdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.ExpandedTextAdInfo) ExpandedTextAdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ExpandedTextAdInfo.newBuilder() to construct. private ExpandedTextAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExpandedTextAdInfo() { headlinePart1_ = ""; headlinePart2_ = ""; headlinePart3_ = ""; description_ = ""; description2_ = ""; path1_ = ""; path2_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExpandedTextAdInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ExpandedTextAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ExpandedTextAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.ExpandedTextAdInfo.class, com.google.ads.googleads.v17.common.ExpandedTextAdInfo.Builder.class); } private int bitField0_; public static final int HEADLINE_PART1_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object headlinePart1_ = ""; /** *
   * The first part of the ad's headline.
   * 
* * optional string headline_part1 = 8; * @return Whether the headlinePart1 field is set. */ @java.lang.Override public boolean hasHeadlinePart1() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The first part of the ad's headline.
   * 
* * optional string headline_part1 = 8; * @return The headlinePart1. */ @java.lang.Override public java.lang.String getHeadlinePart1() { java.lang.Object ref = headlinePart1_; 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(); headlinePart1_ = s; return s; } } /** *
   * The first part of the ad's headline.
   * 
* * optional string headline_part1 = 8; * @return The bytes for headlinePart1. */ @java.lang.Override public com.google.protobuf.ByteString getHeadlinePart1Bytes() { java.lang.Object ref = headlinePart1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADLINE_PART2_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object headlinePart2_ = ""; /** *
   * The second part of the ad's headline.
   * 
* * optional string headline_part2 = 9; * @return Whether the headlinePart2 field is set. */ @java.lang.Override public boolean hasHeadlinePart2() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The second part of the ad's headline.
   * 
* * optional string headline_part2 = 9; * @return The headlinePart2. */ @java.lang.Override public java.lang.String getHeadlinePart2() { java.lang.Object ref = headlinePart2_; 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(); headlinePart2_ = s; return s; } } /** *
   * The second part of the ad's headline.
   * 
* * optional string headline_part2 = 9; * @return The bytes for headlinePart2. */ @java.lang.Override public com.google.protobuf.ByteString getHeadlinePart2Bytes() { java.lang.Object ref = headlinePart2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADLINE_PART3_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object headlinePart3_ = ""; /** *
   * The third part of the ad's headline.
   * 
* * optional string headline_part3 = 10; * @return Whether the headlinePart3 field is set. */ @java.lang.Override public boolean hasHeadlinePart3() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The third part of the ad's headline.
   * 
* * optional string headline_part3 = 10; * @return The headlinePart3. */ @java.lang.Override public java.lang.String getHeadlinePart3() { java.lang.Object ref = headlinePart3_; 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(); headlinePart3_ = s; return s; } } /** *
   * The third part of the ad's headline.
   * 
* * optional string headline_part3 = 10; * @return The bytes for headlinePart3. */ @java.lang.Override public com.google.protobuf.ByteString getHeadlinePart3Bytes() { java.lang.Object ref = headlinePart3_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   * The description of the ad.
   * 
* * optional string description = 11; * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The description of the ad.
   * 
* * optional string description = 11; * @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; } } /** *
   * The description of the ad.
   * 
* * optional string description = 11; * @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 DESCRIPTION2_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object description2_ = ""; /** *
   * The second description of the ad.
   * 
* * optional string description2 = 12; * @return Whether the description2 field is set. */ @java.lang.Override public boolean hasDescription2() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * The second description of the ad.
   * 
* * optional string description2 = 12; * @return The description2. */ @java.lang.Override public java.lang.String getDescription2() { java.lang.Object ref = description2_; 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(); description2_ = s; return s; } } /** *
   * The second description of the ad.
   * 
* * optional string description2 = 12; * @return The bytes for description2. */ @java.lang.Override public com.google.protobuf.ByteString getDescription2Bytes() { java.lang.Object ref = description2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH1_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object path1_ = ""; /** *
   * The text that can appear alongside the ad's displayed URL.
   * 
* * optional string path1 = 13; * @return Whether the path1 field is set. */ @java.lang.Override public boolean hasPath1() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * The text that can appear alongside the ad's displayed URL.
   * 
* * optional string path1 = 13; * @return The path1. */ @java.lang.Override public java.lang.String getPath1() { java.lang.Object ref = path1_; 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(); path1_ = s; return s; } } /** *
   * The text that can appear alongside the ad's displayed URL.
   * 
* * optional string path1 = 13; * @return The bytes for path1. */ @java.lang.Override public com.google.protobuf.ByteString getPath1Bytes() { java.lang.Object ref = path1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH2_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object path2_ = ""; /** *
   * Additional text that can appear alongside the ad's displayed URL.
   * 
* * optional string path2 = 14; * @return Whether the path2 field is set. */ @java.lang.Override public boolean hasPath2() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Additional text that can appear alongside the ad's displayed URL.
   * 
* * optional string path2 = 14; * @return The path2. */ @java.lang.Override public java.lang.String getPath2() { java.lang.Object ref = path2_; 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(); path2_ = s; return s; } } /** *
   * Additional text that can appear alongside the ad's displayed URL.
   * 
* * optional string path2 = 14; * @return The bytes for path2. */ @java.lang.Override public com.google.protobuf.ByteString getPath2Bytes() { java.lang.Object ref = path2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path2_ = 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, 8, headlinePart1_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, headlinePart2_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, headlinePart3_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description2_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, path1_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, path2_); } 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(8, headlinePart1_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, headlinePart2_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, headlinePart3_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description2_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, path1_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, path2_); } 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.ExpandedTextAdInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.common.ExpandedTextAdInfo other = (com.google.ads.googleads.v17.common.ExpandedTextAdInfo) obj; if (hasHeadlinePart1() != other.hasHeadlinePart1()) return false; if (hasHeadlinePart1()) { if (!getHeadlinePart1() .equals(other.getHeadlinePart1())) return false; } if (hasHeadlinePart2() != other.hasHeadlinePart2()) return false; if (hasHeadlinePart2()) { if (!getHeadlinePart2() .equals(other.getHeadlinePart2())) return false; } if (hasHeadlinePart3() != other.hasHeadlinePart3()) return false; if (hasHeadlinePart3()) { if (!getHeadlinePart3() .equals(other.getHeadlinePart3())) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription() .equals(other.getDescription())) return false; } if (hasDescription2() != other.hasDescription2()) return false; if (hasDescription2()) { if (!getDescription2() .equals(other.getDescription2())) return false; } if (hasPath1() != other.hasPath1()) return false; if (hasPath1()) { if (!getPath1() .equals(other.getPath1())) return false; } if (hasPath2() != other.hasPath2()) return false; if (hasPath2()) { if (!getPath2() .equals(other.getPath2())) 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 (hasHeadlinePart1()) { hash = (37 * hash) + HEADLINE_PART1_FIELD_NUMBER; hash = (53 * hash) + getHeadlinePart1().hashCode(); } if (hasHeadlinePart2()) { hash = (37 * hash) + HEADLINE_PART2_FIELD_NUMBER; hash = (53 * hash) + getHeadlinePart2().hashCode(); } if (hasHeadlinePart3()) { hash = (37 * hash) + HEADLINE_PART3_FIELD_NUMBER; hash = (53 * hash) + getHeadlinePart3().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasDescription2()) { hash = (37 * hash) + DESCRIPTION2_FIELD_NUMBER; hash = (53 * hash) + getDescription2().hashCode(); } if (hasPath1()) { hash = (37 * hash) + PATH1_FIELD_NUMBER; hash = (53 * hash) + getPath1().hashCode(); } if (hasPath2()) { hash = (37 * hash) + PATH2_FIELD_NUMBER; hash = (53 * hash) + getPath2().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.ExpandedTextAdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ExpandedTextAdInfo 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.ExpandedTextAdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ExpandedTextAdInfo 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.ExpandedTextAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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.ExpandedTextAdInfo 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 expanded text ad.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.ExpandedTextAdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.ExpandedTextAdInfo) com.google.ads.googleads.v17.common.ExpandedTextAdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ExpandedTextAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ExpandedTextAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.ExpandedTextAdInfo.class, com.google.ads.googleads.v17.common.ExpandedTextAdInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.common.ExpandedTextAdInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; headlinePart1_ = ""; headlinePart2_ = ""; headlinePart3_ = ""; description_ = ""; description2_ = ""; path1_ = ""; path2_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_ExpandedTextAdInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.ExpandedTextAdInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.ExpandedTextAdInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.ExpandedTextAdInfo build() { com.google.ads.googleads.v17.common.ExpandedTextAdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.ExpandedTextAdInfo buildPartial() { com.google.ads.googleads.v17.common.ExpandedTextAdInfo result = new com.google.ads.googleads.v17.common.ExpandedTextAdInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.ExpandedTextAdInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.headlinePart1_ = headlinePart1_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.headlinePart2_ = headlinePart2_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.headlinePart3_ = headlinePart3_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description2_ = description2_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.path1_ = path1_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.path2_ = path2_; to_bitField0_ |= 0x00000040; } 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.ExpandedTextAdInfo) { return mergeFrom((com.google.ads.googleads.v17.common.ExpandedTextAdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.ExpandedTextAdInfo other) { if (other == com.google.ads.googleads.v17.common.ExpandedTextAdInfo.getDefaultInstance()) return this; if (other.hasHeadlinePart1()) { headlinePart1_ = other.headlinePart1_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasHeadlinePart2()) { headlinePart2_ = other.headlinePart2_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasHeadlinePart3()) { headlinePart3_ = other.headlinePart3_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasDescription2()) { description2_ = other.description2_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasPath1()) { path1_ = other.path1_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasPath2()) { path2_ = other.path2_; bitField0_ |= 0x00000040; 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 66: { headlinePart1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 66 case 74: { headlinePart2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 74 case 82: { headlinePart3_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 82 case 90: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 90 case 98: { description2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 98 case 106: { path1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 106 case 114: { path2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 114 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 headlinePart1_ = ""; /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @return Whether the headlinePart1 field is set. */ public boolean hasHeadlinePart1() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @return The headlinePart1. */ public java.lang.String getHeadlinePart1() { java.lang.Object ref = headlinePart1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headlinePart1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @return The bytes for headlinePart1. */ public com.google.protobuf.ByteString getHeadlinePart1Bytes() { java.lang.Object ref = headlinePart1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @param value The headlinePart1 to set. * @return This builder for chaining. */ public Builder setHeadlinePart1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headlinePart1_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @return This builder for chaining. */ public Builder clearHeadlinePart1() { headlinePart1_ = getDefaultInstance().getHeadlinePart1(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The first part of the ad's headline.
     * 
* * optional string headline_part1 = 8; * @param value The bytes for headlinePart1 to set. * @return This builder for chaining. */ public Builder setHeadlinePart1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headlinePart1_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object headlinePart2_ = ""; /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @return Whether the headlinePart2 field is set. */ public boolean hasHeadlinePart2() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @return The headlinePart2. */ public java.lang.String getHeadlinePart2() { java.lang.Object ref = headlinePart2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headlinePart2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @return The bytes for headlinePart2. */ public com.google.protobuf.ByteString getHeadlinePart2Bytes() { java.lang.Object ref = headlinePart2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @param value The headlinePart2 to set. * @return This builder for chaining. */ public Builder setHeadlinePart2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headlinePart2_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @return This builder for chaining. */ public Builder clearHeadlinePart2() { headlinePart2_ = getDefaultInstance().getHeadlinePart2(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The second part of the ad's headline.
     * 
* * optional string headline_part2 = 9; * @param value The bytes for headlinePart2 to set. * @return This builder for chaining. */ public Builder setHeadlinePart2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headlinePart2_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object headlinePart3_ = ""; /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @return Whether the headlinePart3 field is set. */ public boolean hasHeadlinePart3() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @return The headlinePart3. */ public java.lang.String getHeadlinePart3() { java.lang.Object ref = headlinePart3_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headlinePart3_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @return The bytes for headlinePart3. */ public com.google.protobuf.ByteString getHeadlinePart3Bytes() { java.lang.Object ref = headlinePart3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headlinePart3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @param value The headlinePart3 to set. * @return This builder for chaining. */ public Builder setHeadlinePart3( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headlinePart3_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @return This builder for chaining. */ public Builder clearHeadlinePart3() { headlinePart3_ = getDefaultInstance().getHeadlinePart3(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The third part of the ad's headline.
     * 
* * optional string headline_part3 = 10; * @param value The bytes for headlinePart3 to set. * @return This builder for chaining. */ public Builder setHeadlinePart3Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headlinePart3_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @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; } } /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @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; } } /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * The description of the ad.
     * 
* * optional string description = 11; * @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); description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object description2_ = ""; /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @return Whether the description2 field is set. */ public boolean hasDescription2() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @return The description2. */ public java.lang.String getDescription2() { java.lang.Object ref = description2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @return The bytes for description2. */ public com.google.protobuf.ByteString getDescription2Bytes() { java.lang.Object ref = description2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @param value The description2 to set. * @return This builder for chaining. */ public Builder setDescription2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description2_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @return This builder for chaining. */ public Builder clearDescription2() { description2_ = getDefaultInstance().getDescription2(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * The second description of the ad.
     * 
* * optional string description2 = 12; * @param value The bytes for description2 to set. * @return This builder for chaining. */ public Builder setDescription2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description2_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object path1_ = ""; /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @return Whether the path1 field is set. */ public boolean hasPath1() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @return The path1. */ public java.lang.String getPath1() { java.lang.Object ref = path1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @return The bytes for path1. */ public com.google.protobuf.ByteString getPath1Bytes() { java.lang.Object ref = path1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @param value The path1 to set. * @return This builder for chaining. */ public Builder setPath1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path1_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @return This builder for chaining. */ public Builder clearPath1() { path1_ = getDefaultInstance().getPath1(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * The text that can appear alongside the ad's displayed URL.
     * 
* * optional string path1 = 13; * @param value The bytes for path1 to set. * @return This builder for chaining. */ public Builder setPath1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path1_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object path2_ = ""; /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @return Whether the path2 field is set. */ public boolean hasPath2() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @return The path2. */ public java.lang.String getPath2() { java.lang.Object ref = path2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @return The bytes for path2. */ public com.google.protobuf.ByteString getPath2Bytes() { java.lang.Object ref = path2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @param value The path2 to set. * @return This builder for chaining. */ public Builder setPath2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path2_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @return This builder for chaining. */ public Builder clearPath2() { path2_ = getDefaultInstance().getPath2(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Additional text that can appear alongside the ad's displayed URL.
     * 
* * optional string path2 = 14; * @param value The bytes for path2 to set. * @return This builder for chaining. */ public Builder setPath2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path2_ = value; bitField0_ |= 0x00000040; 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.ExpandedTextAdInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.ExpandedTextAdInfo) private static final com.google.ads.googleads.v17.common.ExpandedTextAdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.ExpandedTextAdInfo(); } public static com.google.ads.googleads.v17.common.ExpandedTextAdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExpandedTextAdInfo 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.ExpandedTextAdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy