Class MerchantCenterAccountLink

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

    public final class MerchantCenterAccountLink
    extends com.google.protobuf.GeneratedMessageV3
    implements MerchantCenterAccountLinkOrBuilder
     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.MerchantCenterAccountLink
    See Also:
    Serialized Form
    • 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
      • getName

        public String getName()
         Output only. Immutable. Full resource name of the Merchant Center Account
         Link, such as
         `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Immutable. Full resource name of the Merchant Center Account
         Link, such as
         `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for name.
      • getId

        public String getId()
         Output only. Immutable.
         [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
         identifier, which is the final component of
         [name][google.cloud.retail.v2alpha.MerchantCenterAccountLink.name]. This
         field is auto generated and follows the convention:
         `BranchId_MerchantCenterAccountId`.
         `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
         
        string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. Immutable.
         [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
         identifier, which is the final component of
         [name][google.cloud.retail.v2alpha.MerchantCenterAccountLink.name]. This
         field is auto generated and follows the convention:
         `BranchId_MerchantCenterAccountId`.
         `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
         
        string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdBytes in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for id.
      • 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 = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMerchantCenterAccountId in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The merchantCenterAccountId.
      • getBranchId

        public String getBranchId()
         Required. The branch id (e.g. 0/1/2) within the 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 = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBranchId in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The branchId.
      • getBranchIdBytes

        public com.google.protobuf.ByteString getBranchIdBytes()
         Required. The branch id (e.g. 0/1/2) within the 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 = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBranchIdBytes in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for branchId.
      • getFeedLabel

        public String getFeedLabel()
         The FeedLabel used to perform filtering.
         Note: this replaces
         [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label).
        
         Example value: `US`.
         Example value: `FeedLabel1`.
         
        string feed_label = 4;
        Specified by:
        getFeedLabel in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The feedLabel.
      • getFeedLabelBytes

        public com.google.protobuf.ByteString getFeedLabelBytes()
         The FeedLabel used to perform filtering.
         Note: this replaces
         [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label).
        
         Example value: `US`.
         Example value: `FeedLabel1`.
         
        string feed_label = 4;
        Specified by:
        getFeedLabelBytes in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for feedLabel.
      • 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 MerchantCenterAccountLinkOrBuilder
        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 MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for languageCode.
      • getFeedFiltersCount

        public int getFeedFiltersCount()
         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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;
        Specified by:
        getFeedFiltersCount in interface MerchantCenterAccountLinkOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. Represents the state of the link.
         
        .google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Output only. GCP project ID.
         
        string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProjectIdBytes in interface MerchantCenterAccountLinkOrBuilder
        Returns:
        The bytes for projectId.
      • 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 MerchantCenterAccountLink parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<MerchantCenterAccountLink> 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 MerchantCenterAccountLink getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder