Class MerchantCenterAccountLink

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.MerchantCenterAccountLink
All Implemented Interfaces:
MerchantCenterAccountLinkOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class MerchantCenterAccountLink extends com.google.protobuf.GeneratedMessage implements MerchantCenterAccountLinkOrBuilder
 Represents a link between a Merchant Center account and a branch.
 After a link is established, products from the linked Merchant Center account
 are streamed to the linked branch.
 
Protobuf type google.cloud.retail.v2alpha.MerchantCenterAccountLink
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER

      public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
      See Also:
    • BRANCH_ID_FIELD_NUMBER

      public static final int BRANCH_ID_FIELD_NUMBER
      See Also:
    • FEED_LABEL_FIELD_NUMBER

      public static final int FEED_LABEL_FIELD_NUMBER
      See Also:
    • LANGUAGE_CODE_FIELD_NUMBER

      public static final int LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • FEED_FILTERS_FIELD_NUMBER

      public static final int FEED_FILTERS_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • PROJECT_ID_FIELD_NUMBER

      public static final int PROJECT_ID_FIELD_NUMBER
      See Also:
    • SOURCE_FIELD_NUMBER

      public static final int SOURCE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • getFeedFiltersList

       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:
      getFeedFiltersList in interface MerchantCenterAccountLinkOrBuilder
    • getFeedFiltersOrBuilderList

      public List<? extends MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder> getFeedFiltersOrBuilderList()
       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:
      getFeedFiltersOrBuilderList in interface MerchantCenterAccountLinkOrBuilder
    • 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
    • getFeedFilters

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

      public MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder getFeedFiltersOrBuilder(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;
      Specified by:
      getFeedFiltersOrBuilder 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.
    • getState

       Output only. Represents the state of the link.
       
      .google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface MerchantCenterAccountLinkOrBuilder
      Returns:
      The state.
    • getProjectId

      public String getProjectId()
       Output only. Google Cloud project ID.
       
      string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectId in interface MerchantCenterAccountLinkOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Output only. Google Cloud project ID.
       
      string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectIdBytes in interface MerchantCenterAccountLinkOrBuilder
      Returns:
      The bytes for projectId.
    • getSource

      public String getSource()
       Optional. An optional arbitrary string that could be used as a tag for
       tracking link source.
       
      string source = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSource in interface MerchantCenterAccountLinkOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       Optional. An optional arbitrary string that could be used as a tag for
       tracking link source.
       
      string source = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceBytes in interface MerchantCenterAccountLinkOrBuilder
      Returns:
      The bytes for source.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static MerchantCenterAccountLink parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MerchantCenterAccountLink parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MerchantCenterAccountLink parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MerchantCenterAccountLink parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MerchantCenterAccountLink parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static MerchantCenterAccountLink.Builder newBuilder()
    • newBuilder

      public static MerchantCenterAccountLink.Builder newBuilder(MerchantCenterAccountLink prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MerchantCenterAccountLink getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MerchantCenterAccountLink> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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