Class Chunk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>
com.google.cloud.discoveryengine.v1.Chunk.Builder
- All Implemented Interfaces:
ChunkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Chunk
public static final class Chunk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>
implements ChunkOrBuilder
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.Protobuf type
google.cloud.discoveryengine.v1.Chunk-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotationContents(Iterable<String> values) Output only.addAllAnnotationMetadata(Iterable<? extends Chunk.AnnotationMetadata> values) Output only.addAllDataUrls(Iterable<String> values) Output only.addAnnotationContents(String value) Output only.addAnnotationContentsBytes(com.google.protobuf.ByteString value) Output only.addAnnotationMetadata(int index, Chunk.AnnotationMetadata value) Output only.addAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue) Output only.Output only.addAnnotationMetadata(Chunk.AnnotationMetadata.Builder builderForValue) Output only.Output only.addAnnotationMetadataBuilder(int index) Output only.addDataUrls(String value) Output only.addDataUrlsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Content is a string from a document (parsed content).Output only.Output only.Metadata of the document from the current chunk.clearId()Unique chunk ID of the current chunk.The full resource name of the chunk.Page span of the chunk.Output only.getAnnotationContents(int index) Output only.com.google.protobuf.ByteStringgetAnnotationContentsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getAnnotationMetadata(int index) Output only.getAnnotationMetadataBuilder(int index) Output only.Output only.intOutput only.Output only.getAnnotationMetadataOrBuilder(int index) Output only.List<? extends Chunk.AnnotationMetadataOrBuilder>Output only.Output only.Output only.Output only.Content is a string from a document (parsed content).com.google.protobuf.ByteStringContent is a string from a document (parsed content).getDataUrls(int index) Output only.com.google.protobuf.ByteStringgetDataUrlsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.StructOutput only.com.google.protobuf.Struct.BuilderOutput only.com.google.protobuf.StructOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMetadata of the document from the current chunk.Metadata of the document from the current chunk.Metadata of the document from the current chunk.getId()Unique chunk ID of the current chunk.com.google.protobuf.ByteStringUnique chunk ID of the current chunk.getName()The full resource name of the chunk.com.google.protobuf.ByteStringThe full resource name of the chunk.Page span of the chunk.Page span of the chunk.Page span of the chunk.doubleOutput only.booleanOutput only.booleanOutput only.booleanMetadata of the document from the current chunk.booleanPage span of the chunk.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeDerivedStructData(com.google.protobuf.Struct value) Output only.Metadata of the document from the current chunk.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePageSpan(Chunk.PageSpan value) Page span of the chunk.removeAnnotationMetadata(int index) Output only.setAnnotationContents(int index, String value) Output only.setAnnotationMetadata(int index, Chunk.AnnotationMetadata value) Output only.setAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue) Output only.Output only.setChunkMetadata(Chunk.ChunkMetadata.Builder builderForValue) Output only.setContent(String value) Content is a string from a document (parsed content).setContentBytes(com.google.protobuf.ByteString value) Content is a string from a document (parsed content).setDataUrls(int index, String value) Output only.setDerivedStructData(com.google.protobuf.Struct value) Output only.setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) Output only.Metadata of the document from the current chunk.setDocumentMetadata(Chunk.DocumentMetadata.Builder builderForValue) Metadata of the document from the current chunk.Unique chunk ID of the current chunk.setIdBytes(com.google.protobuf.ByteString value) Unique chunk ID of the current chunk.The full resource name of the chunk.setNameBytes(com.google.protobuf.ByteString value) The full resource name of the chunk.setPageSpan(Chunk.PageSpan value) Page span of the chunk.setPageSpan(Chunk.PageSpan.Builder builderForValue) Page span of the chunk.setRelevanceScore(double value) Output only.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<Chunk.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<Chunk.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<Chunk.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<Chunk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>
-
mergeFrom
public Chunk.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<Chunk.Builder>- Throws:
IOException
-
getName
The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.string name = 1;- Specified by:
getNamein interfaceChunkOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.string name = 1;- Specified by:
getNameBytesin interfaceChunkOrBuilder- Returns:
- The bytes for name.
-
setName
The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
Unique chunk ID of the current chunk.
string id = 2;- Specified by:
getIdin interfaceChunkOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Unique chunk ID of the current chunk.
string id = 2;- Specified by:
getIdBytesin interfaceChunkOrBuilder- Returns:
- The bytes for id.
-
setId
Unique chunk ID of the current chunk.
string id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Unique chunk ID of the current chunk.
string id = 2;- Returns:
- This builder for chaining.
-
setIdBytes
Unique chunk ID of the current chunk.
string id = 2;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getContent
Content is a string from a document (parsed content).
string content = 3;- Specified by:
getContentin interfaceChunkOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()Content is a string from a document (parsed content).
string content = 3;- Specified by:
getContentBytesin interfaceChunkOrBuilder- Returns:
- The bytes for content.
-
setContent
Content is a string from a document (parsed content).
string content = 3;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
Content is a string from a document (parsed content).
string content = 3;- Returns:
- This builder for chaining.
-
setContentBytes
Content is a string from a document (parsed content).
string content = 3;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
hasRelevanceScore
public boolean hasRelevanceScore()Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRelevanceScorein interfaceChunkOrBuilder- Returns:
- Whether the relevanceScore field is set.
-
getRelevanceScore
public double getRelevanceScore()Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRelevanceScorein interfaceChunkOrBuilder- Returns:
- The relevanceScore.
-
setRelevanceScore
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The relevanceScore to set.- Returns:
- This builder for chaining.
-
clearRelevanceScore
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasDocumentMetadata
public boolean hasDocumentMetadata()Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;- Specified by:
hasDocumentMetadatain interfaceChunkOrBuilder- Returns:
- Whether the documentMetadata field is set.
-
getDocumentMetadata
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;- Specified by:
getDocumentMetadatain interfaceChunkOrBuilder- Returns:
- The documentMetadata.
-
setDocumentMetadata
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; -
setDocumentMetadata
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; -
mergeDocumentMetadata
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; -
clearDocumentMetadata
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; -
getDocumentMetadataBuilder
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; -
getDocumentMetadataOrBuilder
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;- Specified by:
getDocumentMetadataOrBuilderin interfaceChunkOrBuilder
-
hasDerivedStructData
public boolean hasDerivedStructData()Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDerivedStructDatain interfaceChunkOrBuilder- Returns:
- Whether the derivedStructData field is set.
-
getDerivedStructData
public com.google.protobuf.Struct getDerivedStructData()Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDerivedStructDatain interfaceChunkOrBuilder- Returns:
- The derivedStructData.
-
setDerivedStructData
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setDerivedStructData
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeDerivedStructData
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearDerivedStructData
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDerivedStructDataBuilder
public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder()Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDerivedStructDataOrBuilder
public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder()Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDerivedStructDataOrBuilderin interfaceChunkOrBuilder
-
hasPageSpan
public boolean hasPageSpan()Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;- Specified by:
hasPageSpanin interfaceChunkOrBuilder- Returns:
- Whether the pageSpan field is set.
-
getPageSpan
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;- Specified by:
getPageSpanin interfaceChunkOrBuilder- Returns:
- The pageSpan.
-
setPageSpan
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; -
setPageSpan
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; -
mergePageSpan
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; -
clearPageSpan
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; -
getPageSpanBuilder
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; -
getPageSpanOrBuilder
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;- Specified by:
getPageSpanOrBuilderin interfaceChunkOrBuilder
-
hasChunkMetadata
public boolean hasChunkMetadata()Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasChunkMetadatain interfaceChunkOrBuilder- Returns:
- Whether the chunkMetadata field is set.
-
getChunkMetadata
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChunkMetadatain interfaceChunkOrBuilder- Returns:
- The chunkMetadata.
-
setChunkMetadata
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setChunkMetadata
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeChunkMetadata
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearChunkMetadata
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getChunkMetadataBuilder
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getChunkMetadataOrBuilder
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChunkMetadataOrBuilderin interfaceChunkOrBuilder
-
getDataUrlsList
public com.google.protobuf.ProtocolStringList getDataUrlsList()Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataUrlsListin interfaceChunkOrBuilder- Returns:
- A list containing the dataUrls.
-
getDataUrlsCount
public int getDataUrlsCount()Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataUrlsCountin interfaceChunkOrBuilder- Returns:
- The count of dataUrls.
-
getDataUrls
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataUrlsin interfaceChunkOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dataUrls at the given index.
-
getDataUrlsBytes
public com.google.protobuf.ByteString getDataUrlsBytes(int index) Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataUrlsBytesin interfaceChunkOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dataUrls at the given index.
-
setDataUrls
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The dataUrls to set.- Returns:
- This builder for chaining.
-
addDataUrls
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The dataUrls to add.- Returns:
- This builder for chaining.
-
addAllDataUrls
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The dataUrls to add.- Returns:
- This builder for chaining.
-
clearDataUrls
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addDataUrlsBytes
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the dataUrls to add.- Returns:
- This builder for chaining.
-
getAnnotationContentsList
public com.google.protobuf.ProtocolStringList getAnnotationContentsList()Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationContentsListin interfaceChunkOrBuilder- Returns:
- A list containing the annotationContents.
-
getAnnotationContentsCount
public int getAnnotationContentsCount()Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationContentsCountin interfaceChunkOrBuilder- Returns:
- The count of annotationContents.
-
getAnnotationContents
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationContentsin interfaceChunkOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotationContents at the given index.
-
getAnnotationContentsBytes
public com.google.protobuf.ByteString getAnnotationContentsBytes(int index) Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationContentsBytesin interfaceChunkOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotationContents at the given index.
-
setAnnotationContents
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The annotationContents to set.- Returns:
- This builder for chaining.
-
addAnnotationContents
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The annotationContents to add.- Returns:
- This builder for chaining.
-
addAllAnnotationContents
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The annotationContents to add.- Returns:
- This builder for chaining.
-
clearAnnotationContents
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addAnnotationContentsBytes
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the annotationContents to add.- Returns:
- This builder for chaining.
-
getAnnotationMetadataList
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationMetadataListin interfaceChunkOrBuilder
-
getAnnotationMetadataCount
public int getAnnotationMetadataCount()Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationMetadataCountin interfaceChunkOrBuilder
-
getAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationMetadatain interfaceChunkOrBuilder
-
setAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setAnnotationMetadata
public Chunk.Builder setAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue) Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAnnotationMetadata
public Chunk.Builder addAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue) Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeAnnotationMetadata
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAnnotationMetadataBuilder
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAnnotationMetadataOrBuilder
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationMetadataOrBuilderin interfaceChunkOrBuilder
-
getAnnotationMetadataOrBuilderList
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAnnotationMetadataOrBuilderListin interfaceChunkOrBuilder
-
addAnnotationMetadataBuilder
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAnnotationMetadataBuilder
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAnnotationMetadataBuilderList
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-