Class DocumentInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.discoveryengine.v1.DocumentInfo
-
- All Implemented Interfaces:
DocumentInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class DocumentInfo extends com.google.protobuf.GeneratedMessageV3 implements DocumentInfoOrBuilder
Detailed document information associated with a user event.
Protobuf typegoogle.cloud.discoveryengine.v1.DocumentInfo- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentInfo.BuilderDetailed document information associated with a user event.static classDocumentInfo.DocumentDescriptorCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intID_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPROMOTION_IDS_FIELD_NUMBERstatic intQUANTITY_FIELD_NUMBERstatic intURI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static DocumentInfogetDefaultInstance()DocumentInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DocumentInfo.DocumentDescriptorCasegetDocumentDescriptorCase()StringgetId()The [Document][google.cloud.discoveryengine.v1.Document] resource ID.com.google.protobuf.ByteStringgetIdBytes()The [Document][google.cloud.discoveryengine.v1.Document] resource ID.StringgetName()The [Document][google.cloud.discoveryengine.v1.Document] resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`com.google.protobuf.ByteStringgetNameBytes()The [Document][google.cloud.discoveryengine.v1.Document] resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`com.google.protobuf.Parser<DocumentInfo>getParserForType()StringgetPromotionIds(int index)The promotion IDs associated with this Document.com.google.protobuf.ByteStringgetPromotionIdsBytes(int index)The promotion IDs associated with this Document.intgetPromotionIdsCount()The promotion IDs associated with this Document.com.google.protobuf.ProtocolStringListgetPromotionIdsList()The promotion IDs associated with this Document.intgetQuantity()Quantity of the Document associated with the user event.intgetSerializedSize()StringgetUri()The [Document][google.cloud.discoveryengine.v1.Document] URI - only allowed for website data stores.com.google.protobuf.ByteStringgetUriBytes()The [Document][google.cloud.discoveryengine.v1.Document] URI - only allowed for website data stores.inthashCode()booleanhasId()The [Document][google.cloud.discoveryengine.v1.Document] resource ID.booleanhasName()The [Document][google.cloud.discoveryengine.v1.Document] resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`booleanhasQuantity()Quantity of the Document associated with the user event.booleanhasUri()The [Document][google.cloud.discoveryengine.v1.Document] URI - only allowed for website data stores.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DocumentInfo.BuildernewBuilder()static DocumentInfo.BuildernewBuilder(DocumentInfo prototype)DocumentInfo.BuildernewBuilderForType()protected DocumentInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()DocumentInfo.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROMOTION_IDS_FIELD_NUMBER
public static final int PROMOTION_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDocumentDescriptorCase
public DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase()
- Specified by:
getDocumentDescriptorCasein interfaceDocumentInfoOrBuilder
-
hasId
public boolean hasId()
The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
string id = 1;- Specified by:
hasIdin interfaceDocumentInfoOrBuilder- Returns:
- Whether the id field is set.
-
getId
public String getId()
The [Document][google.cloud.discoveryengine.v1.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.v1.Document] resource ID.
string id = 1;- Specified by:
getIdBytesin interfaceDocumentInfoOrBuilder- Returns:
- The bytes for id.
-
hasName
public boolean hasName()
The [Document][google.cloud.discoveryengine.v1.Document] resource full name, of the form: `projects/{project_id}/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
public String getName()
The [Document][google.cloud.discoveryengine.v1.Document] resource full name, of the form: `projects/{project_id}/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.v1.Document] resource full name, of the form: `projects/{project_id}/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.v1.Document] URI - only allowed for website data stores.
string uri = 6;- Specified by:
hasUriin interfaceDocumentInfoOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public String getUri()
The [Document][google.cloud.discoveryengine.v1.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.v1.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 will be 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 will be 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
public 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;- 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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static DocumentInfo parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentInfo parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DocumentInfo.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DocumentInfo.Builder newBuilder()
-
newBuilder
public static DocumentInfo.Builder newBuilder(DocumentInfo prototype)
-
toBuilder
public DocumentInfo.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DocumentInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DocumentInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DocumentInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<DocumentInfo> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DocumentInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-