Class ApplyRecommendationOperation.AdAssetApplyParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
com.google.ads.googleads.v18.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.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
implements ApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
Common parameters used when applying ad asset recommendations.Protobuf type
google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters-
Method Summary
Modifier and TypeMethodDescriptionaddAllExistingAssets(Iterable<String> values) The resource names of existing assets to attach to a scope.addAllNewAssets(Iterable<? extends Asset> values) The assets to create and attach to a scope.addExistingAssets(String value) The resource names of existing assets to attach to a scope.addExistingAssetsBytes(com.google.protobuf.ByteString value) The resource names of existing assets to attach to a scope.addNewAssets(int index, Asset value) The assets to create and attach to a scope.addNewAssets(int index, Asset.Builder builderForValue) The assets to create and attach to a scope.addNewAssets(Asset value) The assets to create and attach to a scope.addNewAssets(Asset.Builder builderForValue) The assets to create and attach to a scope.The assets to create and attach to a scope.addNewAssetsBuilder(int index) The assets to create and attach to a scope.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The resource names of existing assets to attach to a scope.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The assets to create and attach to a scope.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExistingAssets(int index) The resource names of existing assets to attach to a scope.com.google.protobuf.ByteStringgetExistingAssetsBytes(int index) The resource names of existing assets to attach to a scope.intThe resource names of existing assets to attach to a scope.com.google.protobuf.ProtocolStringListThe resource names of existing assets to attach to a scope.getNewAssets(int index) The assets to create and attach to a scope.getNewAssetsBuilder(int index) The assets to create and attach to a scope.The assets to create and attach to a scope.intThe assets to create and attach to a scope.The assets to create and attach to a scope.getNewAssetsOrBuilder(int index) The assets to create and attach to a scope.List<? extends AssetOrBuilder>The assets to create and attach to a scope.getScope()Required.intRequired.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeNewAssets(int index) The assets to create and attach to a scope.setExistingAssets(int index, String value) The resource names of existing assets to attach to a scope.setNewAssets(int index, Asset value) The assets to create and attach to a scope.setNewAssets(int index, Asset.Builder builderForValue) The assets to create and attach to a scope.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Required.setScopeValue(int value) Required.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.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()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.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.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
getDefaultInstanceForType
- 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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
setField
public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
clearField
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
clearOneof
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
setRepeatedField
public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
addRepeatedField
public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
mergeFrom
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
mergeFrom
public ApplyRecommendationOperation.AdAssetApplyParameters.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<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>- Throws:
IOException
-
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.v18.resources.Asset new_assets = 1;- Specified by:
getNewAssetsListin interfaceApplyRecommendationOperation.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.v18.resources.Asset new_assets = 1;- Specified by:
getNewAssetsCountin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
getNewAssets
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v18.resources.Asset new_assets = 1;- Specified by:
getNewAssetsin interfaceApplyRecommendationOperation.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.v18.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.v18.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.v18.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.v18.resources.Asset new_assets = 1; -
addNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addNewAssets(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.v18.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.v18.resources.Asset new_assets = 1; -
addAllNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addAllNewAssets(Iterable<? extends Asset> values) The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v18.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.v18.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.v18.resources.Asset new_assets = 1; -
getNewAssetsBuilder
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v18.resources.Asset new_assets = 1; -
getNewAssetsOrBuilder
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v18.resources.Asset new_assets = 1;- Specified by:
getNewAssetsOrBuilderin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
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.v18.resources.Asset new_assets = 1;- Specified by:
getNewAssetsOrBuilderListin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
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.v18.resources.Asset new_assets = 1; -
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.v18.resources.Asset new_assets = 1; -
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.v18.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:
getExistingAssetsListin interfaceApplyRecommendationOperation.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:
getExistingAssetsCountin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder- Returns:
- The count of existingAssets.
-
getExistingAssets
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:
getExistingAssetsin interfaceApplyRecommendationOperation.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:
getExistingAssetsBytesin interfaceApplyRecommendationOperation.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
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addAllExistingAssets(Iterable<String> values) 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.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopeValuein interfaceApplyRecommendationOperation.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.v18.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.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopein interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder- Returns:
- The scope.
-
setScope
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder setScope(ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope value) 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.v18.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.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setUnknownFields
public final ApplyRecommendationOperation.AdAssetApplyParameters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-
mergeUnknownFields
public final ApplyRecommendationOperation.AdAssetApplyParameters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationOperation.AdAssetApplyParameters.Builder>
-