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}
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[],null,["# Vertex AI v1beta1 API - Class GeminiExample (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.GeminiExample) \n\n public sealed class GeminiExample : IMessage\u003cGeminiExample\u003e, IEquatable\u003cGeminiExample\u003e, IDeepCloneable\u003cGeminiExample\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class GeminiExample.\n\nFormat for Gemini examples used for Vertex Multimodal datasets. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GeminiExample \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GeminiExample](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GeminiExample](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### GeminiExample()\n\n public GeminiExample()\n\n### GeminiExample(GeminiExample)\n\n public GeminiExample(GeminiExample other)\n\nProperties\n----------\n\n### CachedContent\n\n public string CachedContent { get; set; }\n\nOptional. The name of the cached content used as context to serve the\nprediction. Note: only used in explicit caching, where users can have\ncontrol over caching (e.g. what content to cache) and enjoy guaranteed cost\nsavings. Format:\n`projects/{project}/locations/{location}/cachedContents/{cachedContent}`\n\n### CachedContentAsCachedContentName\n\n public CachedContentName CachedContentAsCachedContentName { get; set; }\n\n[CachedContentName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CachedContentName)-typed view over the [CachedContent](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample#Google_Cloud_AIPlatform_V1Beta1_GeminiExample_CachedContent) resource name property.\n\n### Contents\n\n public RepeatedField\u003cContent\u003e Contents { get; }\n\nRequired. The content of the current conversation with the model.\n\nFor single-turn queries, this is a single instance. For multi-turn\nqueries, this is a repeated field that contains conversation history +\nlatest request.\n\n### GenerationConfig\n\n public GenerationConfig GenerationConfig { get; set; }\n\nOptional. Generation config.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. The labels with user-defined metadata for the request. It is used\nfor billing and reporting only.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are\nallowed. Label values are optional. Label keys must start with a letter.\n\n### Model\n\n public string Model { get; set; }\n\nOptional. The fully qualified name of the publisher model or tuned model\nendpoint to use.\n\nPublisher model format:\n`projects/{project}/locations/{location}/publishers/*/models/*`\n\nTuned model endpoint format:\n`projects/{project}/locations/{location}/endpoints/{endpoint}`\n\n### ModelAsEndpointName\n\n public EndpointName ModelAsEndpointName { get; set; }\n\n[EndpointName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.EndpointName)-typed view over the [Model](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GeminiExample#Google_Cloud_AIPlatform_V1Beta1_GeminiExample_Model) resource name property.\n\n### SafetySettings\n\n public RepeatedField\u003cSafetySetting\u003e SafetySettings { get; }\n\nOptional. Per request settings for blocking unsafe content.\nEnforced on GenerateContentResponse.candidates.\n\n### SystemInstruction\n\n public Content SystemInstruction { get; set; }\n\nOptional. The user provided system instructions for the model.\nNote: only text should be used in parts and content in each part will be\nin a separate paragraph.\n\n### ToolConfig\n\n public ToolConfig ToolConfig { get; set; }\n\nOptional. Tool config. This config is shared for all tools provided in the\nrequest.\n\n### Tools\n\n public RepeatedField\u003cTool\u003e Tools { get; }\n\nOptional. A list of `Tools` the model may use to generate the next\nresponse.\n\nA `Tool` is a piece of code that enables the system to interact with\nexternal systems to perform an action, or set of actions, outside of\nknowledge and scope of the model."]]