Class DocumentInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentInfo.Builder>
com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder
- All Implemented Interfaces:
DocumentInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentInfo
public static final class DocumentInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentInfo.Builder>
implements DocumentInfoOrBuilder
Detailed document information associated with a user event.Protobuf type
google.cloud.discoveryengine.v1beta.DocumentInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllPromotionIds(Iterable<String> values) The promotion IDs associated with this Document.addPromotionIds(String value) The promotion IDs associated with this Document.addPromotionIdsBytes(com.google.protobuf.ByteString value) The promotion IDs associated with this Document.build()clear()clearId()The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.Output only.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}`The promotion IDs associated with this Document.Quantity of the Document associated with the user event.clearUri()The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.static final com.google.protobuf.Descriptors.Descriptorcom.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}`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.getUri()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.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 booleanmergeFrom(DocumentInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.setIdBytes(com.google.protobuf.ByteString value) The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.setJoined(boolean value) Output only.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}`setNameBytes(com.google.protobuf.ByteString value) 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}`setPromotionIds(int index, String value) The promotion IDs associated with this Document.setQuantity(int value) Quantity of the Document associated with the user event.The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.setUriBytes(com.google.protobuf.ByteString value) The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<DocumentInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DocumentInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DocumentInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentInfo.Builder>
-
mergeFrom
public DocumentInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentInfo.Builder>- Throws:
IOException
-
getDocumentDescriptorCase
- Specified by:
getDocumentDescriptorCasein interfaceDocumentInfoOrBuilder
-
clearDocumentDescriptor
-
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.
-
setId
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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.
-
setName
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setUri
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Returns:
- This builder for chaining.
-
setUriBytes
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
string uri = 6;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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.
-
setQuantity
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;- Parameters:
value- The quantity to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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.
-
setPromotionIds
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Parameters:
index- The index to set the value at.value- The promotionIds to set.- Returns:
- This builder for chaining.
-
addPromotionIds
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Parameters:
value- The promotionIds to add.- Returns:
- This builder for chaining.
-
addAllPromotionIds
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Parameters:
values- The promotionIds to add.- Returns:
- This builder for chaining.
-
clearPromotionIds
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Returns:
- This builder for chaining.
-
addPromotionIdsBytes
The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
repeated string promotion_ids = 4;- Parameters:
value- The bytes of the promotionIds to add.- Returns:
- This builder for chaining.
-
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.
-
setJoined
Output only. Whether the referenced Document can be found in the data store.
bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The joined to set.- Returns:
- This builder for chaining.
-
clearJoined
Output only. Whether the referenced Document can be found in the data store.
bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-