Class MerchantCenterLink

  • All Implemented Interfaces:
    MerchantCenterLinkOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MerchantCenterLink
    extends com.google.protobuf.GeneratedMessageV3
    implements MerchantCenterLinkOrBuilder
     Represents a link between a Merchant Center account and a branch.
     Once a link is established, products from the linked merchant center account
     will be streamed to the linked branch.
     
    Protobuf type google.cloud.retail.v2alpha.MerchantCenterLink
    See Also:
    Serialized Form
    • Field Detail

      • MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER

        public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESTINATIONS_FIELD_NUMBER

        public static final int DESTINATIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REGION_CODE_FIELD_NUMBER

        public static final int REGION_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getMerchantCenterAccountId

        public long getMerchantCenterAccountId()
         Required. The linked [Merchant center account
         ID](https://developers.google.com/shopping-content/guides/accountstatuses).
         The account must be a standalone account or a sub-account of a MCA.
         
        int64 merchant_center_account_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMerchantCenterAccountId in interface MerchantCenterLinkOrBuilder
        Returns:
        The merchantCenterAccountId.
      • getBranchId

        public String getBranchId()
         The branch ID (e.g. 0/1/2) within this catalog that products from
         merchant_center_account_id are streamed to. When updating this field, an
         empty value will use the currently configured default branch. However,
         changing the default branch later on won't change the linked branch here.
        
         A single branch ID can only have one linked merchant center account ID.
         
        string branch_id = 2;
        Specified by:
        getBranchId in interface MerchantCenterLinkOrBuilder
        Returns:
        The branchId.
      • getBranchIdBytes

        public com.google.protobuf.ByteString getBranchIdBytes()
         The branch ID (e.g. 0/1/2) within this catalog that products from
         merchant_center_account_id are streamed to. When updating this field, an
         empty value will use the currently configured default branch. However,
         changing the default branch later on won't change the linked branch here.
        
         A single branch ID can only have one linked merchant center account ID.
         
        string branch_id = 2;
        Specified by:
        getBranchIdBytes in interface MerchantCenterLinkOrBuilder
        Returns:
        The bytes for branchId.
      • getDestinationsList

        public com.google.protobuf.ProtocolStringList getDestinationsList()
         String representing the destination to import for, all if left empty.
         List of possible values is given in [Included
         destination](https://support.google.com/merchants/answer/7501026).
         List of allowed string values:
         "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory
         _ads", "Free_listings", "Free_local_listings"
         NOTE: The string values are case sensitive.
         
        repeated string destinations = 3;
        Specified by:
        getDestinationsList in interface MerchantCenterLinkOrBuilder
        Returns:
        A list containing the destinations.
      • getDestinationsCount

        public int getDestinationsCount()
         String representing the destination to import for, all if left empty.
         List of possible values is given in [Included
         destination](https://support.google.com/merchants/answer/7501026).
         List of allowed string values:
         "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory
         _ads", "Free_listings", "Free_local_listings"
         NOTE: The string values are case sensitive.
         
        repeated string destinations = 3;
        Specified by:
        getDestinationsCount in interface MerchantCenterLinkOrBuilder
        Returns:
        The count of destinations.
      • getDestinations

        public String getDestinations​(int index)
         String representing the destination to import for, all if left empty.
         List of possible values is given in [Included
         destination](https://support.google.com/merchants/answer/7501026).
         List of allowed string values:
         "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory
         _ads", "Free_listings", "Free_local_listings"
         NOTE: The string values are case sensitive.
         
        repeated string destinations = 3;
        Specified by:
        getDestinations in interface MerchantCenterLinkOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The destinations at the given index.
      • getDestinationsBytes

        public com.google.protobuf.ByteString getDestinationsBytes​(int index)
         String representing the destination to import for, all if left empty.
         List of possible values is given in [Included
         destination](https://support.google.com/merchants/answer/7501026).
         List of allowed string values:
         "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory
         _ads", "Free_listings", "Free_local_listings"
         NOTE: The string values are case sensitive.
         
        repeated string destinations = 3;
        Specified by:
        getDestinationsBytes in interface MerchantCenterLinkOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the destinations at the given index.
      • getRegionCode

        public String getRegionCode()
         Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2
         code. List of values can be found
         [here](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
         under the `region` tag. If left blank no region filtering will be
         performed.
        
         Example value: `US`.
         
        string region_code = 4;
        Specified by:
        getRegionCode in interface MerchantCenterLinkOrBuilder
        Returns:
        The regionCode.
      • getRegionCodeBytes

        public com.google.protobuf.ByteString getRegionCodeBytes()
         Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2
         code. List of values can be found
         [here](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
         under the `region` tag. If left blank no region filtering will be
         performed.
        
         Example value: `US`.
         
        string region_code = 4;
        Specified by:
        getRegionCodeBytes in interface MerchantCenterLinkOrBuilder
        Returns:
        The bytes for regionCode.
      • getLanguageCode

        public String getLanguageCode()
         Language of the title/description and other string attributes. Use language
         tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
         ISO 639-1.
        
         This specifies the language of offers in Merchant Center that will be
         accepted. If  empty no language filtering will be performed.
        
         Example value: `en`.
         
        string language_code = 5;
        Specified by:
        getLanguageCode in interface MerchantCenterLinkOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Language of the title/description and other string attributes. Use language
         tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
         ISO 639-1.
        
         This specifies the language of offers in Merchant Center that will be
         accepted. If  empty no language filtering will be performed.
        
         Example value: `en`.
         
        string language_code = 5;
        Specified by:
        getLanguageCodeBytes in interface MerchantCenterLinkOrBuilder
        Returns:
        The bytes for languageCode.
      • getFeedsList

        public List<MerchantCenterFeedFilter> getFeedsList()
         Criteria for the Merchant Center feeds to be ingested via the link.
         All offers will be ingested if the list is empty.
         Otherwise the offers will be ingested from selected feeds.
         
        repeated .google.cloud.retail.v2alpha.MerchantCenterFeedFilter feeds = 6;
        Specified by:
        getFeedsList in interface MerchantCenterLinkOrBuilder
      • getFeedsOrBuilderList

        public List<? extends MerchantCenterFeedFilterOrBuilder> getFeedsOrBuilderList()
         Criteria for the Merchant Center feeds to be ingested via the link.
         All offers will be ingested if the list is empty.
         Otherwise the offers will be ingested from selected feeds.
         
        repeated .google.cloud.retail.v2alpha.MerchantCenterFeedFilter feeds = 6;
        Specified by:
        getFeedsOrBuilderList in interface MerchantCenterLinkOrBuilder
      • getFeedsCount

        public int getFeedsCount()
         Criteria for the Merchant Center feeds to be ingested via the link.
         All offers will be ingested if the list is empty.
         Otherwise the offers will be ingested from selected feeds.
         
        repeated .google.cloud.retail.v2alpha.MerchantCenterFeedFilter feeds = 6;
        Specified by:
        getFeedsCount in interface MerchantCenterLinkOrBuilder
      • getFeeds

        public MerchantCenterFeedFilter getFeeds​(int index)
         Criteria for the Merchant Center feeds to be ingested via the link.
         All offers will be ingested if the list is empty.
         Otherwise the offers will be ingested from selected feeds.
         
        repeated .google.cloud.retail.v2alpha.MerchantCenterFeedFilter feeds = 6;
        Specified by:
        getFeeds in interface MerchantCenterLinkOrBuilder
      • getFeedsOrBuilder

        public MerchantCenterFeedFilterOrBuilder getFeedsOrBuilder​(int index)
         Criteria for the Merchant Center feeds to be ingested via the link.
         All offers will be ingested if the list is empty.
         Otherwise the offers will be ingested from selected feeds.
         
        repeated .google.cloud.retail.v2alpha.MerchantCenterFeedFilter feeds = 6;
        Specified by:
        getFeedsOrBuilder in interface MerchantCenterLinkOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MerchantCenterLink parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MerchantCenterLink parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MerchantCenterLink.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MerchantCenterLink.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MerchantCenterLink.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<MerchantCenterLink> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MerchantCenterLink getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder