Class ApplyRecommendationOperation.AdAssetApplyParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
com.google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.Builder
All Implemented Interfaces:
ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ApplyRecommendationOperation.AdAssetApplyParameters

public static final class ApplyRecommendationOperation.AdAssetApplyParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder> implements ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
 Common parameters used when applying ad asset recommendations.
 
Protobuf type google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.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.GeneratedMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.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.GeneratedMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
    • getDefaultInstanceForType

      public ApplyRecommendationOperation.AdAssetApplyParameters 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

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

      public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
    • mergeFrom

    • isInitialized

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

      public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
      Throws:
      IOException
    • getNewAssetsList

      public List<Asset> getNewAssetsList()
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
      Specified by:
      getNewAssetsList in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
    • getNewAssetsCount

      public int getNewAssetsCount()
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
      Specified by:
      getNewAssetsCount in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
    • getNewAssets

      public Asset getNewAssets(int index)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
      Specified by:
      getNewAssets in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
    • setNewAssets

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder setNewAssets(int index, Asset value)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • setNewAssets

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder setNewAssets(int index, Asset.Builder builderForValue)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addNewAssets

       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addNewAssets

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addNewAssets(int index, Asset value)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addNewAssets

       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addNewAssets

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addNewAssets(int index, Asset.Builder builderForValue)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addAllNewAssets

       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • clearNewAssets

       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • removeNewAssets

       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • getNewAssetsBuilder

      public Asset.Builder getNewAssetsBuilder(int index)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • getNewAssetsOrBuilder

      public AssetOrBuilder getNewAssetsOrBuilder(int index)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
      Specified by:
      getNewAssetsOrBuilder in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
    • getNewAssetsOrBuilderList

      public List<? extends AssetOrBuilder> getNewAssetsOrBuilderList()
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
      Specified by:
      getNewAssetsOrBuilderList in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
    • addNewAssetsBuilder

      public Asset.Builder addNewAssetsBuilder()
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • addNewAssetsBuilder

      public Asset.Builder addNewAssetsBuilder(int index)
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • getNewAssetsBuilderList

      public List<Asset.Builder> getNewAssetsBuilderList()
       The assets to create and attach to a scope. This may be combined with
       existing_assets in the same call.
       
      repeated .google.ads.googleads.v23.resources.Asset new_assets = 1;
    • getExistingAssetsList

      public com.google.protobuf.ProtocolStringList getExistingAssetsList()
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Specified by:
      getExistingAssetsList in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Returns:
      A list containing the existingAssets.
    • getExistingAssetsCount

      public int getExistingAssetsCount()
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Specified by:
      getExistingAssetsCount in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Returns:
      The count of existingAssets.
    • getExistingAssets

      public String getExistingAssets(int index)
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Specified by:
      getExistingAssets in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The existingAssets at the given index.
    • getExistingAssetsBytes

      public com.google.protobuf.ByteString getExistingAssetsBytes(int index)
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Specified by:
      getExistingAssetsBytes in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the existingAssets at the given index.
    • setExistingAssets

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder setExistingAssets(int index, String value)
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Parameters:
      index - The index to set the value at.
      value - The existingAssets to set.
      Returns:
      This builder for chaining.
    • addExistingAssets

       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Parameters:
      value - The existingAssets to add.
      Returns:
      This builder for chaining.
    • addAllExistingAssets

       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Parameters:
      values - The existingAssets to add.
      Returns:
      This builder for chaining.
    • clearExistingAssets

       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Returns:
      This builder for chaining.
    • addExistingAssetsBytes

      public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addExistingAssetsBytes(com.google.protobuf.ByteString value)
       The resource names of existing assets to attach to a scope. This may be
       combined with new_assets in the same call.
       
      repeated string existing_assets = 2;
      Parameters:
      value - The bytes of the existingAssets to add.
      Returns:
      This builder for chaining.
    • getScopeValue

      public int getScopeValue()
       Required. The scope at which to apply the assets. Assets at the campaign
       scope level will be applied to the campaign associated with the
       recommendation. Assets at the customer scope will apply to the entire
       account. Assets at the campaign scope will override any attached at the
       customer scope.
       
      .google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeValue in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Returns:
      The enum numeric value on the wire for scope.
    • setScopeValue

       Required. The scope at which to apply the assets. Assets at the campaign
       scope level will be applied to the campaign associated with the
       recommendation. Assets at the customer scope will apply to the entire
       account. Assets at the campaign scope will override any attached at the
       customer scope.
       
      .google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for scope to set.
      Returns:
      This builder for chaining.
    • getScope

       Required. The scope at which to apply the assets. Assets at the campaign
       scope level will be applied to the campaign associated with the
       recommendation. Assets at the customer scope will apply to the entire
       account. Assets at the campaign scope will override any attached at the
       customer scope.
       
      .google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScope in interface ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
      Returns:
      The scope.
    • setScope

       Required. The scope at which to apply the assets. Assets at the campaign
       scope level will be applied to the campaign associated with the
       recommendation. Assets at the customer scope will apply to the entire
       account. Assets at the campaign scope will override any attached at the
       customer scope.
       
      .google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

       Required. The scope at which to apply the assets. Assets at the campaign
       scope level will be applied to the campaign associated with the
       recommendation. Assets at the customer scope will apply to the entire
       account. Assets at the campaign scope will override any attached at the
       customer scope.
       
      .google.ads.googleads.v23.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.