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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
    • clear

      public GoogleAdsLink.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GoogleAdsLink.Builder>
    • getDefaultInstanceForType

      public GoogleAdsLink getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GoogleAdsLink build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GoogleAdsLink buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GoogleAdsLink.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GoogleAdsLink.Builder>
    • mergeFrom

      public GoogleAdsLink.Builder mergeFrom(GoogleAdsLink other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GoogleAdsLink.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface GoogleAdsLinkOrBuilder
      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:
      getNameBytes in interface GoogleAdsLinkOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GoogleAdsLink.Builder setName(String value)
       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

      public GoogleAdsLink.Builder 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

      public GoogleAdsLink.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getCustomerId()
       Immutable. Google Ads customer ID.
       
      string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCustomerId in interface GoogleAdsLinkOrBuilder
      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:
      getCustomerIdBytes in interface GoogleAdsLinkOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public GoogleAdsLink.Builder setCustomerId(String value)
       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

      public GoogleAdsLink.Builder clearCustomerId()
       Immutable. Google Ads customer ID.
       
      string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public GoogleAdsLink.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       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:
      getCanManageClients in interface GoogleAdsLinkOrBuilder
      Returns:
      The canManageClients.
    • setCanManageClients

      public GoogleAdsLink.Builder setCanManageClients(boolean value)
       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

      public GoogleAdsLink.Builder 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:
      hasAdsPersonalizationEnabled in interface GoogleAdsLinkOrBuilder
      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:
      getAdsPersonalizationEnabled in interface GoogleAdsLinkOrBuilder
      Returns:
      The adsPersonalizationEnabled.
    • setAdsPersonalizationEnabled

      public GoogleAdsLink.Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value)
       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

      public GoogleAdsLink.Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value)
       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

      public GoogleAdsLink.Builder 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:
      getAdsPersonalizationEnabledOrBuilder in interface GoogleAdsLinkOrBuilder
    • 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:
      hasCreateTime in interface GoogleAdsLinkOrBuilder
      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:
      getCreateTime in interface GoogleAdsLinkOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public GoogleAdsLink.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this link was originally created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public GoogleAdsLink.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this link was originally created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public GoogleAdsLink.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this link was originally created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public GoogleAdsLink.Builder 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:
      getCreateTimeOrBuilder in interface GoogleAdsLinkOrBuilder
    • 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:
      hasUpdateTime in interface GoogleAdsLinkOrBuilder
      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:
      getUpdateTime in interface GoogleAdsLinkOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public GoogleAdsLink.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this link was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public GoogleAdsLink.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this link was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public GoogleAdsLink.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this link was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public GoogleAdsLink.Builder 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:
      getUpdateTimeOrBuilder in interface GoogleAdsLinkOrBuilder
    • getCreatorEmailAddress

      public String 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:
      getCreatorEmailAddress in interface GoogleAdsLinkOrBuilder
      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:
      getCreatorEmailAddressBytes in interface GoogleAdsLinkOrBuilder
      Returns:
      The bytes for creatorEmailAddress.
    • setCreatorEmailAddress

      public GoogleAdsLink.Builder setCreatorEmailAddress(String value)
       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

      public GoogleAdsLink.Builder 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

      public GoogleAdsLink.Builder setCreatorEmailAddressBytes(com.google.protobuf.ByteString value)
       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.