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

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

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

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

/**
 * 
 * Collection of urls that is tagged with a unique identifier.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.UrlCollection} */ public final class UrlCollection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.UrlCollection) UrlCollectionOrBuilder { private static final long serialVersionUID = 0L; // Use UrlCollection.newBuilder() to construct. private UrlCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UrlCollection() { urlCollectionId_ = ""; finalUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); trackingUrlTemplate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UrlCollection(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.UrlCollectionProto.internal_static_google_ads_googleads_v17_common_UrlCollection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.UrlCollectionProto.internal_static_google_ads_googleads_v17_common_UrlCollection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.UrlCollection.class, com.google.ads.googleads.v17.common.UrlCollection.Builder.class); } private int bitField0_; public static final int URL_COLLECTION_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object urlCollectionId_ = ""; /** *
   * Unique identifier for this UrlCollection instance.
   * 
* * optional string url_collection_id = 5; * @return Whether the urlCollectionId field is set. */ @java.lang.Override public boolean hasUrlCollectionId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Unique identifier for this UrlCollection instance.
   * 
* * optional string url_collection_id = 5; * @return The urlCollectionId. */ @java.lang.Override public java.lang.String getUrlCollectionId() { java.lang.Object ref = urlCollectionId_; 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(); urlCollectionId_ = s; return s; } } /** *
   * Unique identifier for this UrlCollection instance.
   * 
* * optional string url_collection_id = 5; * @return The bytes for urlCollectionId. */ @java.lang.Override public com.google.protobuf.ByteString getUrlCollectionIdBytes() { java.lang.Object ref = urlCollectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); urlCollectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINAL_URLS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList finalUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * A list of possible final URLs.
   * 
* * repeated string final_urls = 6; * @return A list containing the finalUrls. */ public com.google.protobuf.ProtocolStringList getFinalUrlsList() { return finalUrls_; } /** *
   * A list of possible final URLs.
   * 
* * repeated string final_urls = 6; * @return The count of finalUrls. */ public int getFinalUrlsCount() { return finalUrls_.size(); } /** *
   * A list of possible final URLs.
   * 
* * repeated string final_urls = 6; * @param index The index of the element to return. * @return The finalUrls at the given index. */ public java.lang.String getFinalUrls(int index) { return finalUrls_.get(index); } /** *
   * A list of possible final URLs.
   * 
* * repeated string final_urls = 6; * @param index The index of the value to return. * @return The bytes of the finalUrls at the given index. */ public com.google.protobuf.ByteString getFinalUrlsBytes(int index) { return finalUrls_.getByteString(index); } public static final int FINAL_MOBILE_URLS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * A list of possible final mobile URLs.
   * 
* * repeated string final_mobile_urls = 7; * @return A list containing the finalMobileUrls. */ public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList() { return finalMobileUrls_; } /** *
   * A list of possible final mobile URLs.
   * 
* * repeated string final_mobile_urls = 7; * @return The count of finalMobileUrls. */ public int getFinalMobileUrlsCount() { return finalMobileUrls_.size(); } /** *
   * A list of possible final mobile URLs.
   * 
* * repeated string final_mobile_urls = 7; * @param index The index of the element to return. * @return The finalMobileUrls at the given index. */ public java.lang.String getFinalMobileUrls(int index) { return finalMobileUrls_.get(index); } /** *
   * A list of possible final mobile URLs.
   * 
* * repeated string final_mobile_urls = 7; * @param index The index of the value to return. * @return The bytes of the finalMobileUrls at the given index. */ public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index) { return finalMobileUrls_.getByteString(index); } public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object trackingUrlTemplate_ = ""; /** *
   * URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 8; * @return Whether the trackingUrlTemplate field is set. */ @java.lang.Override public boolean hasTrackingUrlTemplate() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 8; * @return The trackingUrlTemplate. */ @java.lang.Override public java.lang.String getTrackingUrlTemplate() { java.lang.Object ref = trackingUrlTemplate_; 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(); trackingUrlTemplate_ = s; return s; } } /** *
   * URL template for constructing a tracking URL.
   * 
* * optional string tracking_url_template = 8; * @return The bytes for trackingUrlTemplate. */ @java.lang.Override public com.google.protobuf.ByteString getTrackingUrlTemplateBytes() { java.lang.Object ref = trackingUrlTemplate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrlTemplate_ = 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, urlCollectionId_); } for (int i = 0; i < finalUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, finalUrls_.getRaw(i)); } for (int i = 0; i < finalMobileUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, finalMobileUrls_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, trackingUrlTemplate_); } 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, urlCollectionId_); } { int dataSize = 0; for (int i = 0; i < finalUrls_.size(); i++) { dataSize += computeStringSizeNoTag(finalUrls_.getRaw(i)); } size += dataSize; size += 1 * getFinalUrlsList().size(); } { int dataSize = 0; for (int i = 0; i < finalMobileUrls_.size(); i++) { dataSize += computeStringSizeNoTag(finalMobileUrls_.getRaw(i)); } size += dataSize; size += 1 * getFinalMobileUrlsList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, trackingUrlTemplate_); } 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.UrlCollection)) { return super.equals(obj); } com.google.ads.googleads.v17.common.UrlCollection other = (com.google.ads.googleads.v17.common.UrlCollection) obj; if (hasUrlCollectionId() != other.hasUrlCollectionId()) return false; if (hasUrlCollectionId()) { if (!getUrlCollectionId() .equals(other.getUrlCollectionId())) return false; } if (!getFinalUrlsList() .equals(other.getFinalUrlsList())) return false; if (!getFinalMobileUrlsList() .equals(other.getFinalMobileUrlsList())) return false; if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false; if (hasTrackingUrlTemplate()) { if (!getTrackingUrlTemplate() .equals(other.getTrackingUrlTemplate())) 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 (hasUrlCollectionId()) { hash = (37 * hash) + URL_COLLECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getUrlCollectionId().hashCode(); } if (getFinalUrlsCount() > 0) { hash = (37 * hash) + FINAL_URLS_FIELD_NUMBER; hash = (53 * hash) + getFinalUrlsList().hashCode(); } if (getFinalMobileUrlsCount() > 0) { hash = (37 * hash) + FINAL_MOBILE_URLS_FIELD_NUMBER; hash = (53 * hash) + getFinalMobileUrlsList().hashCode(); } if (hasTrackingUrlTemplate()) { hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrlTemplate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.UrlCollection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.UrlCollection 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.UrlCollection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.UrlCollection 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.UrlCollection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.UrlCollection 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.UrlCollection 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.UrlCollection 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.UrlCollection 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.UrlCollection 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.UrlCollection 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.UrlCollection 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.UrlCollection 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; } /** *
   * Collection of urls that is tagged with a unique identifier.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.UrlCollection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.UrlCollection) com.google.ads.googleads.v17.common.UrlCollectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.UrlCollectionProto.internal_static_google_ads_googleads_v17_common_UrlCollection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.UrlCollectionProto.internal_static_google_ads_googleads_v17_common_UrlCollection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.UrlCollection.class, com.google.ads.googleads.v17.common.UrlCollection.Builder.class); } // Construct using com.google.ads.googleads.v17.common.UrlCollection.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; urlCollectionId_ = ""; finalUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); trackingUrlTemplate_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.UrlCollectionProto.internal_static_google_ads_googleads_v17_common_UrlCollection_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.UrlCollection getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.UrlCollection.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.UrlCollection build() { com.google.ads.googleads.v17.common.UrlCollection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.UrlCollection buildPartial() { com.google.ads.googleads.v17.common.UrlCollection result = new com.google.ads.googleads.v17.common.UrlCollection(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.UrlCollection result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.urlCollectionId_ = urlCollectionId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { finalUrls_.makeImmutable(); result.finalUrls_ = finalUrls_; } if (((from_bitField0_ & 0x00000004) != 0)) { finalMobileUrls_.makeImmutable(); result.finalMobileUrls_ = finalMobileUrls_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trackingUrlTemplate_ = trackingUrlTemplate_; to_bitField0_ |= 0x00000002; } 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.UrlCollection) { return mergeFrom((com.google.ads.googleads.v17.common.UrlCollection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.UrlCollection other) { if (other == com.google.ads.googleads.v17.common.UrlCollection.getDefaultInstance()) return this; if (other.hasUrlCollectionId()) { urlCollectionId_ = other.urlCollectionId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.finalUrls_.isEmpty()) { if (finalUrls_.isEmpty()) { finalUrls_ = other.finalUrls_; bitField0_ |= 0x00000002; } else { ensureFinalUrlsIsMutable(); finalUrls_.addAll(other.finalUrls_); } onChanged(); } if (!other.finalMobileUrls_.isEmpty()) { if (finalMobileUrls_.isEmpty()) { finalMobileUrls_ = other.finalMobileUrls_; bitField0_ |= 0x00000004; } else { ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.addAll(other.finalMobileUrls_); } onChanged(); } if (other.hasTrackingUrlTemplate()) { trackingUrlTemplate_ = other.trackingUrlTemplate_; bitField0_ |= 0x00000008; 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: { urlCollectionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureFinalUrlsIsMutable(); finalUrls_.add(s); break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.add(s); break; } // case 58 case 66: { trackingUrlTemplate_ = 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 urlCollectionId_ = ""; /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @return Whether the urlCollectionId field is set. */ public boolean hasUrlCollectionId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @return The urlCollectionId. */ public java.lang.String getUrlCollectionId() { java.lang.Object ref = urlCollectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); urlCollectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @return The bytes for urlCollectionId. */ public com.google.protobuf.ByteString getUrlCollectionIdBytes() { java.lang.Object ref = urlCollectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); urlCollectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @param value The urlCollectionId to set. * @return This builder for chaining. */ public Builder setUrlCollectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } urlCollectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @return This builder for chaining. */ public Builder clearUrlCollectionId() { urlCollectionId_ = getDefaultInstance().getUrlCollectionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Unique identifier for this UrlCollection instance.
     * 
* * optional string url_collection_id = 5; * @param value The bytes for urlCollectionId to set. * @return This builder for chaining. */ public Builder setUrlCollectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); urlCollectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList finalUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFinalUrlsIsMutable() { if (!finalUrls_.isModifiable()) { finalUrls_ = new com.google.protobuf.LazyStringArrayList(finalUrls_); } bitField0_ |= 0x00000002; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @return A list containing the finalUrls. */ public com.google.protobuf.ProtocolStringList getFinalUrlsList() { finalUrls_.makeImmutable(); return finalUrls_; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @return The count of finalUrls. */ public int getFinalUrlsCount() { return finalUrls_.size(); } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param index The index of the element to return. * @return The finalUrls at the given index. */ public java.lang.String getFinalUrls(int index) { return finalUrls_.get(index); } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param index The index of the value to return. * @return The bytes of the finalUrls at the given index. */ public com.google.protobuf.ByteString getFinalUrlsBytes(int index) { return finalUrls_.getByteString(index); } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param index The index to set the value at. * @param value The finalUrls to set. * @return This builder for chaining. */ public Builder setFinalUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalUrlsIsMutable(); finalUrls_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param value The finalUrls to add. * @return This builder for chaining. */ public Builder addFinalUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalUrlsIsMutable(); finalUrls_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param values The finalUrls to add. * @return This builder for chaining. */ public Builder addAllFinalUrls( java.lang.Iterable values) { ensureFinalUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, finalUrls_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @return This builder for chaining. */ public Builder clearFinalUrls() { finalUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     * A list of possible final URLs.
     * 
* * repeated string final_urls = 6; * @param value The bytes of the finalUrls to add. * @return This builder for chaining. */ public Builder addFinalUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFinalUrlsIsMutable(); finalUrls_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFinalMobileUrlsIsMutable() { if (!finalMobileUrls_.isModifiable()) { finalMobileUrls_ = new com.google.protobuf.LazyStringArrayList(finalMobileUrls_); } bitField0_ |= 0x00000004; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @return A list containing the finalMobileUrls. */ public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList() { finalMobileUrls_.makeImmutable(); return finalMobileUrls_; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @return The count of finalMobileUrls. */ public int getFinalMobileUrlsCount() { return finalMobileUrls_.size(); } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param index The index of the element to return. * @return The finalMobileUrls at the given index. */ public java.lang.String getFinalMobileUrls(int index) { return finalMobileUrls_.get(index); } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param index The index of the value to return. * @return The bytes of the finalMobileUrls at the given index. */ public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index) { return finalMobileUrls_.getByteString(index); } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param index The index to set the value at. * @param value The finalMobileUrls to set. * @return This builder for chaining. */ public Builder setFinalMobileUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param value The finalMobileUrls to add. * @return This builder for chaining. */ public Builder addFinalMobileUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param values The finalMobileUrls to add. * @return This builder for chaining. */ public Builder addAllFinalMobileUrls( java.lang.Iterable values) { ensureFinalMobileUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, finalMobileUrls_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @return This builder for chaining. */ public Builder clearFinalMobileUrls() { finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     * A list of possible final mobile URLs.
     * 
* * repeated string final_mobile_urls = 7; * @param value The bytes of the finalMobileUrls to add. * @return This builder for chaining. */ public Builder addFinalMobileUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object trackingUrlTemplate_ = ""; /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @return Whether the trackingUrlTemplate field is set. */ public boolean hasTrackingUrlTemplate() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @return The trackingUrlTemplate. */ public java.lang.String getTrackingUrlTemplate() { java.lang.Object ref = trackingUrlTemplate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrlTemplate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @return The bytes for trackingUrlTemplate. */ public com.google.protobuf.ByteString getTrackingUrlTemplateBytes() { java.lang.Object ref = trackingUrlTemplate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trackingUrlTemplate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @param value The trackingUrlTemplate to set. * @return This builder for chaining. */ public Builder setTrackingUrlTemplate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } trackingUrlTemplate_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @return This builder for chaining. */ public Builder clearTrackingUrlTemplate() { trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * URL template for constructing a tracking URL.
     * 
* * optional string tracking_url_template = 8; * @param value The bytes for trackingUrlTemplate to set. * @return This builder for chaining. */ public Builder setTrackingUrlTemplateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingUrlTemplate_ = value; bitField0_ |= 0x00000008; 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.UrlCollection) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.UrlCollection) private static final com.google.ads.googleads.v17.common.UrlCollection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.UrlCollection(); } public static com.google.ads.googleads.v17.common.UrlCollection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UrlCollection 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.UrlCollection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy