Table of Contents

Class GeminiCorpusDocumentId

A Document is a collection of Chunks. A Corpus can have a maximum of 10,000 Documents.

public class GeminiCorpusDocumentId : IGeminiCorpusResourceId
Inheritance
object
GeminiCorpusDocumentId
Implements
Extension Methods

Constructors

GeminiCorpusDocumentId(string)

Creates a new GeminiCorpusDocumentId.

public GeminiCorpusDocumentId(string documentName)

Parameters

documentName string

The name (format 'corpora/{corpusId}/documents/{documentId}') of the Document.

GeminiCorpusDocumentId(GeminiCorpusId, string)

Creates a new GeminiCorpusDocumentId.

public GeminiCorpusDocumentId(GeminiCorpusId corpusId, string documentNameOrId)

Parameters

corpusId GeminiCorpusId

The resource ID of the Corpus which contains the Document.

documentNameOrId string

The 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

documentName string

The name (format 'corpora/{corpusId}/documents/{documentId}') of the Document.

Returns

GeminiCorpusDocumentId