public final class DocumentInfo extends com.google.protobuf.GeneratedMessageV3 implements DocumentInfoOrBuilder
Detailed document information associated with a user event.Protobuf type
google.cloud.discoveryengine.v1beta.DocumentInfo| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentInfo.Builder
Detailed document information associated with a user event.
|
static class |
DocumentInfo.DocumentDescriptorCase |
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 |
ID_FIELD_NUMBER |
static int |
JOINED_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROMOTION_IDS_FIELD_NUMBER |
static int |
QUANTITY_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static DocumentInfo |
getDefaultInstance() |
DocumentInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DocumentInfo.DocumentDescriptorCase |
getDocumentDescriptorCase() |
String |
getId()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
|
com.google.protobuf.ByteString |
getIdBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
|
boolean |
getJoined()
Output only.
|
String |
getName()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... } |
com.google.protobuf.ByteString |
getNameBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... } |
com.google.protobuf.Parser<DocumentInfo> |
getParserForType() |
String |
getPromotionIds(int index)
The promotion IDs associated with this Document.
|
com.google.protobuf.ByteString |
getPromotionIdsBytes(int index)
The promotion IDs associated with this Document.
|
int |
getPromotionIdsCount()
The promotion IDs associated with this Document.
|
com.google.protobuf.ProtocolStringList |
getPromotionIdsList()
The promotion IDs associated with this Document.
|
int |
getQuantity()
Quantity of the Document associated with the user event.
|
int |
getSerializedSize() |
String |
getUri()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
allowed for website data stores.
|
com.google.protobuf.ByteString |
getUriBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
allowed for website data stores.
|
int |
hashCode() |
boolean |
hasId()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
|
boolean |
hasName()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... } |
boolean |
hasQuantity()
Quantity of the Document associated with the user event.
|
boolean |
hasUri()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
allowed for website data stores.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DocumentInfo.Builder |
newBuilder() |
static DocumentInfo.Builder |
newBuilder(DocumentInfo prototype) |
DocumentInfo.Builder |
newBuilderForType() |
protected DocumentInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DocumentInfo |
parseDelimitedFrom(InputStream input) |
static DocumentInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentInfo |
parseFrom(byte[] data) |
static DocumentInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentInfo |
parseFrom(ByteBuffer data) |
static DocumentInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentInfo |
parseFrom(com.google.protobuf.ByteString data) |
static DocumentInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DocumentInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentInfo |
parseFrom(InputStream input) |
static DocumentInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DocumentInfo> |
parser() |
DocumentInfo.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 ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER
public static final int PROMOTION_IDS_FIELD_NUMBER
public static final int JOINED_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 DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase()
getDocumentDescriptorCase in interface DocumentInfoOrBuilderpublic boolean hasId()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;hasId in interface DocumentInfoOrBuilderpublic String getId()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;getId in interface DocumentInfoOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;getIdBytes in interface DocumentInfoOrBuilderpublic boolean hasName()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... }hasName in interface DocumentInfoOrBuilderpublic String getName()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... }getName in interface DocumentInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
string name = 2 [(.google.api.resource_reference) = { ... }getNameBytes in interface DocumentInfoOrBuilderpublic boolean hasUri()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;hasUri in interface DocumentInfoOrBuilderpublic String getUri()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;getUri in interface DocumentInfoOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;getUriBytes in interface DocumentInfoOrBuilderpublic boolean hasQuantity()
Quantity of the Document associated with the user event. Defaults to 1. For example, this field is 2 if two quantities of the same Document are involved in a `add-to-cart` event. Required for events of the following event types: * `add-to-cart` * `purchase`
optional int32 quantity = 3;hasQuantity in interface DocumentInfoOrBuilderpublic int getQuantity()
Quantity of the Document associated with the user event. Defaults to 1. For example, this field is 2 if two quantities of the same Document are involved in a `add-to-cart` event. Required for events of the following event types: * `add-to-cart` * `purchase`
optional int32 quantity = 3;getQuantity in interface DocumentInfoOrBuilderpublic com.google.protobuf.ProtocolStringList getPromotionIdsList()
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;getPromotionIdsList in interface DocumentInfoOrBuilderpublic int getPromotionIdsCount()
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;getPromotionIdsCount in interface DocumentInfoOrBuilderpublic String getPromotionIds(int index)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;getPromotionIds in interface DocumentInfoOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPromotionIdsBytes(int index)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;getPromotionIdsBytes in interface DocumentInfoOrBuilderindex - The index of the value to return.public boolean getJoined()
Output only. Whether the referenced Document can be found in the data store.
bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getJoined in interface DocumentInfoOrBuilderpublic 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 DocumentInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DocumentInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DocumentInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DocumentInfo.Builder newBuilder()
public static DocumentInfo.Builder newBuilder(DocumentInfo prototype)
public DocumentInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DocumentInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DocumentInfo getDefaultInstance()
public static com.google.protobuf.Parser<DocumentInfo> parser()
public com.google.protobuf.Parser<DocumentInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DocumentInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.