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

com.google.ads.googleads.v18.resources.AssetSet Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.resources;

/**
 * 
 * An asset set representing a collection of assets.
 * Use AssetSetAsset to link an asset to the asset set.
 * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet} */ public final class AssetSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.AssetSet) AssetSetOrBuilder { private static final long serialVersionUID = 0L; // Use AssetSet.newBuilder() to construct. private AssetSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetSet() { resourceName_ = ""; name_ = ""; type_ = 0; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetSet(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.class, com.google.ads.googleads.v18.resources.AssetSet.Builder.class); } public interface MerchantCenterFeedOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed) com.google.protobuf.MessageOrBuilder { /** *
     * Required. Merchant ID from Google Merchant Center
     * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The merchantId. */ long getMerchantId(); /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the feedLabel field is set. */ boolean hasFeedLabel(); /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); } /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed} */ public static final class MerchantCenterFeed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed) MerchantCenterFeedOrBuilder { private static final long serialVersionUID = 0L; // Use MerchantCenterFeed.newBuilder() to construct. private MerchantCenterFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MerchantCenterFeed() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MerchantCenterFeed(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_MerchantCenterFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.class, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder.class); } private int bitField0_; public static final int MERCHANT_ID_FIELD_NUMBER = 1; private long merchantId_ = 0L; /** *
     * Required. Merchant ID from Google Merchant Center
     * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the feedLabel field is set. */ @java.lang.Override public boolean hasFeedLabel() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Optional. Feed Label from Google Merchant Center.
     * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = 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 (merchantId_ != 0L) { output.writeInt64(1, merchantId_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (merchantId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, merchantId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } 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.v18.resources.AssetSet.MerchantCenterFeed)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed other = (com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed) obj; if (getMerchantId() != other.getMerchantId()) return false; if (hasFeedLabel() != other.hasFeedLabel()) return false; if (hasFeedLabel()) { if (!getFeedLabel() .equals(other.getFeedLabel())) 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) + MERCHANT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMerchantId()); if (hasFeedLabel()) { hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed 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; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed) com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_MerchantCenterFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.class, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchantId_ = 0L; feedLabel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed build() { com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed buildPartial() { com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed result = new com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchantId_ = merchantId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; to_bitField0_ |= 0x00000001; } 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.v18.resources.AssetSet.MerchantCenterFeed) { return mergeFrom((com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed other) { if (other == com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance()) return this; if (other.getMerchantId() != 0L) { setMerchantId(other.getMerchantId()); } if (other.hasFeedLabel()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; 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 8: { merchantId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 long merchantId_ ; /** *
       * Required. Merchant ID from Google Merchant Center
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } /** *
       * Required. Merchant ID from Google Merchant Center
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The merchantId to set. * @return This builder for chaining. */ public Builder setMerchantId(long value) { merchantId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Required. Merchant ID from Google Merchant Center
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearMerchantId() { bitField0_ = (bitField0_ & ~0x00000001); merchantId_ = 0L; onChanged(); return this; } private java.lang.Object feedLabel_ = ""; /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the feedLabel field is set. */ public boolean hasFeedLabel() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Optional. Feed Label from Google Merchant Center.
       * 
* * optional string feed_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; 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.v18.resources.AssetSet.MerchantCenterFeed) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed) private static final com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed(); } public static com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MerchantCenterFeed 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.v18.resources.AssetSet.MerchantCenterFeed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HotelPropertyDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.AssetSet.HotelPropertyData) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The hotel center ID of the partner.
     * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hotelCenterId field is set. */ boolean hasHotelCenterId(); /** *
     * Output only. The hotel center ID of the partner.
     * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hotelCenterId. */ long getHotelCenterId(); /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the partnerName field is set. */ boolean hasPartnerName(); /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The partnerName. */ java.lang.String getPartnerName(); /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for partnerName. */ com.google.protobuf.ByteString getPartnerNameBytes(); } /** *
   * For Performance Max for travel goals campaigns with a Hotel
   * Center account link. Read-only.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet.HotelPropertyData} */ public static final class HotelPropertyData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.AssetSet.HotelPropertyData) HotelPropertyDataOrBuilder { private static final long serialVersionUID = 0L; // Use HotelPropertyData.newBuilder() to construct. private HotelPropertyData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HotelPropertyData() { partnerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HotelPropertyData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_HotelPropertyData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_HotelPropertyData_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.class, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder.class); } private int bitField0_; public static final int HOTEL_CENTER_ID_FIELD_NUMBER = 1; private long hotelCenterId_ = 0L; /** *
     * Output only. The hotel center ID of the partner.
     * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hotelCenterId field is set. */ @java.lang.Override public boolean hasHotelCenterId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The hotel center ID of the partner.
     * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hotelCenterId. */ @java.lang.Override public long getHotelCenterId() { return hotelCenterId_; } public static final int PARTNER_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object partnerName_ = ""; /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the partnerName field is set. */ @java.lang.Override public boolean hasPartnerName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The partnerName. */ @java.lang.Override public java.lang.String getPartnerName() { java.lang.Object ref = partnerName_; 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(); partnerName_ = s; return s; } } /** *
     * Output only. Name of the hotel partner.
     * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for partnerName. */ @java.lang.Override public com.google.protobuf.ByteString getPartnerNameBytes() { java.lang.Object ref = partnerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partnerName_ = 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)) { output.writeInt64(1, hotelCenterId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partnerName_); } 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.CodedOutputStream .computeInt64Size(1, hotelCenterId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partnerName_); } 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.v18.resources.AssetSet.HotelPropertyData)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData other = (com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData) obj; if (hasHotelCenterId() != other.hasHotelCenterId()) return false; if (hasHotelCenterId()) { if (getHotelCenterId() != other.getHotelCenterId()) return false; } if (hasPartnerName() != other.hasPartnerName()) return false; if (hasPartnerName()) { if (!getPartnerName() .equals(other.getPartnerName())) 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 (hasHotelCenterId()) { hash = (37 * hash) + HOTEL_CENTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHotelCenterId()); } if (hasPartnerName()) { hash = (37 * hash) + PARTNER_NAME_FIELD_NUMBER; hash = (53 * hash) + getPartnerName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData 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; } /** *
     * For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet.HotelPropertyData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.AssetSet.HotelPropertyData) com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_HotelPropertyData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_HotelPropertyData_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.class, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hotelCenterId_ = 0L; partnerName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_HotelPropertyData_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData build() { com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData buildPartial() { com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData result = new com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.hotelCenterId_ = hotelCenterId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.partnerName_ = partnerName_; 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.v18.resources.AssetSet.HotelPropertyData) { return mergeFrom((com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData other) { if (other == com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance()) return this; if (other.hasHotelCenterId()) { setHotelCenterId(other.getHotelCenterId()); } if (other.hasPartnerName()) { partnerName_ = other.partnerName_; bitField0_ |= 0x00000002; 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 8: { hotelCenterId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { partnerName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 long hotelCenterId_ ; /** *
       * Output only. The hotel center ID of the partner.
       * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hotelCenterId field is set. */ @java.lang.Override public boolean hasHotelCenterId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The hotel center ID of the partner.
       * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hotelCenterId. */ @java.lang.Override public long getHotelCenterId() { return hotelCenterId_; } /** *
       * Output only. The hotel center ID of the partner.
       * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The hotelCenterId to set. * @return This builder for chaining. */ public Builder setHotelCenterId(long value) { hotelCenterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The hotel center ID of the partner.
       * 
* * optional int64 hotel_center_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearHotelCenterId() { bitField0_ = (bitField0_ & ~0x00000001); hotelCenterId_ = 0L; onChanged(); return this; } private java.lang.Object partnerName_ = ""; /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the partnerName field is set. */ public boolean hasPartnerName() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The partnerName. */ public java.lang.String getPartnerName() { java.lang.Object ref = partnerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partnerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for partnerName. */ public com.google.protobuf.ByteString getPartnerNameBytes() { java.lang.Object ref = partnerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partnerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The partnerName to set. * @return This builder for chaining. */ public Builder setPartnerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } partnerName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPartnerName() { partnerName_ = getDefaultInstance().getPartnerName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. Name of the hotel partner.
       * 
* * optional string partner_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for partnerName to set. * @return This builder for chaining. */ public Builder setPartnerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partnerName_ = value; bitField0_ |= 0x00000002; 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.v18.resources.AssetSet.HotelPropertyData) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.AssetSet.HotelPropertyData) private static final com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData(); } public static com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HotelPropertyData 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.v18.resources.AssetSet.HotelPropertyData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int assetSetSourceCase_ = 0; @SuppressWarnings("serial") private java.lang.Object assetSetSource_; public enum AssetSetSourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LOCATION_SET(7), BUSINESS_PROFILE_LOCATION_GROUP(8), CHAIN_LOCATION_GROUP(9), ASSETSETSOURCE_NOT_SET(0); private final int value; private AssetSetSourceCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AssetSetSourceCase valueOf(int value) { return forNumber(value); } public static AssetSetSourceCase forNumber(int value) { switch (value) { case 7: return LOCATION_SET; case 8: return BUSINESS_PROFILE_LOCATION_GROUP; case 9: return CHAIN_LOCATION_GROUP; case 0: return ASSETSETSOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AssetSetSourceCase getAssetSetSourceCase() { return AssetSetSourceCase.forNumber( assetSetSourceCase_); } public static final int ID_FIELD_NUMBER = 6; private long id_ = 0L; /** *
   * Output only. The ID of the asset set.
   * 
* * int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Immutable. The resource name of the asset set.
   * Asset set resource names have the form:
   *
   * `customers/{customer_id}/assetSets/{asset_set_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 set.
   * Asset set resource names have the form:
   *
   * `customers/{customer_id}/assetSets/{asset_set_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 NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * Required. Name of the asset set. Required. It must have a minimum length of
   * 1 and maximum length of 128.
   * 
* * string name = 2 [(.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 set. Required. It must have a minimum length of
   * 1 and maximum length of 128.
   * 
* * string name = 2 [(.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 TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** *
   * Required. Immutable. The type of the asset set. Required.
   * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   * Required. Immutable. The type of the asset set. Required.
   * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType getType() { com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType result = com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.forNumber(type_); return result == null ? com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 4; private int status_ = 0; /** *
   * Output only. The status of the asset set. Read-only.
   * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
   * Output only. The status of the asset set. Read-only.
   * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus getStatus() { com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus result = com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.UNRECOGNIZED : result; } public static final int MERCHANT_CENTER_FEED_FIELD_NUMBER = 5; private com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchantCenterFeed_; /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return Whether the merchantCenterFeed field is set. */ @java.lang.Override public boolean hasMerchantCenterFeed() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return The merchantCenterFeed. */ @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed getMerchantCenterFeed() { return merchantCenterFeed_ == null ? com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder getMerchantCenterFeedOrBuilder() { return merchantCenterFeed_ == null ? com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } public static final int LOCATION_GROUP_PARENT_ASSET_SET_ID_FIELD_NUMBER = 10; private long locationGroupParentAssetSetId_ = 0L; /** *
   * Immutable. Parent asset set id for the asset set where the elements of this
   * asset set come from. For example: the sync level location AssetSet id where
   * the the elements in LocationGroup AssetSet come from. This field is
   * required and only applicable for Location Group typed AssetSet.
   * 
* * int64 location_group_parent_asset_set_id = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The locationGroupParentAssetSetId. */ @java.lang.Override public long getLocationGroupParentAssetSetId() { return locationGroupParentAssetSetId_; } public static final int HOTEL_PROPERTY_DATA_FIELD_NUMBER = 11; private com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotelPropertyData_; /** *
   * Output only. For Performance Max for travel goals campaigns with a Hotel
   * Center account link. Read-only.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hotelPropertyData field is set. */ @java.lang.Override public boolean hasHotelPropertyData() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. For Performance Max for travel goals campaigns with a Hotel
   * Center account link. Read-only.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hotelPropertyData. */ @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData getHotelPropertyData() { return hotelPropertyData_ == null ? com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance() : hotelPropertyData_; } /** *
   * Output only. For Performance Max for travel goals campaigns with a Hotel
   * Center account link. Read-only.
   * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder getHotelPropertyDataOrBuilder() { return hotelPropertyData_ == null ? com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance() : hotelPropertyData_; } public static final int LOCATION_SET_FIELD_NUMBER = 7; /** *
   * Location asset set data. This will be used for sync level location
   * set. This can only be set if AssetSet's type is LOCATION_SYNC.
   * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; * @return Whether the locationSet field is set. */ @java.lang.Override public boolean hasLocationSet() { return assetSetSourceCase_ == 7; } /** *
   * Location asset set data. This will be used for sync level location
   * set. This can only be set if AssetSet's type is LOCATION_SYNC.
   * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; * @return The locationSet. */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationSet getLocationSet() { if (assetSetSourceCase_ == 7) { return (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_; } return com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } /** *
   * Location asset set data. This will be used for sync level location
   * set. This can only be set if AssetSet's type is LOCATION_SYNC.
   * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationSetOrBuilder getLocationSetOrBuilder() { if (assetSetSourceCase_ == 7) { return (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_; } return com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } public static final int BUSINESS_PROFILE_LOCATION_GROUP_FIELD_NUMBER = 8; /** *
   * Business Profile location group asset set data.
   * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; * @return Whether the businessProfileLocationGroup field is set. */ @java.lang.Override public boolean hasBusinessProfileLocationGroup() { return assetSetSourceCase_ == 8; } /** *
   * Business Profile location group asset set data.
   * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; * @return The businessProfileLocationGroup. */ @java.lang.Override public com.google.ads.googleads.v18.common.BusinessProfileLocationGroup getBusinessProfileLocationGroup() { if (assetSetSourceCase_ == 8) { return (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } /** *
   * Business Profile location group asset set data.
   * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ @java.lang.Override public com.google.ads.googleads.v18.common.BusinessProfileLocationGroupOrBuilder getBusinessProfileLocationGroupOrBuilder() { if (assetSetSourceCase_ == 8) { return (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } public static final int CHAIN_LOCATION_GROUP_FIELD_NUMBER = 9; /** *
   * Represents information about a Chain dynamic location group.
   * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
   * sync source is chain.
   * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; * @return Whether the chainLocationGroup field is set. */ @java.lang.Override public boolean hasChainLocationGroup() { return assetSetSourceCase_ == 9; } /** *
   * Represents information about a Chain dynamic location group.
   * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
   * sync source is chain.
   * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; * @return The chainLocationGroup. */ @java.lang.Override public com.google.ads.googleads.v18.common.ChainLocationGroup getChainLocationGroup() { if (assetSetSourceCase_ == 9) { return (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } /** *
   * Represents information about a Chain dynamic location group.
   * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
   * sync source is chain.
   * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ @java.lang.Override public com.google.ads.googleads.v18.common.ChainLocationGroupOrBuilder getChainLocationGroupOrBuilder() { if (assetSetSourceCase_ == 9) { return (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (type_ != com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (status_ != com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.UNSPECIFIED.getNumber()) { output.writeEnum(4, status_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getMerchantCenterFeed()); } if (id_ != 0L) { output.writeInt64(6, id_); } if (assetSetSourceCase_ == 7) { output.writeMessage(7, (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_); } if (assetSetSourceCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_); } if (assetSetSourceCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_); } if (locationGroupParentAssetSetId_ != 0L) { output.writeInt64(10, locationGroupParentAssetSetId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getHotelPropertyData()); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (type_ != com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (status_ != com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, status_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMerchantCenterFeed()); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, id_); } if (assetSetSourceCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_); } if (assetSetSourceCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_); } if (assetSetSourceCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_); } if (locationGroupParentAssetSetId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, locationGroupParentAssetSetId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getHotelPropertyData()); } 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.v18.resources.AssetSet)) { return super.equals(obj); } com.google.ads.googleads.v18.resources.AssetSet other = (com.google.ads.googleads.v18.resources.AssetSet) obj; if (getId() != other.getId()) return false; if (!getResourceName() .equals(other.getResourceName())) return false; if (!getName() .equals(other.getName())) return false; if (type_ != other.type_) return false; if (status_ != other.status_) return false; if (hasMerchantCenterFeed() != other.hasMerchantCenterFeed()) return false; if (hasMerchantCenterFeed()) { if (!getMerchantCenterFeed() .equals(other.getMerchantCenterFeed())) return false; } if (getLocationGroupParentAssetSetId() != other.getLocationGroupParentAssetSetId()) return false; if (hasHotelPropertyData() != other.hasHotelPropertyData()) return false; if (hasHotelPropertyData()) { if (!getHotelPropertyData() .equals(other.getHotelPropertyData())) return false; } if (!getAssetSetSourceCase().equals(other.getAssetSetSourceCase())) return false; switch (assetSetSourceCase_) { case 7: if (!getLocationSet() .equals(other.getLocationSet())) return false; break; case 8: if (!getBusinessProfileLocationGroup() .equals(other.getBusinessProfileLocationGroup())) return false; break; case 9: if (!getChainLocationGroup() .equals(other.getChainLocationGroup())) return false; break; case 0: default: } 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) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasMerchantCenterFeed()) { hash = (37 * hash) + MERCHANT_CENTER_FEED_FIELD_NUMBER; hash = (53 * hash) + getMerchantCenterFeed().hashCode(); } hash = (37 * hash) + LOCATION_GROUP_PARENT_ASSET_SET_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLocationGroupParentAssetSetId()); if (hasHotelPropertyData()) { hash = (37 * hash) + HOTEL_PROPERTY_DATA_FIELD_NUMBER; hash = (53 * hash) + getHotelPropertyData().hashCode(); } switch (assetSetSourceCase_) { case 7: hash = (37 * hash) + LOCATION_SET_FIELD_NUMBER; hash = (53 * hash) + getLocationSet().hashCode(); break; case 8: hash = (37 * hash) + BUSINESS_PROFILE_LOCATION_GROUP_FIELD_NUMBER; hash = (53 * hash) + getBusinessProfileLocationGroup().hashCode(); break; case 9: hash = (37 * hash) + CHAIN_LOCATION_GROUP_FIELD_NUMBER; hash = (53 * hash) + getChainLocationGroup().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.resources.AssetSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet 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.v18.resources.AssetSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet 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.v18.resources.AssetSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.resources.AssetSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.resources.AssetSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet 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.v18.resources.AssetSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet 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.v18.resources.AssetSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.resources.AssetSet 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.v18.resources.AssetSet 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 set representing a collection of assets.
   * Use AssetSetAsset to link an asset to the asset set.
   * 
* * Protobuf type {@code google.ads.googleads.v18.resources.AssetSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.AssetSet) com.google.ads.googleads.v18.resources.AssetSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.resources.AssetSet.class, com.google.ads.googleads.v18.resources.AssetSet.Builder.class); } // Construct using com.google.ads.googleads.v18.resources.AssetSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantCenterFeedFieldBuilder(); getHotelPropertyDataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; resourceName_ = ""; name_ = ""; type_ = 0; status_ = 0; merchantCenterFeed_ = null; if (merchantCenterFeedBuilder_ != null) { merchantCenterFeedBuilder_.dispose(); merchantCenterFeedBuilder_ = null; } locationGroupParentAssetSetId_ = 0L; hotelPropertyData_ = null; if (hotelPropertyDataBuilder_ != null) { hotelPropertyDataBuilder_.dispose(); hotelPropertyDataBuilder_ = null; } if (locationSetBuilder_ != null) { locationSetBuilder_.clear(); } if (businessProfileLocationGroupBuilder_ != null) { businessProfileLocationGroupBuilder_.clear(); } if (chainLocationGroupBuilder_ != null) { chainLocationGroupBuilder_.clear(); } assetSetSourceCase_ = 0; assetSetSource_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.resources.AssetSetProto.internal_static_google_ads_googleads_v18_resources_AssetSet_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet getDefaultInstanceForType() { return com.google.ads.googleads.v18.resources.AssetSet.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet build() { com.google.ads.googleads.v18.resources.AssetSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.resources.AssetSet buildPartial() { com.google.ads.googleads.v18.resources.AssetSet result = new com.google.ads.googleads.v18.resources.AssetSet(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v18.resources.AssetSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resourceName_ = resourceName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.status_ = status_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.merchantCenterFeed_ = merchantCenterFeedBuilder_ == null ? merchantCenterFeed_ : merchantCenterFeedBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.locationGroupParentAssetSetId_ = locationGroupParentAssetSetId_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.hotelPropertyData_ = hotelPropertyDataBuilder_ == null ? hotelPropertyData_ : hotelPropertyDataBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.ads.googleads.v18.resources.AssetSet result) { result.assetSetSourceCase_ = assetSetSourceCase_; result.assetSetSource_ = this.assetSetSource_; if (assetSetSourceCase_ == 7 && locationSetBuilder_ != null) { result.assetSetSource_ = locationSetBuilder_.build(); } if (assetSetSourceCase_ == 8 && businessProfileLocationGroupBuilder_ != null) { result.assetSetSource_ = businessProfileLocationGroupBuilder_.build(); } if (assetSetSourceCase_ == 9 && chainLocationGroupBuilder_ != null) { result.assetSetSource_ = chainLocationGroupBuilder_.build(); } } @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.v18.resources.AssetSet) { return mergeFrom((com.google.ads.googleads.v18.resources.AssetSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.resources.AssetSet other) { if (other == com.google.ads.googleads.v18.resources.AssetSet.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000004; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasMerchantCenterFeed()) { mergeMerchantCenterFeed(other.getMerchantCenterFeed()); } if (other.getLocationGroupParentAssetSetId() != 0L) { setLocationGroupParentAssetSetId(other.getLocationGroupParentAssetSetId()); } if (other.hasHotelPropertyData()) { mergeHotelPropertyData(other.getHotelPropertyData()); } switch (other.getAssetSetSourceCase()) { case LOCATION_SET: { mergeLocationSet(other.getLocationSet()); break; } case BUSINESS_PROFILE_LOCATION_GROUP: { mergeBusinessProfileLocationGroup(other.getBusinessProfileLocationGroup()); break; } case CHAIN_LOCATION_GROUP: { mergeChainLocationGroup(other.getChainLocationGroup()); break; } case ASSETSETSOURCE_NOT_SET: { break; } } 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(); bitField0_ |= 0x00000002; break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 18 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 24 case 32: { status_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage( getMerchantCenterFeedFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 42 case 48: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 48 case 58: { input.readMessage( getLocationSetFieldBuilder().getBuilder(), extensionRegistry); assetSetSourceCase_ = 7; break; } // case 58 case 66: { input.readMessage( getBusinessProfileLocationGroupFieldBuilder().getBuilder(), extensionRegistry); assetSetSourceCase_ = 8; break; } // case 66 case 74: { input.readMessage( getChainLocationGroupFieldBuilder().getBuilder(), extensionRegistry); assetSetSourceCase_ = 9; break; } // case 74 case 80: { locationGroupParentAssetSetId_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 80 case 90: { input.readMessage( getHotelPropertyDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 90 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 assetSetSourceCase_ = 0; private java.lang.Object assetSetSource_; public AssetSetSourceCase getAssetSetSourceCase() { return AssetSetSourceCase.forNumber( assetSetSourceCase_); } public Builder clearAssetSetSource() { assetSetSourceCase_ = 0; assetSetSource_ = null; onChanged(); return this; } private int bitField0_; private long id_ ; /** *
     * Output only. The ID of the asset set.
     * 
* * int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of the asset set.
     * 
* * int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Output only. The ID of the asset set.
     * 
* * int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the asset set.
     * Asset set resource names have the form:
     *
     * `customers/{customer_id}/assetSets/{asset_set_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 set.
     * Asset set resource names have the form:
     *
     * `customers/{customer_id}/assetSets/{asset_set_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 set.
     * Asset set resource names have the form:
     *
     * `customers/{customer_id}/assetSets/{asset_set_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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Immutable. The resource name of the asset set.
     * Asset set resource names have the form:
     *
     * `customers/{customer_id}/assetSets/{asset_set_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(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Immutable. The resource name of the asset set.
     * Asset set resource names have the form:
     *
     * `customers/{customer_id}/assetSets/{asset_set_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; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Required. Name of the asset set. Required. It must have a minimum length of
     * 1 and maximum length of 128.
     * 
* * string name = 2 [(.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 set. Required. It must have a minimum length of
     * 1 and maximum length of 128.
     * 
* * string name = 2 [(.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 set. Required. It must have a minimum length of
     * 1 and maximum length of 128.
     * 
* * string name = 2 [(.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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Required. Name of the asset set. Required. It must have a minimum length of
     * 1 and maximum length of 128.
     * 
* * string name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Required. Name of the asset set. Required. It must have a minimum length of
     * 1 and maximum length of 128.
     * 
* * string name = 2 [(.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; bitField0_ |= 0x00000004; onChanged(); return this; } private int type_ = 0; /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType getType() { com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType result = com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.forNumber(type_); return result == null ? com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType.UNRECOGNIZED : result; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; } private int status_ = 0; /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus getStatus() { com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus result = com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.forNumber(status_); return result == null ? com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus.UNRECOGNIZED : result; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; status_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; onChanged(); return this; } private com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchantCenterFeed_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder> merchantCenterFeedBuilder_; /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return Whether the merchantCenterFeed field is set. */ public boolean hasMerchantCenterFeed() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return The merchantCenterFeed. */ public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed getMerchantCenterFeed() { if (merchantCenterFeedBuilder_ == null) { return merchantCenterFeed_ == null ? com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } else { return merchantCenterFeedBuilder_.getMessage(); } } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder setMerchantCenterFeed(com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed value) { if (merchantCenterFeedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchantCenterFeed_ = value; } else { merchantCenterFeedBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder setMerchantCenterFeed( com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder builderForValue) { if (merchantCenterFeedBuilder_ == null) { merchantCenterFeed_ = builderForValue.build(); } else { merchantCenterFeedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder mergeMerchantCenterFeed(com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed value) { if (merchantCenterFeedBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && merchantCenterFeed_ != null && merchantCenterFeed_ != com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance()) { getMerchantCenterFeedBuilder().mergeFrom(value); } else { merchantCenterFeed_ = value; } } else { merchantCenterFeedBuilder_.mergeFrom(value); } if (merchantCenterFeed_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder clearMerchantCenterFeed() { bitField0_ = (bitField0_ & ~0x00000020); merchantCenterFeed_ = null; if (merchantCenterFeedBuilder_ != null) { merchantCenterFeedBuilder_.dispose(); merchantCenterFeedBuilder_ = null; } onChanged(); return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder getMerchantCenterFeedBuilder() { bitField0_ |= 0x00000020; onChanged(); return getMerchantCenterFeedFieldBuilder().getBuilder(); } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder getMerchantCenterFeedOrBuilder() { if (merchantCenterFeedBuilder_ != null) { return merchantCenterFeedBuilder_.getMessageOrBuilder(); } else { return merchantCenterFeed_ == null ? com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder> getMerchantCenterFeedFieldBuilder() { if (merchantCenterFeedBuilder_ == null) { merchantCenterFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeedOrBuilder>( getMerchantCenterFeed(), getParentForChildren(), isClean()); merchantCenterFeed_ = null; } return merchantCenterFeedBuilder_; } private long locationGroupParentAssetSetId_ ; /** *
     * Immutable. Parent asset set id for the asset set where the elements of this
     * asset set come from. For example: the sync level location AssetSet id where
     * the the elements in LocationGroup AssetSet come from. This field is
     * required and only applicable for Location Group typed AssetSet.
     * 
* * int64 location_group_parent_asset_set_id = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The locationGroupParentAssetSetId. */ @java.lang.Override public long getLocationGroupParentAssetSetId() { return locationGroupParentAssetSetId_; } /** *
     * Immutable. Parent asset set id for the asset set where the elements of this
     * asset set come from. For example: the sync level location AssetSet id where
     * the the elements in LocationGroup AssetSet come from. This field is
     * required and only applicable for Location Group typed AssetSet.
     * 
* * int64 location_group_parent_asset_set_id = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The locationGroupParentAssetSetId to set. * @return This builder for chaining. */ public Builder setLocationGroupParentAssetSetId(long value) { locationGroupParentAssetSetId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Immutable. Parent asset set id for the asset set where the elements of this
     * asset set come from. For example: the sync level location AssetSet id where
     * the the elements in LocationGroup AssetSet come from. This field is
     * required and only applicable for Location Group typed AssetSet.
     * 
* * int64 location_group_parent_asset_set_id = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearLocationGroupParentAssetSetId() { bitField0_ = (bitField0_ & ~0x00000040); locationGroupParentAssetSetId_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotelPropertyData_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder> hotelPropertyDataBuilder_; /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hotelPropertyData field is set. */ public boolean hasHotelPropertyData() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hotelPropertyData. */ public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData getHotelPropertyData() { if (hotelPropertyDataBuilder_ == null) { return hotelPropertyData_ == null ? com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance() : hotelPropertyData_; } else { return hotelPropertyDataBuilder_.getMessage(); } } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setHotelPropertyData(com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData value) { if (hotelPropertyDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hotelPropertyData_ = value; } else { hotelPropertyDataBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setHotelPropertyData( com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder builderForValue) { if (hotelPropertyDataBuilder_ == null) { hotelPropertyData_ = builderForValue.build(); } else { hotelPropertyDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeHotelPropertyData(com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData value) { if (hotelPropertyDataBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && hotelPropertyData_ != null && hotelPropertyData_ != com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance()) { getHotelPropertyDataBuilder().mergeFrom(value); } else { hotelPropertyData_ = value; } } else { hotelPropertyDataBuilder_.mergeFrom(value); } if (hotelPropertyData_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearHotelPropertyData() { bitField0_ = (bitField0_ & ~0x00000080); hotelPropertyData_ = null; if (hotelPropertyDataBuilder_ != null) { hotelPropertyDataBuilder_.dispose(); hotelPropertyDataBuilder_ = null; } onChanged(); return this; } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder getHotelPropertyDataBuilder() { bitField0_ |= 0x00000080; onChanged(); return getHotelPropertyDataFieldBuilder().getBuilder(); } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder getHotelPropertyDataOrBuilder() { if (hotelPropertyDataBuilder_ != null) { return hotelPropertyDataBuilder_.getMessageOrBuilder(); } else { return hotelPropertyData_ == null ? com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.getDefaultInstance() : hotelPropertyData_; } } /** *
     * Output only. For Performance Max for travel goals campaigns with a Hotel
     * Center account link. Read-only.
     * 
* * .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder> getHotelPropertyDataFieldBuilder() { if (hotelPropertyDataBuilder_ == null) { hotelPropertyDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyData.Builder, com.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataOrBuilder>( getHotelPropertyData(), getParentForChildren(), isClean()); hotelPropertyData_ = null; } return hotelPropertyDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.LocationSet, com.google.ads.googleads.v18.common.LocationSet.Builder, com.google.ads.googleads.v18.common.LocationSetOrBuilder> locationSetBuilder_; /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; * @return Whether the locationSet field is set. */ @java.lang.Override public boolean hasLocationSet() { return assetSetSourceCase_ == 7; } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; * @return The locationSet. */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationSet getLocationSet() { if (locationSetBuilder_ == null) { if (assetSetSourceCase_ == 7) { return (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_; } return com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } else { if (assetSetSourceCase_ == 7) { return locationSetBuilder_.getMessage(); } return com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ public Builder setLocationSet(com.google.ads.googleads.v18.common.LocationSet value) { if (locationSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assetSetSource_ = value; onChanged(); } else { locationSetBuilder_.setMessage(value); } assetSetSourceCase_ = 7; return this; } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ public Builder setLocationSet( com.google.ads.googleads.v18.common.LocationSet.Builder builderForValue) { if (locationSetBuilder_ == null) { assetSetSource_ = builderForValue.build(); onChanged(); } else { locationSetBuilder_.setMessage(builderForValue.build()); } assetSetSourceCase_ = 7; return this; } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ public Builder mergeLocationSet(com.google.ads.googleads.v18.common.LocationSet value) { if (locationSetBuilder_ == null) { if (assetSetSourceCase_ == 7 && assetSetSource_ != com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance()) { assetSetSource_ = com.google.ads.googleads.v18.common.LocationSet.newBuilder((com.google.ads.googleads.v18.common.LocationSet) assetSetSource_) .mergeFrom(value).buildPartial(); } else { assetSetSource_ = value; } onChanged(); } else { if (assetSetSourceCase_ == 7) { locationSetBuilder_.mergeFrom(value); } else { locationSetBuilder_.setMessage(value); } } assetSetSourceCase_ = 7; return this; } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ public Builder clearLocationSet() { if (locationSetBuilder_ == null) { if (assetSetSourceCase_ == 7) { assetSetSourceCase_ = 0; assetSetSource_ = null; onChanged(); } } else { if (assetSetSourceCase_ == 7) { assetSetSourceCase_ = 0; assetSetSource_ = null; } locationSetBuilder_.clear(); } return this; } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ public com.google.ads.googleads.v18.common.LocationSet.Builder getLocationSetBuilder() { return getLocationSetFieldBuilder().getBuilder(); } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ @java.lang.Override public com.google.ads.googleads.v18.common.LocationSetOrBuilder getLocationSetOrBuilder() { if ((assetSetSourceCase_ == 7) && (locationSetBuilder_ != null)) { return locationSetBuilder_.getMessageOrBuilder(); } else { if (assetSetSourceCase_ == 7) { return (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_; } return com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } } /** *
     * Location asset set data. This will be used for sync level location
     * set. This can only be set if AssetSet's type is LOCATION_SYNC.
     * 
* * .google.ads.googleads.v18.common.LocationSet location_set = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.LocationSet, com.google.ads.googleads.v18.common.LocationSet.Builder, com.google.ads.googleads.v18.common.LocationSetOrBuilder> getLocationSetFieldBuilder() { if (locationSetBuilder_ == null) { if (!(assetSetSourceCase_ == 7)) { assetSetSource_ = com.google.ads.googleads.v18.common.LocationSet.getDefaultInstance(); } locationSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.LocationSet, com.google.ads.googleads.v18.common.LocationSet.Builder, com.google.ads.googleads.v18.common.LocationSetOrBuilder>( (com.google.ads.googleads.v18.common.LocationSet) assetSetSource_, getParentForChildren(), isClean()); assetSetSource_ = null; } assetSetSourceCase_ = 7; onChanged(); return locationSetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.BusinessProfileLocationGroup, com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.Builder, com.google.ads.googleads.v18.common.BusinessProfileLocationGroupOrBuilder> businessProfileLocationGroupBuilder_; /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; * @return Whether the businessProfileLocationGroup field is set. */ @java.lang.Override public boolean hasBusinessProfileLocationGroup() { return assetSetSourceCase_ == 8; } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; * @return The businessProfileLocationGroup. */ @java.lang.Override public com.google.ads.googleads.v18.common.BusinessProfileLocationGroup getBusinessProfileLocationGroup() { if (businessProfileLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 8) { return (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } else { if (assetSetSourceCase_ == 8) { return businessProfileLocationGroupBuilder_.getMessage(); } return com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ public Builder setBusinessProfileLocationGroup(com.google.ads.googleads.v18.common.BusinessProfileLocationGroup value) { if (businessProfileLocationGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assetSetSource_ = value; onChanged(); } else { businessProfileLocationGroupBuilder_.setMessage(value); } assetSetSourceCase_ = 8; return this; } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ public Builder setBusinessProfileLocationGroup( com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.Builder builderForValue) { if (businessProfileLocationGroupBuilder_ == null) { assetSetSource_ = builderForValue.build(); onChanged(); } else { businessProfileLocationGroupBuilder_.setMessage(builderForValue.build()); } assetSetSourceCase_ = 8; return this; } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ public Builder mergeBusinessProfileLocationGroup(com.google.ads.googleads.v18.common.BusinessProfileLocationGroup value) { if (businessProfileLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 8 && assetSetSource_ != com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance()) { assetSetSource_ = com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.newBuilder((com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_) .mergeFrom(value).buildPartial(); } else { assetSetSource_ = value; } onChanged(); } else { if (assetSetSourceCase_ == 8) { businessProfileLocationGroupBuilder_.mergeFrom(value); } else { businessProfileLocationGroupBuilder_.setMessage(value); } } assetSetSourceCase_ = 8; return this; } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ public Builder clearBusinessProfileLocationGroup() { if (businessProfileLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 8) { assetSetSourceCase_ = 0; assetSetSource_ = null; onChanged(); } } else { if (assetSetSourceCase_ == 8) { assetSetSourceCase_ = 0; assetSetSource_ = null; } businessProfileLocationGroupBuilder_.clear(); } return this; } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ public com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.Builder getBusinessProfileLocationGroupBuilder() { return getBusinessProfileLocationGroupFieldBuilder().getBuilder(); } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ @java.lang.Override public com.google.ads.googleads.v18.common.BusinessProfileLocationGroupOrBuilder getBusinessProfileLocationGroupOrBuilder() { if ((assetSetSourceCase_ == 8) && (businessProfileLocationGroupBuilder_ != null)) { return businessProfileLocationGroupBuilder_.getMessageOrBuilder(); } else { if (assetSetSourceCase_ == 8) { return (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } } /** *
     * Business Profile location group asset set data.
     * 
* * .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.BusinessProfileLocationGroup, com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.Builder, com.google.ads.googleads.v18.common.BusinessProfileLocationGroupOrBuilder> getBusinessProfileLocationGroupFieldBuilder() { if (businessProfileLocationGroupBuilder_ == null) { if (!(assetSetSourceCase_ == 8)) { assetSetSource_ = com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.getDefaultInstance(); } businessProfileLocationGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.BusinessProfileLocationGroup, com.google.ads.googleads.v18.common.BusinessProfileLocationGroup.Builder, com.google.ads.googleads.v18.common.BusinessProfileLocationGroupOrBuilder>( (com.google.ads.googleads.v18.common.BusinessProfileLocationGroup) assetSetSource_, getParentForChildren(), isClean()); assetSetSource_ = null; } assetSetSourceCase_ = 8; onChanged(); return businessProfileLocationGroupBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.ChainLocationGroup, com.google.ads.googleads.v18.common.ChainLocationGroup.Builder, com.google.ads.googleads.v18.common.ChainLocationGroupOrBuilder> chainLocationGroupBuilder_; /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; * @return Whether the chainLocationGroup field is set. */ @java.lang.Override public boolean hasChainLocationGroup() { return assetSetSourceCase_ == 9; } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; * @return The chainLocationGroup. */ @java.lang.Override public com.google.ads.googleads.v18.common.ChainLocationGroup getChainLocationGroup() { if (chainLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 9) { return (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } else { if (assetSetSourceCase_ == 9) { return chainLocationGroupBuilder_.getMessage(); } return com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ public Builder setChainLocationGroup(com.google.ads.googleads.v18.common.ChainLocationGroup value) { if (chainLocationGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assetSetSource_ = value; onChanged(); } else { chainLocationGroupBuilder_.setMessage(value); } assetSetSourceCase_ = 9; return this; } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ public Builder setChainLocationGroup( com.google.ads.googleads.v18.common.ChainLocationGroup.Builder builderForValue) { if (chainLocationGroupBuilder_ == null) { assetSetSource_ = builderForValue.build(); onChanged(); } else { chainLocationGroupBuilder_.setMessage(builderForValue.build()); } assetSetSourceCase_ = 9; return this; } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ public Builder mergeChainLocationGroup(com.google.ads.googleads.v18.common.ChainLocationGroup value) { if (chainLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 9 && assetSetSource_ != com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance()) { assetSetSource_ = com.google.ads.googleads.v18.common.ChainLocationGroup.newBuilder((com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_) .mergeFrom(value).buildPartial(); } else { assetSetSource_ = value; } onChanged(); } else { if (assetSetSourceCase_ == 9) { chainLocationGroupBuilder_.mergeFrom(value); } else { chainLocationGroupBuilder_.setMessage(value); } } assetSetSourceCase_ = 9; return this; } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ public Builder clearChainLocationGroup() { if (chainLocationGroupBuilder_ == null) { if (assetSetSourceCase_ == 9) { assetSetSourceCase_ = 0; assetSetSource_ = null; onChanged(); } } else { if (assetSetSourceCase_ == 9) { assetSetSourceCase_ = 0; assetSetSource_ = null; } chainLocationGroupBuilder_.clear(); } return this; } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ public com.google.ads.googleads.v18.common.ChainLocationGroup.Builder getChainLocationGroupBuilder() { return getChainLocationGroupFieldBuilder().getBuilder(); } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ @java.lang.Override public com.google.ads.googleads.v18.common.ChainLocationGroupOrBuilder getChainLocationGroupOrBuilder() { if ((assetSetSourceCase_ == 9) && (chainLocationGroupBuilder_ != null)) { return chainLocationGroupBuilder_.getMessageOrBuilder(); } else { if (assetSetSourceCase_ == 9) { return (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_; } return com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } } /** *
     * Represents information about a Chain dynamic location group.
     * Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
     * sync source is chain.
     * 
* * .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.ChainLocationGroup, com.google.ads.googleads.v18.common.ChainLocationGroup.Builder, com.google.ads.googleads.v18.common.ChainLocationGroupOrBuilder> getChainLocationGroupFieldBuilder() { if (chainLocationGroupBuilder_ == null) { if (!(assetSetSourceCase_ == 9)) { assetSetSource_ = com.google.ads.googleads.v18.common.ChainLocationGroup.getDefaultInstance(); } chainLocationGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.ChainLocationGroup, com.google.ads.googleads.v18.common.ChainLocationGroup.Builder, com.google.ads.googleads.v18.common.ChainLocationGroupOrBuilder>( (com.google.ads.googleads.v18.common.ChainLocationGroup) assetSetSource_, getParentForChildren(), isClean()); assetSetSource_ = null; } assetSetSourceCase_ = 9; onChanged(); return chainLocationGroupBuilder_; } @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.v18.resources.AssetSet) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.AssetSet) private static final com.google.ads.googleads.v18.resources.AssetSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.AssetSet(); } public static com.google.ads.googleads.v18.resources.AssetSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetSet 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.v18.resources.AssetSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy