Class EnableOperation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
com.google.ads.googleads.v21.services.EnableOperation.Builder
- All Implemented Interfaces:
EnableOperationOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,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.v21.services.EnableOperation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.Required.Optional.Required.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional.Optional.Optional.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Optional.com.google.protobuf.ByteStringOptional.booleanRequired.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOptional.mergeFrom(EnableOperation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final EnableOperation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAccentColor(String value) Optional.setAccentColorBytes(com.google.protobuf.ByteString value) Optional.setAutoPopulateBrandAssets(boolean value) Required.Optional.setBrandAssets(BrandCampaignAssets.Builder builderForValue) Optional.setCampaign(String value) Required.setCampaignBytes(com.google.protobuf.ByteString value) Required.setFinalUriDomain(String value) Optional.setFinalUriDomainBytes(com.google.protobuf.ByteString value) Optional.setFontFamily(String value) Optional.setFontFamilyBytes(com.google.protobuf.ByteString value) Optional.setMainColor(String value) Optional.setMainColorBytes(com.google.protobuf.ByteString value) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final EnableOperation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildrenMethods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtensionMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtensionMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EnableOperation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
setField
public EnableOperation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
setRepeatedField
public EnableOperation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
addRepeatedField
public EnableOperation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EnableOperation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,EnableOperation.Builder>
-
mergeFrom
public EnableOperation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EnableOperation.Builder>- Throws:
IOException
-
getCampaign
Required. The resource name of the campaign to enable.
string campaign = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignin interfaceEnableOperationOrBuilder- 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:
getCampaignBytesin interfaceEnableOperationOrBuilder- Returns:
- The bytes for campaign.
-
setCampaign
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
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
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:
getAutoPopulateBrandAssetsin interfaceEnableOperationOrBuilder- Returns:
- The autoPopulateBrandAssets.
-
setAutoPopulateBrandAssets
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
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBrandAssetsin interfaceEnableOperationOrBuilder- Returns:
- Whether the brandAssets field is set.
-
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBrandAssetsin interfaceEnableOperationOrBuilder- Returns:
- The brandAssets.
-
setBrandAssets
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setBrandAssets
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeBrandAssets
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL]; -
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL]; -
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL]; -
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.v21.services.BrandCampaignAssets brand_assets = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBrandAssetsOrBuilderin interfaceEnableOperationOrBuilder
-
getFinalUriDomain
Optional. The domain of the final uri.
string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFinalUriDomainin interfaceEnableOperationOrBuilder- 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:
getFinalUriDomainBytesin interfaceEnableOperationOrBuilder- Returns:
- The bytes for finalUriDomain.
-
setFinalUriDomain
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
Optional. The domain of the final uri.
string final_uri_domain = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFinalUriDomainBytes
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
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:
getMainColorin interfaceEnableOperationOrBuilder- 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:
getMainColorBytesin interfaceEnableOperationOrBuilder- Returns:
- The bytes for mainColor.
-
setMainColor
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
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
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
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:
getAccentColorin interfaceEnableOperationOrBuilder- 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:
getAccentColorBytesin interfaceEnableOperationOrBuilder- Returns:
- The bytes for accentColor.
-
setAccentColor
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
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
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
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:
getFontFamilyin interfaceEnableOperationOrBuilder- 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:
getFontFamilyBytesin interfaceEnableOperationOrBuilder- Returns:
- The bytes for fontFamily.
-
setFontFamily
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-
mergeUnknownFields
public final EnableOperation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EnableOperation.Builder>
-