Class AdGroupAdAssetCombinationView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
com.google.ads.googleads.v18.resources.AdGroupAdAssetCombinationView.Builder
All Implemented Interfaces:
AdGroupAdAssetCombinationViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdGroupAdAssetCombinationView

public static final class AdGroupAdAssetCombinationView.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder> implements AdGroupAdAssetCombinationViewOrBuilder
 A view on the usage of ad group ad asset combination.
 Now we only support AdGroupAdAssetCombinationView for Responsive Search Ads,
 with more ad types planned for the future.
 
Protobuf type google.ads.googleads.v18.resources.AdGroupAdAssetCombinationView
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • getDefaultInstanceForType

      public AdGroupAdAssetCombinationView getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AdGroupAdAssetCombinationView buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • setField

      public AdGroupAdAssetCombinationView.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • clearField

      public AdGroupAdAssetCombinationView.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • clearOneof

      public AdGroupAdAssetCombinationView.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • setRepeatedField

      public AdGroupAdAssetCombinationView.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • addRepeatedField

      public AdGroupAdAssetCombinationView.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • mergeFrom

      public AdGroupAdAssetCombinationView.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdGroupAdAssetCombinationView.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • mergeFrom

      public AdGroupAdAssetCombinationView.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdGroupAdAssetCombinationView.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the ad group ad asset combination view.
       The combination ID is 128 bits long, where the upper 64 bits are stored in
       asset_combination_id_high, and the lower 64 bits are stored in
       asset_combination_id_low.
       AdGroupAd Asset Combination view resource names have the form:
       `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface AdGroupAdAssetCombinationViewOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the ad group ad asset combination view.
       The combination ID is 128 bits long, where the upper 64 bits are stored in
       asset_combination_id_high, and the lower 64 bits are stored in
       asset_combination_id_low.
       AdGroupAd Asset Combination view resource names have the form:
       `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface AdGroupAdAssetCombinationViewOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public AdGroupAdAssetCombinationView.Builder setResourceName(String value)
       Output only. The resource name of the ad group ad asset combination view.
       The combination ID is 128 bits long, where the upper 64 bits are stored in
       asset_combination_id_high, and the lower 64 bits are stored in
       asset_combination_id_low.
       AdGroupAd Asset Combination view resource names have the form:
       `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public AdGroupAdAssetCombinationView.Builder clearResourceName()
       Output only. The resource name of the ad group ad asset combination view.
       The combination ID is 128 bits long, where the upper 64 bits are stored in
       asset_combination_id_high, and the lower 64 bits are stored in
       asset_combination_id_low.
       AdGroupAd Asset Combination view resource names have the form:
       `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public AdGroupAdAssetCombinationView.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the ad group ad asset combination view.
       The combination ID is 128 bits long, where the upper 64 bits are stored in
       asset_combination_id_high, and the lower 64 bits are stored in
       asset_combination_id_low.
       AdGroupAd Asset Combination view resource names have the form:
       `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getServedAssetsList

      public List<AssetUsage> getServedAssetsList()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServedAssetsList in interface AdGroupAdAssetCombinationViewOrBuilder
    • getServedAssetsCount

      public int getServedAssetsCount()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServedAssetsCount in interface AdGroupAdAssetCombinationViewOrBuilder
    • getServedAssets

      public AssetUsage getServedAssets(int index)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServedAssets in interface AdGroupAdAssetCombinationViewOrBuilder
    • setServedAssets

      public AdGroupAdAssetCombinationView.Builder setServedAssets(int index, AssetUsage value)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setServedAssets

      public AdGroupAdAssetCombinationView.Builder setServedAssets(int index, AssetUsage.Builder builderForValue)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addServedAssets

      public AdGroupAdAssetCombinationView.Builder addServedAssets(AssetUsage value)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addServedAssets

      public AdGroupAdAssetCombinationView.Builder addServedAssets(int index, AssetUsage value)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addServedAssets

      public AdGroupAdAssetCombinationView.Builder addServedAssets(AssetUsage.Builder builderForValue)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addServedAssets

      public AdGroupAdAssetCombinationView.Builder addServedAssets(int index, AssetUsage.Builder builderForValue)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllServedAssets

      public AdGroupAdAssetCombinationView.Builder addAllServedAssets(Iterable<? extends AssetUsage> values)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearServedAssets

      public AdGroupAdAssetCombinationView.Builder clearServedAssets()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeServedAssets

      public AdGroupAdAssetCombinationView.Builder removeServedAssets(int index)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServedAssetsBuilder

      public AssetUsage.Builder getServedAssetsBuilder(int index)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServedAssetsOrBuilder

      public AssetUsageOrBuilder getServedAssetsOrBuilder(int index)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServedAssetsOrBuilder in interface AdGroupAdAssetCombinationViewOrBuilder
    • getServedAssetsOrBuilderList

      public List<? extends AssetUsageOrBuilder> getServedAssetsOrBuilderList()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServedAssetsOrBuilderList in interface AdGroupAdAssetCombinationViewOrBuilder
    • addServedAssetsBuilder

      public AssetUsage.Builder addServedAssetsBuilder()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addServedAssetsBuilder

      public AssetUsage.Builder addServedAssetsBuilder(int index)
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getServedAssetsBuilderList

      public List<AssetUsage.Builder> getServedAssetsBuilderList()
       Output only. Served assets.
       
      repeated .google.ads.googleads.v18.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasEnabled

      public boolean hasEnabled()
       Output only. The status between the asset combination and the latest
       version of the ad. If true, the asset combination is linked to the latest
       version of the ad. If false, it means the link once existed but has been
       removed and is no longer present in the latest version of the ad.
       
      optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEnabled in interface AdGroupAdAssetCombinationViewOrBuilder
      Returns:
      Whether the enabled field is set.
    • getEnabled

      public boolean getEnabled()
       Output only. The status between the asset combination and the latest
       version of the ad. If true, the asset combination is linked to the latest
       version of the ad. If false, it means the link once existed but has been
       removed and is no longer present in the latest version of the ad.
       
      optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnabled in interface AdGroupAdAssetCombinationViewOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public AdGroupAdAssetCombinationView.Builder setEnabled(boolean value)
       Output only. The status between the asset combination and the latest
       version of the ad. If true, the asset combination is linked to the latest
       version of the ad. If false, it means the link once existed but has been
       removed and is no longer present in the latest version of the ad.
       
      optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

       Output only. The status between the asset combination and the latest
       version of the ad. If true, the asset combination is linked to the latest
       version of the ad. If false, it means the link once existed but has been
       removed and is no longer present in the latest version of the ad.
       
      optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AdGroupAdAssetCombinationView.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>
    • mergeUnknownFields

      public final AdGroupAdAssetCombinationView.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroupAdAssetCombinationView.Builder>