Class SearchAds360Link.Builder (0.62.0)

public static final class SearchAds360Link.Builder extends GeneratedMessageV3.Builder<SearchAds360Link.Builder> implements SearchAds360LinkOrBuilder

A link between a GA4 property and a Search Ads 360 entity.

Protobuf type google.analytics.admin.v1alpha.SearchAds360Link

Static Methods

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

Methods

public SearchAds360Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchAds360Link.Builder
Overrides
public SearchAds360Link build()
Returns
Type Description
SearchAds360Link
public SearchAds360Link buildPartial()
Returns
Type Description
SearchAds360Link
public SearchAds360Link.Builder clear()
Returns
Type Description
SearchAds360Link.Builder
Overrides
public SearchAds360Link.Builder clearAdsPersonalizationEnabled()

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder clearAdvertiserDisplayName()

Output only. The display name of the Search Ads 360 Advertiser. Allows users to easily identify the linked resource.

string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder clearAdvertiserId()

Immutable. This field represents the Advertiser ID of the Search Ads 360 Advertiser. that has been linked.

string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder clearCampaignDataSharingEnabled()

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder clearCostDataSharingEnabled()

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

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

Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId}

Note: linkId is not the Search Ads 360 advertiser ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

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

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder clone()
Returns
Type Description
SearchAds360Link.Builder
Overrides
public BoolValue getAdsPersonalizationEnabled()

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Returns
Type Description
BoolValue

The adsPersonalizationEnabled.

public BoolValue.Builder getAdsPersonalizationEnabledBuilder()

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Returns
Type Description
Builder
public BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder()

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Returns
Type Description
BoolValueOrBuilder
public String getAdvertiserDisplayName()

Output only. The display name of the Search Ads 360 Advertiser. Allows users to easily identify the linked resource.

string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The advertiserDisplayName.

public ByteString getAdvertiserDisplayNameBytes()

Output only. The display name of the Search Ads 360 Advertiser. Allows users to easily identify the linked resource.

string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for advertiserDisplayName.

public String getAdvertiserId()

Immutable. This field represents the Advertiser ID of the Search Ads 360 Advertiser. that has been linked.

string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The advertiserId.

public ByteString getAdvertiserIdBytes()

Immutable. This field represents the Advertiser ID of the Search Ads 360 Advertiser. that has been linked.

string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for advertiserId.

public BoolValue getCampaignDataSharingEnabled()

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BoolValue

The campaignDataSharingEnabled.

public BoolValue.Builder getCampaignDataSharingEnabledBuilder()

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Builder
public BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder()

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BoolValueOrBuilder
public BoolValue getCostDataSharingEnabled()

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BoolValue

The costDataSharingEnabled.

public BoolValue.Builder getCostDataSharingEnabledBuilder()

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Builder
public BoolValueOrBuilder getCostDataSharingEnabledOrBuilder()

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BoolValueOrBuilder
public SearchAds360Link getDefaultInstanceForType()
Returns
Type Description
SearchAds360Link
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getName()

Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId}

Note: linkId is not the Search Ads 360 advertiser ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId}

Note: linkId is not the Search Ads 360 advertiser ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

public BoolValue getSiteStatsSharingEnabled()

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Returns
Type Description
BoolValue

The siteStatsSharingEnabled.

public BoolValue.Builder getSiteStatsSharingEnabledBuilder()

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Returns
Type Description
Builder
public BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder()

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Returns
Type Description
BoolValueOrBuilder
public boolean hasAdsPersonalizationEnabled()

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Returns
Type Description
boolean

Whether the adsPersonalizationEnabled field is set.

public boolean hasCampaignDataSharingEnabled()

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the campaignDataSharingEnabled field is set.

public boolean hasCostDataSharingEnabled()

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the costDataSharingEnabled field is set.

public boolean hasSiteStatsSharingEnabled()

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Returns
Type Description
boolean

Whether the siteStatsSharingEnabled field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public SearchAds360Link.Builder mergeAdsPersonalizationEnabled(BoolValue value)

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeCampaignDataSharingEnabled(BoolValue value)

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeCostDataSharingEnabled(BoolValue value)

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeFrom(SearchAds360Link other)
Parameter
Name Description
other SearchAds360Link
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchAds360Link.Builder
Overrides
Exceptions
Type Description
IOException
public SearchAds360Link.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchAds360Link.Builder
Overrides
public SearchAds360Link.Builder mergeSiteStatsSharingEnabled(BoolValue value)

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public final SearchAds360Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchAds360Link.Builder
Overrides
public SearchAds360Link.Builder setAdsPersonalizationEnabled(BoolValue value)

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setAdsPersonalizationEnabled(BoolValue.Builder builderForValue)

Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue ads_personalization_enabled = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setAdvertiserDisplayName(String value)

Output only. The display name of the Search Ads 360 Advertiser. Allows users to easily identify the linked resource.

string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The advertiserDisplayName to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setAdvertiserDisplayNameBytes(ByteString value)

Output only. The display name of the Search Ads 360 Advertiser. Allows users to easily identify the linked resource.

string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for advertiserDisplayName to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setAdvertiserId(String value)

Immutable. This field represents the Advertiser ID of the Search Ads 360 Advertiser. that has been linked.

string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The advertiserId to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setAdvertiserIdBytes(ByteString value)

Immutable. This field represents the Advertiser ID of the Search Ads 360 Advertiser. that has been linked.

string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for advertiserId to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setCampaignDataSharingEnabled(BoolValue value)

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setCampaignDataSharingEnabled(BoolValue.Builder builderForValue)

Immutable. Enables the import of campaign data from Search Ads 360 into the GA4 property. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setCostDataSharingEnabled(BoolValue value)

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setCostDataSharingEnabled(BoolValue.Builder builderForValue)

Immutable. Enables the import of cost data from Search Ads 360 to the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Search Ads 360 product. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchAds360Link.Builder
Overrides
public SearchAds360Link.Builder setName(String value)

Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId}

Note: linkId is not the Search Ads 360 advertiser ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setNameBytes(ByteString value)

Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId}

Note: linkId is not the Search Ads 360 advertiser ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SearchAds360Link.Builder

This builder for chaining.

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

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
SearchAds360Link.Builder
public SearchAds360Link.Builder setSiteStatsSharingEnabled(BoolValue.Builder builderForValue)

Enables export of site stats with this integration. If this field is not set on create, it will be defaulted to true.

.google.protobuf.BoolValue site_stats_sharing_enabled = 7;

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