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

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

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

package com.google.ads.googleads.v10.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.v10.resources.AssetSet} */ public final class AssetSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetSet.class, com.google.ads.googleads.v10.resources.AssetSet.Builder.class); } public interface MerchantCenterFeedOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.AssetSet.MerchantCenterFeed} */ public static final class MerchantCenterFeed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_MerchantCenterFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.class, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder.class); } private int bitField0_; public static final int MERCHANT_ID_FIELD_NUMBER = 1; 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_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; 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.v10.resources.AssetSet.MerchantCenterFeed)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed other = (com.google.ads.googleads.v10.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.v10.resources.AssetSet.MerchantCenterFeed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet.MerchantCenterFeed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet.MerchantCenterFeed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.AssetSet.MerchantCenterFeed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed) com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_MerchantCenterFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.class, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); merchantId_ = 0L; feedLabel_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_MerchantCenterFeed_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed build() { com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed buildPartial() { com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed result = new com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.merchantId_ = merchantId_; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.feedLabel_ = feedLabel_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed) { return mergeFrom((com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed other) { if (other == com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.getDefaultInstance()) return this; if (other.getMerchantId() != 0L) { setMerchantId(other.getMerchantId()); } if (other.hasFeedLabel()) { bitField0_ |= 0x00000001; feedLabel_ = other.feedLabel_; 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(); break; } // case 8 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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; 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() { 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_ & 0x00000001) != 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(); } bitField0_ |= 0x00000001; feedLabel_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000001); feedLabel_ = getDefaultInstance().getFeedLabel(); 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); bitField0_ |= 0x00000001; feedLabel_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed) private static final com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed(); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet.MerchantCenterFeed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 6; 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_; } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; 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; 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_; /** *
   * Required. Immutable. The type of the asset set. Required.
   * 
* * .google.ads.googleads.v10.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.v10.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.v10.enums.AssetSetTypeEnum.AssetSetType getType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType result = com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType.valueOf(type_); return result == null ? com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** *
   * Output only. The status of the asset set. Read-only.
   * 
* * .google.ads.googleads.v10.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.v10.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus result = com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.UNRECOGNIZED : result; } public static final int MERCHANT_CENTER_FEED_FIELD_NUMBER = 5; private com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchantCenterFeed_; /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return Whether the merchantCenterFeed field is set. */ @java.lang.Override public boolean hasMerchantCenterFeed() { return merchantCenterFeed_ != null; } /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return The merchantCenterFeed. */ @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed getMerchantCenterFeed() { return merchantCenterFeed_ == null ? com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } /** *
   * Merchant ID and Feed Label from Google Merchant Center.
   * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder getMerchantCenterFeedOrBuilder() { return getMerchantCenterFeed(); } 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.v10.enums.AssetSetTypeEnum.AssetSetType.UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (status_ != com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.UNSPECIFIED.getNumber()) { output.writeEnum(4, status_); } if (merchantCenterFeed_ != null) { output.writeMessage(5, getMerchantCenterFeed()); } if (id_ != 0L) { output.writeInt64(6, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (type_ != com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (status_ != com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, status_); } if (merchantCenterFeed_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMerchantCenterFeed()); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, id_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.AssetSet)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.AssetSet other = (com.google.ads.googleads.v10.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 (!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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.AssetSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.AssetSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AssetSet) com.google.ads.googleads.v10.resources.AssetSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.AssetSet.class, com.google.ads.googleads.v10.resources.AssetSet.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.AssetSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = 0L; resourceName_ = ""; name_ = ""; type_ = 0; status_ = 0; if (merchantCenterFeedBuilder_ == null) { merchantCenterFeed_ = null; } else { merchantCenterFeed_ = null; merchantCenterFeedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.AssetSetProto.internal_static_google_ads_googleads_v10_resources_AssetSet_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.AssetSet.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet build() { com.google.ads.googleads.v10.resources.AssetSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.AssetSet buildPartial() { com.google.ads.googleads.v10.resources.AssetSet result = new com.google.ads.googleads.v10.resources.AssetSet(this); result.id_ = id_; result.resourceName_ = resourceName_; result.name_ = name_; result.type_ = type_; result.status_ = status_; if (merchantCenterFeedBuilder_ == null) { result.merchantCenterFeed_ = merchantCenterFeed_; } else { result.merchantCenterFeed_ = merchantCenterFeedBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.AssetSet) { return mergeFrom((com.google.ads.googleads.v10.resources.AssetSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.AssetSet other) { if (other == com.google.ads.googleads.v10.resources.AssetSet.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasMerchantCenterFeed()) { mergeMerchantCenterFeed(other.getMerchantCenterFeed()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 24: { type_ = input.readEnum(); break; } // case 24 case 32: { status_ = input.readEnum(); break; } // case 32 case 42: { input.readMessage( getMerchantCenterFeedFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 48: { id_ = input.readInt64(); break; } // case 48 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 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; 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() { 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; 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(); 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; 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; 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(); 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; onChanged(); return this; } private int type_ = 0; /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v10.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.v10.enums.AssetSetTypeEnum.AssetSetType getType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType result = com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType.valueOf(type_); return result == null ? com.google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType.UNRECOGNIZED : result; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v10.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.v10.enums.AssetSetTypeEnum.AssetSetType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
     * Required. Immutable. The type of the asset set. Required.
     * 
* * .google.ads.googleads.v10.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int status_ = 0; /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus result = com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus.UNRECOGNIZED : result; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v10.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.v10.enums.AssetSetStatusEnum.AssetSetStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The status of the asset set. Read-only.
     * 
* * .google.ads.googleads.v10.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchantCenterFeed_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder> merchantCenterFeedBuilder_; /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return Whether the merchantCenterFeed field is set. */ public boolean hasMerchantCenterFeed() { return merchantCenterFeedBuilder_ != null || merchantCenterFeed_ != null; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; * @return The merchantCenterFeed. */ public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed getMerchantCenterFeed() { if (merchantCenterFeedBuilder_ == null) { return merchantCenterFeed_ == null ? com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } else { return merchantCenterFeedBuilder_.getMessage(); } } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder setMerchantCenterFeed(com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed value) { if (merchantCenterFeedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchantCenterFeed_ = value; onChanged(); } else { merchantCenterFeedBuilder_.setMessage(value); } return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder setMerchantCenterFeed( com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder builderForValue) { if (merchantCenterFeedBuilder_ == null) { merchantCenterFeed_ = builderForValue.build(); onChanged(); } else { merchantCenterFeedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder mergeMerchantCenterFeed(com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed value) { if (merchantCenterFeedBuilder_ == null) { if (merchantCenterFeed_ != null) { merchantCenterFeed_ = com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.newBuilder(merchantCenterFeed_).mergeFrom(value).buildPartial(); } else { merchantCenterFeed_ = value; } onChanged(); } else { merchantCenterFeedBuilder_.mergeFrom(value); } return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public Builder clearMerchantCenterFeed() { if (merchantCenterFeedBuilder_ == null) { merchantCenterFeed_ = null; onChanged(); } else { merchantCenterFeed_ = null; merchantCenterFeedBuilder_ = null; } return this; } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder getMerchantCenterFeedBuilder() { onChanged(); return getMerchantCenterFeedFieldBuilder().getBuilder(); } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ public com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder getMerchantCenterFeedOrBuilder() { if (merchantCenterFeedBuilder_ != null) { return merchantCenterFeedBuilder_.getMessageOrBuilder(); } else { return merchantCenterFeed_ == null ? com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.getDefaultInstance() : merchantCenterFeed_; } } /** *
     * Merchant ID and Feed Label from Google Merchant Center.
     * 
* * .google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder> getMerchantCenterFeedFieldBuilder() { if (merchantCenterFeedBuilder_ == null) { merchantCenterFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeed.Builder, com.google.ads.googleads.v10.resources.AssetSet.MerchantCenterFeedOrBuilder>( getMerchantCenterFeed(), getParentForChildren(), isClean()); merchantCenterFeed_ = null; } return merchantCenterFeedBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.AssetSet) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AssetSet) private static final com.google.ads.googleads.v10.resources.AssetSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AssetSet(); } public static com.google.ads.googleads.v10.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.v10.resources.AssetSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy