Class EnableOperation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v19.services.EnableOperation
All Implemented Interfaces:
EnableOperationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class EnableOperation extends com.google.protobuf.GeneratedMessageV3 implements EnableOperationOrBuilder
 A single enable operation of a campaign.
 
Protobuf type google.ads.googleads.v19.services.EnableOperation
See Also:
  • Field Details

    • CAMPAIGN_FIELD_NUMBER

      public static final int CAMPAIGN_FIELD_NUMBER
      See Also:
    • AUTO_POPULATE_BRAND_ASSETS_FIELD_NUMBER

      public static final int AUTO_POPULATE_BRAND_ASSETS_FIELD_NUMBER
      See Also:
    • BRAND_ASSETS_FIELD_NUMBER

      public static final int BRAND_ASSETS_FIELD_NUMBER
      See Also:
    • FINAL_URI_DOMAIN_FIELD_NUMBER

      public static final int FINAL_URI_DOMAIN_FIELD_NUMBER
      See Also:
    • MAIN_COLOR_FIELD_NUMBER

      public static final int MAIN_COLOR_FIELD_NUMBER
      See Also:
    • ACCENT_COLOR_FIELD_NUMBER

      public static final int ACCENT_COLOR_FIELD_NUMBER
      See Also:
    • FONT_FAMILY_FIELD_NUMBER

      public static final int FONT_FAMILY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EnableOperation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EnableOperation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EnableOperation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EnableOperation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EnableOperation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EnableOperation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EnableOperation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static EnableOperation.Builder newBuilder()
    • newBuilder

      public static EnableOperation.Builder newBuilder(EnableOperation prototype)
    • toBuilder

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

      protected EnableOperation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static EnableOperation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EnableOperation> parser()
    • getParserForType

      public com.google.protobuf.Parser<EnableOperation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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