public static final class DocumentInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder> implements DocumentInfoOrBuilder
Detailed document information associated with a user event.Protobuf type
google.cloud.discoveryengine.v1alpha.DocumentInfo| Modifier and Type | Method and Description |
|---|---|
DocumentInfo.Builder |
addAllPromotionIds(Iterable<String> values)
The promotion IDs associated with this Document.
|
DocumentInfo.Builder |
addPromotionIds(String value)
The promotion IDs associated with this Document.
|
DocumentInfo.Builder |
addPromotionIdsBytes(com.google.protobuf.ByteString value)
The promotion IDs associated with this Document.
|
DocumentInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentInfo |
build() |
DocumentInfo |
buildPartial() |
DocumentInfo.Builder |
clear() |
DocumentInfo.Builder |
clearDocumentDescriptor() |
DocumentInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DocumentInfo.Builder |
clearId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
DocumentInfo.Builder |
clearName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
DocumentInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DocumentInfo.Builder |
clearPromotionIds()
The promotion IDs associated with this Document.
|
DocumentInfo.Builder |
clearQuantity()
Quantity of the Document associated with the user event.
|
DocumentInfo.Builder |
clearUri()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
DocumentInfo.Builder |
clone() |
DocumentInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DocumentInfo.DocumentDescriptorCase |
getDocumentDescriptorCase() |
String |
getId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
com.google.protobuf.ByteString |
getIdBytes()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
String |
getName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
com.google.protobuf.ByteString |
getNameBytes()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
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.
|
String |
getUri()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
com.google.protobuf.ByteString |
getUriBytes()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
boolean |
hasId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
boolean |
hasName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
boolean |
hasQuantity()
Quantity of the Document associated with the user event.
|
boolean |
hasUri()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DocumentInfo.Builder |
mergeFrom(DocumentInfo other) |
DocumentInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
DocumentInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentInfo.Builder |
setId(String value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
DocumentInfo.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
ID.
|
DocumentInfo.Builder |
setName(String value)
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
DocumentInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... } |
DocumentInfo.Builder |
setPromotionIds(int index,
String value)
The promotion IDs associated with this Document.
|
DocumentInfo.Builder |
setQuantity(int value)
Quantity of the Document associated with the user event.
|
DocumentInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DocumentInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentInfo.Builder |
setUri(String value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
DocumentInfo.Builder |
setUriBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
allowed for website data stores.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DocumentInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DocumentInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DocumentInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentInfo.Builder>public DocumentInfo.Builder mergeFrom(DocumentInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public DocumentInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentInfo.Builder>IOExceptionpublic DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase()
getDocumentDescriptorCase in interface DocumentInfoOrBuilderpublic DocumentInfo.Builder clearDocumentDescriptor()
public boolean hasId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;hasId in interface DocumentInfoOrBuilderpublic String getId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;getId in interface DocumentInfoOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;getIdBytes in interface DocumentInfoOrBuilderpublic DocumentInfo.Builder setId(String value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;value - The id to set.public DocumentInfo.Builder clearId()
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;public DocumentInfo.Builder setIdBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] resource ID.
string id = 1;value - The bytes for id to set.public boolean hasName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }hasName in interface DocumentInfoOrBuilderpublic String getName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }getName in interface DocumentInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }getNameBytes in interface DocumentInfoOrBuilderpublic DocumentInfo.Builder setName(String value)
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }value - The name to set.public DocumentInfo.Builder clearName()
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }public DocumentInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.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) = { ... }value - The bytes for name to set.public boolean hasUri()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only allowed for website data stores.
string uri = 6;hasUri in interface DocumentInfoOrBuilderpublic String getUri()
The [Document][google.cloud.discoveryengine.v1alpha.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.v1alpha.Document] URI - only allowed for website data stores.
string uri = 6;getUriBytes in interface DocumentInfoOrBuilderpublic DocumentInfo.Builder setUri(String value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only allowed for website data stores.
string uri = 6;value - The uri to set.public DocumentInfo.Builder clearUri()
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only allowed for website data stores.
string uri = 6;public DocumentInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only allowed for website data stores.
string uri = 6;value - The bytes for uri to set.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;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 DocumentInfo.Builder setQuantity(int value)
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;value - The quantity to set.public DocumentInfo.Builder clearQuantity()
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;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;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 DocumentInfo.Builder setPromotionIds(int index, String value)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;index - The index to set the value at.value - The promotionIds to set.public DocumentInfo.Builder addPromotionIds(String value)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;value - The promotionIds to add.public DocumentInfo.Builder addAllPromotionIds(Iterable<String> values)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;values - The promotionIds to add.public DocumentInfo.Builder clearPromotionIds()
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;public DocumentInfo.Builder addPromotionIdsBytes(com.google.protobuf.ByteString value)
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;value - The bytes of the promotionIds to add.public final DocumentInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>public final DocumentInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.