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 repository
 
Protobuf type ai.pipestream.events.v1.DocumentUploadedEvent
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DocumentUploadedEvent.Builder>
    • getDefaultInstanceForType

      public DocumentUploadedEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DocumentUploadedEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DocumentUploadedEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DocumentUploadedEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentUploadedEvent.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentUploadedEvent.Builder>
      Throws:
      IOException
    • getDocId

      public String getDocId()
       Unique document identifier
       
      string doc_id = 1 [json_name = "docId"];
      Specified by:
      getDocId in interface DocumentUploadedEventOrBuilder
      Returns:
      The docId.
    • getDocIdBytes

      public com.google.protobuf.ByteString getDocIdBytes()
       Unique document identifier
       
      string doc_id = 1 [json_name = "docId"];
      Specified by:
      getDocIdBytes in interface DocumentUploadedEventOrBuilder
      Returns:
      The bytes for docId.
    • setDocId

      public DocumentUploadedEvent.Builder setDocId(String value)
       Unique document identifier
       
      string doc_id = 1 [json_name = "docId"];
      Parameters:
      value - The docId to set.
      Returns:
      This builder for chaining.
    • clearDocId

      public DocumentUploadedEvent.Builder clearDocId()
       Unique document identifier
       
      string doc_id = 1 [json_name = "docId"];
      Returns:
      This builder for chaining.
    • setDocIdBytes

      public DocumentUploadedEvent.Builder setDocIdBytes(com.google.protobuf.ByteString value)
       Unique document identifier
       
      string doc_id = 1 [json_name = "docId"];
      Parameters:
      value - The bytes for docId to set.
      Returns:
      This builder for chaining.
    • getS3Key

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

      public DocumentUploadedEvent.Builder setS3Key(String value)
       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

      public DocumentUploadedEvent.Builder clearS3Key()
       S3 object key where document is stored
       
      string s3_key = 2 [json_name = "s3Key"];
      Returns:
      This builder for chaining.
    • setS3KeyBytes

      public DocumentUploadedEvent.Builder setS3KeyBytes(com.google.protobuf.ByteString value)
       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

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

      public DocumentUploadedEvent.Builder setConnectorId(String value)
       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

      public DocumentUploadedEvent.Builder clearConnectorId()
       Connector ID that uploaded this document
       
      string connector_id = 3 [json_name = "connectorId"];
      Returns:
      This builder for chaining.
    • setConnectorIdBytes

      public DocumentUploadedEvent.Builder setConnectorIdBytes(com.google.protobuf.ByteString value)
       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

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

      public DocumentUploadedEvent.Builder setAccountId(String value)
       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

      public DocumentUploadedEvent.Builder clearAccountId()
       Account ID that owns this document
       
      string account_id = 4 [json_name = "accountId"];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public DocumentUploadedEvent.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       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: DocumentUploadedEventOrBuilder
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface DocumentUploadedEventOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface DocumentUploadedEventOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface DocumentUploadedEventOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface DocumentUploadedEventOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface DocumentUploadedEventOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface DocumentUploadedEventOrBuilder
    • clearMetadata

      public DocumentUploadedEvent.Builder clearMetadata()
    • removeMetadata

      public DocumentUploadedEvent.Builder removeMetadata(String key)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public DocumentUploadedEvent.Builder putMetadata(String key, String value)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
    • putAllMetadata

      public DocumentUploadedEvent.Builder putAllMetadata(Map<String,String> values)
       Additional metadata key-value pairs
       
      map<string, string> metadata = 5 [json_name = "metadata"];
    • getFilename

      public String getFilename()
       Original filename of the document
       
      string filename = 6 [json_name = "filename"];
      Specified by:
      getFilename in interface DocumentUploadedEventOrBuilder
      Returns:
      The filename.
    • getFilenameBytes

      public com.google.protobuf.ByteString getFilenameBytes()
       Original filename of the document
       
      string filename = 6 [json_name = "filename"];
      Specified by:
      getFilenameBytes in interface DocumentUploadedEventOrBuilder
      Returns:
      The bytes for filename.
    • setFilename

      public DocumentUploadedEvent.Builder setFilename(String value)
       Original filename of the document
       
      string filename = 6 [json_name = "filename"];
      Parameters:
      value - The filename to set.
      Returns:
      This builder for chaining.
    • clearFilename

      public DocumentUploadedEvent.Builder clearFilename()
       Original filename of the document
       
      string filename = 6 [json_name = "filename"];
      Returns:
      This builder for chaining.
    • setFilenameBytes

      public DocumentUploadedEvent.Builder setFilenameBytes(com.google.protobuf.ByteString value)
       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

      public String getMimeType()
       MIME type of the document
       
      string mime_type = 7 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface DocumentUploadedEventOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       MIME type of the document
       
      string mime_type = 7 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface DocumentUploadedEventOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public DocumentUploadedEvent.Builder setMimeType(String value)
       MIME type of the document
       
      string mime_type = 7 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public DocumentUploadedEvent.Builder clearMimeType()
       MIME type of the document
       
      string mime_type = 7 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public DocumentUploadedEvent.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       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

      public String getPath()
       Virtual path in the connector's namespace
       
      string path = 8 [json_name = "path"];
      Specified by:
      getPath in interface DocumentUploadedEventOrBuilder
      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:
      getPathBytes in interface DocumentUploadedEventOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public DocumentUploadedEvent.Builder setPath(String value)
       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

      public DocumentUploadedEvent.Builder clearPath()
       Virtual path in the connector's namespace
       
      string path = 8 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public DocumentUploadedEvent.Builder setPathBytes(com.google.protobuf.ByteString value)
       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:
      hasCreationDate in interface DocumentUploadedEventOrBuilder
      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:
      getCreationDate in interface DocumentUploadedEventOrBuilder
      Returns:
      The creationDate.
    • setCreationDate

      public DocumentUploadedEvent.Builder setCreationDate(com.google.protobuf.Timestamp value)
       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

      public DocumentUploadedEvent.Builder mergeCreationDate(com.google.protobuf.Timestamp value)
       When the document was originally created (from source system)
       
      .google.protobuf.Timestamp creation_date = 9 [json_name = "creationDate"];
    • clearCreationDate

      public DocumentUploadedEvent.Builder 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:
      getCreationDateOrBuilder in interface DocumentUploadedEventOrBuilder
    • 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:
      hasLastModifiedDate in interface DocumentUploadedEventOrBuilder
      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:
      getLastModifiedDate in interface DocumentUploadedEventOrBuilder
      Returns:
      The lastModifiedDate.
    • setLastModifiedDate

      public DocumentUploadedEvent.Builder setLastModifiedDate(com.google.protobuf.Timestamp value)
       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

      public DocumentUploadedEvent.Builder mergeLastModifiedDate(com.google.protobuf.Timestamp value)
       When the document was last modified (from source system)
       
      .google.protobuf.Timestamp last_modified_date = 10 [json_name = "lastModifiedDate"];
    • clearLastModifiedDate

      public DocumentUploadedEvent.Builder 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:
      getLastModifiedDateOrBuilder in interface DocumentUploadedEventOrBuilder