Class CampaignAssetSet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
- com.google.ads.googleads.v9.resources.CampaignAssetSet.Builder
-
- All Implemented Interfaces:
CampaignAssetSetOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CampaignAssetSet
public static final class CampaignAssetSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder> implements CampaignAssetSetOrBuilder
CampaignAssetSet is the linkage between a campaign and an asset set. Adding a CampaignAssetSet links an asset set with a campaign.
Protobuf typegoogle.ads.googleads.v9.resources.CampaignAssetSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignAssetSet.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignAssetSet
build()
CampaignAssetSet
buildPartial()
CampaignAssetSet.Builder
clear()
CampaignAssetSet.Builder
clearAssetSet()
Immutable.CampaignAssetSet.Builder
clearCampaign()
Immutable.CampaignAssetSet.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CampaignAssetSet.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CampaignAssetSet.Builder
clearResourceName()
Immutable.CampaignAssetSet.Builder
clearStatus()
Output only.CampaignAssetSet.Builder
clone()
java.lang.String
getAssetSet()
Immutable.com.google.protobuf.ByteString
getAssetSetBytes()
Immutable.java.lang.String
getCampaign()
Immutable.com.google.protobuf.ByteString
getCampaignBytes()
Immutable.CampaignAssetSet
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.AssetSetLinkStatusEnum.AssetSetLinkStatus
getStatus()
Output only.int
getStatusValue()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CampaignAssetSet.Builder
mergeFrom(CampaignAssetSet other)
CampaignAssetSet.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CampaignAssetSet.Builder
mergeFrom(com.google.protobuf.Message other)
CampaignAssetSet.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CampaignAssetSet.Builder
setAssetSet(java.lang.String value)
Immutable.CampaignAssetSet.Builder
setAssetSetBytes(com.google.protobuf.ByteString value)
Immutable.CampaignAssetSet.Builder
setCampaign(java.lang.String value)
Immutable.CampaignAssetSet.Builder
setCampaignBytes(com.google.protobuf.ByteString value)
Immutable.CampaignAssetSet.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CampaignAssetSet.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CampaignAssetSet.Builder
setResourceName(java.lang.String value)
Immutable.CampaignAssetSet.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.CampaignAssetSet.Builder
setStatus(AssetSetLinkStatusEnum.AssetSetLinkStatus value)
Output only.CampaignAssetSet.Builder
setStatusValue(int value)
Output only.CampaignAssetSet.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
clear
public CampaignAssetSet.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
getDefaultInstanceForType
public CampaignAssetSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CampaignAssetSet build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CampaignAssetSet buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CampaignAssetSet.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
setField
public CampaignAssetSet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
clearField
public CampaignAssetSet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
clearOneof
public CampaignAssetSet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
setRepeatedField
public CampaignAssetSet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
addRepeatedField
public CampaignAssetSet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
mergeFrom
public CampaignAssetSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CampaignAssetSet.Builder>
-
mergeFrom
public CampaignAssetSet.Builder mergeFrom(CampaignAssetSet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
mergeFrom
public CampaignAssetSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CampaignAssetSet.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public CampaignAssetSet.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public CampaignAssetSet.Builder clearResourceName()
Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CampaignAssetSet.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getCampaign
public java.lang.String getCampaign()
Immutable. The campaign to which this asset set is linked.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaign
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Immutable. The campaign to which this asset set is linked.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getCampaignBytes
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The bytes for campaign.
-
setCampaign
public CampaignAssetSet.Builder setCampaign(java.lang.String value)
Immutable. The campaign to which this asset set is linked.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
public CampaignAssetSet.Builder clearCampaign()
Immutable. The campaign to which this asset set is linked.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setCampaignBytes
public CampaignAssetSet.Builder setCampaignBytes(com.google.protobuf.ByteString value)
Immutable. The campaign to which this asset set is linked.
string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
getAssetSet
public java.lang.String getAssetSet()
Immutable. The asset set which is linked to the campaign.
string asset_set = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getAssetSet
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The assetSet.
-
getAssetSetBytes
public com.google.protobuf.ByteString getAssetSetBytes()
Immutable. The asset set which is linked to the campaign.
string asset_set = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getAssetSetBytes
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The bytes for assetSet.
-
setAssetSet
public CampaignAssetSet.Builder setAssetSet(java.lang.String value)
Immutable. The asset set which is linked to the campaign.
string asset_set = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The assetSet to set.- Returns:
- This builder for chaining.
-
clearAssetSet
public CampaignAssetSet.Builder clearAssetSet()
Immutable. The asset set which is linked to the campaign.
string asset_set = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setAssetSetBytes
public CampaignAssetSet.Builder setAssetSetBytes(com.google.protobuf.ByteString value)
Immutable. The asset set which is linked to the campaign.
string asset_set = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for assetSet to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
Output only. The status of the campaign asset set asset. Read-only.
.google.ads.googleads.v9.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusValue
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public CampaignAssetSet.Builder setStatusValue(int value)
Output only. The status of the campaign asset set asset. Read-only.
.google.ads.googleads.v9.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public AssetSetLinkStatusEnum.AssetSetLinkStatus getStatus()
Output only. The status of the campaign asset set asset. Read-only.
.google.ads.googleads.v9.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatus
in interfaceCampaignAssetSetOrBuilder
- Returns:
- The status.
-
setStatus
public CampaignAssetSet.Builder setStatus(AssetSetLinkStatusEnum.AssetSetLinkStatus value)
Output only. The status of the campaign asset set asset. Read-only.
.google.ads.googleads.v9.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public CampaignAssetSet.Builder clearStatus()
Output only. The status of the campaign asset set asset. Read-only.
.google.ads.googleads.v9.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CampaignAssetSet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
mergeUnknownFields
public final CampaignAssetSet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CampaignAssetSet.Builder>
-
-