Package ai.pipestream.events.v1
Class RepoMetadataEvent
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.events.v1.RepoMetadataEvent
- All Implemented Interfaces:
RepoMetadataEventOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RepoMetadataEvent
extends com.google.protobuf.GeneratedMessage
implements RepoMetadataEventOrBuilder
Event emitted by the Repository Service's Metadata Indexer once a document's core metadata has been successfully persisted to the database. This event is primarily for OpenSearch Manager to index system-level file metadata.Protobuf type
ai.pipestream.events.v1.RepoMetadataEvent- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEvent emitted by the Repository Service's Metadata Indexer once a document's core metadata has been successfully persisted to the database.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccount ID that owns this documentcom.google.protobuf.ByteStringAccount ID that owns this documentConnector ID that ingested this documentcom.google.protobuf.ByteStringConnector ID that ingested this documentMIME/content type of the documentcom.google.protobuf.ByteStringMIME/content type of the documentstatic RepoMetadataEventstatic final com.google.protobuf.Descriptors.DescriptorUnique document identifiercom.google.protobuf.ByteStringUnique document identifierDrive/repository identifier (UUID as string)com.google.protobuf.ByteStringDrive/repository identifier (UUID as string)Optional error message if persistence partially failed (event should ideally only be emitted on success)com.google.protobuf.ByteStringOptional error message if persistence partially failed (event should ideally only be emitted on success)Unique identifier for this eventcom.google.protobuf.ByteStringUnique identifier for this eventcom.google.protobuf.StructAdditional metadata as flexible JSON structurecom.google.protobuf.StructOrBuilderAdditional metadata as flexible JSON structuregetName()Original filename or node namecom.google.protobuf.ByteStringOriginal filename or node namecom.google.protobuf.Parser<RepoMetadataEvent> getPath()Full path in the repositorycom.google.protobuf.ByteStringFull path in the repositorygetS3Key()S3 object key where document is storedcom.google.protobuf.ByteStringS3 object key where document is storedS3 version ID for versioned bucketscom.google.protobuf.ByteStringS3 version ID for versioned bucketsintlongSize of the document in bytescom.google.protobuf.TimestampWhen this event was generatedcom.google.protobuf.TimestampOrBuilderWhen this event was generatedType of metadata update (created/updated/deleted)intType of metadata update (created/updated/deleted)booleanOptional error message if persistence partially failed (event should ideally only be emitted on success)inthashCode()booleanAdditional metadata as flexible JSON structurebooleanWhen this event was generatedprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RepoMetadataEvent.Builderstatic RepoMetadataEvent.BuildernewBuilder(RepoMetadataEvent prototype) protected RepoMetadataEvent.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RepoMetadataEventparseDelimitedFrom(InputStream input) static RepoMetadataEventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepoMetadataEventparseFrom(byte[] data) static RepoMetadataEventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepoMetadataEventparseFrom(com.google.protobuf.ByteString data) static RepoMetadataEventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepoMetadataEventparseFrom(com.google.protobuf.CodedInputStream input) static RepoMetadataEventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepoMetadataEventparseFrom(InputStream input) static RepoMetadataEventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepoMetadataEventparseFrom(ByteBuffer data) static RepoMetadataEventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RepoMetadataEvent> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EVENT_ID_FIELD_NUMBER
public static final int EVENT_ID_FIELD_NUMBER- See Also:
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
DOCUMENT_ID_FIELD_NUMBER
public static final int DOCUMENT_ID_FIELD_NUMBER- See Also:
-
DRIVE_ID_FIELD_NUMBER
public static final int DRIVE_ID_FIELD_NUMBER- See Also:
-
ACCOUNT_ID_FIELD_NUMBER
public static final int ACCOUNT_ID_FIELD_NUMBER- See Also:
-
CONNECTOR_ID_FIELD_NUMBER
public static final int CONNECTOR_ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
CONTENT_TYPE_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER- See Also:
-
SIZE_BYTES_FIELD_NUMBER
public static final int SIZE_BYTES_FIELD_NUMBER- See Also:
-
S3_KEY_FIELD_NUMBER
public static final int S3_KEY_FIELD_NUMBER- See Also:
-
S3_VERSION_ID_FIELD_NUMBER
public static final int S3_VERSION_ID_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
UPDATE_TYPE_FIELD_NUMBER
public static final int UPDATE_TYPE_FIELD_NUMBER- See Also:
-
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER- See Also:
-
-
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
-
getEventId
Unique identifier for this event
string event_id = 1 [json_name = "eventId"];- Specified by:
getEventIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The eventId.
-
getEventIdBytes
public com.google.protobuf.ByteString getEventIdBytes()Unique identifier for this event
string event_id = 1 [json_name = "eventId"];- Specified by:
getEventIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for eventId.
-
hasTimestamp
public boolean hasTimestamp()When this event was generated
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];- Specified by:
hasTimestampin interfaceRepoMetadataEventOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()When this event was generated
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];- Specified by:
getTimestampin interfaceRepoMetadataEventOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()When this event was generated
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];- Specified by:
getTimestampOrBuilderin interfaceRepoMetadataEventOrBuilder
-
getDocumentId
Unique document identifier
string document_id = 3 [json_name = "documentId"];- Specified by:
getDocumentIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The documentId.
-
getDocumentIdBytes
public com.google.protobuf.ByteString getDocumentIdBytes()Unique document identifier
string document_id = 3 [json_name = "documentId"];- Specified by:
getDocumentIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for documentId.
-
getDriveId
Drive/repository identifier (UUID as string)
string drive_id = 4 [json_name = "driveId"];- Specified by:
getDriveIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The driveId.
-
getDriveIdBytes
public com.google.protobuf.ByteString getDriveIdBytes()Drive/repository identifier (UUID as string)
string drive_id = 4 [json_name = "driveId"];- Specified by:
getDriveIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for driveId.
-
getAccountId
Account ID that owns this document
string account_id = 5 [json_name = "accountId"];- Specified by:
getAccountIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Account ID that owns this document
string account_id = 5 [json_name = "accountId"];- Specified by:
getAccountIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for accountId.
-
getConnectorId
Connector ID that ingested this document
string connector_id = 6 [json_name = "connectorId"];- Specified by:
getConnectorIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The connectorId.
-
getConnectorIdBytes
public com.google.protobuf.ByteString getConnectorIdBytes()Connector ID that ingested this document
string connector_id = 6 [json_name = "connectorId"];- Specified by:
getConnectorIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for connectorId.
-
getName
Original filename or node name
string name = 7 [json_name = "name"];- Specified by:
getNamein interfaceRepoMetadataEventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Original filename or node name
string name = 7 [json_name = "name"];- Specified by:
getNameBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for name.
-
getPath
Full path in the repository
string path = 8 [json_name = "path"];- Specified by:
getPathin interfaceRepoMetadataEventOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Full path in the repository
string path = 8 [json_name = "path"];- Specified by:
getPathBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for path.
-
getContentType
MIME/content type of the document
string content_type = 9 [json_name = "contentType"];- Specified by:
getContentTypein interfaceRepoMetadataEventOrBuilder- Returns:
- The contentType.
-
getContentTypeBytes
public com.google.protobuf.ByteString getContentTypeBytes()MIME/content type of the document
string content_type = 9 [json_name = "contentType"];- Specified by:
getContentTypeBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for contentType.
-
getSizeBytes
public long getSizeBytes()Size of the document in bytes
int64 size_bytes = 10 [json_name = "sizeBytes"];- Specified by:
getSizeBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The sizeBytes.
-
getS3Key
S3 object key where document is stored
string s3_key = 11 [json_name = "s3Key"];- Specified by:
getS3Keyin interfaceRepoMetadataEventOrBuilder- Returns:
- The s3Key.
-
getS3KeyBytes
public com.google.protobuf.ByteString getS3KeyBytes()S3 object key where document is stored
string s3_key = 11 [json_name = "s3Key"];- Specified by:
getS3KeyBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for s3Key.
-
getS3VersionId
S3 version ID for versioned buckets
string s3_version_id = 12 [json_name = "s3VersionId"];- Specified by:
getS3VersionIdin interfaceRepoMetadataEventOrBuilder- Returns:
- The s3VersionId.
-
getS3VersionIdBytes
public com.google.protobuf.ByteString getS3VersionIdBytes()S3 version ID for versioned buckets
string s3_version_id = 12 [json_name = "s3VersionId"];- Specified by:
getS3VersionIdBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for s3VersionId.
-
hasMetadata
public boolean hasMetadata()Additional metadata as flexible JSON structure
.google.protobuf.Struct metadata = 13 [json_name = "metadata"];- Specified by:
hasMetadatain interfaceRepoMetadataEventOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Additional metadata as flexible JSON structure
.google.protobuf.Struct metadata = 13 [json_name = "metadata"];- Specified by:
getMetadatain interfaceRepoMetadataEventOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Additional metadata as flexible JSON structure
.google.protobuf.Struct metadata = 13 [json_name = "metadata"];- Specified by:
getMetadataOrBuilderin interfaceRepoMetadataEventOrBuilder
-
getUpdateTypeValue
public int getUpdateTypeValue()Type of metadata update (created/updated/deleted)
.ai.pipestream.events.v1.RepoUpdateType update_type = 14 [json_name = "updateType"];- Specified by:
getUpdateTypeValuein interfaceRepoMetadataEventOrBuilder- Returns:
- The enum numeric value on the wire for updateType.
-
getUpdateType
Type of metadata update (created/updated/deleted)
.ai.pipestream.events.v1.RepoUpdateType update_type = 14 [json_name = "updateType"];- Specified by:
getUpdateTypein interfaceRepoMetadataEventOrBuilder- Returns:
- The updateType.
-
hasErrorMessage
public boolean hasErrorMessage()Optional error message if persistence partially failed (event should ideally only be emitted on success)
optional string error_message = 15 [json_name = "errorMessage"];- Specified by:
hasErrorMessagein interfaceRepoMetadataEventOrBuilder- Returns:
- Whether the errorMessage field is set.
-
getErrorMessage
Optional error message if persistence partially failed (event should ideally only be emitted on success)
optional string error_message = 15 [json_name = "errorMessage"];- Specified by:
getErrorMessagein interfaceRepoMetadataEventOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Optional error message if persistence partially failed (event should ideally only be emitted on success)
optional string error_message = 15 [json_name = "errorMessage"];- Specified by:
getErrorMessageBytesin interfaceRepoMetadataEventOrBuilder- Returns:
- The bytes for errorMessage.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RepoMetadataEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepoMetadataEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepoMetadataEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepoMetadataEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepoMetadataEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepoMetadataEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RepoMetadataEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RepoMetadataEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RepoMetadataEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RepoMetadataEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RepoMetadataEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-