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.v15.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,java.lang.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 typegoogle.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParameters
-
-
Method Summary
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public ApplyRecommendationOperation.AdAssetApplyParameters getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApplyRecommendationOperation.AdAssetApplyParameters build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApplyRecommendationOperation.AdAssetApplyParameters buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApplyRecommendationOperation.AdAssetApplyParameters.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, java.lang.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, java.lang.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, java.lang.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
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder mergeFrom(ApplyRecommendationOperation.AdAssetApplyParameters other)
-
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 java.io.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:
java.io.IOException
-
getNewAssetsList
public java.util.List<Asset> 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.v15.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.v15.resources.Asset new_assets = 1;- Specified by:
getNewAssetsCountin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
getNewAssets
public Asset getNewAssets(int index)
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v15.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.v15.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.v15.resources.Asset new_assets = 1;
-
addNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addNewAssets(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.v15.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.v15.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.v15.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.v15.resources.Asset new_assets = 1;
-
addAllNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addAllNewAssets(java.lang.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.v15.resources.Asset new_assets = 1;
-
clearNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder 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.v15.resources.Asset new_assets = 1;
-
removeNewAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder removeNewAssets(int index)
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v15.resources.Asset new_assets = 1;
-
getNewAssetsBuilder
public Asset.Builder getNewAssetsBuilder(int index)
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v15.resources.Asset new_assets = 1;
-
getNewAssetsOrBuilder
public AssetOrBuilder getNewAssetsOrBuilder(int index)
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v15.resources.Asset new_assets = 1;- Specified by:
getNewAssetsOrBuilderin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
getNewAssetsOrBuilderList
public java.util.List<? extends AssetOrBuilder> 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.v15.resources.Asset new_assets = 1;- Specified by:
getNewAssetsOrBuilderListin interfaceApplyRecommendationOperation.AdAssetApplyParametersOrBuilder
-
addNewAssetsBuilder
public Asset.Builder 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.v15.resources.Asset new_assets = 1;
-
addNewAssetsBuilder
public Asset.Builder addNewAssetsBuilder(int index)
The assets to create and attach to a scope. This may be combined with existing_assets in the same call.
repeated .google.ads.googleads.v15.resources.Asset new_assets = 1;
-
getNewAssetsBuilderList
public java.util.List<Asset.Builder> 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.v15.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
public java.lang.String getExistingAssets(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:
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, java.lang.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
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addExistingAssets(java.lang.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:
value- The existingAssets to add.- Returns:
- This builder for chaining.
-
addAllExistingAssets
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder addAllExistingAssets(java.lang.Iterable<java.lang.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
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder 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.v15.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
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder setScopeValue(int 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.v15.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
public ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope 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.v15.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.v15.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope scope = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
public ApplyRecommendationOperation.AdAssetApplyParameters.Builder 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.v15.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>
-
-