Class AdGroupAdAssetCombinationView.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdGroupAdAssetCombinationView.Builder>
com.google.ads.googleads.v23.resources.AdGroupAdAssetCombinationView.Builder
- All Implemented Interfaces:
AdGroupAdAssetCombinationViewOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdGroupAdAssetCombinationView
public static final class AdGroupAdAssetCombinationView.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdGroupAdAssetCombinationView.Builder>
implements AdGroupAdAssetCombinationViewOrBuilder
A view on the usage of ad group ad asset combination. Now we only support AdGroupAdAssetCombinationView for Responsive Search Ads, with more ad types planned for the future.Protobuf type
google.ads.googleads.v23.resources.AdGroupAdAssetCombinationView-
Method Summary
Modifier and TypeMethodDescriptionaddAllServedAssets(Iterable<? extends AssetUsage> values) Output only.addServedAssets(int index, AssetUsage value) Output only.addServedAssets(int index, AssetUsage.Builder builderForValue) Output only.addServedAssets(AssetUsage value) Output only.addServedAssets(AssetUsage.Builder builderForValue) Output only.Output only.addServedAssetsBuilder(int index) Output only.build()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.getServedAssets(int index) Output only.getServedAssetsBuilder(int index) Output only.Output only.intOutput only.Output only.getServedAssetsOrBuilder(int index) Output only.List<? extends AssetUsageOrBuilder>Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeServedAssets(int index) Output only.setEnabled(boolean value) Output only.setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.setServedAssets(int index, AssetUsage value) Output only.setServedAssets(int index, AssetUsage.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AdGroupAdAssetCombinationView.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AdGroupAdAssetCombinationView.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<AdGroupAdAssetCombinationView.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdGroupAdAssetCombinationView.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdGroupAdAssetCombinationView.Builder>
-
mergeFrom
public AdGroupAdAssetCombinationView.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<AdGroupAdAssetCombinationView.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the ad group ad asset combination view. The combination ID is 128 bits long, where the upper 64 bits are stored in asset_combination_id_high, and the lower 64 bits are stored in asset_combination_id_low. AdGroupAd Asset Combination view resource names have the form: `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceAdGroupAdAssetCombinationViewOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the ad group ad asset combination view. The combination ID is 128 bits long, where the upper 64 bits are stored in asset_combination_id_high, and the lower 64 bits are stored in asset_combination_id_low. AdGroupAd Asset Combination view resource names have the form: `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceAdGroupAdAssetCombinationViewOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the ad group ad asset combination view. The combination ID is 128 bits long, where the upper 64 bits are stored in asset_combination_id_high, and the lower 64 bits are stored in asset_combination_id_low. AdGroupAd Asset Combination view resource names have the form: `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
Output only. The resource name of the ad group ad asset combination view. The combination ID is 128 bits long, where the upper 64 bits are stored in asset_combination_id_high, and the lower 64 bits are stored in asset_combination_id_low. AdGroupAd Asset Combination view resource names have the form: `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public AdGroupAdAssetCombinationView.Builder setResourceNameBytes(com.google.protobuf.ByteString value) Output only. The resource name of the ad group ad asset combination view. The combination ID is 128 bits long, where the upper 64 bits are stored in asset_combination_id_high, and the lower 64 bits are stored in asset_combination_id_low. AdGroupAd Asset Combination view resource names have the form: `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getServedAssetsList
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServedAssetsListin interfaceAdGroupAdAssetCombinationViewOrBuilder
-
getServedAssetsCount
public int getServedAssetsCount()Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServedAssetsCountin interfaceAdGroupAdAssetCombinationViewOrBuilder
-
getServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServedAssetsin interfaceAdGroupAdAssetCombinationViewOrBuilder
-
setServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setServedAssets
public AdGroupAdAssetCombinationView.Builder setServedAssets(int index, AssetUsage.Builder builderForValue) Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addServedAssets
public AdGroupAdAssetCombinationView.Builder addServedAssets(int index, AssetUsage.Builder builderForValue) Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllServedAssets
public AdGroupAdAssetCombinationView.Builder addAllServedAssets(Iterable<? extends AssetUsage> values) Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeServedAssets
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getServedAssetsBuilder
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getServedAssetsOrBuilder
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServedAssetsOrBuilderin interfaceAdGroupAdAssetCombinationViewOrBuilder
-
getServedAssetsOrBuilderList
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServedAssetsOrBuilderListin interfaceAdGroupAdAssetCombinationViewOrBuilder
-
addServedAssetsBuilder
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addServedAssetsBuilder
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getServedAssetsBuilderList
Output only. Served assets.
repeated .google.ads.googleads.v23.common.AssetUsage served_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasEnabled
public boolean hasEnabled()Output only. The status between the asset combination and the latest version of the ad. If true, the asset combination is linked to the latest version of the ad. If false, it means the link once existed but has been removed and is no longer present in the latest version of the ad.
optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEnabledin interfaceAdGroupAdAssetCombinationViewOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()Output only. The status between the asset combination and the latest version of the ad. If true, the asset combination is linked to the latest version of the ad. If false, it means the link once existed but has been removed and is no longer present in the latest version of the ad.
optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEnabledin interfaceAdGroupAdAssetCombinationViewOrBuilder- Returns:
- The enabled.
-
setEnabled
Output only. The status between the asset combination and the latest version of the ad. If true, the asset combination is linked to the latest version of the ad. If false, it means the link once existed but has been removed and is no longer present in the latest version of the ad.
optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Output only. The status between the asset combination and the latest version of the ad. If true, the asset combination is linked to the latest version of the ad. If false, it means the link once existed but has been removed and is no longer present in the latest version of the ad.
optional bool enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-