Class AccountLink.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AccountLink.Builder>
com.google.ads.googleads.v18.resources.AccountLink.Builder
All Implemented Interfaces:
AccountLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.resources.AccountLink
  • Method Details

    • 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, 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, 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, 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>
    • mergeFrom

      public AccountLink.Builder mergeFrom(AccountLink other)
    • 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 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:
      IOException
    • getLinkedAccountCase

      public AccountLink.LinkedAccountCase getLinkedAccountCase()
      Specified by:
      getLinkedAccountCase in interface AccountLinkOrBuilder
    • clearLinkedAccount

      public AccountLink.Builder clearLinkedAccount()
    • getResourceName

      public 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(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.v18.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.v18.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       The status of the link.
       
      .google.ads.googleads.v18.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
      Specified by:
      getStatus in interface AccountLinkOrBuilder
      Returns:
      The status.
    • setStatus

       The status of the link.
       
      .google.ads.googleads.v18.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public AccountLink.Builder clearStatus()
       The status of the link.
       
      .google.ads.googleads.v18.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.v18.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.v18.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.
    • getType

       Output only. The type of the linked account.
       
      .google.ads.googleads.v18.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface AccountLinkOrBuilder
      Returns:
      The type.
    • setType

       Output only. The type of the linked account.
       
      .google.ads.googleads.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • getThirdPartyAppAnalyticsOrBuilder

      public ThirdPartyAppAnalyticsLinkIdentifierOrBuilder getThirdPartyAppAnalyticsOrBuilder()
       Immutable. A third party app analytics link.
       
      .google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getThirdPartyAppAnalyticsOrBuilder in interface AccountLinkOrBuilder
    • 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>