1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class GeminiExample : IMessage<GeminiExample>, IEquatable<GeminiExample>, IDeepCloneable<GeminiExample>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class GeminiExample.

Format for Gemini examples used for Vertex Multimodal datasets.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GeminiExample

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GeminiExample](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GeminiExample](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GeminiExample](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### GeminiExample()

    public GeminiExample()

### GeminiExample(GeminiExample)

    public GeminiExample(GeminiExample other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample` |

## Properties

### CachedContent

    public string CachedContent { get; set; }

Optional. The name of the cached content used as context to serve the
prediction. Note: only used in explicit caching, where users can have
control over caching (e.g. what content to cache) and enjoy guaranteed cost
savings. Format:
`projects/{project}/locations/{location}/cachedContents/{cachedContent}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CachedContentAsCachedContentName

    public CachedContentName CachedContentAsCachedContentName { get; set; }

[CachedContentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CachedContentName)-typed view over the [CachedContent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample#Google_Cloud_AIPlatform_V1Beta1_GeminiExample_CachedContent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CachedContentName` |   |

### Contents

    public RepeatedField<Content> Contents { get; }

Required. The content of the current conversation with the model.

For single-turn queries, this is a single instance. For multi-turn
queries, this is a repeated field that contains conversation history +
latest request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Content` |   |

### GenerationConfig

    public GenerationConfig GenerationConfig { get; set; }

Optional. Generation config.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerationConfig` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. The labels with user-defined metadata for the request. It is used
for billing and reporting only.

Label keys and values can be no longer than 63 characters
(Unicode codepoints) and can only contain lowercase letters, numeric
characters, underscores, and dashes. International characters are
allowed. Label values are optional. Label keys must start with a letter.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Model

    public string Model { get; set; }

Optional. The fully qualified name of the publisher model or tuned model
endpoint to use.

Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`

Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ModelArmorConfig

    public ModelArmorConfig ModelArmorConfig { get; set; }

Optional. Settings for prompt and response sanitization using the Model
Armor service. If supplied, safety_settings must not be supplied.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ModelArmorConfig` |   |

### ModelAsEndpointName

    public EndpointName ModelAsEndpointName { get; set; }

[EndpointName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.EndpointName)-typed view over the [Model](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample#Google_Cloud_AIPlatform_V1Beta1_GeminiExample_Model) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.EndpointName` |   |

### SafetySettings

    public RepeatedField<SafetySetting> SafetySettings { get; }

Optional. Per request settings for blocking unsafe content.
Enforced on GenerateContentResponse.candidates.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SafetySetting` |   |

### SystemInstruction

    public Content SystemInstruction { get; set; }

Optional. The user provided system instructions for the model.
Note: only text should be used in parts and content in each part will be
in a separate paragraph.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Content` |   |

### ToolConfig

    public ToolConfig ToolConfig { get; set; }

Optional. Tool config. This config is shared for all tools provided in the
request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ToolConfig` |   |

### Tools

    public RepeatedField<Tool> Tools { get; }

Optional. A list of `Tools` the model may use to generate the next
response.

A `Tool` is a piece of code that enables the system to interact with
external systems to perform an action, or set of actions, outside of
knowledge and scope of the model.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Tool` |   |