public final class MerchantCenterAccountLink extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
MerchantCenterAccountLink.Builder
Represents a link between a Merchant Center account and a branch.
|
static class |
MerchantCenterAccountLink.MerchantCenterFeedFilter
Merchant Center Feed filter criterion.
|
static interface |
MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder |
static class |
MerchantCenterAccountLink.State
The state of the link.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
BRANCH_ID_FIELD_NUMBER |
static int |
FEED_FILTERS_FIELD_NUMBER |
static int |
FEED_LABEL_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBranchId()
Required.
|
com.google.protobuf.ByteString |
getBranchIdBytes()
Required.
|
static MerchantCenterAccountLink |
getDefaultInstance() |
MerchantCenterAccountLink |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
MerchantCenterAccountLink.MerchantCenterFeedFilter |
getFeedFilters(int index)
Criteria for the Merchant Center feeds to be ingested via the link.
|
int |
getFeedFiltersCount()
Criteria for the Merchant Center feeds to be ingested via the link.
|
List<MerchantCenterAccountLink.MerchantCenterFeedFilter> |
getFeedFiltersList()
Criteria for the Merchant Center feeds to be ingested via the link.
|
MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder |
getFeedFiltersOrBuilder(int index)
Criteria for the Merchant Center feeds to be ingested via the link.
|
List<? extends MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder> |
getFeedFiltersOrBuilderList()
Criteria for the Merchant Center feeds to be ingested via the link.
|
String |
getFeedLabel()
The FeedLabel used to perform filtering.
|
com.google.protobuf.ByteString |
getFeedLabelBytes()
The FeedLabel used to perform filtering.
|
String |
getId()
Output only.
|
com.google.protobuf.ByteString |
getIdBytes()
Output only.
|
String |
getLanguageCode()
Language of the title/description and other string attributes.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Language of the title/description and other string attributes.
|
long |
getMerchantCenterAccountId()
Required.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<MerchantCenterAccountLink> |
getParserForType() |
String |
getProjectId()
Output only.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Output only.
|
int |
getSerializedSize() |
MerchantCenterAccountLink.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MerchantCenterAccountLink.Builder |
newBuilder() |
static MerchantCenterAccountLink.Builder |
newBuilder(MerchantCenterAccountLink prototype) |
MerchantCenterAccountLink.Builder |
newBuilderForType() |
protected MerchantCenterAccountLink.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MerchantCenterAccountLink |
parseDelimitedFrom(InputStream input) |
static MerchantCenterAccountLink |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MerchantCenterAccountLink |
parseFrom(byte[] data) |
static MerchantCenterAccountLink |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MerchantCenterAccountLink |
parseFrom(ByteBuffer data) |
static MerchantCenterAccountLink |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MerchantCenterAccountLink |
parseFrom(com.google.protobuf.ByteString data) |
static MerchantCenterAccountLink |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MerchantCenterAccountLink |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MerchantCenterAccountLink |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MerchantCenterAccountLink |
parseFrom(InputStream input) |
static MerchantCenterAccountLink |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MerchantCenterAccountLink> |
parser() |
MerchantCenterAccountLink.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
public static final int BRANCH_ID_FIELD_NUMBER
public static final int FEED_LABEL_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int FEED_FILTERS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];
getName in interface MerchantCenterAccountLinkOrBuilderpublic 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];
getNameBytes in interface MerchantCenterAccountLinkOrBuilderpublic 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];
getId in interface MerchantCenterAccountLinkOrBuilderpublic 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];
getIdBytes in interface MerchantCenterAccountLinkOrBuilderpublic 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];getMerchantCenterAccountId in interface MerchantCenterAccountLinkOrBuilderpublic 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];getBranchId in interface MerchantCenterAccountLinkOrBuilderpublic 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];getBranchIdBytes in interface MerchantCenterAccountLinkOrBuilderpublic 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;getFeedLabel in interface MerchantCenterAccountLinkOrBuilderpublic 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;getFeedLabelBytes in interface MerchantCenterAccountLinkOrBuilderpublic 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;getLanguageCode in interface MerchantCenterAccountLinkOrBuilderpublic 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;getLanguageCodeBytes in interface MerchantCenterAccountLinkOrBuilderpublic 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;
getFeedFiltersList in interface MerchantCenterAccountLinkOrBuilderpublic 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;
getFeedFiltersOrBuilderList in interface MerchantCenterAccountLinkOrBuilderpublic 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;
getFeedFiltersCount in interface MerchantCenterAccountLinkOrBuilderpublic 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;
getFeedFilters in interface MerchantCenterAccountLinkOrBuilderpublic 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;
getFeedFiltersOrBuilder in interface MerchantCenterAccountLinkOrBuilderpublic int getStateValue()
Output only. Represents the state of the link.
.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface MerchantCenterAccountLinkOrBuilderpublic 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];
getState in interface MerchantCenterAccountLinkOrBuilderpublic String getProjectId()
Output only. GCP project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getProjectId in interface MerchantCenterAccountLinkOrBuilderpublic com.google.protobuf.ByteString getProjectIdBytes()
Output only. GCP project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getProjectIdBytes in interface MerchantCenterAccountLinkOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MerchantCenterAccountLink parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MerchantCenterAccountLink parseFrom(InputStream input) throws IOException
IOExceptionpublic static MerchantCenterAccountLink parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MerchantCenterAccountLink parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MerchantCenterAccountLink parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MerchantCenterAccountLink parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MerchantCenterAccountLink parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MerchantCenterAccountLink.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MerchantCenterAccountLink.Builder newBuilder()
public static MerchantCenterAccountLink.Builder newBuilder(MerchantCenterAccountLink prototype)
public MerchantCenterAccountLink.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MerchantCenterAccountLink.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MerchantCenterAccountLink getDefaultInstance()
public static com.google.protobuf.Parser<MerchantCenterAccountLink> parser()
public com.google.protobuf.Parser<MerchantCenterAccountLink> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MerchantCenterAccountLink getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.