Class GeminiCorpusDocumentId
- Namespace
- Uralstech.UGemini.CorporaAPI.Documents
A Document is a collection of Chunks. A Corpus can have a maximum of 10,000 Documents.
public class GeminiCorpusDocumentId : IGeminiCorpusResourceId
- Inheritance
-
objectGeminiCorpusDocumentId
- Implements
- Extension Methods
Constructors
GeminiCorpusDocumentId(string)
Creates a new GeminiCorpusDocumentId.
public GeminiCorpusDocumentId(string documentName)
Parameters
documentNamestringThe name (format 'corpora/{corpusId}/documents/{documentId}') of the Document.
GeminiCorpusDocumentId(GeminiCorpusId, string)
Creates a new GeminiCorpusDocumentId.
public GeminiCorpusDocumentId(GeminiCorpusId corpusId, string documentNameOrId)
Parameters
corpusIdGeminiCorpusIdThe resource ID of the Corpus which contains the Document.
documentNameOrIdstringThe name (format 'corpora/{corpusId}/documents/{documentId}') or ID of the Document.
Fields
CorpusId
The ID of the Corpus which contains this Document.
public string CorpusId
Field Value
- string
Properties
ResourceId
The ID of the Document.
public string ResourceId { get; set; }
Property Value
- string
ResourceName
The resource name of this Document (format 'corpora/{corpusId}/documents/{documentId}').
public string ResourceName { get; }
Property Value
- string
Operators
explicit operator GeminiCorpusDocumentId(string)
Creates a new GeminiCorpusDocumentId.
public static explicit operator GeminiCorpusDocumentId(string documentName)
Parameters
documentNamestringThe name (format 'corpora/{corpusId}/documents/{documentId}') of the Document.