Class AccountLink.Builder

  • All Implemented Interfaces:
    AccountLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    AccountLink

    public static final class AccountLink.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
    implements AccountLinkOrBuilder
     Represents the data sharing connection between a Google Ads account and
     another account
     
    Protobuf type google.ads.googleads.v9.resources.AccountLink
    • Method Detail

      • getDescriptor

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

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

        public AccountLink.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.GeneratedMessageV3.Builder<AccountLink.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.GeneratedMessageV3.Builder<AccountLink.Builder>
      • getDefaultInstanceForType

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

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

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

        public AccountLink.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • setField

        public AccountLink.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • clearField

        public AccountLink.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • clearOneof

        public AccountLink.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • setRepeatedField

        public AccountLink.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • addRepeatedField

        public AccountLink.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • mergeFrom

        public AccountLink.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<AccountLink.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • mergeFrom

        public AccountLink.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.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<AccountLink.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. Resource name of the account link.
         AccountLink resource names have the form:
         `customers/{customer_id}/accountLinks/{account_link_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface AccountLinkOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. Resource name of the account link.
         AccountLink resource names have the form:
         `customers/{customer_id}/accountLinks/{account_link_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface AccountLinkOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public AccountLink.Builder setResourceName​(java.lang.String value)
         Immutable. Resource name of the account link.
         AccountLink resource names have the form:
         `customers/{customer_id}/accountLinks/{account_link_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public AccountLink.Builder clearResourceName()
         Immutable. Resource name of the account link.
         AccountLink resource names have the form:
         `customers/{customer_id}/accountLinks/{account_link_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public AccountLink.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. Resource name of the account link.
         AccountLink resource names have the form:
         `customers/{customer_id}/accountLinks/{account_link_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasAccountLinkId

        public boolean hasAccountLinkId()
         Output only. The ID of the link.
         This field is read only.
         
        optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAccountLinkId in interface AccountLinkOrBuilder
        Returns:
        Whether the accountLinkId field is set.
      • getAccountLinkId

        public long getAccountLinkId()
         Output only. The ID of the link.
         This field is read only.
         
        optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccountLinkId in interface AccountLinkOrBuilder
        Returns:
        The accountLinkId.
      • setAccountLinkId

        public AccountLink.Builder setAccountLinkId​(long value)
         Output only. The ID of the link.
         This field is read only.
         
        optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The accountLinkId to set.
        Returns:
        This builder for chaining.
      • clearAccountLinkId

        public AccountLink.Builder clearAccountLinkId()
         Output only. The ID of the link.
         This field is read only.
         
        optional int64 account_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         The status of the link.
         
        .google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
        Specified by:
        getStatusValue in interface AccountLinkOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public AccountLink.Builder setStatusValue​(int value)
         The status of the link.
         
        .google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public AccountLink.Builder clearStatus()
         The status of the link.
         
        .google.ads.googleads.v9.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Output only. The type of the linked account.
         
        .google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTypeValue in interface AccountLinkOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public AccountLink.Builder setTypeValue​(int value)
         Output only. The type of the linked account.
         
        .google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public AccountLink.Builder setType​(LinkedAccountTypeEnum.LinkedAccountType value)
         Output only. The type of the linked account.
         
        .google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public AccountLink.Builder clearType()
         Output only. The type of the linked account.
         
        .google.ads.googleads.v9.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasThirdPartyAppAnalytics

        public boolean hasThirdPartyAppAnalytics()
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasThirdPartyAppAnalytics in interface AccountLinkOrBuilder
        Returns:
        Whether the thirdPartyAppAnalytics field is set.
      • getThirdPartyAppAnalytics

        public ThirdPartyAppAnalyticsLinkIdentifier getThirdPartyAppAnalytics()
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getThirdPartyAppAnalytics in interface AccountLinkOrBuilder
        Returns:
        The thirdPartyAppAnalytics.
      • setThirdPartyAppAnalytics

        public AccountLink.Builder setThirdPartyAppAnalytics​(ThirdPartyAppAnalyticsLinkIdentifier value)
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      • setThirdPartyAppAnalytics

        public AccountLink.Builder setThirdPartyAppAnalytics​(ThirdPartyAppAnalyticsLinkIdentifier.Builder builderForValue)
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      • mergeThirdPartyAppAnalytics

        public AccountLink.Builder mergeThirdPartyAppAnalytics​(ThirdPartyAppAnalyticsLinkIdentifier value)
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      • clearThirdPartyAppAnalytics

        public AccountLink.Builder clearThirdPartyAppAnalytics()
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      • getThirdPartyAppAnalyticsBuilder

        public ThirdPartyAppAnalyticsLinkIdentifier.Builder getThirdPartyAppAnalyticsBuilder()
         Immutable. A third party app analytics link.
         
        .google.ads.googleads.v9.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      • hasDataPartner

        public boolean hasDataPartner()
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDataPartner in interface AccountLinkOrBuilder
        Returns:
        Whether the dataPartner field is set.
      • getDataPartner

        public DataPartnerLinkIdentifier getDataPartner()
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDataPartner in interface AccountLinkOrBuilder
        Returns:
        The dataPartner.
      • setDataPartner

        public AccountLink.Builder setDataPartner​(DataPartnerLinkIdentifier value)
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setDataPartner

        public AccountLink.Builder setDataPartner​(DataPartnerLinkIdentifier.Builder builderForValue)
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeDataPartner

        public AccountLink.Builder mergeDataPartner​(DataPartnerLinkIdentifier value)
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearDataPartner

        public AccountLink.Builder clearDataPartner()
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDataPartnerBuilder

        public DataPartnerLinkIdentifier.Builder getDataPartnerBuilder()
         Output only. Data partner link.
         
        .google.ads.googleads.v9.resources.DataPartnerLinkIdentifier data_partner = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasGoogleAds

        public boolean hasGoogleAds()
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasGoogleAds in interface AccountLinkOrBuilder
        Returns:
        Whether the googleAds field is set.
      • getGoogleAds

        public GoogleAdsLinkIdentifier getGoogleAds()
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGoogleAds in interface AccountLinkOrBuilder
        Returns:
        The googleAds.
      • setGoogleAds

        public AccountLink.Builder setGoogleAds​(GoogleAdsLinkIdentifier value)
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setGoogleAds

        public AccountLink.Builder setGoogleAds​(GoogleAdsLinkIdentifier.Builder builderForValue)
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeGoogleAds

        public AccountLink.Builder mergeGoogleAds​(GoogleAdsLinkIdentifier value)
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearGoogleAds

        public AccountLink.Builder clearGoogleAds()
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getGoogleAdsBuilder

        public GoogleAdsLinkIdentifier.Builder getGoogleAdsBuilder()
         Output only. Google Ads link.
         
        .google.ads.googleads.v9.resources.GoogleAdsLinkIdentifier google_ads = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final AccountLink.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
      • mergeUnknownFields

        public final AccountLink.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>