Class SearchAds360Link.Builder (0.47.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
TypeDescription
Descriptor

Methods

public SearchAds360Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchAds360Link.Builder
Overrides
public SearchAds360Link build()
Returns
TypeDescription
SearchAds360Link
public SearchAds360Link buildPartial()
Returns
TypeDescription
SearchAds360Link
public SearchAds360Link.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SearchAds360Link.Builder
public SearchAds360Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchAds360Link.Builder
public SearchAds360Link.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BoolValueOrBuilder
public SearchAds360Link getDefaultInstanceForType()
Returns
TypeDescription
SearchAds360Link
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the siteStatsSharingEnabled field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeFrom(SearchAds360Link other)
Parameter
NameDescription
otherSearchAds360Link
Returns
TypeDescription
SearchAds360Link.Builder
public SearchAds360Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchAds360Link.Builder
Overrides
Exceptions
TypeDescription
IOException
public SearchAds360Link.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
SearchAds360Link.Builder
public final SearchAds360Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The advertiserDisplayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for advertiserDisplayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The advertiserId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for advertiserId to set.

Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SearchAds360Link.Builder
public SearchAds360Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SearchAds360Link.Builder

This builder for chaining.

public SearchAds360Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueBoolValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SearchAds360Link.Builder
public final SearchAds360Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchAds360Link.Builder
Overrides