{
  "batchPath": "batch",
  "description": "The Firebase AI Logic API provides programmatic access for creating, testing, and managing server prompt templates.",
  "parameters": {
    "alt": {
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "location": "query",
      "type": "string",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ]
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "quotaUser": {
      "location": "query",
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters."
    },
    "callback": {
      "type": "string",
      "location": "query",
      "description": "JSONP"
    },
    "oauth_token": {
      "description": "OAuth 2.0 token for the current user.",
      "type": "string",
      "location": "query"
    },
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "$.xgafv": {
      "location": "query",
      "enum": [
        "1",
        "2"
      ],
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "type": "string"
    },
    "uploadType": {
      "type": "string",
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    },
    "upload_protocol": {
      "type": "string",
      "location": "query",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    },
    "fields": {
      "location": "query",
      "description": "Selector specifying which fields to include in a partial response.",
      "type": "string"
    },
    "prettyPrint": {
      "type": "boolean",
      "location": "query",
      "description": "Returns response with indentations and line breaks.",
      "default": "true"
    }
  },
  "schemas": {
    "GoogleCloudAiplatformV1beta1ApiAuth": {
      "id": "GoogleCloudAiplatformV1beta1ApiAuth",
      "description": "The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead.",
      "properties": {
        "apiKeyConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig",
          "description": "The API secret."
        }
      },
      "type": "object"
    },
    "HistoryContent": {
      "description": "A single content block from the conversation history list.",
      "id": "HistoryContent",
      "properties": {
        "parts": {
          "description": "List of consecutive messages from a given party.",
          "type": "array",
          "items": {
            "$ref": "HistoryPart"
          }
        },
        "role": {
          "type": "string",
          "description": "Optional. Indicates who generated these messages in the history. Generally this will be either 'user' or 'model'."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams": {
      "id": "GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams",
      "description": "The search parameters to use for the ELASTIC_SEARCH spec.",
      "type": "object",
      "properties": {
        "searchTemplate": {
          "description": "The ElasticSearch search template to use.",
          "type": "string"
        },
        "index": {
          "type": "string",
          "description": "The ElasticSearch index to use."
        },
        "numHits": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaToolComputerUse": {
      "id": "GoogleAiGenerativelanguageV1betaToolComputerUse",
      "description": "Computer Use tool type.",
      "type": "object",
      "properties": {
        "disabledSafetyPolicies": {
          "type": "array",
          "description": "Optional. Disabled safety policies for computer use.",
          "items": {
            "enum": [
              "SAFETY_POLICY_UNSPECIFIED",
              "FINANCIAL_TRANSACTIONS",
              "SENSITIVE_DATA_MODIFICATION",
              "COMMUNICATION_TOOL",
              "ACCOUNT_CREATION",
              "DATA_MODIFICATION",
              "USER_CONSENT_MANAGEMENT",
              "LEGAL_TERMS_AND_AGREEMENTS"
            ],
            "enumDescriptions": [
              "Unspecified safety policy.",
              "Safety policy for financial transactions.",
              "Safety policy for sensitive data modification.",
              "Safety policy for communication tools (e.g. Gmail, Chat, Meet).",
              "Safety policy for account creation.",
              "Safety policy for data modification.",
              "Safety policy for user consent management.",
              "Safety policy for legal terms and agreements."
            ],
            "type": "string"
          }
        },
        "excludedPredefinedFunctions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions."
        },
        "environment": {
          "description": "Required. The environment being operated.",
          "enumDescriptions": [
            "Defaults to browser.",
            "Operates in a web browser.",
            "Operates in a mobile environment.",
            "Operates in a desktop environment."
          ],
          "type": "string",
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ]
        },
        "enablePromptInjectionDetection": {
          "type": "boolean",
          "description": "Optional. Whether enable the prompt injection detection check on computer-use request."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig": {
      "id": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig",
      "type": "object",
      "description": "Describes the options to customize dynamic retrieval.",
      "properties": {
        "mode": {
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ],
          "enumDescriptions": [
            "Always trigger retrieval.",
            "Run retrieval only when system decides it is necessary."
          ],
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "type": "string"
        },
        "dynamicThreshold": {
          "type": "number",
          "format": "float",
          "description": "Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaSafetySetting": {
      "properties": {
        "category": {
          "description": "Required. The category for this setting.",
          "enumDescriptions": [
            "Category is unspecified.",
            "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**Gemini** - Harassment content.",
            "**Gemini** - Hate speech and content.",
            "**Gemini** - Sexually explicit content.",
            "**Gemini** - Dangerous content.",
            "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",
            "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."
          ],
          "type": "string",
          "enumDeprecated": [
            false,
            true,
            true,
            true,
            true,
            true,
            true,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_DEROGATORY",
            "HARM_CATEGORY_TOXICITY",
            "HARM_CATEGORY_VIOLENCE",
            "HARM_CATEGORY_SEXUAL",
            "HARM_CATEGORY_MEDICAL",
            "HARM_CATEGORY_DANGEROUS",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_DANGEROUS_CONTENT",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_JAILBREAK"
          ]
        },
        "threshold": {
          "type": "string",
          "description": "Required. Controls the probability threshold at which harm is blocked.",
          "enumDescriptions": [
            "Threshold is unspecified.",
            "Content with NEGLIGIBLE will be allowed.",
            "Content with NEGLIGIBLE and LOW will be allowed.",
            "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.",
            "All content will be allowed.",
            "Turn off the safety filter."
          ],
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE",
            "OFF"
          ]
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaSafetySetting",
      "type": "object",
      "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked."
    },
    "FunctionResponse": {
      "description": "An element in the history that represents the results of a function invocation.",
      "id": "FunctionResponse",
      "properties": {
        "response": {
          "type": "object",
          "description": "Optional. The results of the function invocation.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "id": {
          "description": "Required. ID of the individual function invocation assigned by the model when it requests the function invocation.",
          "type": "string"
        },
        "name": {
          "description": "Required. The name of the function.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkWeb": {
      "properties": {
        "title": {
          "description": "The title of the web page that contains the evidence.",
          "type": "string"
        },
        "domain": {
          "description": "The domain of the web page that contains the evidence. This can be used to filter out low-quality sources.",
          "type": "string"
        },
        "uri": {
          "description": "The URI of the web page that contains the evidence.",
          "type": "string"
        }
      },
      "description": "A `Web` chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information.",
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkWeb",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GroundingSupport": {
      "type": "object",
      "properties": {
        "confidenceScores": {
          "type": "array",
          "description": "The confidence scores for the support references. This list is parallel to the `grounding_chunk_indices` list. A score is a value between 0.0 and 1.0, with a higher score indicating a higher confidence that the reference supports the claim. For Gemini 2.0 and before, this list has the same size as `grounding_chunk_indices`. For Gemini 2.5 and later, this list is empty and should be ignored.",
          "items": {
            "type": "number",
            "format": "float"
          }
        },
        "segment": {
          "description": "The content segment that this support message applies to.",
          "$ref": "GoogleCloudAiplatformV1beta1Segment"
        },
        "groundingChunkIndices": {
          "items": {
            "format": "int32",
            "type": "integer"
          },
          "type": "array",
          "description": "A list of indices into the `grounding_chunks` field of the `GroundingMetadata` message. These indices specify which grounding chunks support the claim made in the content segment. For example, if this field has the values `[1, 3]`, it means that `grounding_chunks[1]` and `grounding_chunks[3]` are the sources for the claim in the content segment."
        },
        "renderedParts": {
          "description": "Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message.",
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "description": "A collection of supporting references for a segment or part of the model's response.",
      "id": "GoogleCloudAiplatformV1beta1GroundingSupport"
    },
    "GoogleCloudAiplatformV1beta1ModalityTokenCount": {
      "type": "object",
      "properties": {
        "modality": {
          "enum": [
            "MODALITY_UNSPECIFIED",
            "TEXT",
            "IMAGE",
            "VIDEO",
            "AUDIO",
            "DOCUMENT"
          ],
          "type": "string",
          "enumDescriptions": [
            "When a modality is not specified, it is treated as `TEXT`.",
            "The `Part` contains plain text.",
            "The `Part` contains an image.",
            "The `Part` contains a video.",
            "The `Part` contains audio.",
            "The `Part` contains a document, such as a PDF."
          ],
          "description": "The modality that this token count applies to."
        },
        "tokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "The number of tokens counted for this modality."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1ModalityTokenCount",
      "description": "Represents a breakdown of token usage by modality. This message is used in CountTokensResponse and GenerateContentResponse.UsageMetadata to provide a detailed view of how many tokens are used by each modality (e.g., text, image, video) in a request. This is particularly useful for multimodal models, allowing you to track and manage token consumption for billing and quota purposes."
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet": {
      "description": "A review snippet that is used to generate the answer.",
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the review."
        },
        "googleMapsUri": {
          "description": "A link to show the review on Google Maps.",
          "type": "string"
        },
        "reviewId": {
          "type": "string",
          "description": "The ID of the review that is being referenced."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaToolGoogleSearch": {
      "type": "object",
      "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
      "properties": {
        "searchTypes": {
          "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.",
          "$ref": "GoogleAiGenerativelanguageV1betaToolGoogleSearchSearchTypes"
        },
        "timeRangeFilter": {
          "$ref": "Interval",
          "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa)."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaToolGoogleSearch"
    },
    "GoogleAiGenerativelanguageV1betaGroundingSupport": {
      "properties": {
        "confidenceScores": {
          "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.",
          "type": "array",
          "items": {
            "format": "float",
            "type": "number"
          }
        },
        "renderedParts": {
          "items": {
            "format": "int32",
            "type": "integer"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source."
        },
        "groundingChunkIndices": {
          "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order).",
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "segment": {
          "description": "Segment of the content this support belongs to.",
          "$ref": "GoogleAiGenerativelanguageV1betaSegment"
        }
      },
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaGroundingSupport",
      "description": "Grounding support."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContent": {
      "type": "object",
      "description": "Incremental server update generated by the model in response to client messages. Content is generated as quickly as possible, and not in realtime. Clients may choose to buffer and play it out in realtime.",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContent",
      "properties": {
        "interimInputTranscription": {
          "description": "Optional. Low-latency interim transcription updated while the user is speaking.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContentTranscription"
        },
        "outputTranscription": {
          "description": "Optional. Output transcription. The transcription is independent of the model turn, which means it does not imply any ordering between transcription and model turn.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContentTranscription"
        },
        "interactionStatus": {
          "description": "Output only. The current activity status of the live session. Always sent alongside `turn_complete`.",
          "type": "string",
          "enum": [
            "INTERACTION_STATUS_UNSPECIFIED",
            "IN_PROGRESS",
            "REQUIRES_ACTION",
            "IDLE"
          ],
          "enumDescriptions": [
            "Unspecified interaction status.",
            "The server is still actively processing user input or running background reasoning. More model output may follow.",
            "Deprecated: Use IDLE instead. The server has completed all processing and background reasoning.",
            "The server has completed all processing and background reasoning."
          ],
          "enumDeprecated": [
            false,
            false,
            true,
            false
          ],
          "readOnly": true
        },
        "inputTranscription": {
          "description": "Optional. Input transcription. The transcription is independent of the model turn, which means it does not imply any ordering between transcription and model turn.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContentTranscription"
        },
        "interrupted": {
          "readOnly": true,
          "description": "Output only. If true, indicates that a client message has interrupted current model generation. If the client is playing out the content in realtime, this is a good signal to stop and empty the current queue. If the client is playing out the content in realtime, this is a good signal to stop and empty the current playback queue.",
          "type": "boolean"
        },
        "speechState": {
          "type": "string",
          "description": "Output only. Indicates the current state of speech detection on `realtime_input.audio`. Not set or zero if the state is unchanged.",
          "enum": [
            "SPEECH_STATE_UNSPECIFIED",
            "NON_SPEECH",
            "SPEECH"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "Unspecified speech state. If the speech state is changing, one of the other values will be set.",
            "No speech detected.",
            "Speech detected."
          ]
        },
        "groundingMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1GroundingMetadata",
          "description": "Output only. Metadata specifies sources used to ground generated content.",
          "readOnly": true
        },
        "modelTurn": {
          "description": "Output only. The content that the model has generated as part of the current conversation with the user.",
          "$ref": "GoogleCloudAiplatformV1beta1Content",
          "readOnly": true
        },
        "turnComplete": {
          "type": "boolean",
          "description": "Output only. If true, indicates that the model is done generating. Generation will only start in response to additional client messages. Can be set alongside `content`, indicating that the `content` is the last in the turn.",
          "readOnly": true
        },
        "turnCompleteReason": {
          "description": "Output only. The reason why the turn is complete.",
          "readOnly": true,
          "enum": [
            "TURN_COMPLETE_REASON_UNSPECIFIED",
            "MALFORMED_FUNCTION_CALL",
            "RESPONSE_REJECTED",
            "NEED_MORE_INPUT",
            "PROHIBITED_INPUT_CONTENT",
            "IMAGE_PROHIBITED_INPUT_CONTENT",
            "INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED",
            "INPUT_IMAGE_CELEBRITY",
            "INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED",
            "INPUT_TEXT_NCII_PROHIBITED",
            "INPUT_OTHER",
            "INPUT_IP_PROHIBITED",
            "BLOCKLIST",
            "UNSAFE_PROMPT_FOR_IMAGE_GENERATION",
            "GENERATED_IMAGE_SAFETY",
            "GENERATED_CONTENT_SAFETY",
            "GENERATED_AUDIO_SAFETY",
            "GENERATED_VIDEO_SAFETY",
            "GENERATED_CONTENT_PROHIBITED",
            "GENERATED_CONTENT_BLOCKLIST",
            "GENERATED_IMAGE_PROHIBITED",
            "GENERATED_IMAGE_CELEBRITY",
            "GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER",
            "GENERATED_IMAGE_IDENTIFIABLE_PEOPLE",
            "GENERATED_IMAGE_MINORS",
            "OUTPUT_IMAGE_IP_PROHIBITED",
            "GENERATED_OTHER",
            "MAX_REGENERATION_REACHED"
          ],
          "type": "string",
          "enumDescriptions": [
            "Reason is unspecified.",
            "The function call generated by the model is invalid.",
            "The response is rejected by the model.",
            "Needs more input from the user.",
            "Input safety related finish reasons. Replicated from learning/genai/beyond/recipe_runner/finish_reason.proto:FinishReason. Input content is prohibited.",
            "Input image contains prohibited content.",
            "Input text contains prominent person reference.",
            "Input image contains celebrity.",
            "Input image contains photo realistic child.",
            "Input text contains NCII content.",
            "Other input safety issue.",
            "Input contains IP violation.",
            "Input matched blocklist.",
            "Input is unsafe for image generation.",
            "Output safety related finish reasons. Replicated from learning/genai/beyond/recipe_runner/finish_reason.proto:FinishReason. Generated image failed safety check.",
            "Generated content failed safety check.",
            "Generated audio failed safety check.",
            "Generated video failed safety check.",
            "Generated content is prohibited.",
            "Generated content matched blocklist.",
            "Generated image is prohibited.",
            "Generated image contains celebrity.",
            "Generated image contains prominent people detected by rewriter.",
            "Generated image contains identifiable people.",
            "Generated image contains minors.",
            "Generated image contains IP violation.",
            "Other generated content issue.",
            "Max regeneration attempts reached."
          ]
        },
        "generationComplete": {
          "description": "Output only. If true, indicates that the model is done generating. When model is interrupted while generating there will be no 'generation_complete' message in interrupted turn, it will go through 'interrupted \u003e turn_complete'. When model assumes realtime playback there will be delay between generation_complete and turn_complete that is caused by model waiting for playback to finish.",
          "type": "boolean",
          "readOnly": true
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GroundingChunk": {
      "id": "GoogleCloudAiplatformV1beta1GroundingChunk",
      "properties": {
        "retrievedContext": {
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext",
          "description": "A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details"
        },
        "maps": {
          "description": "A grounding chunk from Google Maps. See the `Maps` message for details.",
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkMaps"
        },
        "web": {
          "description": "A grounding chunk from a web page, typically from Google Search. See the `Web` message for details.",
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkWeb"
        },
        "image": {
          "description": "A grounding chunk from an image search result. See the `Image` message for details.",
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkImage"
        }
      },
      "type": "object",
      "description": "A piece of evidence that supports a claim made by the model. This is used to show a citation for a claim made by the model. When grounding is enabled, the model returns a `GroundingChunk` that contains a reference to the source of the information."
    },
    "GoogleAiGenerativelanguageV1betaSpeechConfig": {
      "properties": {
        "languageCode": {
          "type": "string",
          "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`."
        },
        "multiSpeakerVoiceConfig": {
          "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.",
          "$ref": "GoogleAiGenerativelanguageV1betaMultiSpeakerVoiceConfig"
        },
        "voiceConfig": {
          "$ref": "GoogleAiGenerativelanguageV1betaVoiceConfig",
          "description": "The configuration in case of single-voice output."
        }
      },
      "description": "Config for speech generation and transcription.",
      "id": "GoogleAiGenerativelanguageV1betaSpeechConfig",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaDynamicRetrievalConfig": {
      "description": "Describes the options to customize dynamic retrieval.",
      "type": "object",
      "properties": {
        "dynamicThreshold": {
          "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.",
          "type": "number",
          "format": "float"
        },
        "mode": {
          "type": "string",
          "enumDescriptions": [
            "Always trigger retrieval.",
            "Run retrieval only when system decides it is necessary."
          ],
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ]
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaDynamicRetrievalConfig"
    },
    "GoogleCloudAiplatformV1beta1GenerateContentRequestOutputConfig": {
      "id": "GoogleCloudAiplatformV1beta1GenerateContentRequestOutputConfig",
      "type": "object",
      "description": "Configuration for persisting output assets to external storage.",
      "properties": {
        "outputUriPrefix": {
          "type": "string",
          "description": "Optional. The Cloud Storage URI prefix or directory where generated media assets should be written (e.g. `gs://my-bucket/prefix/`). Supported URI schemes: `gs://`. When set, media bytes are written directly to this location and returned as `FileData` with a `file_uri` instead of raw inline bytes."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaCandidate": {
      "type": "object",
      "properties": {
        "finishReason": {
          "type": "string",
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "LANGUAGE",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "SPII",
            "MALFORMED_FUNCTION_CALL",
            "IMAGE_SAFETY",
            "IMAGE_PROHIBITED_CONTENT",
            "IMAGE_OTHER",
            "NO_IMAGE",
            "IMAGE_RECITATION",
            "UNEXPECTED_TOOL_CALL",
            "TOO_MANY_TOOL_CALLS",
            "MISSING_THOUGHT_SIGNATURE",
            "MALFORMED_RESPONSE",
            "ESCALATION",
            "PUP_LIMITED_DISABLED",
            "CONTINUATION"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Natural stop point of the model or provided stop sequence.",
            "The maximum number of tokens as specified in the request was reached.",
            "The response candidate content was flagged for safety reasons.",
            "The response candidate content was flagged for recitation reasons.",
            "The response candidate content was flagged for using an unsupported language.",
            "Unknown reason.",
            "Token generation stopped because the content contains forbidden terms.",
            "Token generation stopped for potentially containing prohibited content.",
            "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).",
            "The function call generated by the model is invalid.",
            "Token generation stopped because generated images contain safety violations.",
            "Image generation stopped because generated images has other prohibited content.",
            "Image generation stopped because of other miscellaneous issue.",
            "The model was expected to generate an image, but none was generated.",
            "Image generation stopped due to recitation.",
            "Model generated a tool call but no tools were enabled in the request.",
            "Model called too many tools consecutively, thus the system exited execution.",
            "Request has at least one thought signature missing.",
            "Finished due to malformed response.",
            "Request was filtered by an escalation rule.",
            "Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations.",
            "Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned `continuation_token`. Note, the `max_output_tokens` is cumulative across continuation hops and must be monotonically increased or omitted."
          ],
          "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens."
        },
        "continuationToken": {
          "description": "An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation.",
          "format": "byte",
          "type": "string"
        },
        "content": {
          "$ref": "GoogleAiGenerativelanguageV1betaContent",
          "description": "Output only. Generated content returned from the model.",
          "readOnly": true
        },
        "finishMessage": {
          "readOnly": true,
          "type": "string",
          "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set."
        },
        "tokenCount": {
          "format": "int32",
          "readOnly": true,
          "type": "integer",
          "description": "Output only. Token count for this candidate."
        },
        "citationMetadata": {
          "readOnly": true,
          "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data.",
          "$ref": "GoogleAiGenerativelanguageV1betaCitationMetadata"
        },
        "logprobsResult": {
          "description": "Output only. Log-likelihood scores for the response tokens and top tokens",
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaLogprobsResult"
        },
        "groundingMetadata": {
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingMetadata",
          "readOnly": true,
          "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls."
        },
        "index": {
          "description": "Output only. Index of the candidate in the list of response candidates.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "avgLogprobs": {
          "readOnly": true,
          "format": "double",
          "type": "number",
          "description": "Output only. Average log probability score of the candidate."
        },
        "groundingAttributions": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingAttribution"
          }
        },
        "urlContextMetadata": {
          "$ref": "GoogleAiGenerativelanguageV1betaUrlContextMetadata",
          "readOnly": true,
          "description": "Output only. Metadata related to url context retrieval tool."
        },
        "safetyRatings": {
          "type": "array",
          "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaSafetyRating"
          }
        }
      },
      "description": "A response candidate generated from the model.",
      "id": "GoogleAiGenerativelanguageV1betaCandidate"
    },
    "GoogleCloudAiplatformV1beta1FunctionCall": {
      "id": "GoogleCloudAiplatformV1beta1FunctionCall",
      "type": "object",
      "description": "A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values.",
      "properties": {
        "partialArgs": {
          "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1PartialArg"
          },
          "type": "array"
        },
        "name": {
          "description": "Optional. The name of the function to call. Matches FunctionDeclaration.name.",
          "type": "string"
        },
        "willContinue": {
          "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.",
          "type": "boolean"
        },
        "id": {
          "type": "string",
          "description": "Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`."
        },
        "args": {
          "description": "Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaExecutableCode": {
      "type": "object",
      "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated.",
      "properties": {
        "code": {
          "description": "Required. The code to be executed.",
          "type": "string"
        },
        "language": {
          "type": "string",
          "description": "Required. Programming language of the `code`.",
          "enumDescriptions": [
            "Unspecified language. This value should not be used.",
            "Python \u003e= 3.10, with numpy and simpy available. Python is the default language."
          ],
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ]
        },
        "id": {
          "type": "string",
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaExecutableCode"
    },
    "GoogleCloudAiplatformV1beta1ProactivityConfig": {
      "description": "Configures the model's proactivity. Proactivity determines how the model should respond to input. When proactivity is enabled, the model can choose to ignore irrelevant input, respond to contextual cues, and generate content even when not explicitly prompted. This is useful for more natural, human-like interactions in streaming use cases like audio and video.",
      "type": "object",
      "properties": {
        "proactiveAudio": {
          "description": "Optional. If enabled, the model can proactively respond to audio input, for example by ignoring out of context speech.",
          "type": "boolean"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1ProactivityConfig"
    },
    "GoogleCloudAiplatformV1beta1Segment": {
      "properties": {
        "partIndex": {
          "description": "Output only. The index of the `Part` object that this segment belongs to. This is useful for associating the segment with a specific part of the content.",
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "text": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The text of the segment."
        },
        "endIndex": {
          "type": "integer",
          "description": "Output only. The end index of the segment in the `Part`, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.",
          "format": "int32",
          "readOnly": true
        },
        "startIndex": {
          "readOnly": true,
          "description": "Output only. The start index of the segment in the `Part`, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.",
          "format": "int32",
          "type": "integer"
        }
      },
      "description": "A segment of the content.",
      "id": "GoogleCloudAiplatformV1beta1Segment",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1RagChunkPageSpan": {
      "properties": {
        "firstPage": {
          "format": "int32",
          "description": "Page where chunk starts in the document. Inclusive. 1-indexed.",
          "type": "integer"
        },
        "lastPage": {
          "format": "int32",
          "type": "integer",
          "description": "Page where chunk ends in the document. Inclusive. 1-indexed."
        }
      },
      "description": "Represents where the chunk starts and ends in the document.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1RagChunkPageSpan"
    },
    "GoogleCloudAiplatformV1beta1SpeechConfig": {
      "description": "Configuration for speech generation.",
      "id": "GoogleCloudAiplatformV1beta1SpeechConfig",
      "properties": {
        "languageCode": {
          "type": "string",
          "description": "Optional. The language code (ISO 639-1) for the speech synthesis."
        },
        "voiceConfig": {
          "description": "The configuration for the voice to use.",
          "$ref": "GoogleCloudAiplatformV1beta1VoiceConfig"
        },
        "multiSpeakerVoiceConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig",
          "description": "The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1Candidate": {
      "id": "GoogleCloudAiplatformV1beta1Candidate",
      "properties": {
        "finishReason": {
          "readOnly": true,
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "SPII",
            "MALFORMED_FUNCTION_CALL",
            "MODEL_ARMOR",
            "IMAGE_SAFETY",
            "IMAGE_PROHIBITED_CONTENT",
            "IMAGE_RECITATION",
            "IMAGE_OTHER",
            "UNEXPECTED_TOOL_CALL",
            "NO_IMAGE",
            "MALFORMED_RESPONSE",
            "CONTINUATION",
            "TOO_MANY_TOOL_CALLS"
          ],
          "description": "Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating.",
          "enumDescriptions": [
            "The finish reason is unspecified.",
            "The model reached a natural stopping point or a configured stop sequence.",
            "The model generated the maximum number of tokens allowed by the `max_output_tokens` parameter.",
            "The model stopped generating because the content potentially violates safety policies. NOTE: When streaming, the `content` field is empty if content filters block the output.",
            "The model stopped generating because the content may be a recitation from a source.",
            "The model stopped generating for a reason not otherwise specified.",
            "The model stopped generating because the content contains a term from a configured blocklist.",
            "The model stopped generating because the content may be prohibited.",
            "The model stopped generating because the content may contain sensitive personally identifiable information (SPII).",
            "The model generated a function call that is syntactically invalid and can't be parsed.",
            "The model response was blocked by Model Armor.",
            "The generated image potentially violates safety policies.",
            "The generated image may contain prohibited content.",
            "The generated image may be a recitation from a source.",
            "The image generation stopped for a reason not otherwise specified.",
            "The model generated a function call that is semantically invalid. This can happen, for example, if function calling is not enabled or the generated function is not in the function declaration.",
            "The model was expected to generate an image, but didn't.",
            "Finishes due to malformed response.",
            "Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned `continuation_token`.",
            "The model made too many tool calls in a single request, so the server-side tool loop stopped before the model returned a final answer."
          ],
          "type": "string"
        },
        "safetyRatings": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1SafetyRating"
          },
          "description": "Output only. A list of ratings for the safety of a response candidate. There is at most one rating per category."
        },
        "content": {
          "description": "Output only. The content of the candidate.",
          "readOnly": true,
          "$ref": "GoogleCloudAiplatformV1beta1Content"
        },
        "citationMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1CitationMetadata",
          "readOnly": true,
          "description": "Output only. A collection of citations that apply to the generated content."
        },
        "finishMessage": {
          "description": "Output only. Describes the reason the model stopped generating tokens in more detail. This field is returned only when `finish_reason` is set.",
          "type": "string",
          "readOnly": true
        },
        "avgLogprobs": {
          "format": "double",
          "readOnly": true,
          "description": "Output only. The average log probability of the tokens in this candidate. This is a length-normalized score that can be used to compare the quality of candidates of different lengths. A higher average log probability suggests a more confident and coherent response.",
          "type": "number"
        },
        "continuationToken": {
          "type": "string",
          "description": "Output only. An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation.",
          "readOnly": true,
          "format": "byte"
        },
        "logprobsResult": {
          "readOnly": true,
          "description": "Output only. The detailed log probability information for the tokens in this candidate. This is useful for debugging, understanding model uncertainty, and identifying potential \"hallucinations\".",
          "$ref": "GoogleCloudAiplatformV1beta1LogprobsResult"
        },
        "index": {
          "type": "integer",
          "description": "Output only. The 0-based index of this candidate in the list of generated responses. This is useful for distinguishing between multiple candidates when `candidate_count` \u003e 1.",
          "readOnly": true,
          "format": "int32"
        },
        "groundingMetadata": {
          "readOnly": true,
          "description": "Output only. Metadata returned when grounding is enabled. It contains the sources used to ground the generated content.",
          "$ref": "GoogleCloudAiplatformV1beta1GroundingMetadata"
        },
        "urlContextMetadata": {
          "readOnly": true,
          "$ref": "GoogleCloudAiplatformV1beta1UrlContextMetadata",
          "description": "Output only. Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL."
        }
      },
      "type": "object",
      "description": "A response candidate generated from the model."
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfig": {
      "description": "Specifies the context retrieval config.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfig",
      "properties": {
        "ranking": {
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking",
          "description": "Optional. Config for ranking and reranking."
        },
        "topK": {
          "format": "int32",
          "description": "Optional. The number of contexts to retrieve.",
          "type": "integer"
        },
        "hybridSearch": {
          "description": "Optional. Config for Hybrid Search.",
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch"
        },
        "filter": {
          "description": "Optional. Config for filters.",
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1AudioResponseFormat": {
      "properties": {
        "bitRate": {
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).",
          "type": "integer",
          "format": "int32"
        },
        "delivery": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Generated bytes are returned inline in the response.",
            "Generated content is stored and a URI is returned."
          ],
          "type": "string",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "description": "Optional. Delivery mode for the generated content."
        },
        "sampleRate": {
          "format": "int32",
          "description": "Optional. Sample rate for the generated audio in Hertz.",
          "type": "integer"
        },
        "mimeType": {
          "description": "Optional. The MIME type of the audio output.",
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "MP3 audio format.",
            "OGG Opus audio format.",
            "Raw PCM (L16) audio format.",
            "WAV audio format.",
            "A-law audio format.",
            "Mu-law audio format."
          ]
        }
      },
      "id": "GoogleCloudAiplatformV1beta1AudioResponseFormat",
      "type": "object",
      "description": "Configuration for audio-specific output formatting."
    },
    "GoogleCloudAiplatformV1beta1SessionResumptionConfig": {
      "properties": {
        "transparent": {
          "description": "Optional. If set requests server to send updates with message_index of last message sent from client included in session state.",
          "type": "boolean"
        },
        "handle": {
          "type": "string",
          "description": "Session resumption handle of previous session (session to restore). If not present new session will be started."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1SessionResumptionConfig",
      "type": "object",
      "description": "Configuration of session resumption mechanism. Included in `BidiGenerateContentSetup.session_resumption`. If included server will send SessionResumptionUpdate messages."
    },
    "GoogleCloudAiplatformV1beta1AudioTranscriptionConfig": {
      "properties": {
        "wordTimestamp": {
          "description": "Optional. Configures word-level timestamp generation.",
          "type": "boolean"
        },
        "diarization": {
          "type": "boolean",
          "description": "Optional. Configures speaker diarization."
        },
        "mode": {
          "enumDescriptions": [
            "Unspecified transcription mode.",
            "Verbatim transcription mode.",
            "Smart transcription mode."
          ],
          "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ],
          "type": "string"
        },
        "adaptationPhrases": {
          "type": "array",
          "description": "Optional. Deprecated: Use `custom_vocabulary` instead. A list of phrases to bias the speech recognition model towards.",
          "deprecated": true,
          "items": {
            "type": "string"
          }
        },
        "languageAuto": {
          "description": "Optional. Deprecated: Use top-level `language_codes` instead. The model will detect the language automatically.",
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto"
        },
        "sourceText": {
          "type": "string",
          "description": "Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."
        },
        "languageHints": {
          "description": "Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages in the audio.",
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints"
        },
        "languageCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection."
        },
        "customVocabulary": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfig",
      "type": "object",
      "description": "Configuration for speech recognition (transcription)."
    },
    "GoogleCloudAiplatformV1beta1UrlContextMetadata": {
      "id": "GoogleCloudAiplatformV1beta1UrlContextMetadata",
      "description": "Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL.",
      "type": "object",
      "properties": {
        "urlMetadata": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1UrlMetadata"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. A list of URL metadata, with one entry for each URL retrieved by the tool."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkImage": {
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkImage",
      "type": "object",
      "description": "An `Image` chunk is a piece of evidence that comes from an image search result. It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information.",
      "properties": {
        "imageUri": {
          "type": "string",
          "description": "The URI of the image."
        },
        "sourceUri": {
          "type": "string",
          "description": "The URI of the image search result page."
        },
        "domain": {
          "type": "string",
          "description": "The domain of the image search result page."
        },
        "title": {
          "description": "The title of the image search result page.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri": {
      "type": "object",
      "description": "A URI that can be used to flag a place or review for inappropriate content. This is populated only when the grounding source is Google Maps.",
      "properties": {
        "sourceId": {
          "description": "The ID of the place or review.",
          "type": "string"
        },
        "flagContentUri": {
          "description": "The URI that can be used to flag the content.",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri"
    },
    "GoogleAiGenerativelanguageV1betaSessionResumptionUpdate": {
      "properties": {
        "newHandle": {
          "description": "New handle that represents a state that can be resumed. Empty if `resumable`=false.",
          "type": "string"
        },
        "resumable": {
          "type": "boolean",
          "description": "True if the current session can be resumed at this point. Resumption is not possible at some points in the session. For example, when the model is executing function calls or generating. Resuming the session (using a previous session token) in such a state will result in some data loss. In these cases, `new_handle` will be empty and `resumable` will be false."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaSessionResumptionUpdate",
      "type": "object",
      "description": "Update of the session resumption state. Only sent if `BidiGenerateContentSetup.session_resumption` was set."
    },
    "GoogleCloudAiplatformV1beta1VertexRagStore": {
      "type": "object",
      "properties": {
        "storeContext": {
          "type": "boolean",
          "description": "Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users' ongoing and future interactions."
        },
        "vectorDistanceThreshold": {
          "deprecated": true,
          "format": "double",
          "description": "Optional. Only return results with vector distance smaller than the threshold.",
          "type": "number"
        },
        "similarityTopK": {
          "deprecated": true,
          "description": "Optional. Number of top k results to return from the selected corpora.",
          "format": "int32",
          "type": "integer"
        },
        "ragCorpora": {
          "deprecated": true,
          "type": "array",
          "description": "Optional. Deprecated. Please use rag_resources instead.",
          "items": {
            "type": "string"
          }
        },
        "ragResources": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1VertexRagStoreRagResource"
          },
          "description": "Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.",
          "type": "array"
        },
        "ragRetrievalConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfig",
          "description": "Optional. The retrieval config for the Rag query."
        }
      },
      "description": "Retrieve from Vertex RAG Store for grounding.",
      "id": "GoogleCloudAiplatformV1beta1VertexRagStore"
    },
    "GoogleCloudAiplatformV1beta1TextResponseFormat": {
      "id": "GoogleCloudAiplatformV1beta1TextResponseFormat",
      "properties": {
        "mimeType": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JSON output format.",
            "Plain text output format."
          ],
          "description": "Optional. The IANA standard MIME type of the response.",
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "APPLICATION_JSON",
            "TEXT_PLAIN"
          ]
        },
        "schema": {
          "type": "any",
          "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON."
        }
      },
      "type": "object",
      "description": "Configuration for text-specific output formatting."
    },
    "GoogleAiGenerativelanguageV1betaFunctionResponseBlob": {
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaFunctionResponseBlob",
      "properties": {
        "data": {
          "type": "string",
          "format": "byte",
          "description": "Raw bytes for media formats."
        },
        "mimeType": {
          "type": "string",
          "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        },
        "displayName": {
          "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentClientContent": {
      "properties": {
        "turns": {
          "description": "Optional. The content appended to 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 and latest request.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Content"
          },
          "type": "array"
        },
        "turnComplete": {
          "type": "boolean",
          "description": "Optional. If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation."
        }
      },
      "description": "Incremental update of the current conversation delivered from the client. All the content here is unconditionally appended to the conversation history and used as part of the prompt to the model to generate content. A message here will interrupt any current model generation.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentClientContent"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentToolResponse": {
      "description": "Client generated response to a `ToolCall` received from the server. Individual `FunctionResponse` objects are matched to the respective `FunctionCall` objects by the `id` field. Note that in the unary and server-streaming GenerateContent APIs function calling happens by exchanging the `Content` parts, while in the bidi GenerateContent APIs function calling happens over these dedicated set of messages.",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolResponse",
      "type": "object",
      "properties": {
        "functionResponses": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1FunctionResponse"
          },
          "type": "array",
          "description": "Optional. The response to the function calls."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1Citation": {
      "description": "A citation for a piece of generatedcontent.",
      "type": "object",
      "properties": {
        "startIndex": {
          "description": "Output only. The start index of the citation in the content.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "title": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The title of the source of the citation."
        },
        "endIndex": {
          "format": "int32",
          "readOnly": true,
          "type": "integer",
          "description": "Output only. The end index of the citation in the content."
        },
        "uri": {
          "readOnly": true,
          "description": "Output only. The URI of the source of the citation.",
          "type": "string"
        },
        "license": {
          "description": "Output only. The license of the source of the citation.",
          "type": "string",
          "readOnly": true
        },
        "publicationDate": {
          "description": "Output only. The publication date of the source of the citation.",
          "$ref": "Date",
          "readOnly": true
        }
      },
      "id": "GoogleCloudAiplatformV1beta1Citation"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentClientContent": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentClientContent",
      "properties": {
        "turns": {
          "description": "Optional. The content appended to 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 and the latest request.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaContent"
          },
          "type": "array"
        },
        "turnComplete": {
          "description": "Optional. If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server awaits additional messages before starting generation.",
          "type": "boolean"
        }
      },
      "description": "Incremental update of the current conversation delivered from the client. All of the content here is unconditionally appended to the conversation history and used as part of the prompt to the model to generate content. A message here will interrupt any current model generation."
    },
    "GoogleCloudAiplatformV1beta1VoiceConfig": {
      "description": "Configuration for a voice.",
      "id": "GoogleCloudAiplatformV1beta1VoiceConfig",
      "type": "object",
      "properties": {
        "replicatedVoiceConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig",
          "description": "Optional. The configuration for a replicated voice. This enables users to replicate a voice from an audio sample."
        },
        "prebuiltVoiceConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig",
          "description": "The configuration for a prebuilt voice."
        },
        "voice": {
          "description": "Optional. The speaker identifier for synthesis. Supported formats: * Speaker name for prebuilt voices (for example, `Orus` or `Kore`). * Voice ID for stored voices (for example, `voice_xxx`). * Voice replication key (for example, `voicekey_xxx`).",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaTool": {
      "properties": {
        "googleSearchRetrieval": {
          "$ref": "GoogleAiGenerativelanguageV1betaGoogleSearchRetrieval",
          "description": "Optional. Retrieval tool that is powered by Google search."
        },
        "codeExecution": {
          "$ref": "GoogleAiGenerativelanguageV1betaCodeExecution",
          "description": "Optional. Enables the model to execute code as part of generation."
        },
        "fileSearch": {
          "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.",
          "$ref": "GoogleAiGenerativelanguageV1betaFileSearch"
        },
        "googleSearch": {
          "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
          "$ref": "GoogleAiGenerativelanguageV1betaToolGoogleSearch"
        },
        "functionDeclarations": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaFunctionDeclaration"
          },
          "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn."
        },
        "mcpServers": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaToolMcpServer"
          },
          "description": "Optional. MCP Servers to connect to."
        },
        "computerUse": {
          "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.",
          "$ref": "GoogleAiGenerativelanguageV1betaToolComputerUse"
        },
        "urlContext": {
          "description": "Optional. Tool to support URL context retrieval.",
          "$ref": "GoogleAiGenerativelanguageV1betaUrlContext"
        },
        "googleMaps": {
          "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.",
          "$ref": "GoogleAiGenerativelanguageV1betaGoogleMaps"
        }
      },
      "type": "object",
      "description": "Tool details that the model may use to generate 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.",
      "id": "GoogleAiGenerativelanguageV1betaTool"
    },
    "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates": {
      "type": "object",
      "properties": {
        "candidates": {
          "description": "The list of candidate tokens, sorted by log probability in descending order.",
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate"
          }
        }
      },
      "id": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates",
      "description": "A list of the top candidate tokens and their log probabilities at each decoding step. This can be used to see what other tokens the model considered."
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkCustomMetadata": {
      "properties": {
        "numericValue": {
          "type": "number",
          "format": "float",
          "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used."
        },
        "key": {
          "description": "The key of the metadata.",
          "type": "string"
        },
        "stringListValue": {
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkStringList",
          "description": "Optional. A list of string values for the metadata."
        },
        "stringValue": {
          "type": "string",
          "description": "Optional. The string value of the metadata."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkCustomMetadata",
      "type": "object",
      "description": "User provided metadata about the GroundingFact."
    },
    "GoogleAiGenerativelanguageV1betaGenerateContentRequest": {
      "properties": {
        "labels": {
          "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - 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. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "continuationToken": {
          "type": "string",
          "description": "Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request.",
          "format": "byte"
        },
        "toolConfig": {
          "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://aistudio.google.com/docs/function-calling#function_calling_modes) for a usage example.",
          "$ref": "GoogleAiGenerativelanguageV1betaToolConfig"
        },
        "store": {
          "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.",
          "type": "boolean"
        },
        "cachedContent": {
          "type": "string",
          "description": "Optional. The name of the content [cached](https://aistudio.google.com/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`"
        },
        "model": {
          "type": "string",
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
        },
        "tools": {
          "description": "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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://aistudio.google.com/docs/function-calling) and the [Code execution](https://aistudio.google.com/docs/code-execution) guides to learn more.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaTool"
          },
          "type": "array"
        },
        "generationConfig": {
          "description": "Optional. Configuration options for model generation and outputs.",
          "$ref": "GoogleAiGenerativelanguageV1betaGenerationConfig"
        },
        "systemInstruction": {
          "description": "Optional. Developer set [system instruction(s)](https://aistudio.google.com/docs/text-generation#system-instructions). Currently, text only.",
          "$ref": "GoogleAiGenerativelanguageV1betaContent"
        },
        "contents": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaContent"
          },
          "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://aistudio.google.com/docs/text-generation#multi-turn-conversations), this is a repeated field that contains the conversation history and the latest request.",
          "type": "array"
        },
        "serviceTier": {
          "type": "string",
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ],
          "description": "Optional. The service tier of the request."
        },
        "safetySettings": {
          "type": "array",
          "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://aistudio.google.com/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://aistudio.google.com/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaSafetySetting"
          }
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGenerateContentRequest",
      "type": "object",
      "description": "Request to generate a completion from the model."
    },
    "GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes": {
      "description": "Defines the types of Google Maps grounding that can be enabled and their configurations.",
      "id": "GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes",
      "type": "object",
      "properties": {
        "places": {
          "$ref": "GoogleCloudAiplatformV1beta1GoogleMapsPlaces",
          "description": "Optional. Enables grounding with Google Maps Places. This is the default grounding type when no `GroundingTypes` are specified."
        },
        "routing": {
          "description": "Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). Also enabled by default for Gemini 4 and later models when no `GroundingTypes` are specified.",
          "$ref": "GoogleCloudAiplatformV1beta1GoogleMapsRouting"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ImageResponseFormat": {
      "type": "object",
      "properties": {
        "imageSize": {
          "type": "string",
          "description": "Optional. The size of the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "512px image size.",
            "1K image size.",
            "2K image size.",
            "4K image size."
          ],
          "enum": [
            "IMAGE_SIZE_UNSPECIFIED",
            "IMAGE_SIZE_FIVE_TWELVE",
            "IMAGE_SIZE_ONE_K",
            "IMAGE_SIZE_TWO_K",
            "IMAGE_SIZE_FOUR_K"
          ]
        },
        "mimeType": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JPEG image format."
          ],
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "IMAGE_JPEG"
          ],
          "description": "Optional. The MIME type of the image output."
        },
        "aspectRatio": {
          "type": "string",
          "description": "Optional. The aspect ratio for the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "1:1 aspect ratio.",
            "2:3 aspect ratio.",
            "3:2 aspect ratio.",
            "3:4 aspect ratio.",
            "4:3 aspect ratio.",
            "4:5 aspect ratio.",
            "5:4 aspect ratio.",
            "9:16 aspect ratio.",
            "16:9 aspect ratio.",
            "21:9 aspect ratio.",
            "1:8 aspect ratio.",
            "8:1 aspect ratio.",
            "1:4 aspect ratio.",
            "4:1 aspect ratio."
          ],
          "enum": [
            "ASPECT_RATIO_UNSPECIFIED",
            "ASPECT_RATIO_ONE_BY_ONE",
            "ASPECT_RATIO_TWO_BY_THREE",
            "ASPECT_RATIO_THREE_BY_TWO",
            "ASPECT_RATIO_THREE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_THREE",
            "ASPECT_RATIO_FOUR_BY_FIVE",
            "ASPECT_RATIO_FIVE_BY_FOUR",
            "ASPECT_RATIO_NINE_BY_SIXTEEN",
            "ASPECT_RATIO_SIXTEEN_BY_NINE",
            "ASPECT_RATIO_TWENTY_ONE_BY_NINE",
            "ASPECT_RATIO_ONE_BY_EIGHT",
            "ASPECT_RATIO_EIGHT_BY_ONE",
            "ASPECT_RATIO_ONE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_ONE"
          ]
        },
        "delivery": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Generated bytes are returned inline in the response.",
            "Generated content is stored and a URI is returned."
          ],
          "description": "Optional. Delivery mode for the generated content.",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ]
        }
      },
      "description": "Configuration for image-specific output formatting.",
      "id": "GoogleCloudAiplatformV1beta1ImageResponseFormat"
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkRetrievedContext": {
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkRetrievedContext",
      "description": "Chunk from context retrieved by the file search tool.",
      "type": "object",
      "properties": {
        "uri": {
          "description": "Optional. URI reference of the semantic retrieval document.",
          "type": "string"
        },
        "pageNumber": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Page number of the retrieved context, if applicable."
        },
        "text": {
          "type": "string",
          "description": "Optional. Text of the chunk."
        },
        "title": {
          "type": "string",
          "description": "Optional. Title of the document."
        },
        "fileSearchStore": {
          "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`",
          "type": "string"
        },
        "mediaId": {
          "type": "string",
          "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}"
        },
        "customMetadata": {
          "description": "Optional. User-provided metadata about the retrieved context.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkCustomMetadata"
          },
          "type": "array"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GoogleMapsPlaces": {
      "properties": {},
      "id": "GoogleCloudAiplatformV1beta1GoogleMapsPlaces",
      "type": "object",
      "description": "Grounding with Google Maps Places data (e.g. QueryPlaces). This is the default Google Maps grounding type when no other type is specified."
    },
    "TemplateFunction": {
      "properties": {
        "name": {
          "type": "string",
          "description": "Required. The name of the function to call."
        },
        "outputSchema": {
          "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function.",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "inputSchema": {
          "type": "object",
          "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ```",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      },
      "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). This is a representation of a block of code that can be used as a `Tool` by the model and executed by the client. The name of the function must be listed in the template frontmatter for the model to be able to call it.",
      "type": "object",
      "id": "TemplateFunction"
    },
    "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfig": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfig",
      "description": "Enables context window compression -- mechanism managing model context window so it does not exceed given length.",
      "properties": {
        "triggerTokens": {
          "description": "Number of tokens (before running turn) that triggers context window compression mechanism. This can be also used as latency/quality knob. Shorter windows might run faster. If not set 80% of model context window will be used, leaving 20% for next user request/model response.",
          "type": "string",
          "format": "int64"
        },
        "slidingWindow": {
          "$ref": "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfigSlidingWindow",
          "description": "Sliding window compression mechanism."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaLogprobsResultCandidate": {
      "type": "object",
      "description": "Candidate for the logprobs token and score.",
      "id": "GoogleAiGenerativelanguageV1betaLogprobsResultCandidate",
      "properties": {
        "logProbability": {
          "description": "The candidate's log probability.",
          "format": "float",
          "type": "number"
        },
        "token": {
          "type": "string",
          "description": "The candidate’s token string value."
        },
        "tokenId": {
          "type": "integer",
          "format": "int32",
          "description": "The candidate’s token id value."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaLogprobsResult": {
      "id": "GoogleAiGenerativelanguageV1betaLogprobsResult",
      "properties": {
        "chosenCandidates": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaLogprobsResultCandidate"
          },
          "type": "array",
          "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates."
        },
        "logProbabilitySum": {
          "type": "number",
          "description": "Sum of log probabilities for all tokens.",
          "format": "float"
        },
        "topCandidates": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaLogprobsResultTopCandidates"
          },
          "description": "Length = total number of decoding steps.",
          "type": "array"
        }
      },
      "description": "Logprobs Result",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaVoiceConfig": {
      "description": "The configuration for the voice to use.",
      "id": "GoogleAiGenerativelanguageV1betaVoiceConfig",
      "type": "object",
      "properties": {
        "prebuiltVoiceConfig": {
          "description": "The configuration for the prebuilt voice to use.",
          "$ref": "GoogleAiGenerativelanguageV1betaPrebuiltVoiceConfig"
        },
        "voice": {
          "type": "string",
          "description": "Optional. The speaker identifier for synthesis. Supported formats: * Speaker name for prebuilt voices (for example, `Orus` or `Kore`). * Voice ID for stored voices (for example, `voice_xxx`). * Voice replication key (for example, `voicekey_xxx`)."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig": {
      "id": "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig",
      "description": "Config for HTTP Basic Authentication.",
      "type": "object",
      "properties": {
        "credentialSecret": {
          "type": "string",
          "description": "Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaFunctionResponsePart": {
      "type": "object",
      "properties": {
        "fileData": {
          "$ref": "GoogleAiGenerativelanguageV1betaFunctionResponseFileData",
          "description": "URI based data."
        },
        "inlineData": {
          "$ref": "GoogleAiGenerativelanguageV1betaFunctionResponseBlob",
          "description": "Inline media bytes."
        },
        "mediaProcessing": {
          "type": "string",
          "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "enumDescriptions": [
            "Defaults to model-specific processing.",
            "Fixed-rate frame extraction. All frames placed in context.",
            "Model-driven dynamic navigation. Recommended for most use cases."
          ],
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ]
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaFunctionResponsePart",
      "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes."
    },
    "Interval": {
      "type": "object",
      "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.",
      "id": "Interval",
      "properties": {
        "startTime": {
          "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",
          "type": "string",
          "format": "google-datetime"
        },
        "endTime": {
          "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.",
          "format": "google-datetime",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaFunctionDeclaration": {
      "id": "GoogleAiGenerativelanguageV1betaFunctionDeclaration",
      "type": "object",
      "properties": {
        "parameters": {
          "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter.",
          "$ref": "GoogleAiGenerativelanguageV1betaSchema"
        },
        "parametersJsonSchema": {
          "type": "any",
          "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`."
        },
        "description": {
          "type": "string",
          "description": "Required. A brief description of the function."
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128."
        },
        "behavior": {
          "enumDescriptions": [
            "This value is unused.",
            "If set, the system will wait to receive the function response before continuing the conversation.",
            "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model."
          ],
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ],
          "type": "string",
          "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method."
        },
        "response": {
          "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.",
          "$ref": "GoogleAiGenerativelanguageV1betaSchema"
        },
        "responseJsonSchema": {
          "type": "any",
          "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."
        }
      },
      "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client."
    },
    "Blob": {
      "description": "An element in the history the represents raw binary data.",
      "id": "Blob",
      "properties": {
        "data": {
          "format": "byte",
          "type": "string",
          "description": "Required. Raw bytes for media formats."
        },
        "mimeType": {
          "description": "Required. The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1PredictRequest": {
      "properties": {
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional. The user labels for Imagen billing usage only. Only Imagen supports labels. For other use cases, it will be ignored."
        },
        "parameters": {
          "type": "any",
          "description": "The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' Model's PredictSchemata's parameters_schema_uri."
        },
        "instances": {
          "type": "array",
          "description": "Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint's DeployedModels' Model's PredictSchemata's instance_schema_uri.",
          "items": {
            "type": "any"
          }
        }
      },
      "description": "Request message for PredictionService.Predict.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1PredictRequest"
    },
    "Config": {
      "id": "Config",
      "properties": {
        "name": {
          "description": "Identifier. The resource name of the config. Format: projects/{project}/locations/{location}/config",
          "type": "string"
        },
        "trafficFilter": {
          "$ref": "TrafficFilter",
          "description": "Optional. Configuration for traffic filtering."
        },
        "telemetryConfig": {
          "$ref": "TelemetryConfig",
          "description": "Optional. Configuration for telemetry."
        },
        "generativeLanguageConfig": {
          "description": "Optional. Configuration for Gemini Developer API.",
          "$ref": "GenerativeLanguageConfig"
        }
      },
      "description": "Configuration for Firebase AI Logic.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaFunctionCallingConfig": {
      "description": "Configuration for specifying function calling behavior.",
      "type": "object",
      "properties": {
        "mode": {
          "enumDescriptions": [
            "Unspecified function calling mode. This value should not be used.",
            "Default model behavior, model decides to predict either a function call or a natural language response.",
            "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".",
            "Model will not predict any function call. Model behavior is same as when not passing any function declarations.",
            "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"."
          ],
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE",
            "VALIDATED"
          ],
          "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO."
        },
        "allowedFunctionNames": {
          "type": "array",
          "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names.",
          "items": {
            "type": "string"
          }
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaFunctionCallingConfig"
    },
    "GoogleAiGenerativelanguageV1betaGoogleSearchRetrieval": {
      "description": "Tool to retrieve public web data for grounding, powered by Google.",
      "properties": {
        "dynamicRetrievalConfig": {
          "description": "Specifies the dynamic retrieval configuration for the given source.",
          "$ref": "GoogleAiGenerativelanguageV1betaDynamicRetrievalConfig"
        }
      },
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaGoogleSearchRetrieval"
    },
    "GoogleAiGenerativelanguageV1betaUrlContext": {
      "id": "GoogleAiGenerativelanguageV1betaUrlContext",
      "properties": {},
      "type": "object",
      "description": "Tool to support URL context retrieval."
    },
    "GoogleCloudAiplatformV1beta1FileData": {
      "type": "object",
      "properties": {
        "mimeType": {
          "type": "string",
          "description": "Required. The IANA standard MIME type of the source data."
        },
        "fileUri": {
          "type": "string",
          "description": "Required. The URI of the file in Google Cloud Storage."
        },
        "displayName": {
          "description": "Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1FileData",
      "description": "URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage."
    },
    "GoogleAiGenerativelanguageV1betaAttributionSourceIdGroundingPassageId": {
      "properties": {
        "passageId": {
          "readOnly": true,
          "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.",
          "type": "string"
        },
        "partIndex": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",
          "type": "integer"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaAttributionSourceIdGroundingPassageId",
      "description": "Identifier for a part within a `GroundingPassage`.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1PartMediaResolution": {
      "description": "per part media resolution. Media resolution for the input media.",
      "type": "object",
      "properties": {
        "level": {
          "type": "string",
          "description": "The tokenization quality used for given media.",
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low.",
            "Media resolution set to medium.",
            "Media resolution set to high.",
            "Media resolution set to ultra high. This is for image only."
          ],
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH",
            "MEDIA_RESOLUTION_ULTRA_HIGH"
          ]
        }
      },
      "id": "GoogleCloudAiplatformV1beta1PartMediaResolution"
    },
    "GoogleAiGenerativelanguageV1betaToolResponse": {
      "id": "GoogleAiGenerativelanguageV1betaToolResponse",
      "type": "object",
      "properties": {
        "response": {
          "type": "object",
          "description": "Optional. The tool response.",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        },
        "toolType": {
          "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",
          "type": "string",
          "enumDescriptions": [
            "Unspecified tool type.",
            "Google search tool, maps to Tool.google_search.search_types.web_search.",
            "Image search tool, maps to Tool.google_search.search_types.image_search.",
            "URL context tool, maps to Tool.url_context.",
            "Google maps tool, maps to Tool.google_maps.",
            "File search tool, maps to Tool.file_search.",
            "Media processing tool types (e.g. video, audio, etc.), maps to invisible tools used for multimodal understanding like GOOGLE_UNDERSTANDING_VIDEO."
          ],
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH",
            "MEDIA_PROCESSING"
          ]
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the tool call this response is for."
        }
      },
      "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`."
    },
    "GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig": {
      "id": "GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig",
      "properties": {
        "apiKeySecretVersion": {
          "description": "Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}",
          "type": "string"
        },
        "apiKeyString": {
          "type": "string",
          "description": "The API key string. Either this or `api_key_secret_version` must be set."
        }
      },
      "type": "object",
      "description": "The API secret."
    },
    "HistoryPart": {
      "description": "A single message from the conversation history list. This can represent a plain text message, a request to invoke a client-side function or the output from invoking a client-side function.",
      "id": "HistoryPart",
      "properties": {
        "fileData": {
          "description": "Optional. URI based data.",
          "$ref": "FileData"
        },
        "thoughtSignature": {
          "format": "byte",
          "type": "string",
          "description": "Optional. Represents an opaque signature for the thought so it can be reused in subsequent requests."
        },
        "thought": {
          "description": "Optional. Indicates if the part is thought from the model.",
          "type": "boolean"
        },
        "functionResponse": {
          "$ref": "FunctionResponse",
          "description": "Optional. The output from a client-side function invocation"
        },
        "inlineData": {
          "description": "Optional. Inline media bytes.",
          "$ref": "Blob"
        },
        "codeExecutionResult": {
          "description": "Optional. Result of executing the `ExecutableCode`.",
          "$ref": "CodeExecutionResult"
        },
        "functionCall": {
          "description": "Optional. A request to invoke a client-side function",
          "$ref": "FunctionCall"
        },
        "executableCode": {
          "$ref": "ExecutableCode",
          "description": "Optional. Code generated by the model that is meant to be executed."
        },
        "text": {
          "type": "string",
          "description": "Optional. A plain text message from one party in the conversation."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1VertexAISearchDataStoreSpec": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1VertexAISearchDataStoreSpec",
      "description": "Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec",
      "properties": {
        "dataStore": {
          "description": "Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`",
          "type": "string"
        },
        "filter": {
          "description": "Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfigSlidingWindow": {
      "id": "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfigSlidingWindow",
      "description": "Context window will be truncated by keeping only suffix of it. Context window will always be cut at start of USER role turn. System instructions and `BidiGenerateContentSetup.prefix_turns` will not be subject to the sliding window mechanism, they will always stay at the beginning of context window.",
      "type": "object",
      "properties": {
        "targetTokens": {
          "format": "int64",
          "description": "Session reduction target -- how many tokens we should keep. Window shortening operation has some latency costs, so we should avoid running it on every turn. Should be \u003c trigger_tokens. If not set, trigger_tokens/2 is assumed.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1VertexAISearch": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1VertexAISearch",
      "description": "Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder",
      "properties": {
        "engine": {
          "description": "Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`",
          "type": "string"
        },
        "dataStoreSpecs": {
          "description": "Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1VertexAISearchDataStoreSpec"
          },
          "type": "array"
        },
        "maxResults": {
          "description": "Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.",
          "type": "integer",
          "format": "int32"
        },
        "filter": {
          "description": "Optional. Filter strings to be passed to the search API.",
          "type": "string"
        },
        "datastore": {
          "type": "string",
          "description": "Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`"
        }
      }
    },
    "Function": {
      "type": "object",
      "id": "Function",
      "description": "Information about a Cloud Run Function that can be invoked when a given event occurs.",
      "properties": {
        "location": {
          "description": "Optional. Optional Cloud region for the trigger target if it is different from the region where the trigger is defined. Firebase AI Logic supports a special `global` region for customers that don't care about regional isolation. Functions can't be deployed in the `global` region. In any other region besides `global` if this value is specified and doesn't match the location in the trigger resource name then an error will be returned. A value must be specified when creating triggers in the `global` region.",
          "type": "string"
        },
        "locationId": {
          "type": "string",
          "deprecated": true,
          "description": "Optional. Deprecated: Use `location` instead."
        },
        "id": {
          "type": "string",
          "description": "Required. Unique ID of a Cloud Run Function that should be invoked."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkMaps": {
      "description": "A `Maps` chunk is a piece of evidence that comes from Google Maps, containing information about places or routes. This is used to provide the user with rich, location-based information.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkMaps",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the place."
        },
        "placeAnswerSources": {
          "description": "The sources that were used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.",
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources"
        },
        "route": {
          "description": "Output only. Route information.",
          "readOnly": true,
          "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute"
        },
        "text": {
          "type": "string",
          "description": "The text of the place answer."
        },
        "uri": {
          "type": "string",
          "description": "The URI of the place."
        },
        "placeId": {
          "description": "This Place's resource name, in `places/{place_id}` format. This can be used to look up the place in the Google Maps API.",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityEnd": {
      "description": "Marks the end of user activity.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityEnd",
      "properties": {}
    },
    "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto",
      "deprecated": true,
      "properties": {},
      "description": "Deprecated: Use top-level `language_codes` instead. Indicates the language of the audio should be automatically detected."
    },
    "GoogleCloudAiplatformV1beta1PartialArg": {
      "description": "Partial argument value of the function call.",
      "properties": {
        "boolValue": {
          "type": "boolean",
          "description": "Optional. Represents a boolean value."
        },
        "jsonPath": {
          "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".",
          "type": "string"
        },
        "nullValue": {
          "type": "string",
          "description": "Optional. Represents a null value.",
          "enumDescriptions": [
            "Null value."
          ],
          "enum": [
            "NULL_VALUE"
          ]
        },
        "willContinue": {
          "type": "boolean",
          "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow."
        },
        "numberValue": {
          "type": "number",
          "description": "Optional. Represents a double value.",
          "format": "double"
        },
        "stringValue": {
          "description": "Optional. Represents a string value.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1PartialArg"
    },
    "GoogleAiGenerativelanguageV1betaAudioResponseFormat": {
      "properties": {
        "delivery": {
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Audio data is returned inline in the response.",
            "Audio data is returned as a URI."
          ],
          "type": "string",
          "description": "Optional. The delivery mode for the audio output."
        },
        "sampleRate": {
          "type": "integer",
          "description": "Optional. Sample rate in Hz.",
          "format": "int32"
        },
        "mimeType": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "MP3 audio format.",
            "OGG Opus audio format.",
            "Raw PCM (L16) audio format.",
            "WAV audio format.",
            "A-law audio format.",
            "Mu-law audio format."
          ],
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ],
          "description": "Optional. The MIME type of the audio output."
        },
        "bitRate": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus)."
        }
      },
      "description": "Configuration for audio output format.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaAudioResponseFormat"
    },
    "GoogleCloudAiplatformV1beta1LogprobsResult": {
      "description": "The log probabilities of the tokens generated by the model. This is useful for understanding the model's confidence in its predictions and for debugging. For example, you can use log probabilities to identify when the model is making a less confident prediction or to explore alternative responses that the model considered. A low log probability can also indicate that the model is \"hallucinating\" or generating factually incorrect information.",
      "id": "GoogleCloudAiplatformV1beta1LogprobsResult",
      "properties": {
        "chosenCandidates": {
          "type": "array",
          "description": "A list of the chosen candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. Note that the chosen candidate might not be in `top_candidates`.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate"
          }
        },
        "topCandidates": {
          "type": "array",
          "description": "A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates"
          }
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCountTokensRequest": {
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "id": "GoogleAiGenerativelanguageV1betaCountTokensRequest",
      "type": "object",
      "properties": {
        "generateContentRequest": {
          "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentRequest",
          "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://aistudio.google.com/docs/text-generation#system-instructions), and/or function declarations for [function calling](https://aistudio.google.com/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both."
        },
        "contents": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaContent"
          },
          "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.",
          "type": "array"
        }
      }
    },
    "CodeExecutionResult": {
      "type": "object",
      "description": "An element in the history that represents the result of executing the `ExecutableCode` and always follows a `part` containing the `ExecutableCode`.",
      "id": "CodeExecutionResult",
      "properties": {
        "outcome": {
          "type": "string",
          "description": "Required. Outcome of the code execution. String representation of a Gemini CodeExecutionResult.Outcome enum http://google3/google/ai/generativelanguage/v1main/content.proto?q=symbol:%5CbOutcome%5Cb"
        },
        "output": {
          "description": "Optional. Contains stdout when code execution is successful; stderr or other description otherwise.",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaModelStatus": {
      "properties": {
        "message": {
          "type": "string",
          "description": "A message explaining the model status."
        },
        "retirementTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "The time at which the model will be retired."
        },
        "modelStage": {
          "description": "The stage of the underlying model.",
          "enum": [
            "MODEL_STAGE_UNSPECIFIED",
            "UNSTABLE_EXPERIMENTAL",
            "EXPERIMENTAL",
            "PREVIEW",
            "STABLE",
            "LEGACY",
            "DEPRECATED",
            "RETIRED"
          ],
          "type": "string",
          "enumDeprecated": [
            false,
            true,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "enumDescriptions": [
            "Unspecified model stage.",
            "The underlying model is subject to lots of tunings.",
            "Models in this stage are for experimental purposes only.",
            "Models in this stage are more mature than experimental models.",
            "Models in this stage are considered stable and ready for production use.",
            "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.",
            "Models in this stage are deprecated. These models cannot be used.",
            "Models in this stage are retired. These models cannot be used."
          ]
        }
      },
      "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.",
      "id": "GoogleAiGenerativelanguageV1betaModelStatus",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1SafetySetting": {
      "type": "object",
      "properties": {
        "category": {
          "description": "Required. The harm category to be blocked.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Content that promotes violence or incites hatred against individuals or groups based on certain attributes.",
            "Content that promotes, facilitates, or enables dangerous activities.",
            "Abusive, threatening, or content intended to bully, torment, or ridicule.",
            "Content that contains sexually explicit material.",
            "Deprecated: Election filter is not longer supported. The harm category is civic integrity.",
            "Images that contain hate speech.",
            "Images that contain dangerous content.",
            "Images that contain harassment.",
            "Images that contain sexually explicit content.",
            "Prompts designed to bypass safety filters."
          ],
          "type": "string",
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_DANGEROUS_CONTENT",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_IMAGE_HATE",
            "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",
            "HARM_CATEGORY_IMAGE_HARASSMENT",
            "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_JAILBREAK"
          ],
          "enumDeprecated": [
            false,
            false,
            false,
            false,
            false,
            true,
            false,
            false,
            false,
            false,
            false
          ]
        },
        "threshold": {
          "type": "string",
          "description": "Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked.",
          "enumDescriptions": [
            "The harm block threshold is unspecified.",
            "Block content with a low harm probability or higher.",
            "Block content with a medium harm probability or higher.",
            "Block content with a high harm probability.",
            "Do not block any content, regardless of its harm probability.",
            "Turn off the safety filter entirely."
          ],
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE",
            "OFF"
          ]
        },
        "method": {
          "type": "string",
          "description": "Optional. The method for blocking content. If not specified, the default behavior is to use the probability score.",
          "enumDescriptions": [
            "The harm block method is unspecified.",
            "The harm block method uses both probability and severity scores.",
            "The harm block method uses the probability score."
          ],
          "enum": [
            "HARM_BLOCK_METHOD_UNSPECIFIED",
            "SEVERITY",
            "PROBABILITY"
          ]
        }
      },
      "description": "A safety setting that affects the safety-blocking behavior. A SafetySetting consists of a harm category and a threshold for that category.",
      "id": "GoogleCloudAiplatformV1beta1SafetySetting"
    },
    "GoogleAiGenerativelanguageV1betaHistoryConfig": {
      "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.",
      "type": "object",
      "properties": {
        "initialHistoryInClientContent": {
          "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.",
          "type": "boolean"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaHistoryConfig"
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch": {
      "properties": {
        "alpha": {
          "type": "number",
          "description": "Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.",
          "format": "float"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch",
      "type": "object",
      "description": "Config for Hybrid Search."
    },
    "GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch": {
      "properties": {},
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch",
      "description": "Image search for grounding and related configurations."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageHints": {
      "type": "object",
      "description": "Deprecated: Use top-level `language_codes` instead. Provides hints to the model about possible languages present in the audio.",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageHints",
      "deprecated": true,
      "properties": {
        "languageCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Deprecated: Use top-level `language_codes` instead. BCP-47 language codes. At least one must be specified.",
          "deprecated": true
        }
      }
    },
    "FileData": {
      "description": "An element in the history the represents an external data file.",
      "type": "object",
      "properties": {
        "mimeType": {
          "description": "Required. The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg",
          "type": "string"
        },
        "fileUri": {
          "type": "string",
          "description": "Required. URI."
        }
      },
      "id": "FileData"
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkWeb": {
      "description": "Chunk from the web.",
      "type": "object",
      "properties": {
        "uri": {
          "description": "Output only. URI reference of the chunk.",
          "type": "string",
          "readOnly": true
        },
        "title": {
          "description": "Output only. Title of the chunk.",
          "readOnly": true,
          "type": "string"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkWeb"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupComplete": {
      "type": "object",
      "description": "Sent in response to a `BidiGenerateContentSetup` message from the client.",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupComplete",
      "properties": {
        "sessionId": {
          "readOnly": true,
          "description": "Output only. The session id of the session.",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaUsageMetadata": {
      "id": "GoogleAiGenerativelanguageV1betaUsageMetadata",
      "description": "Usage metadata about response(s).",
      "type": "object",
      "properties": {
        "cacheTokensDetails": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. List of modalities of the cached content in the request input.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          }
        },
        "toolUsePromptTokenCount": {
          "format": "int32",
          "description": "Output only. Number of tokens present in tool-use prompt(s).",
          "readOnly": true,
          "type": "integer"
        },
        "responseTokensDetails": {
          "description": "Output only. List of modalities that were returned in the response.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          }
        },
        "cachedContentTokenCount": {
          "description": "Number of tokens in the cached part of the prompt (the cached content)",
          "format": "int32",
          "type": "integer"
        },
        "thoughtsTokenCount": {
          "readOnly": true,
          "format": "int32",
          "type": "integer",
          "description": "Output only. Number of tokens of thoughts for thinking models."
        },
        "promptTokenCount": {
          "format": "int32",
          "readOnly": true,
          "description": "Output only. Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.",
          "type": "integer"
        },
        "responseTokenCount": {
          "format": "int32",
          "description": "Output only. Total number of tokens across all the generated response candidates.",
          "readOnly": true,
          "type": "integer"
        },
        "totalTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Output only. Total token count for the generation request (prompt + response candidates).",
          "readOnly": true
        },
        "toolUsePromptTokensDetails": {
          "description": "Output only. List of modalities that were processed for tool-use request inputs.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "readOnly": true,
          "type": "array"
        },
        "promptTokensDetails": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "readOnly": true,
          "description": "Output only. List of modalities that were processed in the request input."
        }
      }
    },
    "ModifyLockRequest": {
      "properties": {
        "locked": {
          "description": "Required. Updates the lock on a PromptTemplate to match this value. If True, mutations to the PromptTemplate will be blocked.",
          "type": "boolean"
        },
        "regionalPropagationDisabled": {
          "type": "boolean",
          "description": "Optional. For global endpoints only. If true, the PromptTemplate's lock state will be modified in global only. Otherwise, the lock state will _also_ be modified in all regions where applicable."
        }
      },
      "type": "object",
      "description": "Request message for TemplateService.ModifyLock.",
      "id": "ModifyLockRequest"
    },
    "GoogleAiGenerativelanguageV1betaMediaResolution": {
      "properties": {
        "level": {
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH",
            "MEDIA_RESOLUTION_ULTRA_HIGH"
          ],
          "type": "string",
          "description": "The tokenization quality used for given media. for Gemini API support .",
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low.",
            "Media resolution set to medium.",
            "Media resolution set to high.",
            "Media resolution set to ultra high."
          ]
        }
      },
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaMediaResolution",
      "description": "Media resolution for tokenization."
    },
    "GoogleAiGenerativelanguageV1betaFileData": {
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.",
          "type": "string"
        },
        "mimeType": {
          "type": "string",
          "description": "Optional. The IANA standard MIME type of the source data."
        }
      },
      "type": "object",
      "description": "URI based data.",
      "id": "GoogleAiGenerativelanguageV1betaFileData"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContentTranscription": {
      "type": "object",
      "properties": {
        "startOffset": {
          "description": "Optional. Start offset in time of the transcription relative to the start of the audio.",
          "type": "string",
          "format": "google-duration"
        },
        "finished": {
          "type": "boolean",
          "description": "Optional. Indicates whether the transcription is complete."
        },
        "languageCode": {
          "description": "Optional. The BCP-47 language code of the transcription.",
          "type": "string"
        },
        "text": {
          "type": "string",
          "description": "Optional. The transcription text."
        },
        "endOffset": {
          "description": "Optional. End offset in time of the transcription relative to the start of the audio.",
          "type": "string",
          "format": "google-duration"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContentTranscription",
      "description": "Audio transcription message."
    },
    "GoogleAiGenerativelanguageV1betaTranslationConfig": {
      "properties": {
        "echoTargetLanguage": {
          "type": "boolean",
          "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language."
        },
        "targetLanguageCode": {
          "type": "string",
          "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."
        }
      },
      "description": "Config for translation features.",
      "id": "GoogleAiGenerativelanguageV1betaTranslationConfig",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1FunctionResponsePart": {
      "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
      "id": "GoogleCloudAiplatformV1beta1FunctionResponsePart",
      "type": "object",
      "properties": {
        "mediaProcessing": {
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ],
          "description": "Optional. Processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "enumDescriptions": [
            "Defaults to model-specific processing.",
            "Fixed-rate frame extraction. All frames placed in context.",
            "Model-driven dynamic navigation. Recommended for most use cases."
          ],
          "type": "string"
        },
        "fileData": {
          "description": "URI based data.",
          "$ref": "GoogleCloudAiplatformV1beta1FunctionResponseFileData"
        },
        "inlineData": {
          "$ref": "GoogleCloudAiplatformV1beta1FunctionResponseBlob",
          "description": "Inline media bytes."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1UrlContext": {
      "description": "Tool to support URL context.",
      "id": "GoogleCloudAiplatformV1beta1UrlContext",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudAiplatformV1beta1Content": {
      "id": "GoogleCloudAiplatformV1beta1Content",
      "properties": {
        "role": {
          "description": "Optional. The producer of the content. Must be either 'user' or 'model'. If not set, the service will default to 'user'.",
          "type": "string"
        },
        "parts": {
          "type": "array",
          "description": "Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Part"
          }
        }
      },
      "type": "object",
      "description": "The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCallCancellation": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCallCancellation",
      "description": "Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled. If there were side-effects to those tool calls, clients may attempt to undo the tool calls. This message occurs only in cases where the clients interrupt server turns.",
      "properties": {
        "ids": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. The ids of the tool calls to be cancelled.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaUrlContextMetadata": {
      "type": "object",
      "properties": {
        "urlMetadata": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaUrlMetadata"
          },
          "type": "array",
          "description": "List of url context."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaUrlContextMetadata",
      "description": "Metadata related to url context retrieval tool."
    },
    "GoogleAiGenerativelanguageV1betaVideoMetadata": {
      "type": "object",
      "description": "Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers).",
      "properties": {
        "startOffset": {
          "format": "google-duration",
          "description": "Optional. The start offset of the video.",
          "type": "string"
        },
        "endOffset": {
          "format": "google-duration",
          "description": "Optional. The end offset of the video.",
          "type": "string"
        },
        "fps": {
          "format": "double",
          "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].",
          "type": "number"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaVideoMetadata"
    },
    "GoogleCloudAiplatformV1beta1Schema": {
      "description": "Defines the schema of input and output data. This is a subset of the [OpenAPI 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object).",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1Schema",
      "properties": {
        "minimum": {
          "type": "number",
          "description": "Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value.",
          "format": "double"
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "GoogleCloudAiplatformV1beta1Schema"
          },
          "description": "Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object."
        },
        "example": {
          "type": "any",
          "description": "Optional. Example of an instance of this schema."
        },
        "format": {
          "type": "string",
          "description": "Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type."
        },
        "maxLength": {
          "description": "Optional. If type is `STRING`, `max_length` specifies the maximum length of the string.",
          "format": "int64",
          "type": "string"
        },
        "minLength": {
          "description": "Optional. If type is `STRING`, `min_length` specifies the minimum length of the string.",
          "type": "string",
          "format": "int64"
        },
        "anyOf": {
          "type": "array",
          "description": "Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Schema"
          }
        },
        "additionalProperties": {
          "description": "Optional. If `type` is `OBJECT`, specifies how to handle properties not defined in `properties`. If it is a boolean `false`, no additional properties are allowed. If it is a schema, additional properties are allowed if they conform to the schema.",
          "type": "any"
        },
        "type": {
          "type": "string",
          "enumDescriptions": [
            "Not specified, should not be used.",
            "OpenAPI string type",
            "OpenAPI number type",
            "OpenAPI integer type",
            "OpenAPI boolean type",
            "OpenAPI array type",
            "OpenAPI object type",
            "Null type"
          ],
          "description": "Optional. Data type of the schema field.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT",
            "NULL"
          ]
        },
        "minItems": {
          "format": "int64",
          "description": "Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array.",
          "type": "string"
        },
        "default": {
          "type": "any",
          "description": "Optional. Default value to use if the field is not specified."
        },
        "maximum": {
          "type": "number",
          "description": "Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value.",
          "format": "double"
        },
        "minProperties": {
          "description": "Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided.",
          "format": "int64",
          "type": "string"
        },
        "maxProperties": {
          "type": "string",
          "description": "Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided.",
          "format": "int64"
        },
        "nullable": {
          "type": "boolean",
          "description": "Optional. Indicates if the value of this field can be null."
        },
        "enum": {
          "description": "Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:[\"EAST\", \"NORTH\", \"SOUTH\", \"WEST\"]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:[\"101\", \"201\", \"301\"]}`",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "defs": {
          "additionalProperties": {
            "$ref": "GoogleCloudAiplatformV1beta1Schema"
          },
          "type": "object",
          "description": "Optional. `defs` provides a map of schema definitions that can be reused by `ref` elsewhere in the schema. Only allowed at root level of the schema."
        },
        "required": {
          "items": {
            "type": "string"
          },
          "description": "Optional. If type is `OBJECT`, `required` lists the names of properties that must be present.",
          "type": "array"
        },
        "ref": {
          "description": "Optional. Allows referencing another schema definition to use in place of this schema. The value must be a valid reference to a schema in `defs`. For example, the following schema defines a reference to a schema node named \"Pet\": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the \"pet\" property is a reference to the schema node named \"Pet\". See details in https://json-schema.org/understanding-json-schema/structuring",
          "type": "string"
        },
        "pattern": {
          "type": "string",
          "description": "Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match."
        },
        "description": {
          "description": "Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.",
          "type": "string"
        },
        "title": {
          "type": "string",
          "description": "Optional. Title for the schema."
        },
        "items": {
          "$ref": "GoogleCloudAiplatformV1beta1Schema",
          "description": "Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array."
        },
        "propertyOrdering": {
          "description": "Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "maxItems": {
          "type": "string",
          "description": "Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array.",
          "format": "int64"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig": {
      "description": "Config for model selection.",
      "properties": {
        "featureSelectionPreference": {
          "enum": [
            "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",
            "PRIORITIZE_QUALITY",
            "BALANCED",
            "PRIORITIZE_COST"
          ],
          "description": "Required. Feature selection preference.",
          "type": "string",
          "enumDescriptions": [
            "Unspecified feature selection preference.",
            "Prefer higher quality over lower cost.",
            "Balanced feature selection preference.",
            "Prefer lower cost over higher quality."
          ]
        }
      },
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig"
    },
    "GoogleAiGenerativelanguageV1betaToolMcpServerStreamableHttpTransport": {
      "type": "object",
      "description": "A transport that can stream HTTP requests and responses.",
      "properties": {
        "url": {
          "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"",
          "type": "string"
        },
        "timeout": {
          "type": "string",
          "description": "HTTP timeout for regular operations.",
          "format": "google-duration"
        },
        "terminateOnClose": {
          "description": "Whether to close the client session when the transport closes.",
          "type": "boolean"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Optional: Fields for authentication headers, timeouts, etc., if needed."
        },
        "sseReadTimeout": {
          "format": "google-duration",
          "description": "Timeout for SSE read operations.",
          "type": "string"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaToolMcpServerStreamableHttpTransport"
    },
    "GoogleCloudAiplatformV1beta1VertexRagStoreRagResource": {
      "properties": {
        "ragFileIds": {
          "type": "array",
          "description": "Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.",
          "items": {
            "type": "string"
          }
        },
        "ragCorpus": {
          "type": "string",
          "description": "Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`"
        }
      },
      "description": "The definition of the Rag resource.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1VertexRagStoreRagResource"
    },
    "ListPromptTemplatesResponse": {
      "type": "object",
      "description": "Response message for TemplateService.ListPromptTemplates.",
      "properties": {
        "templates": {
          "items": {
            "$ref": "PromptTemplate"
          },
          "description": "The PromptTemplates from the specified parent.",
          "type": "array"
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."
        }
      },
      "id": "ListPromptTemplatesResponse"
    },
    "GoogleAiGenerativelanguageV1betaToolConfig": {
      "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.",
      "id": "GoogleAiGenerativelanguageV1betaToolConfig",
      "properties": {
        "includeServerSideToolInvocations": {
          "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions.",
          "type": "boolean"
        },
        "functionCallingConfig": {
          "description": "Optional. Function calling config.",
          "$ref": "GoogleAiGenerativelanguageV1betaFunctionCallingConfig"
        },
        "retrievalConfig": {
          "$ref": "GoogleAiGenerativelanguageV1betaRetrievalConfig",
          "description": "Optional. Retrieval config."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService": {
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService",
      "description": "Config for Rank Service.",
      "properties": {
        "modelName": {
          "type": "string",
          "description": "Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo": {
      "properties": {
        "endOffset": {
          "description": "Optional. End offset in time of the word relative to the start of the audio.",
          "format": "google-duration",
          "type": "string"
        },
        "startOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. Start offset in time of the word relative to the start of the audio."
        },
        "word": {
          "description": "Required. Transcript of the word.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Information about a single recognized word.",
      "id": "GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo"
    },
    "ToolConfig": {
      "properties": {
        "retrievalConfig": {
          "description": "Optional. Retrieval config.",
          "$ref": "RetrievalConfig"
        }
      },
      "id": "ToolConfig",
      "type": "object",
      "description": "Tool config. This config is shared for all tools provided in the request."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInput": {
      "type": "object",
      "properties": {
        "text": {
          "description": "Optional. These form the realtime text input stream.",
          "type": "string"
        },
        "audioStreamEnd": {
          "type": "boolean",
          "description": "Optional. Indicates that the audio stream has ended, e.g. because the microphone was turned off. This should only be sent when automatic activity detection is enabled (which is the default). The client can reopen the stream by sending an audio message."
        },
        "activityEnd": {
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityEnd",
          "description": "Optional. Marks the end of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled."
        },
        "audio": {
          "description": "Optional. These form the realtime audio input stream.",
          "$ref": "GoogleCloudAiplatformV1beta1Blob"
        },
        "activityStart": {
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityStart",
          "description": "Optional. Marks the start of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled."
        },
        "video": {
          "description": "Optional. These form the realtime video input stream.",
          "$ref": "GoogleCloudAiplatformV1beta1Blob"
        },
        "mediaChunks": {
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Blob"
          },
          "description": "Optional. Inlined bytes data for media input."
        }
      },
      "description": "User input that is sent in real time. This is different from `ClientContentUpdate` in a few ways: - Can be sent continuously without interruption to model generation. - If there is a need to mix data interleaved across the `ClientContentUpdate` and the `RealtimeUpdate`, server attempts to optimize for best response, but there are no guarantees. - End of turn is not explicitly specified, but is rather derived from user activity (for example, end of speech). - Even before the end of turn, the data is processed incrementally to optimize for a fast start of the response from the model. - Is always assumed to be the user's input (cannot be used to populate conversation history). //",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInput"
    },
    "GoogleAiGenerativelanguageV1betaGroundingAttribution": {
      "id": "GoogleAiGenerativelanguageV1betaGroundingAttribution",
      "properties": {
        "sourceId": {
          "description": "Output only. Identifier for the source contributing to this attribution.",
          "$ref": "GoogleAiGenerativelanguageV1betaAttributionSourceId",
          "readOnly": true
        },
        "content": {
          "description": "Grounding source content that makes up this attribution.",
          "$ref": "GoogleAiGenerativelanguageV1betaContent"
        }
      },
      "description": "Attribution for a source that contributed to an answer.",
      "type": "object"
    },
    "TrafficFilter": {
      "id": "TrafficFilter",
      "properties": {
        "templateOnly": {
          "description": "Optional. Only allows users to use AI Logic via prompt templates for this project.",
          "type": "boolean"
        },
        "firebaseAuthRequired": {
          "type": "boolean",
          "description": "Optional. Only allow requests that include a valid Firebase Auth credential. Use this setting to limit access to AI Logic to only requests from logged in users. For more details on how to integrate with Firebase Auth see https://firebase.google.com/docs/auth"
        }
      },
      "type": "object",
      "description": "Configuration for traffic filter."
    },
    "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageAuto": {
      "deprecated": true,
      "properties": {},
      "id": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageAuto",
      "type": "object",
      "description": "Indicates the language of the audio should be automatically detected."
    },
    "GoogleAiGenerativelanguageV1betaPrebuiltVoiceConfig": {
      "properties": {
        "voiceName": {
          "type": "string",
          "description": "Optional. The name of the preset voice to use."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaPrebuiltVoiceConfig",
      "description": "The configuration for the prebuilt speaker to use.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1EnterpriseWebSearch": {
      "description": "Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.",
      "type": "object",
      "properties": {
        "blockingConfidence": {
          "enumDescriptions": [
            "Defaults to unspecified.",
            "Blocks Low and above confidence URL that is risky.",
            "Blocks Medium and above confidence URL that is risky.",
            "Blocks High and above confidence URL that is risky.",
            "Blocks Higher and above confidence URL that is risky.",
            "Blocks Very high and above confidence URL that is risky.",
            "Blocks Extremely high confidence URL that is risky."
          ],
          "description": "Optional. Sites with confidence level chosen & above this value will be blocked from the search results.",
          "enum": [
            "PHISH_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_HIGH_AND_ABOVE",
            "BLOCK_HIGHER_AND_ABOVE",
            "BLOCK_VERY_HIGH_AND_ABOVE",
            "BLOCK_ONLY_EXTREMELY_HIGH"
          ],
          "type": "string"
        },
        "excludeDomains": {
          "description": "Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch"
    },
    "GoogleAiGenerativelanguageV1betaRetrievalMetadata": {
      "id": "GoogleAiGenerativelanguageV1betaRetrievalMetadata",
      "description": "Metadata related to retrieval in the grounding flow.",
      "type": "object",
      "properties": {
        "googleSearchDynamicRetrievalScore": {
          "format": "float",
          "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.",
          "type": "number"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1DenoiserConfig": {
      "properties": {},
      "id": "GoogleCloudAiplatformV1beta1DenoiserConfig",
      "type": "object",
      "description": "Configuration of denoiser."
    },
    "GoogleCloudAiplatformV1beta1LogprobsResultCandidate": {
      "type": "object",
      "properties": {
        "tokenId": {
          "type": "integer",
          "format": "int32",
          "description": "The token's numerical ID. While the `token` field provides the string representation of the token, the `token_id` is the numerical representation that the model uses internally. This can be useful for developers who want to build custom logic based on the model's vocabulary."
        },
        "token": {
          "description": "The token's string representation.",
          "type": "string"
        },
        "logProbability": {
          "description": "The log probability of this token. A higher value indicates that the model was more confident in this token. The log probability can be used to assess the relative likelihood of different tokens and to identify when the model is uncertain.",
          "format": "float",
          "type": "number"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate",
      "description": "A single token and its associated log probability."
    },
    "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfig": {
      "type": "object",
      "properties": {
        "triggerTokens": {
          "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.",
          "format": "int64",
          "type": "string"
        },
        "slidingWindow": {
          "$ref": "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfigSlidingWindow",
          "description": "A sliding-window mechanism."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfig",
      "description": "Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length."
    },
    "GoogleAiGenerativelanguageV1betaProactivityConfig": {
      "id": "GoogleAiGenerativelanguageV1betaProactivityConfig",
      "properties": {
        "proactiveAudio": {
          "type": "boolean",
          "description": "Optional. If enabled, the model can reject responding to the last prompt. For example, this allows the model to ignore out of context speech or to stay silent if the user did not make a request, yet."
        },
        "proactiveVideo": {
          "type": "boolean",
          "description": "Optional. If enabled, the system might trigger a generation on each received image. This requires that `proactive_audio` is enabled. The rate of generation depends on the rate of incoming images and can cause a significant increase in cost."
        }
      },
      "description": "Config for proactivity features.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaVoiceActivity": {
      "id": "GoogleAiGenerativelanguageV1betaVoiceActivity",
      "properties": {
        "type": {
          "enumDescriptions": [
            "The default is UNSPECIFIED.",
            "Start of sentence signal.",
            "End of sentence signal."
          ],
          "type": "string",
          "description": "Output only. The type of the VAD(voice activity detection) signal.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "ACTIVITY_START",
            "ACTIVITY_END"
          ],
          "readOnly": true
        },
        "audioOffset": {
          "description": "Output only. The time voice activity detected in audio time, relative to the start of the audio stream.",
          "type": "string",
          "readOnly": true,
          "format": "google-duration"
        }
      },
      "description": "Voice activity detected in audio stream.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCountTokensResponse": {
      "id": "GoogleAiGenerativelanguageV1betaCountTokensResponse",
      "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "cacheTokensDetails": {
          "type": "array",
          "description": "Output only. List of modalities that were processed in the cached content.",
          "readOnly": true,
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          }
        },
        "cachedContentTokenCount": {
          "description": "Number of tokens in the cached part of the prompt (the cached content).",
          "format": "int32",
          "type": "integer"
        },
        "totalTokens": {
          "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.",
          "type": "integer",
          "format": "int32"
        },
        "promptTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "type": "array",
          "description": "Output only. List of modalities that were processed in the request input."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBlob": {
      "properties": {
        "displayName": {
          "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.",
          "type": "string"
        },
        "data": {
          "description": "Raw bytes for media formats.",
          "format": "byte",
          "type": "string"
        },
        "mimeType": {
          "type": "string",
          "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaBlob",
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources": {
      "properties": {
        "reviewSnippets": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet"
          },
          "description": "Snippets of reviews that were used to generate the answer.",
          "type": "array"
        }
      },
      "description": "The sources that were used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources"
    },
    "GoogleAiGenerativelanguageV1betaPart": {
      "properties": {
        "toolCall": {
          "$ref": "GoogleAiGenerativelanguageV1betaToolCall",
          "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API."
        },
        "audioTranscription": {
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscription",
          "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data."
        },
        "thought": {
          "description": "Optional. Indicates if the part is thought from the model.",
          "type": "boolean"
        },
        "partMetadata": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams."
        },
        "videoMetadata": {
          "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.",
          "$ref": "GoogleAiGenerativelanguageV1betaVideoMetadata"
        },
        "mediaResolution": {
          "$ref": "MediaResolution",
          "description": "Optional. Media resolution for the input media."
        },
        "mediaProcessing": {
          "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "enumDescriptions": [
            "Defaults to model-specific processing.",
            "Fixed-rate frame extraction. All frames placed in context.",
            "Model-driven dynamic navigation. Recommended for most use cases."
          ],
          "type": "string",
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ]
        },
        "codeExecutionResult": {
          "$ref": "GoogleAiGenerativelanguageV1betaCodeExecutionResult",
          "description": "Result of executing the `ExecutableCode`."
        },
        "text": {
          "type": "string",
          "description": "Inline text."
        },
        "speechMetadata": {
          "$ref": "GoogleAiGenerativelanguageV1betaSpeechMetadata",
          "description": "Optional. Metadata applied to text parts to customize how they should be spoken or synthesized, such as specifying speaker identity or speaking style."
        },
        "toolResponse": {
          "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.",
          "$ref": "GoogleAiGenerativelanguageV1betaToolResponse"
        },
        "executableCode": {
          "description": "Code generated by the model that is meant to be executed.",
          "$ref": "GoogleAiGenerativelanguageV1betaExecutableCode"
        },
        "fileData": {
          "description": "URI based data.",
          "$ref": "GoogleAiGenerativelanguageV1betaFileData"
        },
        "inlineData": {
          "description": "Inline media bytes.",
          "$ref": "GoogleAiGenerativelanguageV1betaBlob"
        },
        "thoughtSignature": {
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
          "format": "byte",
          "type": "string"
        },
        "functionResponse": {
          "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model.",
          "$ref": "GoogleAiGenerativelanguageV1betaFunctionResponse"
        },
        "functionCall": {
          "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
          "$ref": "GoogleAiGenerativelanguageV1betaFunctionCall"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaPart",
      "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetupComplete": {
      "description": "Sent in response to a `BidiGenerateContentSetup` message from the client.",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetupComplete",
      "properties": {},
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentServerContent": {
      "description": "Incremental server update generated by the model in response to client messages. Content is generated as quickly as possible, and not in real time. Clients may choose to buffer and play it out in real time. ",
      "type": "object",
      "properties": {
        "interrupted": {
          "description": "Output only. If true, indicates that a client message has interrupted current model generation. If the client is playing out the content in real time, this is a good signal to stop and empty the current playback queue.",
          "readOnly": true,
          "type": "boolean"
        },
        "inputTranscription": {
          "description": "Output only. Input audio transcription. The transcription is sent independently of the other server messages and there is no guaranteed ordering.",
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentTranscription"
        },
        "urlContextMetadata": {
          "$ref": "GoogleAiGenerativelanguageV1betaUrlContextMetadata",
          "readOnly": true
        },
        "interimInputTranscription": {
          "description": "Output only. Low latency transcription updated while the user is speaking. This field is subject to frequent updates.",
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentTranscription",
          "readOnly": true
        },
        "interactionStatus": {
          "enumDeprecated": [
            false,
            false,
            true,
            false
          ],
          "enum": [
            "INTERACTION_STATUS_UNSPECIFIED",
            "IN_PROGRESS",
            "REQUIRES_ACTION",
            "IDLE"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "Unspecified interaction status.",
            "The server is still actively processing user input or running background reasoning. More model output may follow.",
            "Deprecated: Use IDLE instead.",
            "The server has completed all processing and background reasoning."
          ],
          "type": "string",
          "description": "Output only. The current activity status of the live session. Always sent alongside `turn_complete`."
        },
        "turnComplete": {
          "description": "Output only. If true, indicates that the model has completed its turn. Generation will only start in response to additional client messages. Note when playback status reporting is enabled, this is emitted only when the playback status indicates that the playback is done. Future playback status of the same generation will be ignored.",
          "readOnly": true,
          "type": "boolean"
        },
        "modelTurn": {
          "readOnly": true,
          "description": "Output only. The content that the model has generated as part of the current conversation with the user.",
          "$ref": "GoogleAiGenerativelanguageV1betaContent"
        },
        "groundingMetadata": {
          "readOnly": true,
          "description": "Output only. Grounding metadata for the generated content.",
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingMetadata"
        },
        "waitingForInput": {
          "type": "boolean",
          "readOnly": true,
          "description": "Output only. If true, indicates that the model is not generating content because it is waiting for more input from the user, e.g. because it expects the user to continue talking."
        },
        "generationComplete": {
          "description": "Output only. If true, indicates that the model is done generating. When model is interrupted while generating there will be no 'generation_complete' message in interrupted turn, it will go through 'interrupted \u003e turn_complete'. When model assumes realtime playback there will be delay between generation_complete and turn_complete that is caused by model waiting for playback to finish.",
          "type": "boolean",
          "readOnly": true
        },
        "outputTranscription": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentTranscription",
          "readOnly": true,
          "description": "Output only. Output audio transcription. These transcriptions are part of the Generation output of the server. The last output transcription of this turn is sent before either `generation_complete` or `interrupted`, which in turn are followed by `turn_complete`. There is no guaranteed exact ordering between transcriptions and other `model_turn` output but the server tries to send the transcripts close to the corresponding audio output."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentServerContent"
    },
    "GoogleCloudAiplatformV1beta1RetrievalMetadata": {
      "properties": {
        "googleSearchDynamicRetrievalScore": {
          "description": "Optional. A score indicating how likely it is that a Google Search query could help answer the prompt. The score is in the range of `[0, 1]`. A score of 1 means the model is confident that a search will be helpful, and 0 means it is not. This score is populated only when Google Search grounding and dynamic retrieval are enabled. The score is used to determine whether to trigger a search.",
          "type": "number",
          "format": "float"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1RetrievalMetadata",
      "type": "object",
      "description": "Metadata related to the retrieval grounding source. This is part of the `GroundingMetadata` returned when grounding is enabled."
    },
    "GoogleCloudAiplatformV1beta1ToolComputerUse": {
      "description": "A tool that enables the model to interact directly with a computer environment.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1ToolComputerUse",
      "properties": {
        "environment": {
          "type": "string",
          "enumDescriptions": [
            "The environment is unspecified.",
            "The tool operates in a web browser.",
            "The tool operates in a mobile environment.",
            "The tool operates in a desktop environment."
          ],
          "description": "Required. The target environment where the computer use tool operates.",
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ]
        },
        "excludedPredefinedFunctions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Optional. A list of predefined functions to explicitly exclude from the model call. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included. Excluding functions allows for a more restricted action space or custom definitions for predefined functions."
        },
        "disabledSafetyPolicies": {
          "items": {
            "type": "string",
            "enum": [
              "SAFETY_POLICY_UNSPECIFIED",
              "FINANCIAL_TRANSACTIONS",
              "SENSITIVE_DATA_MODIFICATION",
              "COMMUNICATION_TOOL",
              "ACCOUNT_CREATION",
              "DATA_MODIFICATION",
              "USER_CONSENT_MANAGEMENT",
              "LEGAL_TERMS_AND_AGREEMENTS"
            ],
            "enumDescriptions": [
              "The safety policy is unspecified.",
              "Policy that restricts financial transactions.",
              "Policy that restricts modification of sensitive data.",
              "Policy that restricts the use of communication tools.",
              "Policy that restricts the creation of accounts.",
              "Policy that restricts general data modification.",
              "Policy that restricts user consent management.",
              "Policy that restricts interaction with legal terms and agreements."
            ]
          },
          "type": "array",
          "description": "Optional. A list of safety policies to disable for the computer use tool."
        },
        "enablePromptInjectionDetection": {
          "type": "boolean",
          "description": "Optional. Whether to enable the prompt injection detection check on the computer use request."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1CountTokensResponse": {
      "properties": {
        "totalTokens": {
          "type": "integer",
          "description": "The total number of tokens counted across all instances from the request.",
          "format": "int32"
        },
        "totalBillableCharacters": {
          "type": "integer",
          "format": "int32",
          "description": "The total number of billable characters counted across all instances from the request."
        },
        "promptTokensDetails": {
          "description": "Output only. List of modalities that were processed in the request input.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "type": "array",
          "readOnly": true
        }
      },
      "type": "object",
      "description": "Response message for PredictionService.CountTokens.",
      "id": "GoogleCloudAiplatformV1beta1CountTokensResponse"
    },
    "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig",
      "description": "Config for user OIDC auth.",
      "properties": {
        "serviceAccount": {
          "description": "The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).",
          "type": "string"
        },
        "idToken": {
          "type": "string",
          "description": "OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentTranscription": {
      "description": "Transcription of audio (input or output).",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentTranscription",
      "properties": {
        "startOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. Start offset in time of the transcription relative to the start of the audio."
        },
        "languageCode": {
          "type": "string",
          "description": "The BCP-47 language code of the transcription."
        },
        "endOffset": {
          "description": "Optional. End offset in time of the transcription relative to the start of the audio.",
          "type": "string",
          "format": "google-duration"
        },
        "text": {
          "type": "string",
          "description": "Transcription text."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1ToolParallelAiSearch": {
      "properties": {
        "enableDataRetention": {
          "deprecated": true,
          "type": "boolean",
          "description": "Optional. Deprecated: Use `enable_zero_data_retention` instead. Instructs Vertex Grounding to use Parallel's Zero Data Retention Marketplace product. If this value is \"false\" or omitted, the Parallel Web Search for Grounding standard subscription will be used. If this value is \"true\", the Parallel Web Search for Grounding - ZDR subscription will be used."
        },
        "customConfigs": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { \"source_policy\": { \"include_domains\": [\"google.com\", \"wikipedia.org\"], \"exclude_domains\": [\"example.com\"] }, \"fetch_policy\": { \"max_age_seconds\": 3600 } }"
        },
        "enableZeroDataRetention": {
          "type": "boolean",
          "description": "Optional. Instructs Vertex Grounding to use Parallel's Zero Data Retention Marketplace product. If this value is \"false\" or omitted, the Parallel Web Search for Grounding standard subscription will be used. If this value is \"true\", the Parallel Web Search for Grounding - ZDR subscription will be used."
        },
        "apiKey": {
          "type": "string",
          "description": "Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details."
        }
      },
      "description": "ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1ToolParallelAiSearch"
    },
    "GoogleCloudAiplatformV1beta1GenerateContentResponse": {
      "id": "GoogleCloudAiplatformV1beta1GenerateContentResponse",
      "properties": {
        "usageMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata",
          "description": "Usage metadata about the response(s)."
        },
        "createTime": {
          "readOnly": true,
          "description": "Output only. Timestamp when the request is made to the server.",
          "format": "google-datetime",
          "type": "string"
        },
        "candidates": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Candidate"
          },
          "description": "Output only. Generated candidates.",
          "type": "array",
          "readOnly": true
        },
        "responseId": {
          "description": "Output only. response_id is used to identify each response. It is the encoding of the event_id.",
          "type": "string",
          "readOnly": true
        },
        "modelVersion": {
          "description": "Output only. The model version used to generate the response.",
          "type": "string",
          "readOnly": true
        },
        "promptFeedback": {
          "readOnly": true,
          "description": "Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.",
          "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback"
        }
      },
      "type": "object",
      "description": "Response message for [PredictionService.GenerateContent]."
    },
    "GoogleCloudAiplatformV1beta1ExternalApi": {
      "description": "Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec.",
      "id": "GoogleCloudAiplatformV1beta1ExternalApi",
      "type": "object",
      "properties": {
        "apiSpec": {
          "description": "The API spec that the external API implements.",
          "enum": [
            "API_SPEC_UNSPECIFIED",
            "SIMPLE_SEARCH",
            "ELASTIC_SEARCH"
          ],
          "enumDescriptions": [
            "Unspecified API spec. This value should not be used.",
            "Simple search API spec.",
            "Elastic search API spec."
          ],
          "type": "string"
        },
        "apiAuth": {
          "deprecated": true,
          "description": "The authentication config to access the API. Deprecated. Please use auth_config instead.",
          "$ref": "GoogleCloudAiplatformV1beta1ApiAuth"
        },
        "elasticSearchParams": {
          "$ref": "GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams",
          "description": "Parameters for the elastic search API."
        },
        "authConfig": {
          "description": "The authentication config to access the API.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfig"
        },
        "endpoint": {
          "description": "The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search",
          "type": "string"
        },
        "simpleSearchParams": {
          "$ref": "GoogleCloudAiplatformV1beta1ExternalApiSimpleSearchParams",
          "description": "Parameters for the simple search API."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute": {
      "properties": {
        "duration": {
          "type": "string",
          "description": "The total duration of the route.",
          "format": "google-duration"
        },
        "encodedPolyline": {
          "type": "string",
          "description": "An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm"
        },
        "distanceMeters": {
          "format": "int32",
          "description": "The total distance of the route, in meters.",
          "type": "integer"
        }
      },
      "description": "Route information from Google Maps.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute"
    },
    "GoogleCloudAiplatformV1beta1ToolConfig": {
      "id": "GoogleCloudAiplatformV1beta1ToolConfig",
      "properties": {
        "retrievalConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1RetrievalConfig",
          "description": "Optional. Retrieval config."
        },
        "includeServerSideToolInvocations": {
          "type": "boolean",
          "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions."
        },
        "functionCallingConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1FunctionCallingConfig",
          "description": "Optional. Function calling config."
        }
      },
      "description": "Tool config. This config is shared for all tools provided in the request.",
      "type": "object"
    },
    "FunctionCall": {
      "type": "object",
      "description": "An element in the history the represents the model asking the client to invoke a client-side function.",
      "id": "FunctionCall",
      "properties": {
        "args": {
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "description": "Optional. Inputs to the function passed by the model",
          "type": "object"
        },
        "name": {
          "description": "Required. The name of the function to be invoked.",
          "type": "string"
        },
        "id": {
          "type": "string",
          "description": "Required. ID of the individual function invocation assigned by the model when it requests the function invocation."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaSpeechMetadata": {
      "type": "object",
      "properties": {
        "style": {
          "type": "string",
          "description": "Optional. Optional style instruction for the speech synthesis."
        },
        "speaker": {
          "type": "string",
          "description": "Optional. Optional speaker name for multi-speaker synthesis."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaSpeechMetadata",
      "description": "Speech metadata for `text` parts."
    },
    "GoogleAiGenerativelanguageV1betaImageConfig": {
      "id": "GoogleAiGenerativelanguageV1betaImageConfig",
      "type": "object",
      "properties": {
        "aspectRatio": {
          "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided.",
          "type": "string"
        },
        "imageSize": {
          "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.",
          "type": "string"
        }
      },
      "description": "Config for image generation features."
    },
    "GoogleAiGenerativelanguageV1betaUrlMetadata": {
      "properties": {
        "urlRetrievalStatus": {
          "description": "Status of the url retrieval.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Url retrieval is successful.",
            "Url retrieval is failed due to error.",
            "Url retrieval is failed because the content is behind paywall.",
            "Url retrieval is failed because the content is unsafe."
          ],
          "enum": [
            "URL_RETRIEVAL_STATUS_UNSPECIFIED",
            "URL_RETRIEVAL_STATUS_SUCCESS",
            "URL_RETRIEVAL_STATUS_ERROR",
            "URL_RETRIEVAL_STATUS_PAYWALL",
            "URL_RETRIEVAL_STATUS_UNSAFE"
          ],
          "type": "string"
        },
        "retrievedUrl": {
          "description": "Retrieved url by the tool.",
          "type": "string"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaUrlMetadata",
      "description": "Context of the a single url retrieval.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1RetrievalConfig": {
      "id": "GoogleCloudAiplatformV1beta1RetrievalConfig",
      "properties": {
        "latLng": {
          "description": "The location of the user.",
          "$ref": "LatLng"
        },
        "languageCode": {
          "type": "string",
          "description": "The language code of the user."
        }
      },
      "description": "Retrieval config.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": {
      "description": "Tool to retrieve public web data for grounding, powered by Google.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval",
      "properties": {
        "dynamicRetrievalConfig": {
          "description": "Specifies the dynamic retrieval configuration for the given source.",
          "$ref": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter": {
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter",
      "type": "object",
      "description": "Config for filters.",
      "properties": {
        "metadataFilter": {
          "description": "Optional. String for metadata filtering.",
          "type": "string"
        },
        "vectorSimilarityThreshold": {
          "format": "double",
          "type": "number",
          "description": "Optional. Only returns contexts with vector similarity larger than the threshold."
        },
        "vectorDistanceThreshold": {
          "format": "double",
          "description": "Optional. Only returns contexts with vector distance smaller than the threshold.",
          "type": "number"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1VideoMetadata": {
      "properties": {
        "fps": {
          "format": "double",
          "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].",
          "type": "number"
        },
        "startOffset": {
          "type": "string",
          "description": "Optional. The start offset of the video.",
          "format": "google-duration"
        },
        "endOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. The end offset of the video."
        }
      },
      "description": "Provides metadata for a video, including the start and end offsets for clipping and the frame rate.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1VideoMetadata"
    },
    "GoogleCloudAiplatformV1beta1RealtimeInputConfig": {
      "description": "Configures the realtime input behavior in `BidiGenerateContent`.",
      "id": "GoogleCloudAiplatformV1beta1RealtimeInputConfig",
      "type": "object",
      "properties": {
        "turnCoverage": {
          "description": "Optional. Defines which input is included in the user's turn.",
          "type": "string",
          "enum": [
            "TURN_COVERAGE_UNSPECIFIED",
            "TURN_INCLUDES_ONLY_ACTIVITY",
            "TURN_INCLUDES_ALL_INPUT"
          ],
          "enumDescriptions": [
            "If unspecified, the default behavior is `TURN_INCLUDES_ALL_INPUT`.",
            "The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).",
            "The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream). This is the default behavior."
          ]
        },
        "automaticActivityDetection": {
          "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.",
          "$ref": "GoogleCloudAiplatformV1beta1RealtimeInputConfigAutomaticActivityDetection"
        },
        "denoiserConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1DenoiserConfig",
          "description": "Optional. The denoiser configuration."
        },
        "activityHandling": {
          "enum": [
            "ACTIVITY_HANDLING_UNSPECIFIED",
            "START_OF_ACTIVITY_INTERRUPTS",
            "NO_INTERRUPTION"
          ],
          "description": "Optional. Defines what effect activity has.",
          "enumDescriptions": [
            "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.",
            "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.",
            "The model's response will not be interrupted."
          ],
          "type": "string"
        },
        "interimTranscriptTimestampEnabled": {
          "description": "Optional. Configures interim transcript timestamps.",
          "type": "boolean"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ToolCodeExecution": {
      "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool.",
      "id": "GoogleCloudAiplatformV1beta1ToolCodeExecution",
      "properties": {},
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode": {
      "type": "object",
      "description": "The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.",
      "properties": {
        "modelRoutingPreference": {
          "enum": [
            "UNKNOWN",
            "PRIORITIZE_QUALITY",
            "BALANCED",
            "PRIORITIZE_COST"
          ],
          "enumDescriptions": [
            "Unspecified model routing preference.",
            "The model will be selected to prioritize the quality of the response.",
            "The model will be selected to balance quality and cost.",
            "The model will be selected to prioritize the cost of the request."
          ],
          "type": "string",
          "description": "The model routing preference."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode"
    },
    "GoogleAiGenerativelanguageV1betaSessionResumptionConfig": {
      "type": "object",
      "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages.",
      "id": "GoogleAiGenerativelanguageV1betaSessionResumptionConfig",
      "properties": {
        "handle": {
          "type": "string",
          "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaMultiSpeakerVoiceConfig": {
      "type": "object",
      "description": "The configuration for the multi-speaker setup.",
      "properties": {
        "speakerVoiceConfigs": {
          "description": "Required. All the enabled speaker voices.",
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaSpeakerVoiceConfig"
          }
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaMultiSpeakerVoiceConfig"
    },
    "GoogleCloudAiplatformV1beta1RealtimeInputConfigAutomaticActivityDetection": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1RealtimeInputConfigAutomaticActivityDetection",
      "description": "Configures automatic detection of activity.",
      "properties": {
        "prefixPaddingMs": {
          "format": "int32",
          "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value the more sensitive the start-of-speech detection is and the shorter speech can be recognized. However, this also increases the probability of false positives.",
          "type": "integer"
        },
        "startOfSpeechSensitivity": {
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ],
          "enumDescriptions": [
            "The default is START_SENSITIVITY_LOW.",
            "Automatic detection will detect the start of speech more often.",
            "Automatic detection will detect the start of speech less often."
          ],
          "description": "Optional. Determines how likely speech is to be detected.",
          "type": "string"
        },
        "endOfSpeechSensitivity": {
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "enumDescriptions": [
            "The default is END_SENSITIVITY_LOW.",
            "Automatic detection ends speech more often.",
            "Automatic detection ends speech less often."
          ],
          "type": "string",
          "description": "Optional. Determines how likely detected speech is ended."
        },
        "disabled": {
          "description": "Optional. If enabled, detected voice and text input count as activity. If disabled, the client must send activity signals.",
          "type": "boolean"
        },
        "silenceDurationMs": {
          "format": "int32",
          "description": "Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.",
          "type": "integer"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker": {
      "description": "Config for LlmRanker.",
      "properties": {
        "modelName": {
          "description": "Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaTextResponseFormat": {
      "properties": {
        "mimeType": {
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "APPLICATION_JSON",
            "TEXT_PLAIN"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JSON output format.",
            "Plain text output format."
          ],
          "description": "Optional. The MIME type of the text output.",
          "type": "string"
        },
        "schema": {
          "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.",
          "type": "any"
        }
      },
      "description": "Configuration for text output format.",
      "id": "GoogleAiGenerativelanguageV1betaTextResponseFormat",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfig": {
      "type": "object",
      "description": "The audio transcription configuration.",
      "properties": {
        "mode": {
          "type": "string",
          "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",
          "enumDescriptions": [
            "Unspecified transcription mode.",
            "Verbatim transcription mode.",
            "Smart transcription mode."
          ],
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ]
        },
        "sourceText": {
          "type": "string",
          "description": "Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."
        },
        "languageCodes": {
          "items": {
            "type": "string"
          },
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.",
          "type": "array"
        },
        "languageHints": {
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageHints",
          "description": "Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages in the audio.",
          "deprecated": true
        },
        "languageAuto": {
          "description": "Optional. Deprecated: Use top-level `language_codes` instead. The model will detect the language automatically.",
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageAuto"
        },
        "adaptationPhrases": {
          "deprecated": true,
          "description": "Optional. Deprecated: Use `custom_vocabulary` instead. A list of phrases used for speech adaptation, which biases the speech recognition model to improve recognition of these specific terms.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "customVocabulary": {
          "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfig"
    },
    "GoogleCloudAiplatformV1beta1AuthConfig": {
      "type": "object",
      "description": "Auth configuration to run the extension.",
      "properties": {
        "apiKeyConfig": {
          "description": "Config for API key auth.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig"
        },
        "httpBasicAuthConfig": {
          "description": "Config for HTTP Basic auth.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig"
        },
        "oidcConfig": {
          "description": "Config for user OIDC auth.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig"
        },
        "authType": {
          "enum": [
            "AUTH_TYPE_UNSPECIFIED",
            "NO_AUTH",
            "API_KEY_AUTH",
            "HTTP_BASIC_AUTH",
            "GOOGLE_SERVICE_ACCOUNT_AUTH",
            "OAUTH",
            "OIDC_AUTH"
          ],
          "description": "Type of auth scheme.",
          "type": "string",
          "enumDescriptions": [
            "",
            "No Auth.",
            "API Key Auth.",
            "HTTP Basic Auth.",
            "Google Service Account Auth.",
            "OAuth auth.",
            "OpenID Connect (OIDC) Auth."
          ]
        },
        "oauthConfig": {
          "description": "Config for user oauth.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig"
        },
        "googleServiceAccountConfig": {
          "description": "Config for Google Service Account auth.",
          "$ref": "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1AuthConfig"
    },
    "GoogleCloudAiplatformV1beta1ExternalApiSimpleSearchParams": {
      "id": "GoogleCloudAiplatformV1beta1ExternalApiSimpleSearchParams",
      "properties": {},
      "type": "object",
      "description": "The search parameters to use for SIMPLE_SEARCH spec."
    },
    "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageHints": {
      "description": "Provides hints to the model about possible languages present in the audio.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageHints",
      "deprecated": true,
      "properties": {
        "languageCodes": {
          "items": {
            "type": "string"
          },
          "description": "Required. BCP-47 language codes.",
          "deprecated": true,
          "type": "array"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGenerateContentResponse": {
      "properties": {
        "modelStatus": {
          "$ref": "GoogleAiGenerativelanguageV1betaModelStatus",
          "description": "Output only. The current model status of this model.",
          "readOnly": true
        },
        "usageMetadata": {
          "readOnly": true,
          "description": "Output only. Metadata on the generation requests' token usage.",
          "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponseUsageMetadata"
        },
        "promptFeedback": {
          "description": "Returns the prompt's feedback related to the content filters.",
          "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponsePromptFeedback"
        },
        "modelVersion": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The model version used to generate the response."
        },
        "candidates": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaCandidate"
          },
          "description": "Candidate responses from the model."
        },
        "responseId": {
          "description": "Output only. response_id is used to identify each response.",
          "type": "string",
          "readOnly": true
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGenerateContentResponse",
      "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentClientMessage": {
      "properties": {
        "setup": {
          "description": "Optional. Message to be sent in the first and only first client message.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetup"
        },
        "realtimeInput": {
          "description": "Optional. User input that is sent in real time.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInput"
        },
        "contextUpdate": {
          "description": "Optional. Updates to the context of the current session.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdate"
        },
        "toolResponse": {
          "description": "Optional. Response to a `ToolCallMessage` received from the server.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolResponse"
        },
        "clientContent": {
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentClientContent",
          "description": "Optional. Incremental update of the current conversation delivered from the client."
        }
      },
      "description": "Messages sent by the client in the BidiGenerateContent RPC call.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentClientMessage"
    },
    "GoogleCloudAiplatformV1beta1GenerationConfig": {
      "description": "Configuration for content generation. This message contains all the parameters that control how the model generates content. It allows you to influence the randomness, length, and structure of the output.",
      "type": "object",
      "properties": {
        "enableAffectiveDialog": {
          "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response.",
          "type": "boolean"
        },
        "maxOutputTokens": {
          "format": "int32",
          "description": "Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses.",
          "type": "integer"
        },
        "routingConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig",
          "description": "Optional. Routing configuration."
        },
        "audioTranscriptionConfig": {
          "description": "Optional. Configuration for audio transcription (speech recognition).",
          "$ref": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfig"
        },
        "responseLogprobs": {
          "type": "boolean",
          "description": "Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model's confidence in its own output and for debugging."
        },
        "audioTimestamp": {
          "description": "Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.",
          "type": "boolean"
        },
        "imageConfig": {
          "description": "Optional. Config for image generation features. Deprecated: Use `response_format.image` instead.",
          "$ref": "GoogleCloudAiplatformV1beta1ImageConfig",
          "deprecated": true
        },
        "responseModalities": {
          "description": "Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.",
          "items": {
            "type": "string",
            "enumDescriptions": [
              "Unspecified modality. Will be processed as text.",
              "Text modality.",
              "Image modality.",
              "Audio modality.",
              "Video modality."
            ],
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "AUDIO",
              "VIDEO"
            ]
          },
          "type": "array"
        },
        "topP": {
          "format": "float",
          "description": "Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It's recommended to adjust either temperature or `top_p`, but not both.",
          "type": "number"
        },
        "logprobs": {
          "type": "integer",
          "description": "Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response.",
          "format": "int32"
        },
        "thinkingConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig",
          "description": "Optional. Configuration for thinking features. An error will be returned if this field is set for models that don't support thinking."
        },
        "responseSchema": {
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1Schema",
          "description": "Optional. Lets you to specify a schema for the model's response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead."
        },
        "stopSequences": {
          "description": "Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use [\"\\n\", \"###\"] to stop generation at a new line or a specific marker.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "temperature": {
          "description": "Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].",
          "format": "float",
          "type": "number"
        },
        "responseFormat": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ResponseFormat"
          },
          "type": "array",
          "description": "Optional. New response format field for the model to configure output formatting and delivery."
        },
        "frequencyPenalty": {
          "description": "Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].",
          "type": "number",
          "format": "float"
        },
        "speechConfig": {
          "description": "Optional. The speech generation config.",
          "$ref": "GoogleCloudAiplatformV1beta1SpeechConfig"
        },
        "mediaResolution": {
          "type": "string",
          "description": "Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.",
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH"
          ],
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low (64 tokens).",
            "Media resolution set to medium (256 tokens).",
            "Media resolution set to high (zoomed reframing with 256 tokens)."
          ]
        },
        "topK": {
          "description": "Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.",
          "type": "number",
          "format": "float"
        },
        "modelConfig": {
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig",
          "description": "Optional. Config for model selection."
        },
        "responseMimeType": {
          "type": "string",
          "description": "Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead.",
          "deprecated": true
        },
        "seed": {
          "type": "integer",
          "description": "Optional. A seed for the random number generator. By setting a seed, you can make the model's output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it's not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the \"random\" choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results.",
          "format": "int32"
        },
        "responseJsonSchema": {
          "description": "Optional. When this field is set, response_schema must be omitted and response_mime_type must be set to `application/json`. Deprecated: Use `response_format` instead.",
          "deprecated": true,
          "type": "any"
        },
        "translationConfig": {
          "description": "Optional. Config for translation.",
          "$ref": "GoogleCloudAiplatformV1beta1TranslationConfig"
        },
        "presencePenalty": {
          "description": "Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].",
          "type": "number",
          "format": "float"
        },
        "candidateCount": {
          "format": "int32",
          "description": "Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one.",
          "type": "integer"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GenerationConfig"
    },
    "MediaResolution": {
      "id": "MediaResolution",
      "type": "object",
      "properties": {
        "level": {
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH",
            "MEDIA_RESOLUTION_ULTRA_HIGH"
          ],
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low.",
            "Media resolution set to medium.",
            "Media resolution set to high.",
            "Media resolution set to ultra high."
          ],
          "type": "string",
          "description": "The tokenization quality used for given media. for Gemini API support ."
        }
      },
      "description": "Media resolution for tokenization."
    },
    "GoogleCloudAiplatformV1beta1FunctionResponseFileData": {
      "id": "GoogleCloudAiplatformV1beta1FunctionResponseFileData",
      "description": "URI based data for function response.",
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "mimeType": {
          "description": "Required. The IANA standard MIME type of the source data.",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled."
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1FunctionResponse": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1FunctionResponse",
      "description": "The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction.",
      "properties": {
        "response": {
          "type": "object",
          "description": "Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output.",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        },
        "id": {
          "type": "string",
          "description": "Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`."
        },
        "parts": {
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1FunctionResponsePart"
          },
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types."
        },
        "scheduling": {
          "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.",
          "enumDescriptions": [
            "This value is unused.",
            "Only add the result to the conversation context, do not interrupt or trigger generation.",
            "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.",
            "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output."
          ],
          "enum": [
            "SCHEDULING_UNSPECIFIED",
            "SILENT",
            "WHEN_IDLE",
            "INTERRUPT"
          ],
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaToolMcpServer": {
      "id": "GoogleAiGenerativelanguageV1betaToolMcpServer",
      "properties": {
        "streamableHttpTransport": {
          "$ref": "GoogleAiGenerativelanguageV1betaToolMcpServerStreamableHttpTransport",
          "description": "A transport that can stream HTTP requests and responses."
        },
        "name": {
          "type": "string",
          "description": "The name of the MCPServer."
        }
      },
      "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GoogleMaps": {
      "type": "object",
      "description": "Tool to retrieve public maps data for grounding, powered by Google.",
      "id": "GoogleCloudAiplatformV1beta1GoogleMaps",
      "properties": {
        "groundingTypes": {
          "description": "Optional. Specifies the types of Google Maps grounding to enable. Defaults to `places` when unset, and to `places` and `routing` for Gemini 4 and later models. When set, only the listed types are enabled; for example, setting only `places` disables routing.",
          "$ref": "GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes"
        },
        "enableWidget": {
          "description": "Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. If true, include the widget context token in the response.",
          "type": "boolean",
          "deprecated": true
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSourcesReviewSnippet": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSourcesReviewSnippet",
      "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.",
      "properties": {
        "title": {
          "description": "Title of the review.",
          "type": "string"
        },
        "googleMapsUri": {
          "type": "string",
          "description": "A link that corresponds to the user review on Google Maps."
        },
        "reviewId": {
          "description": "The ID of the review snippet.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ToolGoogleSearch": {
      "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
      "properties": {
        "blockingConfidence": {
          "enum": [
            "PHISH_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_HIGH_AND_ABOVE",
            "BLOCK_HIGHER_AND_ABOVE",
            "BLOCK_VERY_HIGH_AND_ABOVE",
            "BLOCK_ONLY_EXTREMELY_HIGH"
          ],
          "enumDescriptions": [
            "Defaults to unspecified.",
            "Blocks Low and above confidence URL that is risky.",
            "Blocks Medium and above confidence URL that is risky.",
            "Blocks High and above confidence URL that is risky.",
            "Blocks Higher and above confidence URL that is risky.",
            "Blocks Very high and above confidence URL that is risky.",
            "Blocks Extremely high confidence URL that is risky."
          ],
          "description": "Optional. Sites with confidence level chosen & above this value will be blocked from the search results.",
          "type": "string"
        },
        "excludeDomains": {
          "type": "array",
          "description": "Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [\"amazon.com\", \"facebook.com\"].",
          "items": {
            "type": "string"
          }
        },
        "searchTypes": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes",
          "description": "Optional. The set of search types to enable. If not set, web search is enabled by default."
        }
      },
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1ToolGoogleSearch"
    },
    "GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext": {
      "type": "object",
      "properties": {
        "documentName": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`."
        },
        "text": {
          "type": "string",
          "description": "The content of the retrieved data source."
        },
        "ragChunk": {
          "$ref": "GoogleCloudAiplatformV1beta1RagChunk",
          "description": "Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used."
        },
        "title": {
          "description": "The title of the retrieved data source.",
          "type": "string"
        },
        "uri": {
          "type": "string",
          "description": "The URI of the retrieved data source."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext",
      "description": "Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset."
    },
    "GoogleAiGenerativelanguageV1betaSegment": {
      "properties": {
        "text": {
          "type": "string",
          "description": "The text corresponding to the segment from the response."
        },
        "partIndex": {
          "description": "The index of a Part object within its parent Content object.",
          "type": "integer",
          "format": "int32"
        },
        "endIndex": {
          "format": "int32",
          "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.",
          "type": "integer"
        },
        "startIndex": {
          "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.",
          "format": "int32",
          "type": "integer"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaSegment",
      "type": "object",
      "description": "Segment of the content."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdateTools": {
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdateTools",
      "type": "object",
      "description": "A wrapper around the list of tools. This wrapper exists because a bare `repeated Tool` field cannot tell apart \"not sending a tools update\" from \"clearing all tools\": an unset repeated field and an empty repeated field look identical on the wire. Wrapping the list in a message adds a presence bit, so the two cases become: - `tools` field unset: no update; keep the previously provided tools. - `tools` field set (even with an empty list): replace the current tools with the provided list, which may be empty to clear all tools.",
      "properties": {
        "tools": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Tool"
          },
          "type": "array",
          "description": "Optional. The list of tools the model may use to generate the next response."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1AvatarConfig": {
      "type": "object",
      "properties": {
        "audioBitrateBps": {
          "type": "integer",
          "description": "Optional. The bitrate of compressed audio.",
          "format": "int32"
        },
        "videoBitrateBps": {
          "type": "integer",
          "description": "Optional. The bitrate of compressed video output.",
          "format": "int32"
        },
        "customizedAvatar": {
          "description": "Optional. Customized avatar appearance with a reference image",
          "$ref": "GoogleCloudAiplatformV1beta1AvatarConfigCustomizedAvatar"
        },
        "avatarName": {
          "description": "Optional. Pre-built avatar id.",
          "type": "string"
        }
      },
      "description": "Configuration of avatar.",
      "id": "GoogleCloudAiplatformV1beta1AvatarConfig"
    },
    "GoogleCloudAiplatformV1beta1GoogleMapsRouting": {
      "type": "object",
      "description": "Grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). Also enabled by default for Gemini 4 and later models when no grounding type is specified.",
      "id": "GoogleCloudAiplatformV1beta1GoogleMapsRouting",
      "properties": {}
    },
    "GoogleAiGenerativelanguageV1betaSearchEntryPoint": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaSearchEntryPoint",
      "properties": {
        "renderedContent": {
          "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.",
          "type": "string"
        },
        "sdkBlob": {
          "format": "byte",
          "type": "string",
          "description": "Optional. Base64 encoded JSON representing array of tuple."
        }
      },
      "description": "Google search entry point."
    },
    "GoogleAiGenerativelanguageV1betaGoAway": {
      "properties": {
        "timeLeft": {
          "type": "string",
          "format": "google-duration",
          "description": "The remaining time before the connection will be terminated as ABORTED. This duration will never be less than a model-specific minimum, which will be specified together with the rate limits for the model."
        }
      },
      "description": "A notice that the server will soon disconnect.",
      "id": "GoogleAiGenerativelanguageV1betaGoAway",
      "type": "object"
    },
    "Empty": {
      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
      "properties": {},
      "type": "object",
      "id": "Empty"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdate": {
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdate",
      "type": "object",
      "description": "Updates to the context of the current session. Only fields that are set will be updated. Updates are guaranteed to be processed *in order* with the rest of the inputs.",
      "properties": {
        "tools": {
          "description": "Optional. An updated list of tools the model may use to generate the subsequent responses. If set, this list replaces the previously provided tools. The tools are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentContextUpdateTools"
        },
        "systemInstruction": {
          "description": "Optional. Updated system instruction for the model. If set, overrides `BidiGenerateContentSetup.system_instruction`. The system instructions are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.",
          "$ref": "GoogleCloudAiplatformV1beta1Content"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig": {
      "properties": {
        "mimeType": {
          "type": "string",
          "description": "Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set."
        },
        "voiceSampleAudio": {
          "description": "Optional. The sample of the custom voice.",
          "type": "string",
          "format": "byte"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig",
      "description": "The configuration for the replicated voice to use.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaRealtimeInputConfigAutomaticActivityDetection": {
      "properties": {
        "disabled": {
          "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals.",
          "type": "boolean"
        },
        "prefixPaddingMs": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives."
        },
        "startOfSpeechSensitivity": {
          "enumDescriptions": [
            "The default is START_SENSITIVITY_HIGH.",
            "Automatic detection will detect the start of speech more often.",
            "Automatic detection will detect the start of speech less often."
          ],
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ],
          "type": "string",
          "description": "Optional. Determines how likely speech is to be detected."
        },
        "endOfSpeechSensitivity": {
          "type": "string",
          "description": "Optional. Determines how likely detected speech is ended.",
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "enumDescriptions": [
            "The default is END_SENSITIVITY_HIGH.",
            "Automatic detection ends speech more often.",
            "Automatic detection ends speech less often."
          ]
        },
        "silenceDurationMs": {
          "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.",
          "type": "integer",
          "format": "int32"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaRealtimeInputConfigAutomaticActivityDetection",
      "description": "Configures automatic detection of activity.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCodeExecution": {
      "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.",
      "id": "GoogleAiGenerativelanguageV1betaCodeExecution",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudAiplatformV1beta1SessionResumptionUpdate": {
      "id": "GoogleCloudAiplatformV1beta1SessionResumptionUpdate",
      "type": "object",
      "description": "Update of the session resumption state. Only sent if `BidiGenerateContentSetup.session_resumption` was set.",
      "properties": {
        "newHandle": {
          "description": "New handle that represents state that can be resumed. Empty if `resumable`=false.",
          "type": "string"
        },
        "lastConsumedClientMessageIndex": {
          "format": "int64",
          "description": "Index of last message sent by client that is included in state represented by this SessionResumptionToken. Only sent when `SessionResumptionConfig.transparent` is set. Presence of this index allows users to transparently reconnect and avoid issue of losing some part of realtime audio input/video. If client wishes to temporarily disconnect (for example as result of receiving GoAway) they can do it without losing state by buffering messages sent since last `SessionResmumptionTokenUpdate`. This field will enable them to limit buffering (avoid keeping all requests in RAM). It will not be used for 'resumption to restore state' some time later -- in those cases partial audio and video frames are likely not needed.",
          "type": "string"
        },
        "resumable": {
          "description": "True if session can be resumed at this point. It might be not possible to resume session at some points. In that case we send update empty new_handle and resumable=false. Example of such case could be model executing function calls or just generating. Resuming session (using previous session token) in such state will result in some data loss.",
          "type": "boolean"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityEnd": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityEnd",
      "description": "Marks the end of user activity.",
      "properties": {}
    },
    "GoogleCloudAiplatformV1beta1SpeechMetadata": {
      "description": "Structured Metadata Sub-Message for Part",
      "properties": {
        "speaker": {
          "description": "Optional. Identifies which speaker is speaking this turn.",
          "type": "string"
        },
        "style": {
          "description": "Optional. Natural language description of the vocal style (e.g., \"cheerful\").",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1SpeechMetadata",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaFunctionResponseFileData": {
      "id": "GoogleAiGenerativelanguageV1betaFunctionResponseFileData",
      "type": "object",
      "description": "URI based data for function response.",
      "properties": {
        "mimeType": {
          "type": "string",
          "description": "The IANA standard MIME type of the source data."
        },
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Display name of the file. Used to provide a label or filename to distinguish file data."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1HistoryConfig": {
      "type": "object",
      "properties": {
        "initialHistoryInClientContent": {
          "type": "boolean"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1HistoryConfig",
      "description": "Configuration for the conversation history."
    },
    "Trigger": {
      "id": "Trigger",
      "description": "Specifies a Cloud Run Function that should be triggered by the Firebase AI Logic Proxy server whenever a given event occurs.",
      "type": "object",
      "properties": {
        "cloudFunction": {
          "description": "Optional. Unique ID of a Cloud Run Function that should be invoked.",
          "$ref": "Function"
        },
        "etag": {
          "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Identifier. Format: projects/{project}/locations/{location}/triggers/{trigger}"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1SpeakerVoiceConfig": {
      "id": "GoogleCloudAiplatformV1beta1SpeakerVoiceConfig",
      "description": "Configuration for a single speaker in a multi-speaker setup.",
      "properties": {
        "speaker": {
          "type": "string",
          "description": "Required. The name of the speaker. This should be the same as the speaker name used in the prompt."
        },
        "voiceConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1VoiceConfig",
          "description": "Required. The configuration for the voice of this speaker."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaSchema": {
      "type": "object",
      "properties": {
        "enum": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}"
        },
        "maxItems": {
          "description": "Optional. Maximum number of the elements for Type.ARRAY.",
          "format": "int64",
          "type": "string"
        },
        "maxLength": {
          "description": "Optional. Maximum length of the Type.STRING",
          "format": "int64",
          "type": "string"
        },
        "required": {
          "description": "Optional. Required properties of Type.OBJECT.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "pattern": {
          "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.",
          "type": "string"
        },
        "minProperties": {
          "format": "int64",
          "type": "string",
          "description": "Optional. Minimum number of the properties for Type.OBJECT."
        },
        "maxProperties": {
          "type": "string",
          "description": "Optional. Maximum number of the properties for Type.OBJECT.",
          "format": "int64"
        },
        "properties": {
          "description": "Optional. Properties of Type.OBJECT.",
          "type": "object",
          "additionalProperties": {
            "$ref": "GoogleAiGenerativelanguageV1betaSchema"
          }
        },
        "propertyOrdering": {
          "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "format": {
          "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.",
          "type": "string"
        },
        "nullable": {
          "description": "Optional. Indicates if the value may be null.",
          "type": "boolean"
        },
        "title": {
          "description": "Optional. The title of the schema.",
          "type": "string"
        },
        "example": {
          "description": "Optional. Example of the object. Will only populated when the object is the root.",
          "type": "any"
        },
        "type": {
          "type": "string",
          "description": "Required. Data type.",
          "enumDescriptions": [
            "Not specified, should not be used.",
            "String type.",
            "Number type.",
            "Integer type.",
            "Boolean type.",
            "Array type.",
            "Object type.",
            "Null type."
          ],
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT",
            "NULL"
          ]
        },
        "minLength": {
          "type": "string",
          "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING",
          "format": "int64"
        },
        "minItems": {
          "type": "string",
          "description": "Optional. Minimum number of the elements for Type.ARRAY.",
          "format": "int64"
        },
        "maximum": {
          "format": "double",
          "type": "number",
          "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER"
        },
        "default": {
          "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors.",
          "type": "any"
        },
        "items": {
          "description": "Optional. Schema of the elements of Type.ARRAY.",
          "$ref": "GoogleAiGenerativelanguageV1betaSchema"
        },
        "anyOf": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaSchema"
          },
          "type": "array",
          "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list."
        },
        "description": {
          "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.",
          "type": "string"
        },
        "minimum": {
          "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER",
          "type": "number",
          "format": "double"
        }
      },
      "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema).",
      "id": "GoogleAiGenerativelanguageV1betaSchema"
    },
    "GoogleCloudAiplatformV1beta1ResponseFormat": {
      "description": "Configuration for the model to configure output formatting and delivery.",
      "id": "GoogleCloudAiplatformV1beta1ResponseFormat",
      "properties": {
        "text": {
          "$ref": "GoogleCloudAiplatformV1beta1TextResponseFormat",
          "description": "Text output format."
        },
        "audio": {
          "description": "Audio output format.",
          "$ref": "GoogleCloudAiplatformV1beta1AudioResponseFormat"
        },
        "video": {
          "description": "Video output format.",
          "$ref": "GoogleCloudAiplatformV1beta1VideoResponseFormat"
        },
        "image": {
          "$ref": "GoogleCloudAiplatformV1beta1ImageResponseFormat",
          "description": "Image output format."
        }
      },
      "type": "object"
    },
    "Tool": {
      "type": "object",
      "properties": {
        "googleMaps": {
          "description": "Optional. Tool to retrieve public maps data for grounding, powered by Google.",
          "$ref": "GoogleMaps"
        },
        "templateFunctions": {
          "description": "Optional. A list of user-provided functions for function calling. For functions whose names are listed in the template frontmatter, the model may decide to call a subset of these functions by populating `FunctionCall` in the response. User should provide a `FunctionResponse` for each function call in the next turn.",
          "items": {
            "$ref": "TemplateFunction"
          },
          "type": "array"
        }
      },
      "description": "Tool details that the model may use to generate 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. A Tool object should contain exactly one type of Tool.",
      "id": "Tool"
    },
    "ExecutableCode": {
      "type": "object",
      "properties": {
        "language": {
          "description": "Required. Programming language of the `code`. String representation of a Gemini ExecutableCode.Language enum http://google3/google/ai/generativelanguage/v1main/content.proto?q=symbol:%5CbLanguage%5Cb",
          "type": "string"
        },
        "code": {
          "type": "string",
          "description": "Required. The code to be executed."
        }
      },
      "description": "An element in the history that represents code generated by the model that is meant to be executed, and the result returned to the model.",
      "id": "ExecutableCode"
    },
    "GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback",
      "description": "Content filter results for a prompt sent in the request. Note: This is sent only in the first stream chunk and only if no candidates were generated due to content violations.",
      "properties": {
        "blockReason": {
          "enum": [
            "BLOCKED_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "MODEL_ARMOR",
            "IMAGE_SAFETY",
            "JAILBREAK"
          ],
          "description": "Output only. The reason why the prompt was blocked.",
          "enumDescriptions": [
            "The blocked reason is unspecified.",
            "The prompt was blocked for safety reasons.",
            "The prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.",
            "The prompt was blocked because it contains a term from the terminology blocklist.",
            "The prompt was blocked because it contains prohibited content.",
            "The prompt was blocked by Model Armor.",
            "The prompt was blocked because it contains content that is unsafe for image generation.",
            "The prompt was blocked as a jailbreak attempt."
          ],
          "type": "string",
          "readOnly": true
        },
        "blockReasonMessage": {
          "type": "string",
          "description": "Output only. A readable message that explains the reason why the prompt was blocked.",
          "readOnly": true
        },
        "safetyRatings": {
          "description": "Output only. A list of safety ratings for the prompt. There is one rating per category.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1SafetyRating"
          },
          "type": "array",
          "readOnly": true
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfigSlidingWindow": {
      "id": "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfigSlidingWindow",
      "type": "object",
      "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.",
      "properties": {
        "targetTokens": {
          "format": "int64",
          "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations.",
          "type": "string"
        }
      }
    },
    "Date": {
      "type": "object",
      "id": "Date",
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
      "properties": {
        "year": {
          "type": "integer",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
          "format": "int32"
        },
        "month": {
          "type": "integer",
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "format": "int32"
        },
        "day": {
          "format": "int32",
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
          "type": "integer"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1UsageMetadata": {
      "id": "GoogleCloudAiplatformV1beta1UsageMetadata",
      "description": "Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.",
      "properties": {
        "cacheTokensDetails": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "description": "Output only. A detailed breakdown of the token count for each modality in the cached content."
        },
        "promptTokenCount": {
          "format": "int32",
          "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.",
          "type": "integer"
        },
        "toolUsePromptTokenCount": {
          "format": "int32",
          "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.",
          "type": "integer",
          "readOnly": true
        },
        "trafficType": {
          "readOnly": true,
          "type": "string",
          "enumDescriptions": [
            "Unspecified request traffic type.",
            "Type for Pay-As-You-Go traffic.",
            "Type for Priority Pay-As-You-Go traffic.",
            "Type for Flex traffic.",
            "Type for Off-Peak Pay-As-You-Go traffic.",
            "Type for Provisioned Throughput traffic."
          ],
          "description": "Output only. The traffic type for this request.",
          "enum": [
            "TRAFFIC_TYPE_UNSPECIFIED",
            "ON_DEMAND",
            "ON_DEMAND_PRIORITY",
            "ON_DEMAND_FLEX",
            "ON_DEMAND_OFFPEAK",
            "PROVISIONED_THROUGHPUT"
          ]
        },
        "candidatesTokensDetails": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          }
        },
        "toolUsePromptTokensDetails": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input."
        },
        "candidatesTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "The total number of tokens in the generated candidates."
        },
        "cachedContentTokenCount": {
          "description": "Output only. The number of tokens in the cached content that was used for this request.",
          "readOnly": true,
          "format": "int32",
          "type": "integer"
        },
        "thoughtsTokenCount": {
          "format": "int32",
          "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.",
          "readOnly": true,
          "type": "integer"
        },
        "promptTokensDetails": {
          "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.",
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "readOnly": true
        },
        "totalTokenCount": {
          "type": "integer",
          "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCodeExecutionResult": {
      "id": "GoogleAiGenerativelanguageV1betaCodeExecutionResult",
      "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
      "properties": {
        "outcome": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified status. This value should not be used.",
            "Code execution completed successfully. `output` contains the stdout, if any.",
            "Code execution failed. `output` contains the stderr and stdout, if any.",
            "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present."
          ],
          "description": "Required. Outcome of the code execution.",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ]
        },
        "output": {
          "type": "string",
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."
        },
        "id": {
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1ToolExaAiSearch": {
      "description": "ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding.",
      "id": "GoogleCloudAiplatformV1beta1ToolExaAiSearch",
      "type": "object",
      "properties": {
        "apiKey": {
          "description": "Required. The API key for ExaAiSearch.",
          "type": "string"
        },
        "customConfigs": {
          "description": "Optional. This field can be used to pass any parameter from the Exa.ai Search API.",
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaRetrievalConfig": {
      "type": "object",
      "description": "Retrieval config.",
      "id": "GoogleAiGenerativelanguageV1betaRetrievalConfig",
      "properties": {
        "latLng": {
          "description": "Optional. The location of the user.",
          "$ref": "LatLng"
        },
        "languageCode": {
          "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ExecutableCode": {
      "id": "GoogleCloudAiplatformV1beta1ExecutableCode",
      "type": "object",
      "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated.",
      "properties": {
        "id": {
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",
          "type": "string"
        },
        "code": {
          "description": "Required. The code to be executed.",
          "type": "string"
        },
        "language": {
          "enumDescriptions": [
            "Unspecified language. This value should not be used.",
            "Python \u003e= 3.10, with numpy and simpy available."
          ],
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ],
          "description": "Required. Programming language of the `code`.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes": {
      "id": "GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes",
      "properties": {
        "imageSearch": {
          "description": "Optional. Setting this field enables image search. Image bytes are returned.",
          "$ref": "GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch"
        },
        "webSearch": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch",
          "description": "Optional. Setting this field enables web search. Only text results are returned."
        }
      },
      "description": "Different types of search that can be enabled on the GoogleSearch tool.",
      "type": "object"
    },
    "TelemetryConfig": {
      "id": "TelemetryConfig",
      "properties": {
        "mode": {
          "enumDescriptions": [
            "Unspecified mode. Not intended for use.",
            "Telemetry is disabled by default.",
            "The collection of metrics, logs, and traces is enabled."
          ],
          "enum": [
            "MODE_UNSPECIFIED",
            "NONE",
            "ALL"
          ],
          "description": "Optional. The current monitoring mode used for this project.",
          "type": "string"
        },
        "samplingRate": {
          "format": "double",
          "type": "number",
          "description": "Optional. The percentage of requests to be sampled, expressed as a fraction in the range (0,1]. Note that the actual sampling rate may be lower than the specified value if the system is overloaded. Default is 1.0."
        }
      },
      "type": "object",
      "description": "Configuration for telemetry. Telemetry is the collection of metrics, logs, and traces recorded by the Firebase AI Logic backend."
    },
    "GoogleCloudAiplatformV1beta1Blob": {
      "properties": {
        "data": {
          "type": "string",
          "format": "byte",
          "description": "Required. The raw bytes of the data."
        },
        "mimeType": {
          "type": "string",
          "description": "Required. The IANA standard MIME type of the source data."
        },
        "displayName": {
          "description": "Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1Blob",
      "type": "object",
      "description": "A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video."
    },
    "GoogleCloudAiplatformV1beta1Tool": {
      "type": "object",
      "properties": {
        "functionDeclarations": {
          "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration"
          },
          "type": "array"
        },
        "retrieval": {
          "description": "Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.",
          "$ref": "GoogleCloudAiplatformV1beta1Retrieval"
        },
        "computerUse": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolComputerUse",
          "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations."
        },
        "exaAiSearch": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolExaAiSearch",
          "description": "Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation"
        },
        "parallelAiSearch": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolParallelAiSearch",
          "description": "Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation"
        },
        "codeExecution": {
          "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation.",
          "$ref": "GoogleCloudAiplatformV1beta1ToolCodeExecution"
        },
        "googleMaps": {
          "$ref": "GoogleCloudAiplatformV1beta1GoogleMaps",
          "description": "Optional. GoogleMaps tool type. Tool to support Google Maps in Model."
        },
        "urlContext": {
          "$ref": "GoogleCloudAiplatformV1beta1UrlContext",
          "description": "Optional. Tool to support URL context retrieval."
        },
        "googleSearch": {
          "$ref": "GoogleCloudAiplatformV1beta1ToolGoogleSearch",
          "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
        },
        "googleSearchRetrieval": {
          "deprecated": true,
          "$ref": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval",
          "description": "Optional. Specialized retrieval tool that is powered by Google Search."
        },
        "enterpriseWebSearch": {
          "description": "Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.",
          "$ref": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch"
        }
      },
      "description": "Tool details that the model may use to generate 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. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).",
      "id": "GoogleCloudAiplatformV1beta1Tool"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCallCancellation": {
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCallCancellation",
      "properties": {
        "ids": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. The ids of the tool calls to be cancelled.",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should not have been executed and should be cancelled. If there were side-effects to those tool calls, clients may attempt to undo the tool calls. This message occurs only in cases where the clients interrupt server turns.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1FunctionResponseBlob": {
      "properties": {
        "displayName": {
          "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.",
          "type": "string"
        },
        "mimeType": {
          "description": "Required. The IANA standard MIME type of the source data.",
          "type": "string"
        },
        "data": {
          "type": "string",
          "description": "Required. Raw bytes.",
          "format": "byte"
        }
      },
      "type": "object",
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.",
      "id": "GoogleCloudAiplatformV1beta1FunctionResponseBlob"
    },
    "ListTriggersResponse": {
      "id": "ListTriggersResponse",
      "type": "object",
      "properties": {
        "triggers": {
          "description": "List of triggers that match the search criteria.",
          "type": "array",
          "items": {
            "$ref": "Trigger"
          }
        },
        "nextPageToken": {
          "type": "string",
          "description": "If the result list is too large to fit in a single response, then a token is returned. If the string is empty, then this response is the last page of results."
        }
      },
      "description": "Response for the ListTriggers RPC."
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolResponse": {
      "type": "object",
      "properties": {
        "functionResponses": {
          "description": "Optional. The response to the function calls.",
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaFunctionResponse"
          }
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolResponse",
      "description": "Client generated response to a `ToolCall` received from the server. Individual `FunctionResponse` objects are matched to the respective `FunctionCall` objects by the `id` field. Note that in the unary and server-streaming GenerateContent APIs function calling happens by exchanging the `Content` parts, while in the bidi GenerateContent APIs function calling happens over these dedicated set of messages."
    },
    "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig": {
      "id": "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig",
      "type": "object",
      "properties": {
        "serviceAccount": {
          "type": "string",
          "description": "Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension."
        }
      },
      "description": "Config for Google Service Account Authentication."
    },
    "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig": {
      "id": "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig",
      "description": "Config for authentication with API key.",
      "type": "object",
      "properties": {
        "apiKeyString": {
          "type": "string",
          "description": "Optional. The API key to be used in the request directly."
        },
        "apiKeySecret": {
          "type": "string",
          "description": "Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource."
        },
        "name": {
          "description": "Optional. The parameter name of the API key. E.g. If the API request is \"https://example.com/act?api_key=\", \"api_key\" would be the parameter name.",
          "type": "string"
        },
        "httpElementLocation": {
          "enum": [
            "HTTP_IN_UNSPECIFIED",
            "HTTP_IN_QUERY",
            "HTTP_IN_HEADER",
            "HTTP_IN_PATH",
            "HTTP_IN_BODY",
            "HTTP_IN_COOKIE"
          ],
          "description": "Optional. The location of the API key.",
          "enumDescriptions": [
            "",
            "Element is in the HTTP request query.",
            "Element is in the HTTP request header.",
            "Element is in the HTTP request path.",
            "Element is in the HTTP request body.",
            "Element is in the HTTP request cookie."
          ],
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions": {
      "id": "GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions",
      "description": "The image output format for generated images.",
      "properties": {
        "mimeType": {
          "type": "string",
          "description": "Optional. The image format that the output should be saved as."
        },
        "compressionQuality": {
          "description": "Optional. The compression quality of the output image.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking": {
      "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking",
      "description": "Config for ranking and reranking.",
      "properties": {
        "rankService": {
          "description": "Optional. Config for Rank Service.",
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService"
        },
        "llmRanker": {
          "$ref": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker",
          "description": "Optional. Config for LlmRanker."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaFunctionCall": {
      "type": "object",
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
      "id": "GoogleAiGenerativelanguageV1betaFunctionCall",
      "properties": {
        "args": {
          "type": "object",
          "description": "Optional. The function parameters and values in JSON object format.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "name": {
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.",
          "type": "string"
        },
        "id": {
          "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGenerateContentResponsePromptFeedback": {
      "id": "GoogleAiGenerativelanguageV1betaGenerateContentResponsePromptFeedback",
      "properties": {
        "blockReason": {
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "IMAGE_SAFETY"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.",
            "Prompt was blocked due to unknown reasons.",
            "Prompt was blocked due to the terms which are included from the terminology blocklist.",
            "Prompt was blocked due to prohibited content.",
            "Candidates blocked due to unsafe image generation content."
          ],
          "type": "string",
          "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt."
        },
        "safetyRatings": {
          "description": "Ratings for safety of the prompt. There is at most one rating per category.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaSafetyRating"
          },
          "type": "array"
        }
      },
      "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode": {
      "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode",
      "type": "object",
      "properties": {
        "modelName": {
          "type": "string",
          "description": "The name of the model to use. Only public LLM models are accepted."
        }
      },
      "description": "The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided."
    },
    "GoogleCloudAiplatformV1beta1Part": {
      "properties": {
        "audioTranscription": {
          "description": "Optional. Audio (input or output) transcription. This is only set when this `Part` contains audio data.",
          "$ref": "GoogleCloudAiplatformV1beta1AudioTranscription"
        },
        "functionCall": {
          "$ref": "GoogleCloudAiplatformV1beta1FunctionCall",
          "description": "Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function."
        },
        "executableCode": {
          "$ref": "GoogleCloudAiplatformV1beta1ExecutableCode",
          "description": "Optional. Code generated by the model that is intended to be executed."
        },
        "speechMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1SpeechMetadata",
          "description": "Optional. Turn-level metadata for speech generation (e.g. Daikon speaker/style). May be set alongside `text` to attach speaker and style information to a text part."
        },
        "codeExecutionResult": {
          "description": "Optional. The result of executing the ExecutableCode.",
          "$ref": "GoogleCloudAiplatformV1beta1CodeExecutionResult"
        },
        "text": {
          "type": "string",
          "description": "Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent."
        },
        "inlineData": {
          "description": "Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.",
          "$ref": "GoogleCloudAiplatformV1beta1Blob"
        },
        "functionResponse": {
          "description": "Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.",
          "$ref": "GoogleCloudAiplatformV1beta1FunctionResponse"
        },
        "thoughtSignature": {
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
          "type": "string",
          "format": "byte"
        },
        "thought": {
          "type": "boolean",
          "description": "Optional. Indicates whether the `part` represents the model's thought process or reasoning."
        },
        "mediaProcessing": {
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ],
          "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "type": "string",
          "enumDescriptions": [
            "Defaults to model-specific processing.",
            "Fixed-rate frame extraction. All frames placed in context.",
            "Model-driven dynamic navigation. Recommended for most use cases."
          ]
        },
        "fileData": {
          "description": "Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.",
          "$ref": "GoogleCloudAiplatformV1beta1FileData"
        },
        "mediaResolution": {
          "$ref": "GoogleCloudAiplatformV1beta1PartMediaResolution",
          "description": "per part media resolution. Media resolution for the input media."
        },
        "videoMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1VideoMetadata",
          "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1Part",
      "type": "object",
      "description": "A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` must contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes."
    },
    "GoogleAiGenerativelanguageV1betaContent": {
      "type": "object",
      "properties": {
        "parts": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaPart"
          },
          "type": "array",
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types."
        },
        "role": {
          "type": "string",
          "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset."
        }
      },
      "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.",
      "id": "GoogleAiGenerativelanguageV1betaContent"
    },
    "PromptTemplate": {
      "type": "object",
      "description": "Represents a Prompt Template resource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier. The resource name of the PromptTemplate. Format: projects/{project}/locations/{location}/templates/{prompt_template}"
        },
        "templateString": {
          "type": "string",
          "description": "Required. The DotPrompt raw template string."
        },
        "updateTime": {
          "description": "Output only. Timestamp when the PromptTemplate was last updated.",
          "type": "string",
          "format": "google-datetime",
          "readOnly": true
        },
        "locked": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Indicates if the PromptTemplate has been locked for mutations. It is strongly recommended that PromptTemplates used in production Apps be locked to avoid accidental distruption to live apps. To modify a PromptTemplate that has been locked, a call to ModifyLock with lock=false is required first."
        },
        "displayName": {
          "description": "Optional. The display name of the PromptTemplate.",
          "type": "string"
        },
        "templateId": {
          "description": "Output only. Immutable. The unique ID of the PromptTemplate, which is the final component of the PromptTemplate's resource name.",
          "type": "string",
          "readOnly": true
        },
        "model": {
          "type": "string",
          "description": "Output only. The model name parsed from the template_string.",
          "readOnly": true
        },
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true,
          "description": "Output only. Timestamp when the PromptTemplate was created."
        },
        "kmsKeyName": {
          "type": "string",
          "description": "Optional. The Cloud KMS CryptoKey resource name used to encrypt this PromptTemplate at rest (CMEK). Empty if the template is protected by Google Default Encryption. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
        },
        "stateChangeTime": {
          "readOnly": true,
          "description": "Output only. Timestamp when the PromptTemplate state was last changed.",
          "format": "google-datetime",
          "type": "string"
        },
        "kmsKeyVersionName": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The resource name of the Cloud KMS CryptoKeyVersion that was used to encrypt this PromptTemplate at rest (CMEK). Empty if the template is protected by Google Default Encryption. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{version}"
        },
        "etag": {
          "description": "Optional. The etag of the PromptTemplate. If this is provided with an update request, it must match the server's etag for the operation to succeed.",
          "type": "string"
        }
      },
      "id": "PromptTemplate"
    },
    "GoogleAiGenerativelanguageV1betaAttributionSourceIdSemanticRetrieverChunk": {
      "type": "object",
      "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",
      "id": "GoogleAiGenerativelanguageV1betaAttributionSourceIdSemanticRetrieverChunk",
      "properties": {
        "source": {
          "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`",
          "type": "string",
          "readOnly": true
        },
        "chunk": {
          "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityStart": {
      "type": "object",
      "description": "Only one of the fields in this message must be set at a time. Marks the start of user activity.",
      "properties": {},
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentRealtimeInputActivityStart"
    },
    "GoogleAiGenerativelanguageV1betaGoogleMaps": {
      "properties": {
        "enableWidget": {
          "type": "boolean",
          "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGoogleMaps",
      "description": "The GoogleMaps Tool that provides geospatial context for the user's query.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunk": {
      "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.",
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunk",
      "type": "object",
      "properties": {
        "web": {
          "description": "Grounding chunk from the web.",
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkWeb"
        },
        "maps": {
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkMaps",
          "description": "Optional. Grounding chunk from Google Maps."
        },
        "image": {
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkImage",
          "description": "Optional. Grounding chunk from image search."
        },
        "retrievedContext": {
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkRetrievedContext",
          "description": "Optional. Grounding chunk from context retrieved by the file search tool."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkMaps": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text description of the place answer."
        },
        "placeAnswerSources": {
          "description": "Sources that provide answers about the features of a given place in Google Maps.",
          "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSources"
        },
        "title": {
          "description": "Title of the place.",
          "type": "string"
        },
        "uri": {
          "type": "string",
          "description": "URI reference of the place."
        },
        "placeId": {
          "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.",
          "type": "string"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkMaps",
      "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place."
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCall": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCall",
      "properties": {
        "functionCalls": {
          "description": "Output only. The function call to be executed.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1FunctionCall"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "description": "Request for the client to execute the `function_calls` and return the responses with the matching `id`s."
    },
    "GoogleCloudAiplatformV1beta1CountTokensRequest": {
      "description": "Request message for PredictionService.CountTokens.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1CountTokensRequest",
      "properties": {
        "generationConfig": {
          "description": "Optional. Generation config that the model will use to generate the response.",
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig"
        },
        "contents": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Content"
          },
          "type": "array",
          "description": "Optional. Input content."
        },
        "systemInstruction": {
          "description": "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.",
          "$ref": "GoogleCloudAiplatformV1beta1Content"
        },
        "instances": {
          "items": {
            "type": "any"
          },
          "description": "Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.",
          "type": "array"
        },
        "model": {
          "description": "Optional. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`",
          "type": "string"
        },
        "tools": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Tool"
          },
          "description": "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.",
          "type": "array"
        }
      }
    },
    "LatLng": {
      "type": "object",
      "properties": {
        "latitude": {
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "format": "double",
          "type": "number"
        },
        "longitude": {
          "format": "double",
          "type": "number",
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]."
        }
      },
      "id": "LatLng",
      "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges."
    },
    "GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch": {
      "type": "object",
      "description": "Standard web search for grounding and related configurations. Only text results are returned.",
      "properties": {},
      "id": "GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch"
    },
    "GoogleCloudAiplatformV1beta1SearchEntryPoint": {
      "id": "GoogleCloudAiplatformV1beta1SearchEntryPoint",
      "description": "An entry point for displaying Google Search results. A `SearchEntryPoint` is populated when the grounding source for a model's response is Google Search. It provides information that you can use to display the search results in your application.",
      "type": "object",
      "properties": {
        "sdkBlob": {
          "description": "Optional. A base64-encoded JSON object that contains a list of search queries and their corresponding search URLs. This information can be used to build a custom search UI.",
          "format": "byte",
          "type": "string"
        },
        "renderedContent": {
          "type": "string",
          "description": "Optional. An HTML snippet that can be embedded in a web page or an application's webview. This snippet displays a search result, including the title, URL, and a brief description of the search result."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaSpeakerVoiceConfig": {
      "description": "The configuration for a single speaker in a multi speaker setup.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaSpeakerVoiceConfig",
      "properties": {
        "voiceConfig": {
          "$ref": "GoogleAiGenerativelanguageV1betaVoiceConfig",
          "description": "Required. The configuration for the voice to use."
        },
        "speaker": {
          "type": "string",
          "description": "Required. The name of the speaker to use. Should be the same as in the prompt."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageAuto": {
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfigLanguageAuto",
      "description": "Deprecated: Use top-level `language_codes` instead. Indicates the language of the audio should be automatically detected.",
      "properties": {},
      "type": "object",
      "deprecated": true
    },
    "GoogleCloudAiplatformV1beta1SafetyRating": {
      "id": "GoogleCloudAiplatformV1beta1SafetyRating",
      "type": "object",
      "description": "A safety rating for a piece of content. The safety rating contains the harm category and the harm probability level.",
      "properties": {
        "severity": {
          "readOnly": true,
          "description": "Output only. The severity of harm for this category.",
          "type": "string",
          "enumDescriptions": [
            "The harm severity is unspecified.",
            "The harm severity is negligible.",
            "The harm severity is low.",
            "The harm severity is medium.",
            "The harm severity is high."
          ],
          "enum": [
            "HARM_SEVERITY_UNSPECIFIED",
            "HARM_SEVERITY_NEGLIGIBLE",
            "HARM_SEVERITY_LOW",
            "HARM_SEVERITY_MEDIUM",
            "HARM_SEVERITY_HIGH"
          ]
        },
        "severityScore": {
          "type": "number",
          "readOnly": true,
          "format": "float",
          "description": "Output only. The severity score of harm for this category."
        },
        "category": {
          "enumDeprecated": [
            false,
            false,
            false,
            false,
            false,
            true,
            false,
            false,
            false,
            false,
            false
          ],
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_DANGEROUS_CONTENT",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_IMAGE_HATE",
            "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",
            "HARM_CATEGORY_IMAGE_HARASSMENT",
            "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_JAILBREAK"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Content that promotes violence or incites hatred against individuals or groups based on certain attributes.",
            "Content that promotes, facilitates, or enables dangerous activities.",
            "Abusive, threatening, or content intended to bully, torment, or ridicule.",
            "Content that contains sexually explicit material.",
            "Deprecated: Election filter is not longer supported. The harm category is civic integrity.",
            "Images that contain hate speech.",
            "Images that contain dangerous content.",
            "Images that contain harassment.",
            "Images that contain sexually explicit content.",
            "Prompts designed to bypass safety filters."
          ],
          "type": "string",
          "description": "Output only. The harm category of this rating.",
          "readOnly": true
        },
        "probability": {
          "enum": [
            "HARM_PROBABILITY_UNSPECIFIED",
            "NEGLIGIBLE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "enumDescriptions": [
            "The harm probability is unspecified.",
            "The harm probability is negligible.",
            "The harm probability is low.",
            "The harm probability is medium.",
            "The harm probability is high."
          ],
          "description": "Output only. The probability of harm for this category.",
          "readOnly": true,
          "type": "string"
        },
        "overwrittenThreshold": {
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE",
            "OFF"
          ],
          "readOnly": true,
          "description": "Output only. The overwritten threshold for the safety category of Gemini 2.0 image out. If minors are detected in the output image, the threshold of each safety category will be overwritten if user sets a lower threshold.",
          "enumDescriptions": [
            "The harm block threshold is unspecified.",
            "Block content with a low harm probability or higher.",
            "Block content with a medium harm probability or higher.",
            "Block content with a high harm probability.",
            "Do not block any content, regardless of its harm probability.",
            "Turn off the safety filter entirely."
          ],
          "type": "string"
        },
        "probabilityScore": {
          "format": "float",
          "description": "Output only. The probability score of harm for this category.",
          "readOnly": true,
          "type": "number"
        },
        "blocked": {
          "description": "Output only. Indicates whether the content was blocked because of this rating.",
          "readOnly": true,
          "type": "boolean"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaRealtimeInputConfig": {
      "type": "object",
      "description": "Configures the realtime input behavior in `BidiGenerateContent`.",
      "properties": {
        "activityHandling": {
          "type": "string",
          "enum": [
            "ACTIVITY_HANDLING_UNSPECIFIED",
            "START_OF_ACTIVITY_INTERRUPTS",
            "NO_INTERRUPTION"
          ],
          "enumDescriptions": [
            "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.",
            "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.",
            "The model's response will not be interrupted."
          ],
          "description": "Optional. Defines what effect activity has."
        },
        "interimTranscriptTimestampEnabled": {
          "type": "boolean",
          "description": "Optional. Configures interim transcript timestamps."
        },
        "turnCoverage": {
          "enumDescriptions": [
            "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.",
            "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).",
            "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).",
            "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence."
          ],
          "enum": [
            "TURN_COVERAGE_UNSPECIFIED",
            "TURN_INCLUDES_ONLY_ACTIVITY",
            "TURN_INCLUDES_ALL_INPUT",
            "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
          ],
          "description": "Optional. Defines which input is included in the user's turn.",
          "type": "string"
        },
        "automaticActivityDetection": {
          "$ref": "GoogleAiGenerativelanguageV1betaRealtimeInputConfigAutomaticActivityDetection",
          "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaRealtimeInputConfig"
    },
    "GoogleAiGenerativelanguageV1betaFunctionResponse": {
      "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaFunctionResponse",
      "properties": {
        "response": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://aistudio.google.com/docs/function-calling#multimodal."
        },
        "name": {
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.",
          "type": "string"
        },
        "parts": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaFunctionResponsePart"
          },
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types."
        },
        "scheduling": {
          "type": "string",
          "enumDescriptions": [
            "This value is unused.",
            "Only add the result to the conversation context, do not interrupt or trigger generation.",
            "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.",
            "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output."
          ],
          "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.",
          "enum": [
            "SCHEDULING_UNSPECIFIED",
            "SILENT",
            "WHEN_IDLE",
            "INTERRUPT"
          ]
        },
        "willContinue": {
          "type": "boolean",
          "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`."
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`."
        }
      }
    },
    "GoogleCloudAiplatformV1beta1TranslationConfig": {
      "type": "object",
      "properties": {
        "targetLanguageCode": {
          "type": "string",
          "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."
        },
        "echoTargetLanguage": {
          "type": "boolean",
          "description": "Optional. If `true`, the model will generate audio when the target language is spoken, essentially it will parrot the input. If `false`, we will not produce audio for the target language."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1TranslationConfig",
      "description": "Config for translation features."
    },
    "GoogleCloudAiplatformV1beta1AudioTranscription": {
      "id": "GoogleCloudAiplatformV1beta1AudioTranscription",
      "properties": {
        "speakerLabel": {
          "description": "Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set.",
          "type": "string"
        },
        "text": {
          "type": "string",
          "description": "Required. The transcription text of this audio segment."
        },
        "words": {
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo"
          },
          "description": "Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set."
        }
      },
      "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1FunctionCallingConfig": {
      "id": "GoogleCloudAiplatformV1beta1FunctionCallingConfig",
      "type": "object",
      "properties": {
        "allowedFunctionNames": {
          "items": {
            "type": "string"
          },
          "description": "Optional. Function names to call. Only set when the Mode is ANY. Function names should match FunctionDeclaration.name. With mode set to ANY, model will predict a function call from the set of function names provided.",
          "type": "array"
        },
        "streamFunctionCallArguments": {
          "description": "Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the `FunctionCall.partial_args` field.",
          "type": "boolean"
        },
        "mode": {
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE",
            "VALIDATED"
          ],
          "enumDescriptions": [
            "Unspecified function calling mode. This value should not be used.",
            "Default model behavior, model decides to predict either function calls or natural language response.",
            "Model is constrained to always predicting function calls only. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".",
            "Model will not predict any function calls. Model behavior is same as when not passing any function declarations.",
            "Model is constrained to predict either function calls or natural language response. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\"."
          ],
          "type": "string",
          "description": "Optional. Function calling mode."
        }
      },
      "description": "Function calling config."
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdate": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdate",
      "description": "Updates to the context of the current session. Only fields that are set will be updated. Updates are guaranteed to be processed *in order* with the rest of the inputs.",
      "properties": {
        "systemInstruction": {
          "$ref": "GoogleAiGenerativelanguageV1betaContent",
          "description": "Optional. If set, overrides `BidiGenerateContentSetup.system_instruction`. See the comments there for more details. Be careful, may affect prefix caching."
        },
        "tools": {
          "description": "Optional. An updated list of `Tools` the model may use to generate the subsequent responses. Be careful, may affect prefix caching.",
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdateTools"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaToolCall": {
      "id": "GoogleAiGenerativelanguageV1betaToolCall",
      "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`.",
      "type": "object",
      "properties": {
        "toolType": {
          "enumDescriptions": [
            "Unspecified tool type.",
            "Google search tool, maps to Tool.google_search.search_types.web_search.",
            "Image search tool, maps to Tool.google_search.search_types.image_search.",
            "URL context tool, maps to Tool.url_context.",
            "Google maps tool, maps to Tool.google_maps.",
            "File search tool, maps to Tool.file_search.",
            "Media processing tool types (e.g. video, audio, etc.), maps to invisible tools used for multimodal understanding like GOOGLE_UNDERSTANDING_VIDEO."
          ],
          "type": "string",
          "description": "Required. The type of tool that was called.",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH",
            "MEDIA_PROCESSING"
          ]
        },
        "id": {
          "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.",
          "type": "string"
        },
        "toolName": {
          "description": "Optional. The name of the tool that was called.",
          "type": "string"
        },
        "args": {
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaAudioTranscriptionWordInfo": {
      "id": "GoogleAiGenerativelanguageV1betaAudioTranscriptionWordInfo",
      "properties": {
        "startOffset": {
          "type": "string",
          "description": "Optional. Start offset in time of the word relative to the start of the audio.",
          "format": "google-duration"
        },
        "word": {
          "description": "Required. Transcript of the word.",
          "type": "string"
        },
        "endOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. End offset in time of the word relative to the start of the audio."
        }
      },
      "description": "Information about a single recognized word.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaThinkingConfig": {
      "properties": {
        "includeThoughts": {
          "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.",
          "type": "boolean"
        },
        "thinkingLevel": {
          "enum": [
            "THINKING_LEVEL_UNSPECIFIED",
            "MINIMAL",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://aistudio.google.com/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.",
          "type": "string",
          "enumDescriptions": [
            "Default value.",
            "Little to no thinking.",
            "Low thinking level.",
            "Medium thinking level.",
            "High thinking level."
          ]
        },
        "thinkingBudget": {
          "format": "int32",
          "type": "integer",
          "description": "The number of thoughts tokens that the model should generate."
        }
      },
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaThinkingConfig",
      "description": "Config for thinking features."
    },
    "GoogleCloudAiplatformV1beta1PredictResponse": {
      "description": "Response message for PredictionService.Predict.",
      "properties": {
        "deployedModelId": {
          "type": "string",
          "description": "ID of the Endpoint's DeployedModel that served this prediction."
        },
        "model": {
          "description": "Output only. The resource name of the Model which is deployed as the DeployedModel that this prediction hits.",
          "type": "string",
          "readOnly": true
        },
        "modelDisplayName": {
          "description": "Output only. The display name of the Model which is deployed as the DeployedModel that this prediction hits.",
          "type": "string",
          "readOnly": true
        },
        "metadata": {
          "readOnly": true,
          "type": "any",
          "description": "Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation."
        },
        "predictions": {
          "type": "array",
          "description": "The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.",
          "items": {
            "type": "any"
          }
        },
        "modelVersionId": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The version ID of the Model which is deployed as the DeployedModel that this prediction hits."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1PredictResponse",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1ModelArmorConfig": {
      "properties": {
        "responseTemplateName": {
          "description": "Optional. The resource name of the Model Armor template to use for response screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the model's response for safety and security risks before it is returned to the user. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`.",
          "type": "string"
        },
        "promptTemplateName": {
          "description": "Optional. The resource name of the Model Armor template to use for prompt screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the user's prompt for safety and security risks before it is sent to the model. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`.",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1ModelArmorConfig",
      "description": "Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaGroundingMetadata": {
      "id": "GoogleAiGenerativelanguageV1betaGroundingMetadata",
      "properties": {
        "groundingChunks": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunk"
          },
          "type": "array",
          "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses."
        },
        "webSearchQueries": {
          "type": "array",
          "description": "Web search queries for the following-up web search.",
          "items": {
            "type": "string"
          }
        },
        "googleMapsWidgetContextToken": {
          "type": "string",
          "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled."
        },
        "groundingSupports": {
          "type": "array",
          "description": "List of grounding support.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingSupport"
          }
        },
        "retrievalMetadata": {
          "description": "Metadata related to retrieval in the grounding flow.",
          "$ref": "GoogleAiGenerativelanguageV1betaRetrievalMetadata"
        },
        "searchEntryPoint": {
          "$ref": "GoogleAiGenerativelanguageV1betaSearchEntryPoint",
          "description": "Optional. Google search entry for the following-up web searches."
        },
        "imageSearchQueries": {
          "description": "Image search queries used for grounding.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Metadata returned to client when grounding is enabled.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1RagChunk": {
      "properties": {
        "fileId": {
          "type": "string",
          "description": "The ID of the file that the chunk belongs to."
        },
        "text": {
          "description": "The content of the chunk.",
          "type": "string"
        },
        "pageSpan": {
          "$ref": "GoogleCloudAiplatformV1beta1RagChunkPageSpan",
          "description": "If populated, represents where the chunk starts and ends in the document."
        },
        "chunkId": {
          "description": "The ID of the chunk.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1RagChunk",
      "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata."
    },
    "GoogleAiGenerativelanguageV1betaSafetyRating": {
      "id": "GoogleAiGenerativelanguageV1betaSafetyRating",
      "type": "object",
      "properties": {
        "probability": {
          "description": "Required. The probability of harm for this content.",
          "enum": [
            "HARM_PROBABILITY_UNSPECIFIED",
            "NEGLIGIBLE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "type": "string",
          "enumDescriptions": [
            "Probability is unspecified.",
            "Content has a negligible chance of being unsafe.",
            "Content has a low chance of being unsafe.",
            "Content has a medium chance of being unsafe.",
            "Content has a high chance of being unsafe."
          ]
        },
        "category": {
          "description": "Required. The category for this rating.",
          "enumDescriptions": [
            "Category is unspecified.",
            "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models.",
            "**Gemini** - Harassment content.",
            "**Gemini** - Hate speech and content.",
            "**Gemini** - Sexually explicit content.",
            "**Gemini** - Dangerous content.",
            "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",
            "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."
          ],
          "type": "string",
          "enumDeprecated": [
            false,
            true,
            true,
            true,
            true,
            true,
            true,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_DEROGATORY",
            "HARM_CATEGORY_TOXICITY",
            "HARM_CATEGORY_VIOLENCE",
            "HARM_CATEGORY_SEXUAL",
            "HARM_CATEGORY_MEDICAL",
            "HARM_CATEGORY_DANGEROUS",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_DANGEROUS_CONTENT",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_JAILBREAK"
          ]
        },
        "blocked": {
          "description": "Was this content blocked because of this rating?",
          "type": "boolean"
        }
      },
      "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here."
    },
    "GoogleCloudAiplatformV1beta1Retrieval": {
      "type": "object",
      "properties": {
        "vertexRagStore": {
          "description": "Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.",
          "$ref": "GoogleCloudAiplatformV1beta1VertexRagStore"
        },
        "disableAttribution": {
          "deprecated": true,
          "type": "boolean",
          "description": "Optional. Deprecated. This option is no longer supported."
        },
        "externalApi": {
          "$ref": "GoogleCloudAiplatformV1beta1ExternalApi",
          "description": "Use data source powered by external API for grounding."
        },
        "vertexAiSearch": {
          "description": "Set to use data source powered by Vertex AI Search.",
          "$ref": "GoogleCloudAiplatformV1beta1VertexAISearch"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1Retrieval",
      "description": "Defines a retrieval tool that model can call to access external knowledge."
    },
    "GoogleAiGenerativelanguageV1betaAudioTranscription": {
      "properties": {
        "text": {
          "description": "Required. The transcription text of this audio segment.",
          "type": "string"
        },
        "speakerLabel": {
          "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.",
          "type": "string"
        },
        "words": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionWordInfo"
          },
          "type": "array",
          "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaAudioTranscription",
      "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1CodeExecutionResult": {
      "id": "GoogleCloudAiplatformV1beta1CodeExecutionResult",
      "properties": {
        "output": {
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.",
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ],
          "enumDescriptions": [
            "Unspecified status. This value should not be used.",
            "Code execution completed successfully. `output` contains the stdout, if any.",
            "Code execution failed. `output` contains the stderr and stdout, if any.",
            "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present."
          ],
          "description": "Required. Outcome of the code execution."
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id."
        }
      },
      "description": "Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig": {
      "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig",
      "description": "The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name.",
      "properties": {
        "manualMode": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode",
          "description": "In this mode, the model is specified manually."
        },
        "autoMode": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode",
          "description": "In this mode, the model is selected automatically based on the content of the request."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetup": {
      "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.",
      "properties": {
        "generationConfig": {
          "$ref": "GoogleAiGenerativelanguageV1betaGenerationConfig",
          "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`"
        },
        "outputAudioTranscription": {
          "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured.",
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfig"
        },
        "inputAudioTranscription": {
          "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.",
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfig"
        },
        "realtimeInputConfig": {
          "description": "Optional. Configures the handling of realtime input.",
          "$ref": "GoogleAiGenerativelanguageV1betaRealtimeInputConfig"
        },
        "historyConfig": {
          "description": "Optional. Configures the exchange of history between the client and the server.",
          "$ref": "GoogleAiGenerativelanguageV1betaHistoryConfig"
        },
        "contextWindowCompression": {
          "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length.",
          "$ref": "GoogleAiGenerativelanguageV1betaContextWindowCompressionConfig"
        },
        "model": {
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`",
          "type": "string"
        },
        "tools": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaTool"
          },
          "description": "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.",
          "type": "array"
        },
        "systemInstruction": {
          "description": "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.",
          "$ref": "GoogleAiGenerativelanguageV1betaContent"
        },
        "sessionResumption": {
          "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.",
          "$ref": "GoogleAiGenerativelanguageV1betaSessionResumptionConfig"
        },
        "labels": {
          "type": "object",
          "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - 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. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)",
          "additionalProperties": {
            "type": "string"
          }
        },
        "proactivity": {
          "description": "Optional. Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.",
          "$ref": "GoogleAiGenerativelanguageV1betaProactivityConfig"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetup",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCitationSource": {
      "id": "GoogleAiGenerativelanguageV1betaCitationSource",
      "type": "object",
      "properties": {
        "endIndex": {
          "format": "int32",
          "description": "Optional. End of the attributed segment, exclusive.",
          "type": "integer"
        },
        "startIndex": {
          "format": "int32",
          "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
          "type": "integer"
        },
        "license": {
          "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.",
          "type": "string"
        },
        "uri": {
          "description": "Optional. URI that is attributed as a source for a portion of the text.",
          "type": "string"
        }
      },
      "description": "A citation to a source for a portion of a specific response."
    },
    "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig": {
      "description": "Configuration for the model's thinking features. \"Thinking\" is a process where the model breaks down a complex task into smaller, manageable steps. This allows the model to reason about the task, plan its approach, and execute the plan to generate a high-quality response.",
      "type": "object",
      "properties": {
        "thinkingLevel": {
          "type": "string",
          "description": "Optional. The number of thoughts tokens that the model should generate.",
          "enum": [
            "THINKING_LEVEL_UNSPECIFIED",
            "LOW",
            "MEDIUM",
            "HIGH",
            "MINIMAL",
            "XHIGH"
          ],
          "enumDescriptions": [
            "Unspecified thinking level.",
            "Low thinking level.",
            "Medium thinking level.",
            "High thinking level.",
            "MINIMAL thinking level.",
            "XHIGH thinking level."
          ]
        },
        "thinkingBudget": {
          "description": "Optional. The token budget for the model's thinking process. The model will make a best effort to stay within this budget. This can be used to control the trade-off between response quality and latency.",
          "format": "int32",
          "type": "integer"
        },
        "includeThoughts": {
          "description": "Optional. If true, the model will include its thoughts in the response. \"Thoughts\" are the intermediate steps the model takes to arrive at the final response. They can provide insights into the model's reasoning process and help with debugging. If this is true, thoughts are returned only when available.",
          "type": "boolean"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig"
    },
    "GoogleCloudAiplatformV1beta1ImageConfig": {
      "properties": {
        "imageSize": {
          "type": "string",
          "description": "Optional. Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`."
        },
        "imageOutputOptions": {
          "$ref": "GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions",
          "description": "Optional. The image output format for generated images."
        },
        "prominentPeople": {
          "enumDescriptions": [
            "Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.",
            "Allows the model to generate images of prominent people.",
            "Prevents the model from generating images of prominent people."
          ],
          "description": "Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people.",
          "type": "string",
          "enum": [
            "PROMINENT_PEOPLE_UNSPECIFIED",
            "ALLOW_PROMINENT_PEOPLE",
            "BLOCK_PROMINENT_PEOPLE"
          ]
        },
        "personGeneration": {
          "description": "Optional. Controls whether the model can generate people.",
          "type": "string",
          "enumDescriptions": [
            "The default behavior is unspecified. The model will decide whether to generate images of people.",
            "Allows the model to generate images of people, including adults and children.",
            "Allows the model to generate images of adults, but not children.",
            "Prevents the model from generating images of people."
          ],
          "enum": [
            "PERSON_GENERATION_UNSPECIFIED",
            "ALLOW_ALL",
            "ALLOW_ADULT",
            "ALLOW_NONE"
          ]
        },
        "aspectRatio": {
          "description": "Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: \"1:1\" \"2:3\", \"3:2\" \"3:4\", \"4:3\" \"4:5\", \"5:4\" \"9:16\", \"16:9\" \"21:9\"",
          "type": "string"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1ImageConfig",
      "type": "object",
      "description": "Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people."
    },
    "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig": {
      "description": "Config for user oauth.",
      "id": "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig",
      "properties": {
        "accessToken": {
          "description": "Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.",
          "type": "string"
        },
        "serviceAccount": {
          "description": "The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1VoiceActivity": {
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the VAD signal.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "ACTIVITY_START",
            "ACTIVITY_END"
          ],
          "enumDescriptions": [
            "The default is UNSPECIFIED.",
            "Start of sentence signal.",
            "End of sentence signal."
          ]
        },
        "audioOffset": {
          "type": "string",
          "description": "Output only. The time voice activity detected in audio time, relative to the start of the audio stream.",
          "format": "google-duration",
          "readOnly": true
        }
      },
      "id": "GoogleCloudAiplatformV1beta1VoiceActivity",
      "description": "Voice activity signal.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaToolGoogleSearchSearchTypes": {
      "description": "Different types of search that can be enabled on the GoogleSearch tool.",
      "id": "GoogleAiGenerativelanguageV1betaToolGoogleSearchSearchTypes",
      "properties": {
        "webSearch": {
          "$ref": "GoogleAiGenerativelanguageV1betaToolGoogleSearchWebSearch",
          "description": "Optional. Enables web search. Only text results are returned."
        },
        "imageSearch": {
          "$ref": "GoogleAiGenerativelanguageV1betaToolGoogleSearchImageSearch",
          "description": "Optional. Enables image search. Image bytes are returned."
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentClientMessage": {
      "description": "Messages sent by the client in the BidiGenerateContent call.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentClientMessage",
      "properties": {
        "contextUpdate": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdate",
          "description": "Optional. Updates to the context of the current session."
        },
        "clientContent": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentClientContent",
          "description": "Optional. Incremental update of the current conversation delivered from the client."
        },
        "setup": {
          "description": "Optional. Session configuration sent only in the first client message.",
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetup"
        },
        "toolResponse": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolResponse",
          "description": "Optional. Response to a `ToolCallMessage` received from the server."
        },
        "realtimeInput": {
          "description": "Optional. User input that is sent in real time.",
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInput"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaImageResponseFormat": {
      "description": "Configuration for image output format.",
      "type": "object",
      "properties": {
        "aspectRatio": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "1:1 aspect ratio.",
            "2:3 aspect ratio.",
            "3:2 aspect ratio.",
            "3:4 aspect ratio.",
            "4:3 aspect ratio.",
            "4:5 aspect ratio.",
            "5:4 aspect ratio.",
            "9:16 aspect ratio.",
            "16:9 aspect ratio.",
            "21:9 aspect ratio.",
            "1:8 aspect ratio.",
            "8:1 aspect ratio.",
            "1:4 aspect ratio.",
            "4:1 aspect ratio."
          ],
          "type": "string",
          "description": "Optional. The aspect ratio for the image output.",
          "enum": [
            "ASPECT_RATIO_UNSPECIFIED",
            "ASPECT_RATIO_ONE_BY_ONE",
            "ASPECT_RATIO_TWO_BY_THREE",
            "ASPECT_RATIO_THREE_BY_TWO",
            "ASPECT_RATIO_THREE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_THREE",
            "ASPECT_RATIO_FOUR_BY_FIVE",
            "ASPECT_RATIO_FIVE_BY_FOUR",
            "ASPECT_RATIO_NINE_BY_SIXTEEN",
            "ASPECT_RATIO_SIXTEEN_BY_NINE",
            "ASPECT_RATIO_TWENTY_ONE_BY_NINE",
            "ASPECT_RATIO_ONE_BY_EIGHT",
            "ASPECT_RATIO_EIGHT_BY_ONE",
            "ASPECT_RATIO_ONE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_ONE"
          ]
        },
        "imageSize": {
          "description": "Optional. The size of the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "512px image size.",
            "1K image size.",
            "2K image size.",
            "4K image size."
          ],
          "enum": [
            "IMAGE_SIZE_UNSPECIFIED",
            "IMAGE_SIZE_FIVE_TWELVE",
            "IMAGE_SIZE_ONE_K",
            "IMAGE_SIZE_TWO_K",
            "IMAGE_SIZE_FOUR_K"
          ],
          "type": "string"
        },
        "mimeType": {
          "type": "string",
          "description": "Optional. The MIME type of the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JPEG image format."
          ],
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "IMAGE_JPEG"
          ]
        },
        "delivery": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Image data is returned inline in the response.",
            "Image data is returned as a URI."
          ],
          "type": "string",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "description": "Optional. The delivery mode for the image output."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaImageResponseFormat"
    },
    "GoogleCloudAiplatformV1beta1GoAway": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GoAway",
      "description": "Server will not be able to service client soon.",
      "properties": {
        "timeLeft": {
          "description": "The remaining time before the connection will be terminated as ABORTED. The minimal time returned here is specified differently together with the rate limits for a given model.",
          "format": "google-duration",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGenerateContentResponseUsageMetadata": {
      "properties": {
        "totalTokenCount": {
          "type": "integer",
          "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).",
          "format": "int32"
        },
        "promptTokensDetails": {
          "description": "Output only. List of modalities that were processed in the request input.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "type": "array",
          "readOnly": true
        },
        "toolUsePromptTokenCount": {
          "description": "Output only. Number of tokens present in tool-use prompt(s).",
          "readOnly": true,
          "type": "integer",
          "format": "int32"
        },
        "candidatesTokensDetails": {
          "description": "Output only. List of modalities that were returned in the response.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "readOnly": true,
          "type": "array"
        },
        "serviceTier": {
          "type": "string",
          "description": "Output only. Service tier of the request.",
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ],
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "readOnly": true
        },
        "promptTokenCount": {
          "format": "int32",
          "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.",
          "type": "integer"
        },
        "thoughtsTokenCount": {
          "format": "int32",
          "description": "Output only. Number of tokens of thoughts for thinking models.",
          "type": "integer",
          "readOnly": true
        },
        "cachedContentTokenCount": {
          "description": "Number of tokens in the cached part of the prompt (the cached content)",
          "type": "integer",
          "format": "int32"
        },
        "toolUsePromptTokensDetails": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          },
          "description": "Output only. List of modalities that were processed for tool-use request inputs."
        },
        "candidatesTokenCount": {
          "description": "Total number of tokens across all the generated response candidates.",
          "type": "integer",
          "format": "int32"
        },
        "cacheTokensDetails": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. List of modalities of the cached content in the request input.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
          }
        }
      },
      "description": "Metadata on the generation request's token usage.",
      "id": "GoogleAiGenerativelanguageV1betaGenerateContentResponseUsageMetadata",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkImage": {
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkImage",
      "properties": {
        "imageUri": {
          "description": "The image asset URL.",
          "type": "string"
        },
        "domain": {
          "description": "The root domain of the web page that the image is from, e.g. \"example.com\".",
          "type": "string"
        },
        "sourceUri": {
          "description": "The web page URI for attribution.",
          "type": "string"
        },
        "title": {
          "type": "string",
          "description": "The title of the web page that the image is from."
        }
      },
      "type": "object",
      "description": "Chunk from image search."
    },
    "GoogleAiGenerativelanguageV1betaResponseFormatConfig": {
      "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.",
      "id": "GoogleAiGenerativelanguageV1betaResponseFormatConfig",
      "type": "object",
      "properties": {
        "text": {
          "description": "Optional. Text output format configuration.",
          "$ref": "GoogleAiGenerativelanguageV1betaTextResponseFormat"
        },
        "audio": {
          "$ref": "GoogleAiGenerativelanguageV1betaAudioResponseFormat",
          "description": "Optional. Audio output format configuration."
        },
        "image": {
          "description": "Optional. Image output format configuration.",
          "$ref": "GoogleAiGenerativelanguageV1betaImageResponseFormat"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentServerMessage": {
      "type": "object",
      "properties": {
        "toolCallCancellation": {
          "description": "Output only. Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should be cancelled.",
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCallCancellation"
        },
        "serverContent": {
          "description": "Output only. Content generated by the model in response to client messages.",
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentServerContent",
          "readOnly": true
        },
        "sessionResumptionUpdate": {
          "description": "Output only. Update of the session resumption state.",
          "$ref": "GoogleAiGenerativelanguageV1betaSessionResumptionUpdate",
          "readOnly": true
        },
        "setupComplete": {
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentSetupComplete",
          "description": "Output only. Sent in response to a `BidiGenerateContentSetup` message from the client when setup is complete."
        },
        "toolCall": {
          "description": "Output only. Request for the client to execute the `function_calls` and return the responses with the matching `id`s.",
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCall"
        },
        "usageMetadata": {
          "$ref": "GoogleAiGenerativelanguageV1betaUsageMetadata",
          "readOnly": true,
          "description": "Output only. Usage metadata about the response(s)."
        },
        "goAway": {
          "$ref": "GoogleAiGenerativelanguageV1betaGoAway",
          "description": "Output only. A notice that the server will soon disconnect.",
          "readOnly": true
        },
        "voiceActivity": {
          "readOnly": true,
          "$ref": "GoogleAiGenerativelanguageV1betaVoiceActivity",
          "description": "Output only. Voice activity detected in audio stream."
        }
      },
      "description": "Response message for the BidiGenerateContent call.",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentServerMessage"
    },
    "GoogleCloudAiplatformV1beta1VideoResponseFormat": {
      "properties": {
        "gcsUri": {
          "type": "string",
          "description": "Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI."
        },
        "delivery": {
          "type": "string",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "description": "Optional. Delivery mode for the generated content.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Generated bytes are returned inline in the response.",
            "Generated content is stored and a URI is returned."
          ]
        },
        "duration": {
          "type": "string",
          "description": "Optional. The duration for the video output.",
          "format": "google-duration"
        },
        "resolution": {
          "description": "Optional. The video output resolution. Supported values: \"360p\", \"720p\", \"1080p\", \"4k\".",
          "type": "string"
        },
        "aspectRatio": {
          "type": "string",
          "description": "The aspect ratio for the video output.",
          "enum": [
            "ASPECT_RATIO_UNSPECIFIED",
            "ASPECT_RATIO_SIXTEEN_BY_NINE",
            "ASPECT_RATIO_NINE_BY_SIXTEEN"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "16:9 aspect ratio.",
            "9:16 aspect ratio."
          ]
        }
      },
      "description": "Configuration for video-specific output formatting.",
      "id": "GoogleCloudAiplatformV1beta1VideoResponseFormat",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig": {
      "id": "GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig",
      "properties": {
        "speakerVoiceConfigs": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1SpeakerVoiceConfig"
          },
          "type": "array",
          "description": "Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided."
        }
      },
      "description": "Configuration for a multi-speaker text-to-speech request.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata": {
      "properties": {
        "toolUsePromptTokenCount": {
          "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.",
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "trafficType": {
          "type": "string",
          "readOnly": true,
          "enumDescriptions": [
            "Unspecified request traffic type.",
            "The request was processed using Pay-As-You-Go quota.",
            "Type for Priority Pay-As-You-Go traffic.",
            "Type for Flex traffic.",
            "Type for Off-Peak Pay-As-You-Go traffic.",
            "Type for Provisioned Throughput traffic."
          ],
          "description": "Output only. The traffic type for this request.",
          "enum": [
            "TRAFFIC_TYPE_UNSPECIFIED",
            "ON_DEMAND",
            "ON_DEMAND_PRIORITY",
            "ON_DEMAND_FLEX",
            "ON_DEMAND_OFFPEAK",
            "PROVISIONED_THROUGHPUT"
          ]
        },
        "candidatesTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "type": "array",
          "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates."
        },
        "promptTokensDetails": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.",
          "type": "array",
          "readOnly": true
        },
        "cachedContentTokenCount": {
          "format": "int32",
          "description": "Output only. The number of tokens in the cached content that was used for this request.",
          "type": "integer",
          "readOnly": true
        },
        "thoughtsTokenCount": {
          "type": "integer",
          "readOnly": true,
          "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.",
          "format": "int32"
        },
        "candidatesTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "The total number of tokens in the generated candidates."
        },
        "promptTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content."
        },
        "toolUsePromptTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.",
          "type": "array"
        },
        "totalTokenCount": {
          "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.",
          "type": "integer",
          "format": "int32"
        },
        "cacheTokensDetails": {
          "description": "Output only. A detailed breakdown of the token count for each modality in the cached content.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount"
          },
          "type": "array",
          "readOnly": true
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata",
      "type": "object",
      "description": "Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics."
    },
    "GenerativeLanguageConfig": {
      "properties": {
        "apiKey": {
          "description": "Input only. Deprecated: AI Logic no longer requires ApiKey material. The value of the API key. The API key must have `generativelanguage.googleapis.com` in its \"API restrictions\" allowlist. Note that this API is sometimes called the *Generative Language API* in the Google Cloud console. Do **not** add this Gemini API key into your app's codebase",
          "deprecated": true,
          "type": "string"
        },
        "obfuscatedApiKey": {
          "type": "string",
          "deprecated": true,
          "readOnly": true,
          "description": "Output only. Deprecated: AI Logic no longer required ApiKey material. The obfuscated value of the API key, showing only the last few characters of the API key to unique identify it within the project."
        }
      },
      "description": "Configuration for using the Gemini Developer API via Firebase AI Logic. When using the Gemini Developer API via Firebase AI Logic, a separate Gemini API key is stored in this configuration *on the server* so that you do **not** add your Gemini API key directly into your app's codebase.",
      "type": "object",
      "id": "GenerativeLanguageConfig"
    },
    "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints": {
      "description": "Deprecated: Use top-level `language_codes` instead. Provides hints to the model about possible languages present in the audio.",
      "properties": {
        "languageCodes": {
          "description": "Required. Deprecated: Use top-level `language_codes` instead. BCP-47 language codes. At least one must be specified.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "deprecated": true
        }
      },
      "type": "object",
      "deprecated": true,
      "id": "GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdateTools": {
      "properties": {
        "tools": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaTool"
          },
          "type": "array"
        }
      },
      "description": "Wrapper for the list of tools to distinguish between: - The list of tools being absent (no update) and - The list of tools being empty (clear the previous list).",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentContextUpdateTools"
    },
    "GoogleCloudAiplatformV1beta1GroundingMetadata": {
      "description": "Information about the sources that support the content of a response. When grounding is enabled, the model returns citations for claims in the response. This object contains the retrieved sources.",
      "properties": {
        "imageSearchQueries": {
          "description": "Optional. The image search queries that were used to generate the content. This field is populated only when the grounding source is Google Search with the Image Search search_type enabled.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "retrievalQueries": {
          "description": "Optional. The queries that were executed by the retrieval tools. This field is populated only when the grounding source is a retrieval tool, such as Vertex AI Search.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "sourceFlaggingUris": {
          "readOnly": true,
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri"
          },
          "type": "array",
          "description": "Optional. Output only. A list of URIs that can be used to flag a place or review for inappropriate content. This field is populated only when the grounding source is Google Maps."
        },
        "groundingSupports": {
          "type": "array",
          "description": "Optional. A list of grounding supports that connect the generated content to the grounding chunks. This field is populated when the grounding source is Google Search or Vertex AI Search.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1GroundingSupport"
          }
        },
        "webSearchQueries": {
          "items": {
            "type": "string"
          },
          "description": "Optional. The web search queries that were used to generate the content. This field is populated only when the grounding source is Google Search.",
          "type": "array"
        },
        "searchEntryPoint": {
          "$ref": "GoogleCloudAiplatformV1beta1SearchEntryPoint",
          "description": "Optional. A web search entry point that can be used to display search results. This field is populated only when the grounding source is Google Search."
        },
        "googleMapsWidgetContextToken": {
          "description": "Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and will no longer be populated once removed. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps.",
          "type": "string",
          "deprecated": true,
          "readOnly": true
        },
        "groundingChunks": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1GroundingChunk"
          },
          "description": "A list of supporting references retrieved from the grounding source. This field is populated when the grounding source is Google Search, Vertex AI Search, or Google Maps.",
          "type": "array"
        },
        "retrievalMetadata": {
          "readOnly": true,
          "description": "Optional. Output only. Metadata related to the retrieval grounding source.",
          "$ref": "GoogleCloudAiplatformV1beta1RetrievalMetadata"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1GroundingMetadata",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaGenerationConfig": {
      "properties": {
        "audioTranscriptionConfig": {
          "description": "Optional. Config for audio transcription (speech recognition).",
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfig"
        },
        "speechConfig": {
          "description": "Optional. The speech generation config.",
          "$ref": "GoogleAiGenerativelanguageV1betaSpeechConfig"
        },
        "responseJsonSchema": {
          "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field.",
          "type": "any"
        },
        "temperature": {
          "type": "number",
          "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.",
          "format": "float"
        },
        "logprobs": {
          "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20].",
          "type": "integer",
          "format": "int32"
        },
        "presencePenalty": {
          "type": "number",
          "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary.",
          "format": "float"
        },
        "topK": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models."
        },
        "responseLogprobs": {
          "type": "boolean",
          "description": "Optional. If true, export the logprobs results in response."
        },
        "seed": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed."
        },
        "translationConfig": {
          "description": "Optional. Config for translation.",
          "$ref": "GoogleAiGenerativelanguageV1betaTranslationConfig"
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response."
        },
        "mediaResolution": {
          "description": "Optional. If specified, the media resolution specified will be used.",
          "type": "string",
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH"
          ],
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low (64 tokens).",
            "Media resolution set to medium (256 tokens).",
            "Media resolution set to high (zoomed reframing with 256 tokens)."
          ]
        },
        "responseModalities": {
          "type": "array",
          "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.",
          "items": {
            "enumDescriptions": [
              "Default value.",
              "Indicates the model should return text.",
              "Indicates the model should return images.",
              "Indicates the model should return audio."
            ],
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "AUDIO"
            ],
            "type": "string"
          }
        },
        "enableEnhancedCivicAnswers": {
          "type": "boolean",
          "description": "Optional. Enables enhanced civic answers. It may not be available for all models."
        },
        "enableAffectiveDialog": {
          "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.",
          "type": "boolean"
        },
        "frequencyPenalty": {
          "format": "float",
          "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.",
          "type": "number"
        },
        "candidateCount": {
          "type": "integer",
          "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)",
          "format": "int32"
        },
        "thinkingConfig": {
          "$ref": "GoogleAiGenerativelanguageV1betaThinkingConfig",
          "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking."
        },
        "responseMimeType": {
          "type": "string",
          "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://aistudio.google.com/docs/file-input-methods#text-file-types) for a list of all supported text MIME types."
        },
        "topP": {
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.",
          "format": "float",
          "type": "number"
        },
        "responseSchema": {
          "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://aistudio.google.com/docs/structured-output) for more details. Deprecated. Use `response_format` instead.",
          "$ref": "GoogleAiGenerativelanguageV1betaSchema",
          "deprecated": true
        },
        "responseFormat": {
          "$ref": "GoogleAiGenerativelanguageV1betaResponseFormatConfig",
          "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure."
        },
        "imageConfig": {
          "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options.",
          "$ref": "GoogleAiGenerativelanguageV1betaImageConfig"
        },
        "maxOutputTokens": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function."
        },
        "_responseJsonSchema": {
          "deprecated": true,
          "description": "Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set. Deprecated. Use `response_format` instead.",
          "type": "any"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGenerationConfig",
      "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSources": {
      "type": "object",
      "properties": {
        "reviewSnippets": {
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSourcesReviewSnippet"
          },
          "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkMapsPlaceAnswerSources",
      "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources."
    },
    "GoogleCloudAiplatformV1beta1AvatarConfigCustomizedAvatar": {
      "type": "object",
      "description": "Customized avatar configuration.",
      "id": "GoogleCloudAiplatformV1beta1AvatarConfigCustomizedAvatar",
      "properties": {
        "imageData": {
          "description": "Optional. The data of the reference image, at most 5 MB. The image may be portrait or landscape, and must be at least 704x1280 (portrait) or 1280x704 (landscape). Orientation is determined by the image itself: an image is treated as landscape only when its width is strictly greater than its height, so a square image is treated as portrait and must meet the portrait minimum. An image that is too small is rejected with INVALID_ARGUMENT at setup.",
          "format": "byte",
          "type": "string"
        },
        "imageMimeType": {
          "description": "Optional. The mime type of the reference image, e.g., \"image/jpeg\".",
          "type": "string"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaLogprobsResultTopCandidates": {
      "id": "GoogleAiGenerativelanguageV1betaLogprobsResultTopCandidates",
      "type": "object",
      "properties": {
        "candidates": {
          "description": "Sorted by log probability in descending order.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaLogprobsResultCandidate"
          },
          "type": "array"
        }
      },
      "description": "Candidates with top log probabilities at each decoding step."
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInput": {
      "description": "User input that is sent in real time. The different modalities (audio, video and text) are handled as concurrent streams. The ordering across these streams is not guaranteed. This is different from BidiGenerateContentClientContent in a few ways: * Can be sent continuously without interruption to model generation. * If there is a need to mix data interleaved across the BidiGenerateContentClientContent and the BidiGenerateContentRealtimeInput, the server attempts to optimize for best response, but there are no guarantees. * End of turn is not explicitly specified, but is rather derived from user activity (for example, end of speech). * Even before the end of turn, the data is processed incrementally to optimize for a fast start of the response from the model.",
      "properties": {
        "mediaChunks": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaBlob"
          },
          "description": "Optional. Inlined bytes data for media input. Multiple `media_chunks` are not supported, all but the first will be ignored. DEPRECATED: Use one of `audio`, `video`, or `text` instead.",
          "type": "array"
        },
        "video": {
          "description": "Optional. These form the realtime video input stream.",
          "$ref": "GoogleAiGenerativelanguageV1betaBlob"
        },
        "activityStart": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityStart",
          "description": "Optional. Marks the start of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled."
        },
        "mediaResolution": {
          "description": "Optional. The media resolution to use. If not specified, `setup.generation_config.media_resolution` is used or a default if the setup is not provided.",
          "$ref": "GoogleAiGenerativelanguageV1betaMediaResolution"
        },
        "text": {
          "type": "string",
          "description": "Optional. These form the realtime text input stream."
        },
        "activityEnd": {
          "$ref": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityEnd",
          "description": "Optional. Marks the end of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled."
        },
        "audio": {
          "$ref": "GoogleAiGenerativelanguageV1betaBlob",
          "description": "Optional. These form the realtime audio input stream."
        },
        "audioStreamEnd": {
          "description": "Optional. Indicates that the audio stream has ended, e.g. because the microphone was turned off. This should only be sent when automatic activity detection is enabled (which is the default). The client can reopen the stream by sending an audio message.",
          "type": "boolean"
        }
      },
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInput"
    },
    "GoogleAiGenerativelanguageV1betaFileSearch": {
      "type": "object",
      "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
      "id": "GoogleAiGenerativelanguageV1betaFileSearch",
      "properties": {
        "metadataFilter": {
          "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
          "type": "string"
        },
        "topK": {
          "format": "int32",
          "description": "Optional. The number of semantic retrieval chunks to retrieve.",
          "type": "integer"
        },
        "fileSearchStoreNames": {
          "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaAttributionSourceId": {
      "properties": {
        "groundingPassage": {
          "$ref": "GoogleAiGenerativelanguageV1betaAttributionSourceIdGroundingPassageId",
          "description": "Identifier for an inline passage."
        },
        "semanticRetrieverChunk": {
          "description": "Identifier for a `Chunk` fetched via Semantic Retriever.",
          "$ref": "GoogleAiGenerativelanguageV1betaAttributionSourceIdSemanticRetrieverChunk"
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaAttributionSourceId",
      "type": "object",
      "description": "Identifier for the source contributing to this attribution."
    },
    "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfig": {
      "description": "The audio transcription configuration.",
      "id": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfig",
      "properties": {
        "adaptationPhrases": {
          "deprecated": true,
          "type": "array",
          "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.",
          "items": {
            "type": "string"
          }
        },
        "diarization": {
          "type": "boolean",
          "description": "Optional. Configures speaker diarization."
        },
        "languageCodes": {
          "items": {
            "type": "string"
          },
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.",
          "type": "array"
        },
        "languageAuto": {
          "deprecated": true,
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageAuto",
          "description": "Optional. The model will detect the language automatically."
        },
        "languageHints": {
          "$ref": "GoogleAiGenerativelanguageV1betaAudioTranscriptionConfigLanguageHints",
          "description": "Optional. Specifies one or more languages in the audio.",
          "deprecated": true
        },
        "sourceText": {
          "type": "string",
          "description": "Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."
        },
        "mode": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified transcription mode.",
            "Verbatim transcription mode.",
            "Smart transcription mode."
          ],
          "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ]
        },
        "customVocabulary": {
          "type": "array",
          "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).",
          "items": {
            "type": "string"
          }
        },
        "wordTimestamp": {
          "description": "Optional. Configures word-level timestamp generation.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityStart": {
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentRealtimeInputActivityStart",
      "description": "Marks the start of user activity.",
      "type": "object",
      "properties": {}
    },
    "TemplateGenerateContentRequest": {
      "type": "object",
      "description": "Request for performing a GenerateContent operation.",
      "id": "TemplateGenerateContentRequest",
      "properties": {
        "toolConfig": {
          "$ref": "ToolConfig",
          "description": "Optional. Tool configuration for any tool specified in the request."
        },
        "inputs": {
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "description": "Optional. Client provided data that can be used when rendering the template. When calling via JSON/http surfaces this should be wire compatible with an arbitrary JSON object.",
          "type": "object"
        },
        "tools": {
          "items": {
            "$ref": "Tool"
          },
          "description": "Optional. A list of tools that the model may use to generate the response.",
          "type": "array"
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "HistoryContent"
          },
          "description": "Optional. Conversation history for multi-turn prompts and function calling."
        }
      }
    },
    "ModifyLockResponse": {
      "description": "Response message for TemplateService.ModifyLock.",
      "type": "object",
      "id": "ModifyLockResponse",
      "properties": {}
    },
    "GoogleCloudAiplatformV1beta1GenerateContentRequest": {
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1GenerateContentRequest",
      "description": "Request message for [PredictionService.GenerateContent].",
      "properties": {
        "outputConfig": {
          "description": "Optional. Configuration for persisting output assets to external storage.",
          "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequestOutputConfig"
        },
        "safetySettings": {
          "type": "array",
          "description": "Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1SafetySetting"
          }
        },
        "generationConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig",
          "description": "Optional. Generation config."
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "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."
        },
        "systemInstruction": {
          "$ref": "GoogleCloudAiplatformV1beta1Content",
          "description": "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."
        },
        "contents": {
          "type": "array",
          "description": "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.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Content"
          }
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Tool"
          },
          "description": "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."
        },
        "modelArmorConfig": {
          "$ref": "GoogleCloudAiplatformV1beta1ModelArmorConfig",
          "description": "Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied."
        },
        "toolConfig": {
          "description": "Optional. Tool config. This config is shared for all tools provided in the request.",
          "$ref": "GoogleCloudAiplatformV1beta1ToolConfig"
        },
        "cachedContent": {
          "type": "string",
          "description": "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}`"
        },
        "continuationToken": {
          "type": "string",
          "description": "Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`.",
          "format": "byte"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGroundingChunkStringList": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaGroundingChunkStringList",
      "description": "A list of string values.",
      "properties": {
        "values": {
          "description": "The string values of the list.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCall": {
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaBidiGenerateContentToolCall",
      "description": "Request for the client to execute the `function_calls` and return the responses with the matching `id`s.",
      "properties": {
        "functionCalls": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. The function call to be executed.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaFunctionCall"
          }
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaToolGoogleSearchImageSearch": {
      "properties": {},
      "id": "GoogleAiGenerativelanguageV1betaToolGoogleSearchImageSearch",
      "description": "Image search for grounding and related configurations.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaToolGoogleSearchWebSearch": {
      "properties": {},
      "description": "Standard web search for grounding and related configurations.",
      "id": "GoogleAiGenerativelanguageV1betaToolGoogleSearchWebSearch",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaCitationMetadata": {
      "description": "A collection of source attributions for a piece of content.",
      "id": "GoogleAiGenerativelanguageV1betaCitationMetadata",
      "properties": {
        "citationSources": {
          "description": "Citations to sources for a specific response.",
          "type": "array",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaCitationSource"
          }
        }
      },
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentSetup": {
      "properties": {
        "model": {
          "description": "Required. The fully qualified name of the publisher model. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*`",
          "type": "string"
        },
        "explicitVadSignal": {
          "description": "Optional. Indicates whether the server sends the built-in VAD signal to the user.",
          "type": "boolean"
        },
        "realtimeInputConfig": {
          "description": "Optional. Configures the handling of realtime input.",
          "$ref": "GoogleCloudAiplatformV1beta1RealtimeInputConfig"
        },
        "proactivity": {
          "description": "Optional. Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.",
          "$ref": "GoogleCloudAiplatformV1beta1ProactivityConfig"
        },
        "safetySettings": {
          "description": "Optional. List of safety settings to use for blocking unsafe content.",
          "type": "array",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1SafetySetting"
          }
        },
        "generationConfig": {
          "description": "Optional. Generation config. The following fields aren't supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `stop_sequence` - `routing_config` - `audio_timestamp`",
          "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig"
        },
        "tools": {
          "type": "array",
          "description": "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.",
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Tool"
          }
        },
        "systemInstruction": {
          "description": "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.",
          "$ref": "GoogleCloudAiplatformV1beta1Content"
        },
        "sessionResumption": {
          "description": "Optional. Configures session resumption mechanism. If included, the server will send periodical `SessionResumptionUpdate` messages to the client.",
          "$ref": "GoogleCloudAiplatformV1beta1SessionResumptionConfig"
        },
        "avatarConfig": {
          "description": "Optional. Config for video generation.",
          "$ref": "GoogleCloudAiplatformV1beta1AvatarConfig"
        },
        "labels": {
          "type": "object",
          "description": "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.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "contextWindowCompression": {
          "description": "Optional. Configures context window compression mechanism. If included, server will compress context window to fit into given length.",
          "$ref": "GoogleCloudAiplatformV1beta1ContextWindowCompressionConfig"
        },
        "inputAudioTranscription": {
          "description": "Optional. Configures transcription of the input audio, which aligns with the input audio language.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfig"
        },
        "historyConfig": {
          "description": "Optional. Configuration for the conversation history.",
          "$ref": "GoogleCloudAiplatformV1beta1HistoryConfig"
        },
        "outputAudioTranscription": {
          "description": "Optional. Configures transcription of the output audio, which aligns with the language code specified for the output audio.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupAudioTranscriptionConfig"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetup",
      "type": "object",
      "description": "Message to be sent in the first and only first `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages."
    },
    "GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig": {
      "description": "Configuration for a prebuilt voice.",
      "type": "object",
      "id": "GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig",
      "properties": {
        "voiceName": {
          "description": "The name of the prebuilt voice to use.",
          "type": "string"
        }
      }
    },
    "GoogleCloudAiplatformV1beta1CitationMetadata": {
      "id": "GoogleCloudAiplatformV1beta1CitationMetadata",
      "type": "object",
      "description": "A collection of citations that apply to a piece of generated content.",
      "properties": {
        "citations": {
          "items": {
            "$ref": "GoogleCloudAiplatformV1beta1Citation"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. A list of citations for the content."
        }
      }
    },
    "GoogleMaps": {
      "type": "object",
      "id": "GoogleMaps",
      "properties": {
        "enableWidget": {
          "description": "Optional. If true, include the widget context token in the response.",
          "type": "boolean"
        }
      },
      "description": "Tool to retrieve public maps data for grounding, powered by Google."
    },
    "GoogleCloudAiplatformV1beta1FunctionDeclaration": {
      "properties": {
        "description": {
          "description": "Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.",
          "type": "string"
        },
        "behavior": {
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ],
          "type": "string",
          "enumDescriptions": [
            "This value is unspecified.",
            "If set, the system will wait to receive the function response before continuing the conversation.",
            "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model."
          ],
          "description": "Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method."
        },
        "parameters": {
          "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1",
          "$ref": "GoogleCloudAiplatformV1beta1Schema"
        },
        "response": {
          "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.",
          "$ref": "GoogleCloudAiplatformV1beta1Schema"
        },
        "parametersJsonSchema": {
          "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`.",
          "type": "any"
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128."
        },
        "responseJsonSchema": {
          "type": "any",
          "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1FunctionDeclaration",
      "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.",
      "type": "object"
    },
    "GoogleCloudAiplatformV1beta1BidiGenerateContentServerMessage": {
      "properties": {
        "toolCall": {
          "description": "Output only. Request for the client to execute the `function_calls` and return the responses with the matching `id`s.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCall",
          "readOnly": true
        },
        "voiceActivity": {
          "$ref": "GoogleCloudAiplatformV1beta1VoiceActivity",
          "readOnly": true,
          "description": "Output only. Voice activity signal."
        },
        "sessionResumptionUpdate": {
          "readOnly": true,
          "$ref": "GoogleCloudAiplatformV1beta1SessionResumptionUpdate",
          "description": "Output only. Update of the session resumption state."
        },
        "toolCallCancellation": {
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentToolCallCancellation",
          "readOnly": true,
          "description": "Output only. Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled."
        },
        "goAway": {
          "readOnly": true,
          "$ref": "GoogleCloudAiplatformV1beta1GoAway",
          "description": "Output only. Server will disconnect soon."
        },
        "serverContent": {
          "readOnly": true,
          "description": "Output only. Content generated by the model in response to client messages.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerContent"
        },
        "usageMetadata": {
          "$ref": "GoogleCloudAiplatformV1beta1UsageMetadata",
          "readOnly": true,
          "description": "Output only. Usage metadata about the response(s)."
        },
        "setupComplete": {
          "readOnly": true,
          "description": "Output only. Sent in response to a `BidiGenerateContentSetup` message from the client.",
          "$ref": "GoogleCloudAiplatformV1beta1BidiGenerateContentSetupComplete"
        }
      },
      "id": "GoogleCloudAiplatformV1beta1BidiGenerateContentServerMessage",
      "description": "Response message for BidiGenerateContent RPC call.",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaModalityTokenCount": {
      "description": "Represents token counting info for a single modality.",
      "type": "object",
      "properties": {
        "tokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Number of tokens."
        },
        "modality": {
          "enumDescriptions": [
            "Unspecified modality.",
            "Plain text.",
            "Image.",
            "Video.",
            "Audio.",
            "Document, e.g. PDF."
          ],
          "type": "string",
          "enum": [
            "MODALITY_UNSPECIFIED",
            "TEXT",
            "IMAGE",
            "VIDEO",
            "AUDIO",
            "DOCUMENT"
          ],
          "description": "The modality associated with this token count."
        }
      },
      "id": "GoogleAiGenerativelanguageV1betaModalityTokenCount"
    },
    "GoogleCloudAiplatformV1beta1UrlMetadata": {
      "description": "The metadata for a single URL retrieval.",
      "properties": {
        "urlRetrievalStatus": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "The URL was retrieved successfully.",
            "The URL retrieval failed."
          ],
          "description": "The status of the URL retrieval.",
          "enum": [
            "URL_RETRIEVAL_STATUS_UNSPECIFIED",
            "URL_RETRIEVAL_STATUS_SUCCESS",
            "URL_RETRIEVAL_STATUS_ERROR"
          ]
        },
        "retrievedUrl": {
          "type": "string",
          "description": "The URL retrieved by the tool."
        }
      },
      "id": "GoogleCloudAiplatformV1beta1UrlMetadata",
      "type": "object"
    },
    "RetrievalConfig": {
      "description": "Retrieval config.",
      "properties": {
        "latLng": {
          "description": "Optional. A location's coordinates (using latitude and longitude) so the model returns more relevant and personalized Google Maps results.",
          "$ref": "LatLng"
        },
        "languageCode": {
          "description": "Optional. A language code so the model returns more relevant and personalized Google Maps results.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "RetrievalConfig"
    }
  },
  "name": "firebasevertexai",
  "documentationLink": "https://firebase.google.com",
  "basePath": "",
  "servicePath": "",
  "title": "Firebase AI Logic API",
  "resources": {
    "projects": {
      "resources": {
        "locations": {
          "resources": {
            "publishers": {
              "resources": {
                "models": {
                  "methods": {
                    "predict": {
                      "scopes": [
                        "https://www.googleapis.com/auth/cloud-platform"
                      ],
                      "path": "v1beta/{+endpoint}:predict",
                      "response": {
                        "$ref": "GoogleCloudAiplatformV1beta1PredictResponse"
                      },
                      "description": "Perform an online prediction.",
                      "parameters": {
                        "endpoint": {
                          "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`",
                          "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$",
                          "required": true,
                          "type": "string",
                          "location": "path"
                        }
                      },
                      "id": "firebasevertexai.projects.locations.publishers.models.predict",
                      "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict",
                      "request": {
                        "$ref": "GoogleCloudAiplatformV1beta1PredictRequest"
                      },
                      "httpMethod": "POST",
                      "parameterOrder": [
                        "endpoint"
                      ]
                    },
                    "countTokens": {
                      "description": "Perform a token counting.",
                      "httpMethod": "POST",
                      "scopes": [
                        "https://www.googleapis.com/auth/cloud-platform"
                      ],
                      "id": "firebasevertexai.projects.locations.publishers.models.countTokens",
                      "parameterOrder": [
                        "endpoint"
                      ],
                      "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:countTokens",
                      "response": {
                        "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse"
                      },
                      "parameters": {
                        "endpoint": {
                          "type": "string",
                          "location": "path",
                          "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$",
                          "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`",
                          "required": true
                        }
                      },
                      "path": "v1beta/{+endpoint}:countTokens",
                      "request": {
                        "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest"
                      }
                    },
                    "streamGenerateContent": {
                      "parameterOrder": [
                        "model"
                      ],
                      "response": {
                        "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse"
                      },
                      "request": {
                        "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest"
                      },
                      "scopes": [
                        "https://www.googleapis.com/auth/cloud-platform"
                      ],
                      "description": "Generate content with multimodal inputs with streaming support.",
                      "httpMethod": "POST",
                      "path": "v1beta/{+model}:streamGenerateContent",
                      "id": "firebasevertexai.projects.locations.publishers.models.streamGenerateContent",
                      "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent",
                      "parameters": {
                        "model": {
                          "required": true,
                          "location": "path",
                          "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$",
                          "description": "Required. 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}`",
                          "type": "string"
                        }
                      }
                    },
                    "generateContent": {
                      "id": "firebasevertexai.projects.locations.publishers.models.generateContent",
                      "parameterOrder": [
                        "model"
                      ],
                      "parameters": {
                        "model": {
                          "location": "path",
                          "required": true,
                          "type": "string",
                          "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$",
                          "description": "Required. 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}`"
                        }
                      },
                      "response": {
                        "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse"
                      },
                      "description": "Generate content with multimodal inputs.",
                      "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:generateContent",
                      "request": {
                        "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest"
                      },
                      "httpMethod": "POST",
                      "path": "v1beta/{+model}:generateContent",
                      "scopes": [
                        "https://www.googleapis.com/auth/cloud-platform"
                      ]
                    }
                  }
                }
              }
            },
            "triggers": {
              "methods": {
                "patch": {
                  "response": {
                    "$ref": "Trigger"
                  },
                  "request": {
                    "$ref": "Trigger"
                  },
                  "description": "Updates a Trigger.",
                  "id": "firebasevertexai.projects.locations.triggers.patch",
                  "httpMethod": "PATCH",
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "name": {
                      "location": "path",
                      "description": "Identifier. Format: projects/{project}/locations/{location}/triggers/{trigger}",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$",
                      "type": "string"
                    },
                    "updateMask": {
                      "location": "query",
                      "description": "Optional. A comma-separated list of names of fields in the Trigger to update.",
                      "format": "google-fieldmask",
                      "type": "string"
                    },
                    "allowMissing": {
                      "location": "query",
                      "description": "Optional. If true and the trigger you are trying to update does not currently exist then create one.",
                      "type": "boolean"
                    },
                    "validateOnly": {
                      "location": "query",
                      "description": "Optional. If set to true, the request is only validated. The Trigger will _not_ be updated.",
                      "type": "boolean"
                    }
                  },
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}",
                  "path": "v1beta/{+name}"
                },
                "list": {
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "ListTriggersResponse"
                  },
                  "httpMethod": "GET",
                  "id": "firebasevertexai.projects.locations.triggers.list",
                  "description": "Lists existing Triggers on a project.",
                  "path": "v1beta/{+parent}/triggers",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "filter": {
                      "location": "query",
                      "description": "Optional. AIP-160 (https://google.aip.dev/160) compatible query string used to filter the list of triggers.",
                      "type": "string"
                    },
                    "pageToken": {
                      "description": "Optional. Token returned from a previous call to `ListTriggers` indicating where in the set of triggers to resume listing.",
                      "location": "query",
                      "type": "string"
                    },
                    "pageSize": {
                      "location": "query",
                      "format": "int32",
                      "description": "Optional. The maximum number of Trigger to return in the response.",
                      "type": "integer"
                    },
                    "parent": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "location": "path",
                      "description": "Required. Format: projects/{project}/locations/{location}",
                      "type": "string"
                    }
                  },
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/triggers"
                },
                "get": {
                  "response": {
                    "$ref": "Trigger"
                  },
                  "parameters": {
                    "name": {
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$",
                      "required": true,
                      "description": "Required. Format: projects/{project}/locations/{location}/triggers/{trigger}",
                      "location": "path"
                    }
                  },
                  "path": "v1beta/{+name}",
                  "description": "Looks up an existing Trigger.",
                  "id": "firebasevertexai.projects.locations.triggers.get",
                  "parameterOrder": [
                    "name"
                  ],
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}"
                },
                "create": {
                  "httpMethod": "POST",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1beta/{+parent}/triggers",
                  "parameterOrder": [
                    "parent"
                  ],
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/triggers",
                  "parameters": {
                    "triggerId": {
                      "description": "Required. Id of the trigger. One of \"before-generate-content\" or \"after-generate-content\".",
                      "location": "query",
                      "type": "string"
                    },
                    "parent": {
                      "location": "path",
                      "required": true,
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "description": "Required. Format: projects/{project}/locations/{location}"
                    },
                    "validateOnly": {
                      "description": "Optional. If set to true, the request is only validated. The trigger will _not_ be created.",
                      "type": "boolean",
                      "location": "query"
                    }
                  },
                  "response": {
                    "$ref": "Trigger"
                  },
                  "description": "Creates a new Trigger.",
                  "request": {
                    "$ref": "Trigger"
                  },
                  "id": "firebasevertexai.projects.locations.triggers.create"
                },
                "delete": {
                  "response": {
                    "$ref": "Empty"
                  },
                  "description": "Deletes an existing Trigger.",
                  "parameters": {
                    "etag": {
                      "description": "Optional. Checksum provided in the Trigger resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.",
                      "location": "query",
                      "type": "string"
                    },
                    "allowMissing": {
                      "location": "query",
                      "description": "Optional. If set to true, and the Trigger is not found, the request will succeed but no action will be taken on the server.",
                      "type": "boolean"
                    },
                    "validateOnly": {
                      "description": "Optional. If set to true, the request is only validated. The Trigger will _not_ be removed.",
                      "type": "boolean",
                      "location": "query"
                    },
                    "name": {
                      "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$",
                      "type": "string",
                      "description": "Required. Format: projects/{project}/locations/{location}/triggers/{trigger}",
                      "required": true,
                      "location": "path"
                    }
                  },
                  "path": "v1beta/{+name}",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameterOrder": [
                    "name"
                  ],
                  "id": "firebasevertexai.projects.locations.triggers.delete",
                  "httpMethod": "DELETE",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}"
                }
              }
            },
            "templates": {
              "methods": {
                "delete": {
                  "description": "Deletes a PromptTemplate.",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "DELETE",
                  "parameterOrder": [
                    "name"
                  ],
                  "id": "firebasevertexai.projects.locations.templates.delete",
                  "path": "v1beta/{+name}",
                  "parameters": {
                    "validateOnly": {
                      "location": "query",
                      "description": "Optional. If set to true, the request will be validated but not executed.",
                      "type": "boolean"
                    },
                    "etag": {
                      "description": "Optional. The etag of the PromptTemplate. If this is provided, it must match the server's etag for the operation to succeed.",
                      "type": "string",
                      "location": "query"
                    },
                    "regionalPropagationDisabled": {
                      "type": "boolean",
                      "description": "Optional. For global endpoints only. If true, the PromptTemplate will be deleted in global only. Otherwise, the PromptTemplate will _also_ be deleted in all regions where applicable.",
                      "location": "query"
                    },
                    "allowMissing": {
                      "type": "boolean",
                      "description": "Optional. If set to true and the PromptTemplate does not exist, the method will still succeed.",
                      "location": "query"
                    },
                    "name": {
                      "location": "path",
                      "type": "string",
                      "required": true,
                      "description": "Required. The name of the PromptTemplate resource to be deleted. Format: projects/{project}/locations/{location}/templates/{prompt_template}",
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$"
                    }
                  },
                  "response": {
                    "$ref": "Empty"
                  }
                },
                "templateGenerateContent": {
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:templateGenerateContent",
                  "parameterOrder": [
                    "name"
                  ],
                  "description": "Generate content with multimodal inputs using a server-side prompt template.",
                  "httpMethod": "POST",
                  "id": "firebasevertexai.projects.locations.templates.templateGenerateContent",
                  "parameters": {
                    "name": {
                      "location": "path",
                      "required": true,
                      "description": "Required. Name of the template to use in the request. projects/project-id/locations/location-name/template/template-id",
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$"
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "response": {
                    "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse"
                  },
                  "request": {
                    "$ref": "TemplateGenerateContentRequest"
                  },
                  "path": "v1beta/{+name}:templateGenerateContent"
                },
                "modifyLock": {
                  "httpMethod": "POST",
                  "response": {
                    "$ref": "ModifyLockResponse"
                  },
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:modifyLock",
                  "path": "v1beta/{+name}:modifyLock",
                  "description": "Updates the Lock state on a PromptTemplate",
                  "id": "firebasevertexai.projects.locations.templates.modifyLock",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameterOrder": [
                    "name"
                  ],
                  "request": {
                    "$ref": "ModifyLockRequest"
                  },
                  "parameters": {
                    "name": {
                      "type": "string",
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "required": true,
                      "description": "Required. The name of the PromptTemplate resource to update the lock on. Format: projects/{project}/locations/{location}/templates/{prompt_template}"
                    }
                  }
                },
                "get": {
                  "description": "Gets a PromptTemplate.",
                  "response": {
                    "$ref": "PromptTemplate"
                  },
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "GET",
                  "path": "v1beta/{+name}",
                  "parameters": {
                    "name": {
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "description": "Required. The name of the PromptTemplate resource. Format: projects/{project}/locations/{location}/templates/{prompt_template}",
                      "required": true,
                      "type": "string",
                      "location": "path"
                    }
                  },
                  "id": "firebasevertexai.projects.locations.templates.get",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}"
                },
                "create": {
                  "httpMethod": "POST",
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "PromptTemplate"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates",
                  "path": "v1beta/{+parent}/templates",
                  "parameters": {
                    "regionalPropagationDisabled": {
                      "location": "query",
                      "type": "boolean",
                      "description": "Optional. For global endpoints only. If true, the PromptTemplate will be created in global only. Otherwise, the PromptTemplate will _also_ be replicated to all regions where applicable."
                    },
                    "promptTemplateId": {
                      "location": "query",
                      "description": "Optional. The unique ID to use for the PromptTemplate, which will become the final component of the PromptTemplate's resource name. It can contain only lowercase letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and a 63-character maximum. If not provided, a system-generated ID will be used.",
                      "type": "string"
                    },
                    "validateOnly": {
                      "type": "boolean",
                      "location": "query",
                      "description": "Optional. If set to true, the request will be validated but not executed."
                    },
                    "parent": {
                      "description": "Required. The parent resource where this PromptTemplate will be created. Format: projects/{project}/locations/{location}",
                      "type": "string",
                      "required": true,
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+$"
                    }
                  },
                  "id": "firebasevertexai.projects.locations.templates.create",
                  "description": "Creates a new PromptTemplate.",
                  "request": {
                    "$ref": "PromptTemplate"
                  }
                },
                "list": {
                  "description": "Lists PromptTemplates.",
                  "httpMethod": "GET",
                  "path": "v1beta/{+parent}/templates",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates",
                  "id": "firebasevertexai.projects.locations.templates.list",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "view": {
                      "description": "Optional. The view to return. If not specified, the default view is FULL.",
                      "enumDescriptions": [
                        "The default / unset value. The API will default to the FULL view.",
                        "Include all fields except template_string.",
                        "Include all fields. This is the default view."
                      ],
                      "enum": [
                        "PROMPT_TEMPLATE_VIEW_UNSPECIFIED",
                        "PROMPT_TEMPLATE_VIEW_BASIC",
                        "PROMPT_TEMPLATE_VIEW_FULL"
                      ],
                      "location": "query",
                      "type": "string"
                    },
                    "parent": {
                      "type": "string",
                      "description": "Required. The parent resource where this PromptTemplate will be created. Format: projects/{project}/locations/{location}",
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "required": true
                    },
                    "pageSize": {
                      "type": "integer",
                      "location": "query",
                      "format": "int32",
                      "description": "Optional. The maximum number of PromptTemplates to return. The service may return fewer than this value. If unspecified, at most 50 PromptTemplates will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000."
                    },
                    "pageToken": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. A page token, received from a previous `ListPromptTemplates` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromptTemplates` must match the call that provided the page token."
                    },
                    "filter": {
                      "type": "string",
                      "description": "Optional. The filter to apply to the list of PromptTemplates.",
                      "location": "query"
                    }
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "ListPromptTemplatesResponse"
                  }
                },
                "templateStreamGenerateContent": {
                  "path": "v1beta/{+name}:templateStreamGenerateContent",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "POST",
                  "description": "Generate content with multimodal inputs and streaming outputs using a server-side prompt template.",
                  "id": "firebasevertexai.projects.locations.templates.templateStreamGenerateContent",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:templateStreamGenerateContent",
                  "parameterOrder": [
                    "name"
                  ],
                  "response": {
                    "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse"
                  },
                  "request": {
                    "$ref": "TemplateGenerateContentRequest"
                  },
                  "parameters": {
                    "name": {
                      "type": "string",
                      "required": true,
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "description": "Required. Name of the template to use in the request. projects/project-id/locations/location-name/template/template-id"
                    }
                  }
                },
                "patch": {
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "id": "firebasevertexai.projects.locations.templates.patch",
                  "parameterOrder": [
                    "name"
                  ],
                  "request": {
                    "$ref": "PromptTemplate"
                  },
                  "response": {
                    "$ref": "PromptTemplate"
                  },
                  "httpMethod": "PATCH",
                  "path": "v1beta/{+name}",
                  "description": "Updates a PromptTemplate.",
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}",
                  "parameters": {
                    "validateOnly": {
                      "description": "Optional. If set to true, the request will be validated but not executed.",
                      "location": "query",
                      "type": "boolean"
                    },
                    "name": {
                      "location": "path",
                      "type": "string",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "description": "Identifier. The resource name of the PromptTemplate. Format: projects/{project}/locations/{location}/templates/{prompt_template}"
                    },
                    "updateMask": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. The list of fields to update.",
                      "format": "google-fieldmask"
                    },
                    "allowMissing": {
                      "type": "boolean",
                      "location": "query",
                      "description": "Optional. If set to true and the PromptTemplate does not already exist, it will be created."
                    },
                    "regionalPropagationDisabled": {
                      "type": "boolean",
                      "location": "query",
                      "description": "Optional. For global endpoints only. If true, the PromptTemplate will be updated in global only. Otherwise, the PromptTemplate will _also_ be updated in all regions where applicable."
                    }
                  }
                },
                "templatePredict": {
                  "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:templatePredict",
                  "path": "v1beta/{+name}:templatePredict",
                  "parameterOrder": [
                    "name"
                  ],
                  "parameters": {
                    "name": {
                      "description": "Required. Name of the template to use in the request. projects/project-id/locations/location-name/template/template-id",
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path",
                      "required": true,
                      "type": "string"
                    }
                  },
                  "description": "Perform an online prediction using a server-side prompt template.",
                  "request": {
                    "$ref": "TemplateGenerateContentRequest"
                  },
                  "id": "firebasevertexai.projects.locations.templates.templatePredict",
                  "httpMethod": "POST",
                  "response": {
                    "$ref": "GoogleCloudAiplatformV1beta1PredictResponse"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ]
                }
              }
            }
          },
          "methods": {
            "getConfig": {
              "response": {
                "$ref": "Config"
              },
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Required. The resource name of the config. Format: projects/{project}/locations/{location}/config",
                  "location": "path",
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+/config$"
                }
              },
              "id": "firebasevertexai.projects.locations.getConfig",
              "description": "Fetches the current configuration for the given project. Currently the only supported location is \"global\".",
              "path": "v1beta/{+name}",
              "httpMethod": "GET",
              "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/config"
            },
            "updateConfig": {
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "response": {
                "$ref": "Config"
              },
              "httpMethod": "PATCH",
              "request": {
                "$ref": "Config"
              },
              "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/config",
              "id": "firebasevertexai.projects.locations.updateConfig",
              "description": "Updates the current configuration for the specified project. Currently the only supported location is \"global\".",
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+/config$",
                  "type": "string",
                  "location": "path",
                  "description": "Identifier. The resource name of the config. Format: projects/{project}/locations/{location}/config"
                },
                "updateMask": {
                  "location": "query",
                  "description": "Optional. A comma-separated list of names of fields in the DebugToken to update. Example: `telemetry_config.mode`.",
                  "type": "string",
                  "format": "google-fieldmask"
                }
              }
            }
          }
        },
        "templates": {
          "methods": {
            "templateStreamGenerateContent": {
              "path": "v1beta/{+name}:templateStreamGenerateContent",
              "id": "firebasevertexai.projects.templates.templateStreamGenerateContent",
              "parameterOrder": [
                "name"
              ],
              "description": "Generate content with multimodal inputs and streaming outputs using a server-side prompt template.",
              "parameters": {
                "name": {
                  "description": "Required. Name of the template to use in the request. projects/project-id/locations/location-name/template/template-id",
                  "required": true,
                  "pattern": "^projects/[^/]+/templates/[^/]+$",
                  "type": "string",
                  "location": "path"
                }
              },
              "flatPath": "v1beta/projects/{projectsId}/templates/{templatesId}:templateStreamGenerateContent",
              "response": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponse"
              },
              "request": {
                "$ref": "TemplateGenerateContentRequest"
              },
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "httpMethod": "POST"
            },
            "templateGenerateContent": {
              "httpMethod": "POST",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "response": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponse"
              },
              "request": {
                "$ref": "TemplateGenerateContentRequest"
              },
              "id": "firebasevertexai.projects.templates.templateGenerateContent",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "description": "Required. Name of the template to use in the request. projects/project-id/locations/location-name/template/template-id",
                  "type": "string",
                  "pattern": "^projects/[^/]+/templates/[^/]+$",
                  "location": "path",
                  "required": true
                }
              },
              "path": "v1beta/{+name}:templateGenerateContent",
              "flatPath": "v1beta/projects/{projectsId}/templates/{templatesId}:templateGenerateContent",
              "description": "Generate content with multimodal inputs using a server-side prompt template."
            }
          }
        },
        "models": {
          "methods": {
            "streamGenerateContent": {
              "description": "Generate content with multimodal inputs with streaming support.",
              "response": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponse"
              },
              "path": "v1beta/{+model}:streamGenerateContent",
              "httpMethod": "POST",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "parameterOrder": [
                "model"
              ],
              "request": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentRequest"
              },
              "id": "firebasevertexai.projects.models.streamGenerateContent",
              "parameters": {
                "model": {
                  "type": "string",
                  "required": true,
                  "pattern": "^projects/[^/]+/models/[^/]+$",
                  "location": "path",
                  "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
                }
              },
              "flatPath": "v1beta/projects/{projectsId}/models/{modelsId}:streamGenerateContent"
            },
            "generateContent": {
              "request": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentRequest"
              },
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1beta/{+model}:generateContent",
              "description": "Generate content with multimodal inputs.",
              "id": "firebasevertexai.projects.models.generateContent",
              "parameterOrder": [
                "model"
              ],
              "httpMethod": "POST",
              "flatPath": "v1beta/projects/{projectsId}/models/{modelsId}:generateContent",
              "response": {
                "$ref": "GoogleAiGenerativelanguageV1betaGenerateContentResponse"
              },
              "parameters": {
                "model": {
                  "pattern": "^projects/[^/]+/models/[^/]+$",
                  "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
                  "required": true,
                  "type": "string",
                  "location": "path"
                }
              }
            },
            "countTokens": {
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "response": {
                "$ref": "GoogleAiGenerativelanguageV1betaCountTokensResponse"
              },
              "httpMethod": "POST",
              "description": "Perform a token counting.",
              "parameters": {
                "model": {
                  "pattern": "^projects/[^/]+/models/[^/]+$",
                  "location": "path",
                  "type": "string",
                  "required": true,
                  "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`"
                }
              },
              "id": "firebasevertexai.projects.models.countTokens",
              "path": "v1beta/{+model}:countTokens",
              "request": {
                "$ref": "GoogleAiGenerativelanguageV1betaCountTokensRequest"
              },
              "parameterOrder": [
                "model"
              ],
              "flatPath": "v1beta/projects/{projectsId}/models/{modelsId}:countTokens"
            }
          }
        }
      }
    }
  },
  "protocol": "rest",
  "mtlsRootUrl": "https://firebasevertexai.mtls.googleapis.com/",
  "revision": "20261109",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "ownerName": "Google",
  "version_module": true,
  "baseUrl": "https://firebasevertexai.googleapis.com/",
  "rootUrl": "https://firebasevertexai.googleapis.com/",
  "version": "v1beta",
  "id": "firebasevertexai:v1beta",
  "discoveryVersion": "v1",
  "ownerDomain": "google.com",
  "kind": "discovery#restDescription",
  "canonicalName": "Firebase Vertex AI",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        }
      }
    }
  },
  "fullyEncodeReservedExpansion": true
}
