public final class MerchantCenterAccountLink extends 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BRANCH_ID_FIELD_NUMBER
public static final int BRANCH_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
FEED_FILTERS_FIELD_NUMBER
public static final int FEED_FILTERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
FEED_LABEL_FIELD_NUMBER
public static final int FEED_LABEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_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 |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static MerchantCenterAccountLink getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MerchantCenterAccountLink.Builder newBuilder()
newBuilder(MerchantCenterAccountLink prototype)
public static MerchantCenterAccountLink.Builder newBuilder(MerchantCenterAccountLink prototype)
public static MerchantCenterAccountLink parseDelimitedFrom(InputStream input)
public static MerchantCenterAccountLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MerchantCenterAccountLink parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterAccountLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MerchantCenterAccountLink parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterAccountLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterAccountLink parseFrom(CodedInputStream input)
public static MerchantCenterAccountLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterAccountLink parseFrom(InputStream input)
public static MerchantCenterAccountLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MerchantCenterAccountLink parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterAccountLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MerchantCenterAccountLink> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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];
Returns |
Type |
Description |
String |
The branchId.
|
getBranchIdBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for branchId.
|
getDefaultInstanceForType()
public MerchantCenterAccountLink getDefaultInstanceForType()
getFeedFilters(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
int |
|
getFeedFiltersList()
public List<MerchantCenterAccountLink.MerchantCenterFeedFilter> 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;
getFeedFiltersOrBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
List<? extends com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder> |
|
getFeedLabel()
public String getFeedLabel()
The FeedLabel used to perform filtering.
Note: this replaces
region_id.
Example value: US
.
Example value: FeedLabel1
.
string feed_label = 4;
Returns |
Type |
Description |
String |
The feedLabel.
|
getFeedLabelBytes()
public ByteString getFeedLabelBytes()
The FeedLabel used to perform filtering.
Note: this replaces
region_id.
Example value: US
.
Example value: FeedLabel1
.
string feed_label = 4;
Returns |
Type |
Description |
ByteString |
The bytes for feedLabel.
|
getId()
Output only. Immutable.
MerchantCenterAccountLink
identifier, which is the final component of
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];
Returns |
Type |
Description |
String |
The id.
|
getIdBytes()
public ByteString getIdBytes()
Output only. Immutable.
MerchantCenterAccountLink
identifier, which is the final component of
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];
Returns |
Type |
Description |
ByteString |
The bytes for id.
|
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 = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
long |
The merchantCenterAccountId.
|
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];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<MerchantCenterAccountLink> getParserForType()
Overrides
getProjectId()
public String getProjectId()
Output only. GCP project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
Output only. GCP project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
ByteString |
The bytes for projectId.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getState()
public MerchantCenterAccountLink.State getState()
Output only. Represents the state of the link.
.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for state.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MerchantCenterAccountLink.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MerchantCenterAccountLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public MerchantCenterAccountLink.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides