Class AdStrengthActionItem.AddAssetDetails.Builder

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

public static final class AdStrengthActionItem.AddAssetDetails.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdStrengthActionItem.AddAssetDetails.Builder> implements AdStrengthActionItem.AddAssetDetailsOrBuilder
 The details of the asset to add.
 
Protobuf type google.ads.googleads.v19.resources.AdStrengthActionItem.AddAssetDetails
  • 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<AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • getDefaultInstanceForType

      public AdStrengthActionItem.AddAssetDetails 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 AdStrengthActionItem.AddAssetDetails 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<AdStrengthActionItem.AddAssetDetails.Builder>
    • setField

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • clearField

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • clearOneof

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • setRepeatedField

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • addRepeatedField

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • mergeFrom

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • mergeFrom

      public AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
      Throws:
      IOException
    • getAssetFieldTypeValue

      public int getAssetFieldTypeValue()
       Output only. The asset field type of the asset(s) to add.
       
      .google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssetFieldTypeValue in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      The enum numeric value on the wire for assetFieldType.
    • setAssetFieldTypeValue

      public AdStrengthActionItem.AddAssetDetails.Builder setAssetFieldTypeValue(int value)
       Output only. The asset field type of the asset(s) to add.
       
      .google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for assetFieldType to set.
      Returns:
      This builder for chaining.
    • getAssetFieldType

      public AssetFieldTypeEnum.AssetFieldType getAssetFieldType()
       Output only. The asset field type of the asset(s) to add.
       
      .google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssetFieldType in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      The assetFieldType.
    • setAssetFieldType

       Output only. The asset field type of the asset(s) to add.
       
      .google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The assetFieldType to set.
      Returns:
      This builder for chaining.
    • clearAssetFieldType

      public AdStrengthActionItem.AddAssetDetails.Builder clearAssetFieldType()
       Output only. The asset field type of the asset(s) to add.
       
      .google.ads.googleads.v19.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasAssetCount

      public boolean hasAssetCount()
       Output only. The number of assets to add.
       
      optional int32 asset_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAssetCount in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      Whether the assetCount field is set.
    • getAssetCount

      public int getAssetCount()
       Output only. The number of assets to add.
       
      optional int32 asset_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssetCount in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      The assetCount.
    • setAssetCount

      public AdStrengthActionItem.AddAssetDetails.Builder setAssetCount(int value)
       Output only. The number of assets to add.
       
      optional int32 asset_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The assetCount to set.
      Returns:
      This builder for chaining.
    • clearAssetCount

       Output only. The number of assets to add.
       
      optional int32 asset_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasVideoAspectRatioRequirement

      public boolean hasVideoAspectRatioRequirement()
       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasVideoAspectRatioRequirement in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      Whether the videoAspectRatioRequirement field is set.
    • getVideoAspectRatioRequirementValue

      public int getVideoAspectRatioRequirementValue()
       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoAspectRatioRequirementValue in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      The enum numeric value on the wire for videoAspectRatioRequirement.
    • setVideoAspectRatioRequirementValue

      public AdStrengthActionItem.AddAssetDetails.Builder setVideoAspectRatioRequirementValue(int value)
       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for videoAspectRatioRequirement to set.
      Returns:
      This builder for chaining.
    • getVideoAspectRatioRequirement

       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoAspectRatioRequirement in interface AdStrengthActionItem.AddAssetDetailsOrBuilder
      Returns:
      The videoAspectRatioRequirement.
    • setVideoAspectRatioRequirement

       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The videoAspectRatioRequirement to set.
      Returns:
      This builder for chaining.
    • clearVideoAspectRatioRequirement

      public AdStrengthActionItem.AddAssetDetails.Builder clearVideoAspectRatioRequirement()
       Output only. For video field types, the required aspect ratio of the
       video. When unset and asset_field_type is YOUTUBE_VIDEO, the system
       recommends the advertiser upload any YouTube video, regardless of aspect
       ratio.
       
      optional .google.ads.googleads.v19.enums.AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement video_aspect_ratio_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>
    • mergeUnknownFields

      public final AdStrengthActionItem.AddAssetDetails.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<AdStrengthActionItem.AddAssetDetails.Builder>