Table of Contents

Class GeminiCorpusId

A Corpus is a collection of Documents. A project can create up to 5 corpora.

public class GeminiCorpusId : IGeminiCorpusResourceId
Inheritance
object
GeminiCorpusId
Implements
Extension Methods

Constructors

GeminiCorpusId(string)

Creates a new GeminiCorpusId.

public GeminiCorpusId(string corpusNameOrId)

Parameters

corpusNameOrId string

The name (format 'corpora/{corpusId}') or ID of the Corpus.

Properties

ResourceId

The ID of the Corpus.

public string ResourceId { get; }

Property Value

string

ResourceName

The name (format 'corpora/{corpusId}') of the Corpus.

public string ResourceName { get; }

Property Value

string

Operators

explicit operator GeminiCorpusId(string)

Creates a new GeminiCorpusId.

public static explicit operator GeminiCorpusId(string corpusNameOrId)

Parameters

corpusNameOrId string

The name (format 'corpora/{corpusId}') or ID of the Corpus.

Returns

GeminiCorpusId