Class ProductLinkInvitation.Builder

  • All Implemented Interfaces:
    ProductLinkInvitationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v15.resources.ProductLinkInvitation
    • 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<ProductLinkInvitation.Builder>
      • clear

        public 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

        public ProductLinkInvitation.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,
                                                      java.lang.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,
                                                              java.lang.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,
                                                              java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLinkInvitation.Builder>
      • 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 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<ProductLinkInvitation.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.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​(java.lang.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.v15.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.v15.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.
      • clearStatus

        public ProductLinkInvitation.Builder clearStatus()
         Output only. The status of the product link invitation.
         This field is read only.
         
        .google.ads.googleads.v15.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.v15.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.v15.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

        public LinkedProductTypeEnum.LinkedProductType 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.v15.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getType in interface ProductLinkInvitationOrBuilder
        Returns:
        The type.
      • setType

        public ProductLinkInvitation.Builder setType​(LinkedProductTypeEnum.LinkedProductType 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.v15.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.v15.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.v15.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasHotelCenter in interface ProductLinkInvitationOrBuilder
        Returns:
        Whether the hotelCenter field is set.
      • clearHotelCenter

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

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

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

        public ProductLinkInvitation.Builder clearMerchantCenter()
         Output only. Merchant Center link invitation.
         
        .google.ads.googleads.v15.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.v15.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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>