Class MerchantCenterLink

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

@Generated public final class MerchantCenterLink extends com.google.protobuf.GeneratedMessage implements MerchantCenterLinkOrBuilder
 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.MerchantCenterLink
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a link between a Merchant Center account and a branch.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The branch ID (e.g. 0/1/2) within this catalog that products from merchant_center_account_id are streamed to.
    com.google.protobuf.ByteString
    The branch ID (e.g. 0/1/2) within this catalog that products from merchant_center_account_id are streamed to.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    getDestinations(int index)
    String representing the destination to import for, all if left empty.
    com.google.protobuf.ByteString
    String representing the destination to import for, all if left empty.
    int
    String representing the destination to import for, all if left empty.
    com.google.protobuf.ProtocolStringList
    String representing the destination to import for, all if left empty.
    getFeeds(int index)
    Criteria for the Merchant Center feeds to be ingested via the link.
    int
    Criteria for the Merchant Center feeds to be ingested via the link.
    Criteria for the Merchant Center feeds to be ingested via the link.
    getFeedsOrBuilder(int index)
    Criteria for the Merchant Center feeds to be ingested via the link.
    Criteria for the Merchant Center feeds to be ingested via the link.
    Language of the title/description and other string attributes.
    com.google.protobuf.ByteString
    Language of the title/description and other string attributes.
    long
    Required.
    com.google.protobuf.Parser<MerchantCenterLink>
     
    Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code.
    com.google.protobuf.ByteString
    Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code.
    int
     
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<MerchantCenterLink>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • 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:
    • DESTINATIONS_FIELD_NUMBER

      public static final int DESTINATIONS_FIELD_NUMBER
      See Also:
    • REGION_CODE_FIELD_NUMBER

      public static final int REGION_CODE_FIELD_NUMBER
      See Also:
    • LANGUAGE_CODE_FIELD_NUMBER

      public static final int LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • FEEDS_FIELD_NUMBER

      public static final int FEEDS_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
    • 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.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 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static MerchantCenterLink parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static MerchantCenterLink.Builder newBuilder()
    • newBuilder

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

      public static MerchantCenterLink getDefaultInstance()
    • parser

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

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