Class ProductLinkInvitation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProductLinkInvitation.Builder>
com.google.ads.googleads.v18.resources.ProductLinkInvitation.Builder
All Implemented Interfaces:
ProductLinkInvitationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProductLinkInvitation

public static final class ProductLinkInvitation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProductLinkInvitation.Builder> implements ProductLinkInvitationOrBuilder
 Represents an invitation for data sharing connection between a Google Ads
 account and another account.
 
Protobuf type google.ads.googleads.v18.resources.ProductLinkInvitation
  • 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<ProductLinkInvitation.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<ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • getDefaultInstanceForType

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

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

      public ProductLinkInvitation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ProductLinkInvitation.Builder>
    • setField

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • clearField

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • clearOneof

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • setRepeatedField

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • addRepeatedField

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • mergeFrom

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • mergeFrom

    • isInitialized

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

      public ProductLinkInvitation.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<ProductLinkInvitation.Builder>
      Throws:
      IOException
    • getInvitedAccountCase

      public ProductLinkInvitation.InvitedAccountCase getInvitedAccountCase()
      Specified by:
      getInvitedAccountCase in interface ProductLinkInvitationOrBuilder
    • clearInvitedAccount

      public ProductLinkInvitation.Builder clearInvitedAccount()
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of a product link invitation.
       Product link invitation resource names have the form:
      
       `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface ProductLinkInvitationOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of a product link invitation.
       Product link invitation resource names have the form:
      
       `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface ProductLinkInvitationOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public ProductLinkInvitation.Builder setResourceName(String value)
       Immutable. The resource name of a product link invitation.
       Product link invitation resource names have the form:
      
       `customers/{customer_id}/productLinkInvitations/{product_link_invitation_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 ProductLinkInvitation.Builder clearResourceName()
       Immutable. The resource name of a product link invitation.
       Product link invitation resource names have the form:
      
       `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public ProductLinkInvitation.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of a product link invitation.
       Product link invitation resource names have the form:
      
       `customers/{customer_id}/productLinkInvitations/{product_link_invitation_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.
    • getProductLinkInvitationId

      public long getProductLinkInvitationId()
       Output only. The ID of the product link invitation.
       This field is read only.
       
      int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductLinkInvitationId in interface ProductLinkInvitationOrBuilder
      Returns:
      The productLinkInvitationId.
    • setProductLinkInvitationId

      public ProductLinkInvitation.Builder setProductLinkInvitationId(long value)
       Output only. The ID of the product link invitation.
       This field is read only.
       
      int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The productLinkInvitationId to set.
      Returns:
      This builder for chaining.
    • clearProductLinkInvitationId

      public ProductLinkInvitation.Builder clearProductLinkInvitationId()
       Output only. The ID of the product link invitation.
       This field is read only.
       
      int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the product link invitation.
       This field is read only.
       
      .google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface ProductLinkInvitationOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public ProductLinkInvitation.Builder setStatusValue(int value)
       Output only. The status of the product link invitation.
       This field is read only.
       
      .google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       Output only. The status of the product link invitation.
       This field is read only.
       
      .google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface ProductLinkInvitationOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. The status of the product link invitation.
       This field is read only.
       
      .google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public ProductLinkInvitation.Builder clearStatus()
       Output only. The status of the product link invitation.
       This field is read only.
       
      .google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of the invited account.
       This field is read only and can be used for filtering invitations with
       {@code GoogleAdsService.SearchGoogleAdsRequest}.
       
      .google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface ProductLinkInvitationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ProductLinkInvitation.Builder setTypeValue(int value)
       Output only. The type of the invited account.
       This field is read only and can be used for filtering invitations with
       {@code GoogleAdsService.SearchGoogleAdsRequest}.
       
      .google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.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 invited account.
       This field is read only and can be used for filtering invitations with
       {@code GoogleAdsService.SearchGoogleAdsRequest}.
       
      .google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface ProductLinkInvitationOrBuilder
      Returns:
      The type.
    • setType

       Output only. The type of the invited account.
       This field is read only and can be used for filtering invitations with
       {@code GoogleAdsService.SearchGoogleAdsRequest}.
       
      .google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ProductLinkInvitation.Builder clearType()
       Output only. The type of the invited account.
       This field is read only and can be used for filtering invitations with
       {@code GoogleAdsService.SearchGoogleAdsRequest}.
       
      .google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasHotelCenter

      public boolean hasHotelCenter()
       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasHotelCenter in interface ProductLinkInvitationOrBuilder
      Returns:
      Whether the hotelCenter field is set.
    • getHotelCenter

      public HotelCenterLinkInvitationIdentifier getHotelCenter()
       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHotelCenter in interface ProductLinkInvitationOrBuilder
      Returns:
      The hotelCenter.
    • setHotelCenter

       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setHotelCenter

       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeHotelCenter

       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearHotelCenter

      public ProductLinkInvitation.Builder clearHotelCenter()
       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHotelCenterBuilder

      public HotelCenterLinkInvitationIdentifier.Builder getHotelCenterBuilder()
       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHotelCenterOrBuilder

      public HotelCenterLinkInvitationIdentifierOrBuilder getHotelCenterOrBuilder()
       Output only. Hotel link invitation.
       
      .google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHotelCenterOrBuilder in interface ProductLinkInvitationOrBuilder
    • hasMerchantCenter

      public boolean hasMerchantCenter()
       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasMerchantCenter in interface ProductLinkInvitationOrBuilder
      Returns:
      Whether the merchantCenter field is set.
    • getMerchantCenter

      public MerchantCenterLinkInvitationIdentifier getMerchantCenter()
       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMerchantCenter in interface ProductLinkInvitationOrBuilder
      Returns:
      The merchantCenter.
    • setMerchantCenter

       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setMerchantCenter

       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeMerchantCenter

       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearMerchantCenter

      public ProductLinkInvitation.Builder clearMerchantCenter()
       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMerchantCenterBuilder

      public MerchantCenterLinkInvitationIdentifier.Builder getMerchantCenterBuilder()
       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMerchantCenterOrBuilder

      public MerchantCenterLinkInvitationIdentifierOrBuilder getMerchantCenterOrBuilder()
       Output only. Merchant Center link invitation.
       
      .google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMerchantCenterOrBuilder in interface ProductLinkInvitationOrBuilder
    • hasAdvertisingPartner

      public boolean hasAdvertisingPartner()
       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAdvertisingPartner in interface ProductLinkInvitationOrBuilder
      Returns:
      Whether the advertisingPartner field is set.
    • getAdvertisingPartner

      public AdvertisingPartnerLinkInvitationIdentifier getAdvertisingPartner()
       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdvertisingPartner in interface ProductLinkInvitationOrBuilder
      Returns:
      The advertisingPartner.
    • setAdvertisingPartner

       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAdvertisingPartner

       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeAdvertisingPartner

       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAdvertisingPartner

      public ProductLinkInvitation.Builder clearAdvertisingPartner()
       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdvertisingPartnerBuilder

      public AdvertisingPartnerLinkInvitationIdentifier.Builder getAdvertisingPartnerBuilder()
       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdvertisingPartnerOrBuilder

      public AdvertisingPartnerLinkInvitationIdentifierOrBuilder getAdvertisingPartnerOrBuilder()
       Output only. Advertising Partner link invitation.
       
      .google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdvertisingPartnerOrBuilder in interface ProductLinkInvitationOrBuilder
    • setUnknownFields

      public final ProductLinkInvitation.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<ProductLinkInvitation.Builder>
    • mergeUnknownFields

      public final ProductLinkInvitation.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<ProductLinkInvitation.Builder>