Class Destination.Builder (0.1.0)

public static final class Destination.Builder extends GeneratedMessageV3.Builder<Destination.Builder> implements DestinationOrBuilder

The Google product you're sending data to. For example, a Google Ads account.

Protobuf type google.ads.datamanager.v1.Destination

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Destination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Destination.Builder
Overrides

build()

public Destination build()
Returns
Type Description
Destination

buildPartial()

public Destination buildPartial()
Returns
Type Description
Destination

clear()

public Destination.Builder clear()
Returns
Type Description
Destination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Destination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Destination.Builder
Overrides

clearLinkedAccount()

public Destination.Builder clearLinkedAccount()

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Destination.Builder

clearLoginAccount()

public Destination.Builder clearLoginAccount()

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Destination.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Destination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Destination.Builder
Overrides

clearOperatingAccount()

public Destination.Builder clearOperatingAccount()

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination.Builder

clearProductDestinationId()

public Destination.Builder clearProductDestinationId()

Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display & Video 360 audience ID or a Google Ads conversion action ID.

string product_destination_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination.Builder

This builder for chaining.

clearReference()

public Destination.Builder clearReference()

Optional. ID for this Destination resource, unique within the request. Use to reference this Destination in the IngestEventsRequest and IngestAudienceMembersRequest.

string reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Destination.Builder

This builder for chaining.

clone()

public Destination.Builder clone()
Returns
Type Description
Destination.Builder
Overrides

getDefaultInstanceForType()

public Destination getDefaultInstanceForType()
Returns
Type Description
Destination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLinkedAccount()

public ProductAccount getLinkedAccount()

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccount

The linkedAccount.

getLinkedAccountBuilder()

public ProductAccount.Builder getLinkedAccountBuilder()

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccount.Builder

getLinkedAccountOrBuilder()

public ProductAccountOrBuilder getLinkedAccountOrBuilder()

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccountOrBuilder

getLoginAccount()

public ProductAccount getLoginAccount()

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccount

The loginAccount.

getLoginAccountBuilder()

public ProductAccount.Builder getLoginAccountBuilder()

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccount.Builder

getLoginAccountOrBuilder()

public ProductAccountOrBuilder getLoginAccountOrBuilder()

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccountOrBuilder

getOperatingAccount()

public ProductAccount getOperatingAccount()

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductAccount

The operatingAccount.

getOperatingAccountBuilder()

public ProductAccount.Builder getOperatingAccountBuilder()

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductAccount.Builder

getOperatingAccountOrBuilder()

public ProductAccountOrBuilder getOperatingAccountOrBuilder()

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductAccountOrBuilder

getProductDestinationId()

public String getProductDestinationId()

Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display & Video 360 audience ID or a Google Ads conversion action ID.

string product_destination_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The productDestinationId.

getProductDestinationIdBytes()

public ByteString getProductDestinationIdBytes()

Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display & Video 360 audience ID or a Google Ads conversion action ID.

string product_destination_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for productDestinationId.

getReference()

public String getReference()

Optional. ID for this Destination resource, unique within the request. Use to reference this Destination in the IngestEventsRequest and IngestAudienceMembersRequest.

string reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reference.

getReferenceBytes()

public ByteString getReferenceBytes()

Optional. ID for this Destination resource, unique within the request. Use to reference this Destination in the IngestEventsRequest and IngestAudienceMembersRequest.

string reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reference.

hasLinkedAccount()

public boolean hasLinkedAccount()

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the linkedAccount field is set.

hasLoginAccount()

public boolean hasLoginAccount()

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the loginAccount field is set.

hasOperatingAccount()

public boolean hasOperatingAccount()

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the operatingAccount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Destination other)

public Destination.Builder mergeFrom(Destination other)
Parameter
Name Description
other Destination
Returns
Type Description
Destination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Destination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Destination.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Destination.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Destination.Builder
Overrides

mergeLinkedAccount(ProductAccount value)

public Destination.Builder mergeLinkedAccount(ProductAccount value)

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

mergeLoginAccount(ProductAccount value)

public Destination.Builder mergeLoginAccount(ProductAccount value)

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

mergeOperatingAccount(ProductAccount value)

public Destination.Builder mergeOperatingAccount(ProductAccount value)

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Destination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Destination.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Destination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Destination.Builder
Overrides

setLinkedAccount(ProductAccount value)

public Destination.Builder setLinkedAccount(ProductAccount value)

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

setLinkedAccount(ProductAccount.Builder builderForValue)

public Destination.Builder setLinkedAccount(ProductAccount.Builder builderForValue)

Optional. An account that the calling user's login_account has access to, through an established account link. For example, a data partner's login_account might have access to a client's linked_account. The partner might use this field to send data from the linked_account to another operating_account.

.google.ads.datamanager.v1.ProductAccount linked_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProductAccount.Builder
Returns
Type Description
Destination.Builder

setLoginAccount(ProductAccount value)

public Destination.Builder setLoginAccount(ProductAccount value)

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

setLoginAccount(ProductAccount.Builder builderForValue)

public Destination.Builder setLoginAccount(ProductAccount.Builder builderForValue)

Optional. The account used to make this API call. To add or remove data from the operating_account, this login_account must have write access to the operating_account. For example, a manager account of the operating_account, or an account with an established link to the operating_account.

.google.ads.datamanager.v1.ProductAccount login_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProductAccount.Builder
Returns
Type Description
Destination.Builder

setOperatingAccount(ProductAccount value)

public Destination.Builder setOperatingAccount(ProductAccount value)

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProductAccount
Returns
Type Description
Destination.Builder

setOperatingAccount(ProductAccount.Builder builderForValue)

public Destination.Builder setOperatingAccount(ProductAccount.Builder builderForValue)

Required. The account to send the data to or remove the data from.

.google.ads.datamanager.v1.ProductAccount operating_account = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ProductAccount.Builder
Returns
Type Description
Destination.Builder

setProductDestinationId(String value)

public Destination.Builder setProductDestinationId(String value)

Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display & Video 360 audience ID or a Google Ads conversion action ID.

string product_destination_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The productDestinationId to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setProductDestinationIdBytes(ByteString value)

public Destination.Builder setProductDestinationIdBytes(ByteString value)

Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display & Video 360 audience ID or a Google Ads conversion action ID.

string product_destination_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for productDestinationId to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setReference(String value)

public Destination.Builder setReference(String value)

Optional. ID for this Destination resource, unique within the request. Use to reference this Destination in the IngestEventsRequest and IngestAudienceMembersRequest.

string reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reference to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setReferenceBytes(ByteString value)

public Destination.Builder setReferenceBytes(ByteString value)

Optional. ID for this Destination resource, unique within the request. Use to reference this Destination in the IngestEventsRequest and IngestAudienceMembersRequest.

string reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for reference to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Destination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Destination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Destination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Destination.Builder
Overrides