Package ai.pipestream.events.v1
Class DocumentUploadedEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DocumentUploadedEvent.Builder>
com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
ai.pipestream.events.v1.DocumentUploadedEvent.Builder
- All Implemented Interfaces:
DocumentUploadedEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
DocumentUploadedEvent
public static final class DocumentUploadedEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
implements DocumentUploadedEventOrBuilder
Event published when a document is successfully uploaded to the repositoryProtobuf type
ai.pipestream.events.v1.DocumentUploadedEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Account ID that owns this documentConnector ID that uploaded this documentWhen the document was originally created (from source system)Unique document identifierOriginal filename of the documentWhen the document was last modified (from source system)MIME type of the documentVirtual path in the connector's namespaceS3 object key where document is storedbooleancontainsMetadata(String key) Additional metadata key-value pairsAccount ID that owns this documentcom.google.protobuf.ByteStringAccount ID that owns this documentConnector ID that uploaded this documentcom.google.protobuf.ByteStringConnector ID that uploaded this documentcom.google.protobuf.TimestampWhen the document was originally created (from source system)com.google.protobuf.Timestamp.BuilderWhen the document was originally created (from source system)com.google.protobuf.TimestampOrBuilderWhen the document was originally created (from source system)static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDocId()Unique document identifiercom.google.protobuf.ByteStringUnique document identifierOriginal filename of the documentcom.google.protobuf.ByteStringOriginal filename of the documentcom.google.protobuf.TimestampWhen the document was last modified (from source system)com.google.protobuf.Timestamp.BuilderWhen the document was last modified (from source system)com.google.protobuf.TimestampOrBuilderWhen the document was last modified (from source system)Deprecated.intAdditional metadata key-value pairsAdditional metadata key-value pairsgetMetadataOrDefault(String key, String defaultValue) Additional metadata key-value pairsgetMetadataOrThrow(String key) Additional metadata key-value pairsMIME type of the documentcom.google.protobuf.ByteStringMIME type of the documentDeprecated.getPath()Virtual path in the connector's namespacecom.google.protobuf.ByteStringVirtual path in the connector's namespacegetS3Key()S3 object key where document is storedcom.google.protobuf.ByteStringS3 object key where document is storedbooleanWhen the document was originally created (from source system)booleanWhen the document was last modified (from source system)protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreationDate(com.google.protobuf.Timestamp value) When the document was originally created (from source system)mergeFrom(DocumentUploadedEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastModifiedDate(com.google.protobuf.Timestamp value) When the document was last modified (from source system)putAllMetadata(Map<String, String> values) Additional metadata key-value pairsputMetadata(String key, String value) Additional metadata key-value pairsremoveMetadata(String key) Additional metadata key-value pairssetAccountId(String value) Account ID that owns this documentsetAccountIdBytes(com.google.protobuf.ByteString value) Account ID that owns this documentsetConnectorId(String value) Connector ID that uploaded this documentsetConnectorIdBytes(com.google.protobuf.ByteString value) Connector ID that uploaded this documentsetCreationDate(com.google.protobuf.Timestamp value) When the document was originally created (from source system)setCreationDate(com.google.protobuf.Timestamp.Builder builderForValue) When the document was originally created (from source system)Unique document identifiersetDocIdBytes(com.google.protobuf.ByteString value) Unique document identifiersetFilename(String value) Original filename of the documentsetFilenameBytes(com.google.protobuf.ByteString value) Original filename of the documentsetLastModifiedDate(com.google.protobuf.Timestamp value) When the document was last modified (from source system)setLastModifiedDate(com.google.protobuf.Timestamp.Builder builderForValue) When the document was last modified (from source system)setMimeType(String value) MIME type of the documentsetMimeTypeBytes(com.google.protobuf.ByteString value) MIME type of the documentVirtual path in the connector's namespacesetPathBytes(com.google.protobuf.ByteString value) Virtual path in the connector's namespaceS3 object key where document is storedsetS3KeyBytes(com.google.protobuf.ByteString value) S3 object key where document is storedMethods 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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.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<DocumentUploadedEvent.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<DocumentUploadedEvent.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<DocumentUploadedEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
-
mergeFrom
public DocumentUploadedEvent.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<DocumentUploadedEvent.Builder>- Throws:
IOException
-
getDocId
Unique document identifier
string doc_id = 1 [json_name = "docId"];- Specified by:
getDocIdin interfaceDocumentUploadedEventOrBuilder- Returns:
- The docId.
-
getDocIdBytes
public com.google.protobuf.ByteString getDocIdBytes()Unique document identifier
string doc_id = 1 [json_name = "docId"];- Specified by:
getDocIdBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for docId.
-
setDocId
Unique document identifier
string doc_id = 1 [json_name = "docId"];- Parameters:
value- The docId to set.- Returns:
- This builder for chaining.
-
clearDocId
Unique document identifier
string doc_id = 1 [json_name = "docId"];- Returns:
- This builder for chaining.
-
setDocIdBytes
Unique document identifier
string doc_id = 1 [json_name = "docId"];- Parameters:
value- The bytes for docId to set.- Returns:
- This builder for chaining.
-
getS3Key
S3 object key where document is stored
string s3_key = 2 [json_name = "s3Key"];- Specified by:
getS3Keyin interfaceDocumentUploadedEventOrBuilder- Returns:
- The s3Key.
-
getS3KeyBytes
public com.google.protobuf.ByteString getS3KeyBytes()S3 object key where document is stored
string s3_key = 2 [json_name = "s3Key"];- Specified by:
getS3KeyBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for s3Key.
-
setS3Key
S3 object key where document is stored
string s3_key = 2 [json_name = "s3Key"];- Parameters:
value- The s3Key to set.- Returns:
- This builder for chaining.
-
clearS3Key
S3 object key where document is stored
string s3_key = 2 [json_name = "s3Key"];- Returns:
- This builder for chaining.
-
setS3KeyBytes
S3 object key where document is stored
string s3_key = 2 [json_name = "s3Key"];- Parameters:
value- The bytes for s3Key to set.- Returns:
- This builder for chaining.
-
getConnectorId
Connector ID that uploaded this document
string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdin interfaceDocumentUploadedEventOrBuilder- Returns:
- The connectorId.
-
getConnectorIdBytes
public com.google.protobuf.ByteString getConnectorIdBytes()Connector ID that uploaded this document
string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for connectorId.
-
setConnectorId
Connector ID that uploaded this document
string connector_id = 3 [json_name = "connectorId"];- Parameters:
value- The connectorId to set.- Returns:
- This builder for chaining.
-
clearConnectorId
Connector ID that uploaded this document
string connector_id = 3 [json_name = "connectorId"];- Returns:
- This builder for chaining.
-
setConnectorIdBytes
Connector ID that uploaded this document
string connector_id = 3 [json_name = "connectorId"];- Parameters:
value- The bytes for connectorId to set.- Returns:
- This builder for chaining.
-
getAccountId
Account ID that owns this document
string account_id = 4 [json_name = "accountId"];- Specified by:
getAccountIdin interfaceDocumentUploadedEventOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Account ID that owns this document
string account_id = 4 [json_name = "accountId"];- Specified by:
getAccountIdBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Account ID that owns this document
string account_id = 4 [json_name = "accountId"];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Account ID that owns this document
string account_id = 4 [json_name = "accountId"];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Account ID that owns this document
string account_id = 4 [json_name = "accountId"];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:DocumentUploadedEventOrBuilderAdditional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceDocumentUploadedEventOrBuilder
-
containsMetadata
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceDocumentUploadedEventOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceDocumentUploadedEventOrBuilder
-
getMetadataMap
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceDocumentUploadedEventOrBuilder
-
getMetadataOrDefault
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceDocumentUploadedEventOrBuilder
-
getMetadataOrThrow
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceDocumentUploadedEventOrBuilder
-
clearMetadata
-
removeMetadata
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"]; -
putAllMetadata
Additional metadata key-value pairs
map<string, string> metadata = 5 [json_name = "metadata"]; -
getFilename
Original filename of the document
string filename = 6 [json_name = "filename"];- Specified by:
getFilenamein interfaceDocumentUploadedEventOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()Original filename of the document
string filename = 6 [json_name = "filename"];- Specified by:
getFilenameBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for filename.
-
setFilename
Original filename of the document
string filename = 6 [json_name = "filename"];- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
Original filename of the document
string filename = 6 [json_name = "filename"];- Returns:
- This builder for chaining.
-
setFilenameBytes
Original filename of the document
string filename = 6 [json_name = "filename"];- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
getMimeType
MIME type of the document
string mime_type = 7 [json_name = "mimeType"];- Specified by:
getMimeTypein interfaceDocumentUploadedEventOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()MIME type of the document
string mime_type = 7 [json_name = "mimeType"];- Specified by:
getMimeTypeBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
MIME type of the document
string mime_type = 7 [json_name = "mimeType"];- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
MIME type of the document
string mime_type = 7 [json_name = "mimeType"];- Returns:
- This builder for chaining.
-
setMimeTypeBytes
MIME type of the document
string mime_type = 7 [json_name = "mimeType"];- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getPath
Virtual path in the connector's namespace
string path = 8 [json_name = "path"];- Specified by:
getPathin interfaceDocumentUploadedEventOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Virtual path in the connector's namespace
string path = 8 [json_name = "path"];- Specified by:
getPathBytesin interfaceDocumentUploadedEventOrBuilder- Returns:
- The bytes for path.
-
setPath
Virtual path in the connector's namespace
string path = 8 [json_name = "path"];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Virtual path in the connector's namespace
string path = 8 [json_name = "path"];- Returns:
- This builder for chaining.
-
setPathBytes
Virtual path in the connector's namespace
string path = 8 [json_name = "path"];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
hasCreationDate
public boolean hasCreationDate()When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"];- Specified by:
hasCreationDatein interfaceDocumentUploadedEventOrBuilder- Returns:
- Whether the creationDate field is set.
-
getCreationDate
public com.google.protobuf.Timestamp getCreationDate()When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"];- Specified by:
getCreationDatein interfaceDocumentUploadedEventOrBuilder- Returns:
- The creationDate.
-
setCreationDate
When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"]; -
setCreationDate
public DocumentUploadedEvent.Builder setCreationDate(com.google.protobuf.Timestamp.Builder builderForValue) When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"]; -
mergeCreationDate
When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"]; -
clearCreationDate
When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"]; -
getCreationDateBuilder
public com.google.protobuf.Timestamp.Builder getCreationDateBuilder()When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"]; -
getCreationDateOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreationDateOrBuilder()When the document was originally created (from source system)
.google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"];- Specified by:
getCreationDateOrBuilderin interfaceDocumentUploadedEventOrBuilder
-
hasLastModifiedDate
public boolean hasLastModifiedDate()When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"];- Specified by:
hasLastModifiedDatein interfaceDocumentUploadedEventOrBuilder- Returns:
- Whether the lastModifiedDate field is set.
-
getLastModifiedDate
public com.google.protobuf.Timestamp getLastModifiedDate()When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"];- Specified by:
getLastModifiedDatein interfaceDocumentUploadedEventOrBuilder- Returns:
- The lastModifiedDate.
-
setLastModifiedDate
When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"]; -
setLastModifiedDate
public DocumentUploadedEvent.Builder setLastModifiedDate(com.google.protobuf.Timestamp.Builder builderForValue) When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"]; -
mergeLastModifiedDate
When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"]; -
clearLastModifiedDate
When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"]; -
getLastModifiedDateBuilder
public com.google.protobuf.Timestamp.Builder getLastModifiedDateBuilder()When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"]; -
getLastModifiedDateOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastModifiedDateOrBuilder()When the document was last modified (from source system)
.google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"];- Specified by:
getLastModifiedDateOrBuilderin interfaceDocumentUploadedEventOrBuilder
-