public static final class Document.Content.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder> implements Document.ContentOrBuilder
Unstructured data linked to this document.Protobuf type
google.cloud.discoveryengine.v1beta.Document.Content| Modifier and Type | Method and Description |
|---|---|
Document.Content.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Content |
build() |
Document.Content |
buildPartial() |
Document.Content.Builder |
clear() |
Document.Content.Builder |
clearContent() |
Document.Content.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.Content.Builder |
clearMimeType()
The MIME type of the content.
|
Document.Content.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.Content.Builder |
clearRawBytes()
The content represented as a stream of bytes.
|
Document.Content.Builder |
clearUri()
The URI of the content.
|
Document.Content.Builder |
clone() |
Document.Content.ContentCase |
getContentCase() |
Document.Content |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMimeType()
The MIME type of the content.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
The MIME type of the content.
|
com.google.protobuf.ByteString |
getRawBytes()
The content represented as a stream of bytes.
|
String |
getUri()
The URI of the content.
|
com.google.protobuf.ByteString |
getUriBytes()
The URI of the content.
|
boolean |
hasRawBytes()
The content represented as a stream of bytes.
|
boolean |
hasUri()
The URI of the content.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.Content.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.Content.Builder |
mergeFrom(Document.Content other) |
Document.Content.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.Content.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Content.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Content.Builder |
setMimeType(String value)
The MIME type of the content.
|
Document.Content.Builder |
setMimeTypeBytes(com.google.protobuf.ByteString value)
The MIME type of the content.
|
Document.Content.Builder |
setRawBytes(com.google.protobuf.ByteString value)
The content represented as a stream of bytes.
|
Document.Content.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.Content.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Content.Builder |
setUri(String value)
The URI of the content.
|
Document.Content.Builder |
setUriBytes(com.google.protobuf.ByteString value)
The URI of the content.
|
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<Document.Content.Builder>public Document.Content.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.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<Document.Content.Builder>public Document.Content getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.Content build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.Content buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Content.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>public Document.Content.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<Document.Content.Builder>public Document.Content.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>public Document.Content.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>public Document.Content.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<Document.Content.Builder>public Document.Content.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<Document.Content.Builder>public Document.Content.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Content.Builder>public Document.Content.Builder mergeFrom(Document.Content other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>public Document.Content.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<Document.Content.Builder>IOExceptionpublic Document.Content.ContentCase getContentCase()
getContentCase in interface Document.ContentOrBuilderpublic Document.Content.Builder clearContent()
public boolean hasRawBytes()
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
bytes raw_bytes = 2;hasRawBytes in interface Document.ContentOrBuilderpublic com.google.protobuf.ByteString getRawBytes()
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
bytes raw_bytes = 2;getRawBytes in interface Document.ContentOrBuilderpublic Document.Content.Builder setRawBytes(com.google.protobuf.ByteString value)
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
bytes raw_bytes = 2;value - The rawBytes to set.public Document.Content.Builder clearRawBytes()
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
bytes raw_bytes = 2;public boolean hasUri()
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;hasUri in interface Document.ContentOrBuilderpublic String getUri()
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;getUri in interface Document.ContentOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;getUriBytes in interface Document.ContentOrBuilderpublic Document.Content.Builder setUri(String value)
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;value - The uri to set.public Document.Content.Builder clearUri()
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;public Document.Content.Builder setUriBytes(com.google.protobuf.ByteString value)
The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats.
string uri = 3;value - The bytes for uri to set.public String getMimeType()
The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;getMimeType in interface Document.ContentOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;getMimeTypeBytes in interface Document.ContentOrBuilderpublic Document.Content.Builder setMimeType(String value)
The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;value - The mimeType to set.public Document.Content.Builder clearMimeType()
The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;public Document.Content.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;value - The bytes for mimeType to set.public final Document.Content.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>public final Document.Content.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>Copyright © 2025 Google LLC. All rights reserved.