Class Document.Content.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
- com.google.cloud.discoveryengine.v1beta.Document.Content.Builder
-
- All Implemented Interfaces:
Document.ContentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.Content
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 typegoogle.cloud.discoveryengine.v1beta.Document.Content
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document.Content.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.Contentbuild()Document.ContentbuildPartial()Document.Content.Builderclear()Document.Content.BuilderclearContent()Document.Content.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Document.Content.BuilderclearMimeType()The MIME type of the content.Document.Content.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Document.Content.BuilderclearRawBytes()The content represented as a stream of bytes.Document.Content.BuilderclearUri()The URI of the content.Document.Content.Builderclone()Document.Content.ContentCasegetContentCase()Document.ContentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMimeType()The MIME type of the content.com.google.protobuf.ByteStringgetMimeTypeBytes()The MIME type of the content.com.google.protobuf.ByteStringgetRawBytes()The content represented as a stream of bytes.StringgetUri()The URI of the content.com.google.protobuf.ByteStringgetUriBytes()The URI of the content.booleanhasRawBytes()The content represented as a stream of bytes.booleanhasUri()The URI of the content.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Document.Content.BuildermergeFrom(Document.Content other)Document.Content.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Document.Content.BuildermergeFrom(com.google.protobuf.Message other)Document.Content.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.Content.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.Content.BuildersetMimeType(String value)The MIME type of the content.Document.Content.BuildersetMimeTypeBytes(com.google.protobuf.ByteString value)The MIME type of the content.Document.Content.BuildersetRawBytes(com.google.protobuf.ByteString value)The content represented as a stream of bytes.Document.Content.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Document.Content.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.Content.BuildersetUri(String value)The URI of the content.Document.Content.BuildersetUriBytes(com.google.protobuf.ByteString value)The URI of the content.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Document.Content.Builder>
-
clear
public Document.Content.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.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.GeneratedMessageV3.Builder<Document.Content.Builder>
-
getDefaultInstanceForType
public Document.Content getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document.Content build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document.Content buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Content.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
setField
public Document.Content.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
clearField
public Document.Content.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
clearOneof
public Document.Content.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
setRepeatedField
public Document.Content.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
addRepeatedField
public Document.Content.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
mergeFrom
public Document.Content.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Content.Builder>
-
mergeFrom
public Document.Content.Builder mergeFrom(Document.Content other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
mergeFrom
public Document.Content.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<Document.Content.Builder>- Throws:
IOException
-
getContentCase
public Document.Content.ContentCase getContentCase()
- Specified by:
getContentCasein interfaceDocument.ContentOrBuilder
-
clearContent
public Document.Content.Builder clearContent()
-
hasRawBytes
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;- Specified by:
hasRawBytesin interfaceDocument.ContentOrBuilder- Returns:
- Whether the rawBytes field is set.
-
getRawBytes
public 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;- Specified by:
getRawBytesin interfaceDocument.ContentOrBuilder- Returns:
- The rawBytes.
-
setRawBytes
public 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;- Parameters:
value- The rawBytes to set.- Returns:
- This builder for chaining.
-
clearRawBytes
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;- Returns:
- This builder for chaining.
-
hasUri
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 100 MB.
string uri = 3;- Specified by:
hasUriin interfaceDocument.ContentOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public 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 100 MB.
string uri = 3;- Specified by:
getUriin interfaceDocument.ContentOrBuilder- Returns:
- The uri.
-
getUriBytes
public 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 100 MB.
string uri = 3;- Specified by:
getUriBytesin interfaceDocument.ContentOrBuilder- Returns:
- The bytes for uri.
-
setUri
public 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 100 MB.
string uri = 3;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
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 100 MB.
string uri = 3;- Returns:
- This builder for chaining.
-
setUriBytes
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 100 MB.
string uri = 3;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getMimeType
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;- Specified by:
getMimeTypein interfaceDocument.ContentOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public 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;- Specified by:
getMimeTypeBytesin interfaceDocument.ContentOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
public 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;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
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;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
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;- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Document.Content.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
mergeUnknownFields
public final Document.Content.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Content.Builder>
-
-