Class GoogleAdsLink.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
com.google.analytics.admin.v1beta.GoogleAdsLink.Builder
- All Implemented Interfaces:
GoogleAdsLinkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GoogleAdsLink
public static final class GoogleAdsLink.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
implements GoogleAdsLinkOrBuilder
A link between a Google Analytics property and a Google Ads account.Protobuf type
google.analytics.admin.v1beta.GoogleAdsLink-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Enable personalized advertising features with this integration.Output only.Output only.Output only.Immutable.Output only.Output only.com.google.protobuf.BoolValueEnable personalized advertising features with this integration.com.google.protobuf.BoolValue.BuilderEnable personalized advertising features with this integration.com.google.protobuf.BoolValueOrBuilderEnable personalized advertising features with this integration.booleanOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Immutable.com.google.protobuf.ByteStringImmutable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanEnable personalized advertising features with this integration.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) Enable personalized advertising features with this integration.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(GoogleAdsLink other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) Enable personalized advertising features with this integration.setAdsPersonalizationEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Enable personalized advertising features with this integration.setCanManageClients(boolean value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCreatorEmailAddress(String value) Output only.setCreatorEmailAddressBytes(com.google.protobuf.ByteString value) Output only.setCustomerId(String value) Immutable.setCustomerIdBytes(com.google.protobuf.ByteString value) Immutable.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.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<GoogleAdsLink.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<GoogleAdsLink.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<GoogleAdsLink.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<GoogleAdsLink.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
-
mergeFrom
public GoogleAdsLink.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<GoogleAdsLink.Builder>- Throws:
IOException
-
getName
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceGoogleAdsLinkOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceGoogleAdsLinkOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCustomerId
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getCustomerIdin interfaceGoogleAdsLinkOrBuilder- Returns:
- The customerId.
-
getCustomerIdBytes
public com.google.protobuf.ByteString getCustomerIdBytes()Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getCustomerIdBytesin interfaceGoogleAdsLinkOrBuilder- Returns:
- The bytes for customerId.
-
setCustomerId
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The customerId to set.- Returns:
- This builder for chaining.
-
clearCustomerId
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setCustomerIdBytes
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for customerId to set.- Returns:
- This builder for chaining.
-
getCanManageClients
public boolean getCanManageClients()Output only. If true, this link is for a Google Ads manager account.
bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCanManageClientsin interfaceGoogleAdsLinkOrBuilder- Returns:
- The canManageClients.
-
setCanManageClients
Output only. If true, this link is for a Google Ads manager account.
bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The canManageClients to set.- Returns:
- This builder for chaining.
-
clearCanManageClients
Output only. If true, this link is for a Google Ads manager account.
bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasAdsPersonalizationEnabled
public boolean hasAdsPersonalizationEnabled()Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;- Specified by:
hasAdsPersonalizationEnabledin interfaceGoogleAdsLinkOrBuilder- Returns:
- Whether the adsPersonalizationEnabled field is set.
-
getAdsPersonalizationEnabled
public com.google.protobuf.BoolValue getAdsPersonalizationEnabled()Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;- Specified by:
getAdsPersonalizationEnabledin interfaceGoogleAdsLinkOrBuilder- Returns:
- The adsPersonalizationEnabled.
-
setAdsPersonalizationEnabled
Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5; -
setAdsPersonalizationEnabled
public GoogleAdsLink.Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5; -
mergeAdsPersonalizationEnabled
Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5; -
clearAdsPersonalizationEnabled
Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5; -
getAdsPersonalizationEnabledBuilder
public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder()Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5; -
getAdsPersonalizationEnabledOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder()Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;- Specified by:
getAdsPersonalizationEnabledOrBuilderin interfaceGoogleAdsLinkOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceGoogleAdsLinkOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceGoogleAdsLinkOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceGoogleAdsLinkOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceGoogleAdsLinkOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceGoogleAdsLinkOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceGoogleAdsLinkOrBuilder
-
getCreatorEmailAddress
Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatorEmailAddressin interfaceGoogleAdsLinkOrBuilder- Returns:
- The creatorEmailAddress.
-
getCreatorEmailAddressBytes
public com.google.protobuf.ByteString getCreatorEmailAddressBytes()Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatorEmailAddressBytesin interfaceGoogleAdsLinkOrBuilder- Returns:
- The bytes for creatorEmailAddress.
-
setCreatorEmailAddress
Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The creatorEmailAddress to set.- Returns:
- This builder for chaining.
-
clearCreatorEmailAddress
Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCreatorEmailAddressBytes
Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for creatorEmailAddress to set.- Returns:
- This builder for chaining.
-