Class DocumentInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.DocumentInfo
- All Implemented Interfaces:
DocumentInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DocumentInfo
extends com.google.protobuf.GeneratedMessage
implements DocumentInfoOrBuilder
Detailed document information associated with a user event.Protobuf type
google.cloud.discoveryengine.v1beta.DocumentInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDetailed document information associated with a user event.static enumNested 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 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 TypeMethodDescriptionbooleanstatic DocumentInfostatic final com.google.protobuf.Descriptors.DescriptorgetId()The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.com.google.protobuf.ByteStringThe [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.booleanOutput only.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}`com.google.protobuf.ByteStringThe [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}`com.google.protobuf.Parser<DocumentInfo>getPromotionIds(int index) The promotion IDs associated with this Document.com.google.protobuf.ByteStringgetPromotionIdsBytes(int index) The promotion IDs associated with this Document.intThe promotion IDs associated with this Document.com.google.protobuf.ProtocolStringListThe promotion IDs associated with this Document.intQuantity of the Document associated with the user event.intgetUri()The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.com.google.protobuf.ByteStringThe [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.inthashCode()booleanhasId()The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.booleanhasName()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}`booleanQuantity of the Document associated with the user event.booleanhasUri()The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DocumentInfo.Builderstatic DocumentInfo.BuildernewBuilder(DocumentInfo prototype) protected DocumentInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DocumentInfoparseDelimitedFrom(InputStream input) static DocumentInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentInfoparseFrom(byte[] data) static DocumentInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentInfoparseFrom(com.google.protobuf.ByteString data) static DocumentInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentInfoparseFrom(com.google.protobuf.CodedInputStream input) static DocumentInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentInfoparseFrom(InputStream input) static DocumentInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentInfoparseFrom(ByteBuffer data) static DocumentInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DocumentInfo>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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER- See Also:
-
PROMOTION_IDS_FIELD_NUMBER
public static final int PROMOTION_IDS_FIELD_NUMBER- See Also:
-
JOINED_FIELD_NUMBER
public static final int JOINED_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
-
getDocumentDescriptorCase
- Specified by:
getDocumentDescriptorCasein interfaceDocumentInfoOrBuilder
-
hasId
public boolean hasId()The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Specified by:
hasIdin interfaceDocumentInfoOrBuilder- Returns:
- Whether the id field is set.
-
getId
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Specified by:
getIdin interfaceDocumentInfoOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Specified by:
getIdBytesin interfaceDocumentInfoOrBuilder- Returns:
- The bytes for id.
-
hasName
public 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) = { ... }- Specified by:
hasNamein interfaceDocumentInfoOrBuilder- Returns:
- Whether the name field is set.
-
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) = { ... }- Specified by:
getNamein interfaceDocumentInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public 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) = { ... }- Specified by:
getNameBytesin interfaceDocumentInfoOrBuilder- Returns:
- The bytes for name.
-
hasUri
public boolean hasUri()The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Specified by:
hasUriin interfaceDocumentInfoOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Specified by:
getUriin interfaceDocumentInfoOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Specified by:
getUriBytesin interfaceDocumentInfoOrBuilder- Returns:
- The bytes for uri.
-
hasQuantity
public 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;- Specified by:
hasQuantityin interfaceDocumentInfoOrBuilder- Returns:
- Whether the quantity field is set.
-
getQuantity
public 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;- Specified by:
getQuantityin interfaceDocumentInfoOrBuilder- Returns:
- The quantity.
-
getPromotionIdsList
public 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;- Specified by:
getPromotionIdsListin interfaceDocumentInfoOrBuilder- Returns:
- A list containing the promotionIds.
-
getPromotionIdsCount
public int getPromotionIdsCount()The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Specified by:
getPromotionIdsCountin interfaceDocumentInfoOrBuilder- Returns:
- The count of promotionIds.
-
getPromotionIds
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Specified by:
getPromotionIdsin interfaceDocumentInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The promotionIds at the given index.
-
getPromotionIdsBytes
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;- Specified by:
getPromotionIdsBytesin interfaceDocumentInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the promotionIds at the given index.
-
getJoined
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];- Specified by:
getJoinedin interfaceDocumentInfoOrBuilder- Returns:
- The joined.
-
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 DocumentInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DocumentInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DocumentInfo 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 DocumentInfo.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
-