Package com.google.cloud.retail.v2beta
Class MerchantCenterLink
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.retail.v2beta.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 typegoogle.cloud.retail.v2beta.MerchantCenterLink- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantCenterLink.BuilderRepresents a link between a Merchant Center account and a branch.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBRANCH_ID_FIELD_NUMBERstatic intDESTINATIONS_FIELD_NUMBERstatic intFEEDS_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intMERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBERstatic intREGION_CODE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBranchId()The branch ID (e.g.com.google.protobuf.ByteStringgetBranchIdBytes()The branch ID (e.g.static MerchantCenterLinkgetDefaultInstance()MerchantCenterLinkgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDestinations(int index)String representing the destination to import for, all if left empty.com.google.protobuf.ByteStringgetDestinationsBytes(int index)String representing the destination to import for, all if left empty.intgetDestinationsCount()String representing the destination to import for, all if left empty.com.google.protobuf.ProtocolStringListgetDestinationsList()String representing the destination to import for, all if left empty.MerchantCenterFeedFiltergetFeeds(int index)Criteria for the Merchant Center feeds to be ingested via the link.intgetFeedsCount()Criteria for the Merchant Center feeds to be ingested via the link.List<MerchantCenterFeedFilter>getFeedsList()Criteria for the Merchant Center feeds to be ingested via the link.MerchantCenterFeedFilterOrBuildergetFeedsOrBuilder(int index)Criteria for the Merchant Center feeds to be ingested via the link.List<? extends MerchantCenterFeedFilterOrBuilder>getFeedsOrBuilderList()Criteria for the Merchant Center feeds to be ingested via the link.StringgetLanguageCode()Language of the title/description and other string attributes.com.google.protobuf.ByteStringgetLanguageCodeBytes()Language of the title/description and other string attributes.longgetMerchantCenterAccountId()Required.com.google.protobuf.Parser<MerchantCenterLink>getParserForType()StringgetRegionCode()Region code of offers to accept.com.google.protobuf.ByteStringgetRegionCodeBytes()Region code of offers to accept.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static MerchantCenterLink.BuildernewBuilder()static MerchantCenterLink.BuildernewBuilder(MerchantCenterLink prototype)MerchantCenterLink.BuildernewBuilderForType()protected MerchantCenterLink.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MerchantCenterLinkparseDelimitedFrom(InputStream input)static MerchantCenterLinkparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MerchantCenterLinkparseFrom(byte[] data)static MerchantCenterLinkparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MerchantCenterLinkparseFrom(com.google.protobuf.ByteString data)static MerchantCenterLinkparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MerchantCenterLinkparseFrom(com.google.protobuf.CodedInputStream input)static MerchantCenterLinkparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MerchantCenterLinkparseFrom(InputStream input)static MerchantCenterLinkparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MerchantCenterLinkparseFrom(ByteBuffer data)static MerchantCenterLinkparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MerchantCenterLink>parser()MerchantCenterLink.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BRANCH_ID_FIELD_NUMBER
public static final int BRANCH_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
-
FEEDS_FIELD_NUMBER
public static final int FEEDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
getMerchantCenterAccountIdin interfaceMerchantCenterLinkOrBuilder- 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:
getBranchIdin interfaceMerchantCenterLinkOrBuilder- 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:
getBranchIdBytesin interfaceMerchantCenterLinkOrBuilder- 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:
getDestinationsListin interfaceMerchantCenterLinkOrBuilder- 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:
getDestinationsCountin interfaceMerchantCenterLinkOrBuilder- 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:
getDestinationsin interfaceMerchantCenterLinkOrBuilder- 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:
getDestinationsBytesin interfaceMerchantCenterLinkOrBuilder- 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:
getRegionCodein interfaceMerchantCenterLinkOrBuilder- 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:
getRegionCodeBytesin interfaceMerchantCenterLinkOrBuilder- 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:
getLanguageCodein interfaceMerchantCenterLinkOrBuilder- 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:
getLanguageCodeBytesin interfaceMerchantCenterLinkOrBuilder- 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.v2beta.MerchantCenterFeedFilter feeds = 6;- Specified by:
getFeedsListin interfaceMerchantCenterLinkOrBuilder
-
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.v2beta.MerchantCenterFeedFilter feeds = 6;- Specified by:
getFeedsOrBuilderListin interfaceMerchantCenterLinkOrBuilder
-
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.v2beta.MerchantCenterFeedFilter feeds = 6;- Specified by:
getFeedsCountin interfaceMerchantCenterLinkOrBuilder
-
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.v2beta.MerchantCenterFeedFilter feeds = 6;- Specified by:
getFeedsin interfaceMerchantCenterLinkOrBuilder
-
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.v2beta.MerchantCenterFeedFilter feeds = 6;- Specified by:
getFeedsOrBuilderin interfaceMerchantCenterLinkOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static MerchantCenterLink.Builder newBuilder()
-
newBuilder
public static MerchantCenterLink.Builder newBuilder(MerchantCenterLink prototype)
-
toBuilder
public MerchantCenterLink.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MerchantCenterLink.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static MerchantCenterLink getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<MerchantCenterLink> parser()
-
getParserForType
public com.google.protobuf.Parser<MerchantCenterLink> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MerchantCenterLink getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-