Class EnableOperation.Builder

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

public static final class EnableOperation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder> implements EnableOperationOrBuilder
 A single enable operation of a campaign.
 
Protobuf type google.ads.googleads.v19.services.EnableOperation
  • 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<EnableOperation.Builder>
    • clear

      public EnableOperation.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<EnableOperation.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<EnableOperation.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public EnableOperation.Builder mergeFrom(EnableOperation other)
    • isInitialized

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

      public EnableOperation.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<EnableOperation.Builder>
      Throws:
      IOException
    • getCampaign

      public String getCampaign()
       Required. The resource name of the campaign to enable.
       
      string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaign in interface EnableOperationOrBuilder
      Returns:
      The campaign.
    • getCampaignBytes

      public com.google.protobuf.ByteString getCampaignBytes()
       Required. The resource name of the campaign to enable.
       
      string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignBytes in interface EnableOperationOrBuilder
      Returns:
      The bytes for campaign.
    • setCampaign

      public EnableOperation.Builder setCampaign(String value)
       Required. The resource name of the campaign to enable.
       
      string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The campaign to set.
      Returns:
      This builder for chaining.
    • clearCampaign

      public EnableOperation.Builder clearCampaign()
       Required. The resource name of the campaign to enable.
       
      string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCampaignBytes

      public EnableOperation.Builder setCampaignBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the campaign to enable.
       
      string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for campaign to set.
      Returns:
      This builder for chaining.
    • getAutoPopulateBrandAssets

      public boolean getAutoPopulateBrandAssets()
       Required. The switch to automatically populate top-performing brand assets.
       This field is required. If true, top-performing brand assets will be
       automatically populated. If false, the brand_assets field is required.
       
      bool auto_populate_brand_assets = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoPopulateBrandAssets in interface EnableOperationOrBuilder
      Returns:
      The autoPopulateBrandAssets.
    • setAutoPopulateBrandAssets

      public EnableOperation.Builder setAutoPopulateBrandAssets(boolean value)
       Required. The switch to automatically populate top-performing brand assets.
       This field is required. If true, top-performing brand assets will be
       automatically populated. If false, the brand_assets field is required.
       
      bool auto_populate_brand_assets = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The autoPopulateBrandAssets to set.
      Returns:
      This builder for chaining.
    • clearAutoPopulateBrandAssets

      public EnableOperation.Builder clearAutoPopulateBrandAssets()
       Required. The switch to automatically populate top-performing brand assets.
       This field is required. If true, top-performing brand assets will be
       automatically populated. If false, the brand_assets field is required.
       
      bool auto_populate_brand_assets = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasBrandAssets

      public boolean hasBrandAssets()
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBrandAssets in interface EnableOperationOrBuilder
      Returns:
      Whether the brandAssets field is set.
    • getBrandAssets

      public BrandCampaignAssets getBrandAssets()
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBrandAssets in interface EnableOperationOrBuilder
      Returns:
      The brandAssets.
    • setBrandAssets

      public EnableOperation.Builder setBrandAssets(BrandCampaignAssets value)
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setBrandAssets

      public EnableOperation.Builder setBrandAssets(BrandCampaignAssets.Builder builderForValue)
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBrandAssets

      public EnableOperation.Builder mergeBrandAssets(BrandCampaignAssets value)
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearBrandAssets

      public EnableOperation.Builder clearBrandAssets()
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getBrandAssetsBuilder

      public BrandCampaignAssets.Builder getBrandAssetsBuilder()
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getBrandAssetsOrBuilder

      public BrandCampaignAssetsOrBuilder getBrandAssetsOrBuilder()
       Optional. The brand assets linked to the campaign. This field is required
       when the value of auto_populate_brand_assets is false.
       
      .google.ads.googleads.v19.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBrandAssetsOrBuilder in interface EnableOperationOrBuilder
    • getFinalUriDomain

      public String getFinalUriDomain()
       Optional. The domain of the final uri.
       
      string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalUriDomain in interface EnableOperationOrBuilder
      Returns:
      The finalUriDomain.
    • getFinalUriDomainBytes

      public com.google.protobuf.ByteString getFinalUriDomainBytes()
       Optional. The domain of the final uri.
       
      string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalUriDomainBytes in interface EnableOperationOrBuilder
      Returns:
      The bytes for finalUriDomain.
    • setFinalUriDomain

      public EnableOperation.Builder setFinalUriDomain(String value)
       Optional. The domain of the final uri.
       
      string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The finalUriDomain to set.
      Returns:
      This builder for chaining.
    • clearFinalUriDomain

      public EnableOperation.Builder clearFinalUriDomain()
       Optional. The domain of the final uri.
       
      string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFinalUriDomainBytes

      public EnableOperation.Builder setFinalUriDomainBytes(com.google.protobuf.ByteString value)
       Optional. The domain of the final uri.
       
      string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for finalUriDomain to set.
      Returns:
      This builder for chaining.
    • getMainColor

      public String getMainColor()
       Optional. Hex code representation of the main brand color, for example
       #00ff00. main_color is required when accent color is specified.
       
      string main_color = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainColor in interface EnableOperationOrBuilder
      Returns:
      The mainColor.
    • getMainColorBytes

      public com.google.protobuf.ByteString getMainColorBytes()
       Optional. Hex code representation of the main brand color, for example
       #00ff00. main_color is required when accent color is specified.
       
      string main_color = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainColorBytes in interface EnableOperationOrBuilder
      Returns:
      The bytes for mainColor.
    • setMainColor

      public EnableOperation.Builder setMainColor(String value)
       Optional. Hex code representation of the main brand color, for example
       #00ff00. main_color is required when accent color is specified.
       
      string main_color = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mainColor to set.
      Returns:
      This builder for chaining.
    • clearMainColor

      public EnableOperation.Builder clearMainColor()
       Optional. Hex code representation of the main brand color, for example
       #00ff00. main_color is required when accent color is specified.
       
      string main_color = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMainColorBytes

      public EnableOperation.Builder setMainColorBytes(com.google.protobuf.ByteString value)
       Optional. Hex code representation of the main brand color, for example
       #00ff00. main_color is required when accent color is specified.
       
      string main_color = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for mainColor to set.
      Returns:
      This builder for chaining.
    • getAccentColor

      public String getAccentColor()
       Optional. Hex code representation of the accent brand color, for example
       #00ff00. accent_color is required when main_color is specified.
       
      string accent_color = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccentColor in interface EnableOperationOrBuilder
      Returns:
      The accentColor.
    • getAccentColorBytes

      public com.google.protobuf.ByteString getAccentColorBytes()
       Optional. Hex code representation of the accent brand color, for example
       #00ff00. accent_color is required when main_color is specified.
       
      string accent_color = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccentColorBytes in interface EnableOperationOrBuilder
      Returns:
      The bytes for accentColor.
    • setAccentColor

      public EnableOperation.Builder setAccentColor(String value)
       Optional. Hex code representation of the accent brand color, for example
       #00ff00. accent_color is required when main_color is specified.
       
      string accent_color = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The accentColor to set.
      Returns:
      This builder for chaining.
    • clearAccentColor

      public EnableOperation.Builder clearAccentColor()
       Optional. Hex code representation of the accent brand color, for example
       #00ff00. accent_color is required when main_color is specified.
       
      string accent_color = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAccentColorBytes

      public EnableOperation.Builder setAccentColorBytes(com.google.protobuf.ByteString value)
       Optional. Hex code representation of the accent brand color, for example
       #00ff00. accent_color is required when main_color is specified.
       
      string accent_color = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for accentColor to set.
      Returns:
      This builder for chaining.
    • getFontFamily

      public String getFontFamily()
       Optional. The font family is specified as a string, and must be one of the
       following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins",
       "Lato", "Oswald", or "Playfair Display".
       
      string font_family = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFontFamily in interface EnableOperationOrBuilder
      Returns:
      The fontFamily.
    • getFontFamilyBytes

      public com.google.protobuf.ByteString getFontFamilyBytes()
       Optional. The font family is specified as a string, and must be one of the
       following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins",
       "Lato", "Oswald", or "Playfair Display".
       
      string font_family = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFontFamilyBytes in interface EnableOperationOrBuilder
      Returns:
      The bytes for fontFamily.
    • setFontFamily

      public EnableOperation.Builder setFontFamily(String value)
       Optional. The font family is specified as a string, and must be one of the
       following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins",
       "Lato", "Oswald", or "Playfair Display".
       
      string font_family = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fontFamily to set.
      Returns:
      This builder for chaining.
    • clearFontFamily

      public EnableOperation.Builder clearFontFamily()
       Optional. The font family is specified as a string, and must be one of the
       following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins",
       "Lato", "Oswald", or "Playfair Display".
       
      string font_family = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFontFamilyBytes

      public EnableOperation.Builder setFontFamilyBytes(com.google.protobuf.ByteString value)
       Optional. The font family is specified as a string, and must be one of the
       following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins",
       "Lato", "Oswald", or "Playfair Display".
       
      string font_family = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for fontFamily to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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