public final class MerchantCenterLink extends 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
Static Fields
BRANCH_ID_FIELD_NUMBER
public static final int BRANCH_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FEEDS_FIELD_NUMBER
public static final int FEEDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static MerchantCenterLink getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MerchantCenterLink.Builder newBuilder()
newBuilder(MerchantCenterLink prototype)
public static MerchantCenterLink.Builder newBuilder(MerchantCenterLink prototype)
public static MerchantCenterLink parseDelimitedFrom(InputStream input)
public static MerchantCenterLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MerchantCenterLink parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MerchantCenterLink parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(CodedInputStream input)
public static MerchantCenterLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(InputStream input)
public static MerchantCenterLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MerchantCenterLink parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MerchantCenterLink> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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;
Returns |
---|
Type | Description |
String | The branchId.
|
getBranchIdBytes()
public 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;
Returns |
---|
Type | Description |
ByteString | The bytes for branchId.
|
getDefaultInstanceForType()
public MerchantCenterLink getDefaultInstanceForType()
getDestinations(int index)
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.
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The destinations at the given index.
|
getDestinationsBytes(int index)
public ByteString getDestinationsBytes(int index)
String representing the destination to import for, all if left empty.
List of possible values is given in Included
destination.
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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the destinations at the given index.
|
getDestinationsCount()
public int getDestinationsCount()
String representing the destination to import for, all if left empty.
List of possible values is given in Included
destination.
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;
Returns |
---|
Type | Description |
int | The count of destinations.
|
getDestinationsList()
public ProtocolStringList getDestinationsList()
String representing the destination to import for, all if left empty.
List of possible values is given in Included
destination.
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;
getFeeds(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
int | |
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;
getFeedsOrBuilder(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2alpha.MerchantCenterFeedFilterOrBuilder> | |
getLanguageCode()
public String getLanguageCode()
Language of the title/description and other string attributes. Use language
tags defined by BCP 47.
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;
Returns |
---|
Type | Description |
String | The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Language of the title/description and other string attributes. Use language
tags defined by BCP 47.
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;
Returns |
---|
Type | Description |
ByteString | The bytes for languageCode.
|
getMerchantCenterAccountId()
public long getMerchantCenterAccountId()
Required. The linked Merchant center account
ID.
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];
Returns |
---|
Type | Description |
long | The merchantCenterAccountId.
|
getParserForType()
public Parser<MerchantCenterLink> getParserForType()
Overrides
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
under the region
tag. If left blank no region filtering will be
performed.
Example value: US
.
string region_code = 4;
Returns |
---|
Type | Description |
String | The regionCode.
|
getRegionCodeBytes()
public ByteString getRegionCodeBytes()
Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2
code. List of values can be found
here
under the region
tag. If left blank no region filtering will be
performed.
Example value: US
.
string region_code = 4;
Returns |
---|
Type | Description |
ByteString | The bytes for regionCode.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MerchantCenterLink.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MerchantCenterLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public MerchantCenterLink.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides