Package com.google.cloud.retail.v2alpha
Class MerchantCenterAccountLink
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.MerchantCenterAccountLink
- All Implemented Interfaces:
MerchantCenterAccountLinkOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class MerchantCenterAccountLink
extends com.google.protobuf.GeneratedMessage
implements MerchantCenterAccountLinkOrBuilder
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.MerchantCenterAccountLink- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a link between a Merchant Center account and a branch.static final classMerchant Center Feed filter criterion.static interfacestatic enumThe state of the link.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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.com.google.protobuf.ByteStringRequired.static MerchantCenterAccountLinkstatic final com.google.protobuf.Descriptors.DescriptorgetFeedFilters(int index) Criteria for the Merchant Center feeds to be ingested via the link.intCriteria for the Merchant Center feeds to be ingested via the link.Criteria for the Merchant Center feeds to be ingested via the link.getFeedFiltersOrBuilder(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.The FeedLabel used to perform filtering.com.google.protobuf.ByteStringThe FeedLabel used to perform filtering.getId()Output only.com.google.protobuf.ByteStringOutput only.Language of the title/description and other string attributes.com.google.protobuf.ByteStringLanguage of the title/description and other string attributes.longRequired.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<MerchantCenterAccountLink>Output only.com.google.protobuf.ByteStringOutput only.intOptional.com.google.protobuf.ByteStringOptional.getState()Output only.intOutput only.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(MerchantCenterAccountLink prototype) protected MerchantCenterAccountLink.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MerchantCenterAccountLinkparseDelimitedFrom(InputStream input) static MerchantCenterAccountLinkparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MerchantCenterAccountLinkparseFrom(byte[] data) static MerchantCenterAccountLinkparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MerchantCenterAccountLinkparseFrom(com.google.protobuf.ByteString data) static MerchantCenterAccountLinkparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MerchantCenterAccountLinkparseFrom(com.google.protobuf.CodedInputStream input) static MerchantCenterAccountLinkparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MerchantCenterAccountLinkparseFrom(InputStream input) static MerchantCenterAccountLinkparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MerchantCenterAccountLinkparseFrom(ByteBuffer data) static MerchantCenterAccountLinkparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MerchantCenterAccountLink>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
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:
-
FEED_LABEL_FIELD_NUMBER
public static final int FEED_LABEL_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
FEED_FILTERS_FIELD_NUMBER
public static final int FEED_FILTERS_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
getNamein interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for name.
-
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];- Specified by:
getIdin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The id.
-
getIdBytes
public 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];- Specified by:
getIdBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for id.
-
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 = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMerchantCenterAccountIdin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The merchantCenterAccountId.
-
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];- Specified by:
getBranchIdin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The branchId.
-
getBranchIdBytes
public 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];- Specified by:
getBranchIdBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for branchId.
-
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;- Specified by:
getFeedLabelin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The feedLabel.
-
getFeedLabelBytes
public 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;- Specified by:
getFeedLabelBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for feedLabel.
-
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 interfaceMerchantCenterAccountLinkOrBuilder- 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 interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for languageCode.
-
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;- Specified by:
getFeedFiltersListin interfaceMerchantCenterAccountLinkOrBuilder
-
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;- Specified by:
getFeedFiltersOrBuilderListin interfaceMerchantCenterAccountLinkOrBuilder
-
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;- Specified by:
getFeedFiltersCountin interfaceMerchantCenterAccountLinkOrBuilder
-
getFeedFilters
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;- Specified by:
getFeedFiltersin interfaceMerchantCenterAccountLinkOrBuilder
-
getFeedFiltersOrBuilder
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;- Specified by:
getFeedFiltersOrBuilderin interfaceMerchantCenterAccountLinkOrBuilder
-
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];- Specified by:
getStateValuein interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. Represents the state of the link.
.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The state.
-
getProjectId
Output only. Google Cloud project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProjectIdin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Output only. Google Cloud project ID.
string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProjectIdBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for projectId.
-
getSource
Optional. An optional arbitrary string that could be used as a tag for tracking link source.
string source = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourcein interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()Optional. An optional arbitrary string that could be used as a tag for tracking link source.
string source = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourceBytesin interfaceMerchantCenterAccountLinkOrBuilder- Returns:
- The bytes for source.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 MerchantCenterAccountLink parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MerchantCenterAccountLink parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MerchantCenterAccountLink parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MerchantCenterAccountLink.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-