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

com.google.ads.googleads.v10.resources.AssetGroup Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/resources/asset_group.proto

package com.google.ads.googleads.v10.resources;

/**
 * 
 * An asset group.
 * AssetGroupAsset is used to link an asset to the asset group.
 * AssetGroupSignal is used to associate a signal to an asset group.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.AssetGroup} */ public final class AssetGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.AssetGroup) AssetGroupOrBuilder { private static final long serialVersionUID = 0L; // Use AssetGroup.newBuilder() to construct. private AssetGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetGroup() { resourceName_ = ""; campaign_ = ""; name_ = ""; finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; status_ = 0; path1_ = ""; path2_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetGroupProto.internal_static_google_ads_googleads_v10_resources_AssetGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetGroupProto.internal_static_google_ads_googleads_v10_resources_AssetGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetGroup.class, com.google.ads.googleads.v10.resources.AssetGroup.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Immutable. The resource name of the asset group.
   * Asset group resource names have the form:
   * `customers/{customer_id}/assetGroups/{asset_group_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; 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(); resourceName_ = s; return s; } } /** *
   * Immutable. The resource name of the asset group.
   * Asset group resource names have the form:
   * `customers/{customer_id}/assetGroups/{asset_group_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 9; private long id_; /** *
   * Output only. The ID of the asset group.
   * 
* * int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int CAMPAIGN_FIELD_NUMBER = 2; private volatile java.lang.Object campaign_; /** *
   * Immutable. The campaign with which this asset group is associated.
   * The asset which is linked to the asset group.
   * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The campaign. */ @java.lang.Override public java.lang.String getCampaign() { java.lang.Object ref = campaign_; 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(); campaign_ = s; return s; } } /** *
   * Immutable. The campaign with which this asset group is associated.
   * The asset which is linked to the asset group.
   * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * Required. Name of the asset group. Required. It must have a minimum length of 1 and
   * maximum length of 128. It must be unique under a campaign.
   * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * Required. Name of the asset group. Required. It must have a minimum length of 1 and
   * maximum length of 128. It must be unique under a campaign.
   * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINAL_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList finalUrls_; /** *
   * A list of final URLs after all cross domain redirects. In performance max,
   * by default, the urls are eligible for expansion unless opted out.
   * 
* * repeated string final_urls = 4; * @return A list containing the finalUrls. */ public com.google.protobuf.ProtocolStringList getFinalUrlsList() { return finalUrls_; } /** *
   * A list of final URLs after all cross domain redirects. In performance max,
   * by default, the urls are eligible for expansion unless opted out.
   * 
* * repeated string final_urls = 4; * @return The count of finalUrls. */ public int getFinalUrlsCount() { return finalUrls_.size(); } /** *
   * A list of final URLs after all cross domain redirects. In performance max,
   * by default, the urls are eligible for expansion unless opted out.
   * 
* * repeated string final_urls = 4; * @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 final URLs after all cross domain redirects. In performance max,
   * by default, the urls are eligible for expansion unless opted out.
   * 
* * repeated string final_urls = 4; * @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 = 5; private com.google.protobuf.LazyStringList finalMobileUrls_; /** *
   * A list of final mobile URLs after all cross domain redirects. In
   * performance max, by default, the urls are eligible for expansion
   * unless opted out.
   * 
* * repeated string final_mobile_urls = 5; * @return A list containing the finalMobileUrls. */ public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList() { return finalMobileUrls_; } /** *
   * A list of final mobile URLs after all cross domain redirects. In
   * performance max, by default, the urls are eligible for expansion
   * unless opted out.
   * 
* * repeated string final_mobile_urls = 5; * @return The count of finalMobileUrls. */ public int getFinalMobileUrlsCount() { return finalMobileUrls_.size(); } /** *
   * A list of final mobile URLs after all cross domain redirects. In
   * performance max, by default, the urls are eligible for expansion
   * unless opted out.
   * 
* * repeated string final_mobile_urls = 5; * @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 final mobile URLs after all cross domain redirects. In
   * performance max, by default, the urls are eligible for expansion
   * unless opted out.
   * 
* * repeated string final_mobile_urls = 5; * @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 STATUS_FIELD_NUMBER = 6; private int status_; /** *
   * The status of the asset group.
   * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
   * The status of the asset group.
   * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus result = com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.UNRECOGNIZED : result; } public static final int PATH1_FIELD_NUMBER = 7; private volatile java.lang.Object path1_; /** *
   * First part of text that may appear appended to the url displayed in
   * the ad.
   * 
* * string path1 = 7; * @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; } } /** *
   * First part of text that may appear appended to the url displayed in
   * the ad.
   * 
* * string path1 = 7; * @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 = 8; private volatile java.lang.Object path2_; /** *
   * Second part of text that may appear appended to the url displayed in
   * the ad. This field can only be set when path1 is set.
   * 
* * string path2 = 8; * @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; } } /** *
   * Second part of text that may appear appended to the url displayed in
   * the ad. This field can only be set when path1 is set.
   * 
* * string path2 = 8; * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, campaign_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } for (int i = 0; i < finalUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, finalUrls_.getRaw(i)); } for (int i = 0; i < finalMobileUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, finalMobileUrls_.getRaw(i)); } if (status_ != com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.UNSPECIFIED.getNumber()) { output.writeEnum(6, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path1_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, path1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path2_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, path2_); } if (id_ != 0L) { output.writeInt64(9, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, campaign_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } { 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 (status_ != com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path1_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, path1_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path2_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, path2_); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, id_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.AssetGroup)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.AssetGroup other = (com.google.ads.googleads.v10.resources.AssetGroup) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (getId() != other.getId()) return false; if (!getCampaign() .equals(other.getCampaign())) return false; if (!getName() .equals(other.getName())) return false; if (!getFinalUrlsList() .equals(other.getFinalUrlsList())) return false; if (!getFinalMobileUrlsList() .equals(other.getFinalMobileUrlsList())) return false; if (status_ != other.status_) return false; if (!getPath1() .equals(other.getPath1())) return false; 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(); hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getCampaign().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + PATH1_FIELD_NUMBER; hash = (53 * hash) + getPath1().hashCode(); 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.v10.resources.AssetGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.AssetGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.AssetGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.AssetGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.AssetGroup 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 asset group.
   * AssetGroupAsset is used to link an asset to the asset group.
   * AssetGroupSignal is used to associate a signal to an asset group.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.AssetGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AssetGroup) com.google.ads.googleads.v10.resources.AssetGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetGroupProto.internal_static_google_ads_googleads_v10_resources_AssetGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetGroupProto.internal_static_google_ads_googleads_v10_resources_AssetGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetGroup.class, com.google.ads.googleads.v10.resources.AssetGroup.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.AssetGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; id_ = 0L; campaign_ = ""; name_ = ""; finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; path1_ = ""; path2_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.AssetGroupProto.internal_static_google_ads_googleads_v10_resources_AssetGroup_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetGroup getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.AssetGroup.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetGroup build() { com.google.ads.googleads.v10.resources.AssetGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetGroup buildPartial() { com.google.ads.googleads.v10.resources.AssetGroup result = new com.google.ads.googleads.v10.resources.AssetGroup(this); int from_bitField0_ = bitField0_; result.resourceName_ = resourceName_; result.id_ = id_; result.campaign_ = campaign_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { finalUrls_ = finalUrls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.finalUrls_ = finalUrls_; if (((bitField0_ & 0x00000002) != 0)) { finalMobileUrls_ = finalMobileUrls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.finalMobileUrls_ = finalMobileUrls_; result.status_ = status_; result.path1_ = path1_; result.path2_ = path2_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.AssetGroup) { return mergeFrom((com.google.ads.googleads.v10.resources.AssetGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.AssetGroup other) { if (other == com.google.ads.googleads.v10.resources.AssetGroup.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.getId() != 0L) { setId(other.getId()); } if (!other.getCampaign().isEmpty()) { campaign_ = other.campaign_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.finalUrls_.isEmpty()) { if (finalUrls_.isEmpty()) { finalUrls_ = other.finalUrls_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFinalUrlsIsMutable(); finalUrls_.addAll(other.finalUrls_); } onChanged(); } if (!other.finalMobileUrls_.isEmpty()) { if (finalMobileUrls_.isEmpty()) { finalMobileUrls_ = other.finalMobileUrls_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.addAll(other.finalMobileUrls_); } onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.getPath1().isEmpty()) { path1_ = other.path1_; onChanged(); } if (!other.getPath2().isEmpty()) { path2_ = other.path2_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { campaign_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { name_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureFinalUrlsIsMutable(); finalUrls_.add(s); break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureFinalMobileUrlsIsMutable(); finalMobileUrls_.add(s); break; } // case 42 case 48: { status_ = input.readEnum(); break; } // case 48 case 58: { path1_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { path2_ = input.readStringRequireUtf8(); break; } // case 66 case 72: { id_ = input.readInt64(); break; } // case 72 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 resourceName_ = ""; /** *
     * Immutable. The resource name of the asset group.
     * Asset group resource names have the form:
     * `customers/{customer_id}/assetGroups/{asset_group_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The resource name of the asset group.
     * Asset group resource names have the form:
     * `customers/{customer_id}/assetGroups/{asset_group_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The resource name of the asset group.
     * Asset group resource names have the form:
     * `customers/{customer_id}/assetGroups/{asset_group_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; onChanged(); return this; } /** *
     * Immutable. The resource name of the asset group.
     * Asset group resource names have the form:
     * `customers/{customer_id}/assetGroups/{asset_group_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Immutable. The resource name of the asset group.
     * Asset group resource names have the form:
     * `customers/{customer_id}/assetGroups/{asset_group_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; onChanged(); return this; } private long id_ ; /** *
     * Output only. The ID of the asset group.
     * 
* * int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of the asset group.
     * 
* * int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
     * Output only. The ID of the asset group.
     * 
* * int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { id_ = 0L; onChanged(); return this; } private java.lang.Object campaign_ = ""; /** *
     * Immutable. The campaign with which this asset group is associated.
     * The asset which is linked to the asset group.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The campaign. */ public java.lang.String getCampaign() { java.lang.Object ref = campaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The campaign with which this asset group is associated.
     * The asset which is linked to the asset group.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The campaign with which this asset group is associated.
     * The asset which is linked to the asset group.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The campaign to set. * @return This builder for chaining. */ public Builder setCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaign_ = value; onChanged(); return this; } /** *
     * Immutable. The campaign with which this asset group is associated.
     * The asset which is linked to the asset group.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaign() { campaign_ = getDefaultInstance().getCampaign(); onChanged(); return this; } /** *
     * Immutable. The campaign with which this asset group is associated.
     * The asset which is linked to the asset group.
     * 
* * string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for campaign to set. * @return This builder for chaining. */ public Builder setCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaign_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Required. Name of the asset group. Required. It must have a minimum length of 1 and
     * maximum length of 128. It must be unique under a campaign.
     * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Name of the asset group. Required. It must have a minimum length of 1 and
     * maximum length of 128. It must be unique under a campaign.
     * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Name of the asset group. Required. It must have a minimum length of 1 and
     * maximum length of 128. It must be unique under a campaign.
     * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Required. Name of the asset group. Required. It must have a minimum length of 1 and
     * maximum length of 128. It must be unique under a campaign.
     * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Required. Name of the asset group. Required. It must have a minimum length of 1 and
     * maximum length of 128. It must be unique under a campaign.
     * 
* * string name = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFinalUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { finalUrls_ = new com.google.protobuf.LazyStringArrayList(finalUrls_); bitField0_ |= 0x00000001; } } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @return A list containing the finalUrls. */ public com.google.protobuf.ProtocolStringList getFinalUrlsList() { return finalUrls_.getUnmodifiableView(); } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @return The count of finalUrls. */ public int getFinalUrlsCount() { return finalUrls_.size(); } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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 final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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 final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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); onChanged(); return this; } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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); onChanged(); return this; } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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_); onChanged(); return this; } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @return This builder for chaining. */ public Builder clearFinalUrls() { finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * A list of final URLs after all cross domain redirects. In performance max,
     * by default, the urls are eligible for expansion unless opted out.
     * 
* * repeated string final_urls = 4; * @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); onChanged(); return this; } private com.google.protobuf.LazyStringList finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFinalMobileUrlsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { finalMobileUrls_ = new com.google.protobuf.LazyStringArrayList(finalMobileUrls_); bitField0_ |= 0x00000002; } } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @return A list containing the finalMobileUrls. */ public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList() { return finalMobileUrls_.getUnmodifiableView(); } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @return The count of finalMobileUrls. */ public int getFinalMobileUrlsCount() { return finalMobileUrls_.size(); } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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 final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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 final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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); onChanged(); return this; } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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); onChanged(); return this; } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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_); onChanged(); return this; } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @return This builder for chaining. */ public Builder clearFinalMobileUrls() { finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * A list of final mobile URLs after all cross domain redirects. In
     * performance max, by default, the urls are eligible for expansion
     * unless opted out.
     * 
* * repeated string final_mobile_urls = 5; * @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); onChanged(); return this; } private int status_ = 0; /** *
     * The status of the asset group.
     * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * The status of the asset group.
     * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
     * The status of the asset group.
     * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus result = com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus.UNRECOGNIZED : result; } /** *
     * The status of the asset group.
     * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * The status of the asset group.
     * 
* * .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object path1_ = ""; /** *
     * First part of text that may appear appended to the url displayed in
     * the ad.
     * 
* * string path1 = 7; * @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; } } /** *
     * First part of text that may appear appended to the url displayed in
     * the ad.
     * 
* * string path1 = 7; * @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; } } /** *
     * First part of text that may appear appended to the url displayed in
     * the ad.
     * 
* * string path1 = 7; * @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; onChanged(); return this; } /** *
     * First part of text that may appear appended to the url displayed in
     * the ad.
     * 
* * string path1 = 7; * @return This builder for chaining. */ public Builder clearPath1() { path1_ = getDefaultInstance().getPath1(); onChanged(); return this; } /** *
     * First part of text that may appear appended to the url displayed in
     * the ad.
     * 
* * string path1 = 7; * @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; onChanged(); return this; } private java.lang.Object path2_ = ""; /** *
     * Second part of text that may appear appended to the url displayed in
     * the ad. This field can only be set when path1 is set.
     * 
* * string path2 = 8; * @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; } } /** *
     * Second part of text that may appear appended to the url displayed in
     * the ad. This field can only be set when path1 is set.
     * 
* * string path2 = 8; * @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; } } /** *
     * Second part of text that may appear appended to the url displayed in
     * the ad. This field can only be set when path1 is set.
     * 
* * string path2 = 8; * @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; onChanged(); return this; } /** *
     * Second part of text that may appear appended to the url displayed in
     * the ad. This field can only be set when path1 is set.
     * 
* * string path2 = 8; * @return This builder for chaining. */ public Builder clearPath2() { path2_ = getDefaultInstance().getPath2(); onChanged(); return this; } /** *
     * Second part of text that may appear appended to the url displayed in
     * the ad. This field can only be set when path1 is set.
     * 
* * string path2 = 8; * @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; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.AssetGroup) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AssetGroup) private static final com.google.ads.googleads.v10.resources.AssetGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AssetGroup(); } public static com.google.ads.googleads.v10.resources.AssetGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy