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:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getEventId

      public String getEventId()
       Unique identifier for this event
       
      string event_id = 1 [json_name = "eventId"];
      Specified by:
      getEventId in interface RepoMetadataEventOrBuilder
      Returns:
      The eventId.
    • getEventIdBytes

      public com.google.protobuf.ByteString getEventIdBytes()
       Unique identifier for this event
       
      string event_id = 1 [json_name = "eventId"];
      Specified by:
      getEventIdBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for eventId.
    • hasTimestamp

      public boolean hasTimestamp()
       When this event was generated
       
      .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
      Specified by:
      hasTimestamp in interface RepoMetadataEventOrBuilder
      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:
      getTimestamp in interface RepoMetadataEventOrBuilder
      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:
      getTimestampOrBuilder in interface RepoMetadataEventOrBuilder
    • getDocumentId

      public String getDocumentId()
       Unique document identifier
       
      string document_id = 3 [json_name = "documentId"];
      Specified by:
      getDocumentId in interface RepoMetadataEventOrBuilder
      Returns:
      The documentId.
    • getDocumentIdBytes

      public com.google.protobuf.ByteString getDocumentIdBytes()
       Unique document identifier
       
      string document_id = 3 [json_name = "documentId"];
      Specified by:
      getDocumentIdBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for documentId.
    • getDriveId

      public String getDriveId()
       Drive/repository identifier (UUID as string)
       
      string drive_id = 4 [json_name = "driveId"];
      Specified by:
      getDriveId in interface RepoMetadataEventOrBuilder
      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:
      getDriveIdBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for driveId.
    • getAccountId

      public String getAccountId()
       Account ID that owns this document
       
      string account_id = 5 [json_name = "accountId"];
      Specified by:
      getAccountId in interface RepoMetadataEventOrBuilder
      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:
      getAccountIdBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for accountId.
    • getConnectorId

      public String getConnectorId()
       Connector ID that ingested this document
       
      string connector_id = 6 [json_name = "connectorId"];
      Specified by:
      getConnectorId in interface RepoMetadataEventOrBuilder
      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:
      getConnectorIdBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for connectorId.
    • getName

      public String getName()
       Original filename or node name
       
      string name = 7 [json_name = "name"];
      Specified by:
      getName in interface RepoMetadataEventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Original filename or node name
       
      string name = 7 [json_name = "name"];
      Specified by:
      getNameBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for name.
    • getPath

      public String getPath()
       Full path in the repository
       
      string path = 8 [json_name = "path"];
      Specified by:
      getPath in interface RepoMetadataEventOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Full path in the repository
       
      string path = 8 [json_name = "path"];
      Specified by:
      getPathBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for path.
    • getContentType

      public String getContentType()
       MIME/content type of the document
       
      string content_type = 9 [json_name = "contentType"];
      Specified by:
      getContentType in interface RepoMetadataEventOrBuilder
      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:
      getContentTypeBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for contentType.
    • getSizeBytes

      public long getSizeBytes()
       Size of the document in bytes
       
      int64 size_bytes = 10 [json_name = "sizeBytes"];
      Specified by:
      getSizeBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The sizeBytes.
    • getS3Key

      public String getS3Key()
       S3 object key where document is stored
       
      string s3_key = 11 [json_name = "s3Key"];
      Specified by:
      getS3Key in interface RepoMetadataEventOrBuilder
      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:
      getS3KeyBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for s3Key.
    • getS3VersionId

      public String getS3VersionId()
       S3 version ID for versioned buckets
       
      string s3_version_id = 12 [json_name = "s3VersionId"];
      Specified by:
      getS3VersionId in interface RepoMetadataEventOrBuilder
      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:
      getS3VersionIdBytes in interface RepoMetadataEventOrBuilder
      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:
      hasMetadata in interface RepoMetadataEventOrBuilder
      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:
      getMetadata in interface RepoMetadataEventOrBuilder
      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:
      getMetadataOrBuilder in interface RepoMetadataEventOrBuilder
    • getUpdateTypeValue

      public int getUpdateTypeValue()
       Type of metadata update (created/updated/deleted)
       
      .ai.pipestream.events.v1.RepoUpdateType update_type = 14 [json_name = "updateType"];
      Specified by:
      getUpdateTypeValue in interface RepoMetadataEventOrBuilder
      Returns:
      The enum numeric value on the wire for updateType.
    • getUpdateType

      public RepoUpdateType getUpdateType()
       Type of metadata update (created/updated/deleted)
       
      .ai.pipestream.events.v1.RepoUpdateType update_type = 14 [json_name = "updateType"];
      Specified by:
      getUpdateType in interface RepoMetadataEventOrBuilder
      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:
      hasErrorMessage in interface RepoMetadataEventOrBuilder
      Returns:
      Whether the errorMessage field is set.
    • getErrorMessage

      public String 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:
      getErrorMessage in interface RepoMetadataEventOrBuilder
      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:
      getErrorMessageBytes in interface RepoMetadataEventOrBuilder
      Returns:
      The bytes for errorMessage.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static RepoMetadataEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RepoMetadataEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RepoMetadataEvent parseDelimitedFrom(InputStream input) throws IOException
      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

      public RepoMetadataEvent.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RepoMetadataEvent.Builder newBuilder()
    • newBuilder

      public static RepoMetadataEvent.Builder newBuilder(RepoMetadataEvent prototype)
    • toBuilder

      public RepoMetadataEvent.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RepoMetadataEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RepoMetadataEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RepoMetadataEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<RepoMetadataEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RepoMetadataEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder