From c1849c7d02461cf2ac5a41af7312469aa3fdd549 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 22 Dec 2024 00:30:24 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2936) --- aiplatform/v1/aiplatform-api.json | 4 +- aiplatform/v1/aiplatform-gen.go | 3 +- aiplatform/v1beta1/aiplatform-api.json | 37 +++++++++++++++++-- aiplatform/v1beta1/aiplatform-gen.go | 51 ++++++++++++++++++++++---- 4 files changed, 79 insertions(+), 16 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index a524c0e0e3..7d261ba2bc 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -19327,7 +19327,7 @@ } } }, - "revision": "20241210", + "revision": "20241214", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -20936,7 +20936,7 @@ "type": "object" }, "GoogleCloudAiplatformV1Blob": { - "description": "Content blob. It's preferred to send as text directly rather than raw bytes.", + "description": "Content blob.", "id": "GoogleCloudAiplatformV1Blob", "properties": { "data": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index ed18cf4127..207b636688 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -3860,8 +3860,7 @@ func (s GoogleCloudAiplatformV1BleuSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1Blob: Content blob. It's preferred to send as text -// directly rather than raw bytes. +// GoogleCloudAiplatformV1Blob: Content blob. type GoogleCloudAiplatformV1Blob struct { // Data: Required. Raw bytes. Data string `json:"data,omitempty"` diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 5595f94e87..9e8e6e39c4 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -21964,7 +21964,7 @@ } } }, - "revision": "20241210", + "revision": "20241214", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -23781,7 +23781,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1Blob": { - "description": "Content blob. It's preferred to send as text directly rather than raw bytes.", + "description": "Content blob.", "id": "GoogleCloudAiplatformV1beta1Blob", "properties": { "data": { @@ -26578,7 +26578,7 @@ }, "pipelineRootDirectory": { "deprecated": true, - "description": "Required. Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.", + "description": "Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.", "type": "string" }, "studentModel": { @@ -26588,7 +26588,7 @@ }, "trainingDatasetUri": { "deprecated": true, - "description": "Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.", + "description": "Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.", "type": "string" }, "tunedTeacherModelSource": { @@ -37346,6 +37346,10 @@ "description": "Optional. Text part (can be code).", "type": "string" }, + "thought": { + "description": "Optional. Indicates if the part is thought from the model.", + "type": "boolean" + }, "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." @@ -39872,6 +39876,10 @@ "$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser", "description": "The Layout Parser to use for RagFiles." }, + "llmParser": { + "$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser", + "description": "The LLM Parser to use for RagFiles." + }, "useAdvancedPdfParsing": { "deprecated": true, "description": "Whether to use advanced PDF parsing.", @@ -39907,6 +39915,26 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser": { + "description": "Specifies the advanced parsing for RagFiles.", + "id": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser", + "properties": { + "customParsingPrompt": { + "description": "The prompt to use for parsing. If not specified, a default prompt will be used.", + "type": "string" + }, + "maxParsingRequestsPerMin": { + "description": "The maximum number of requests the job is allowed to make to the LLM model per minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If unspecified, a default value of 5000 QPM would be used.", + "format": "int32", + "type": "integer" + }, + "modelName": { + "description": "The name of a LLM model used for parsing. Format: `gemini-1.5-pro-002`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagFileTransformationConfig": { "description": "Specifies the transformation config for RagFiles.", "id": "GoogleCloudAiplatformV1beta1RagFileTransformationConfig", @@ -49556,6 +49584,7 @@ "description": "Tuning Spec for open sourced and third party Partner models." }, "pipelineJob": { + "deprecated": true, "description": "Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.", "readOnly": true, "type": "string" diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 07908e3bcb..c4a4eea6d0 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -4429,8 +4429,7 @@ func (s GoogleCloudAiplatformV1beta1BleuSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1Blob: Content blob. It's preferred to send as -// text directly rather than raw bytes. +// GoogleCloudAiplatformV1beta1Blob: Content blob. type GoogleCloudAiplatformV1beta1Blob struct { // Data: Required. Raw bytes. Data string `json:"data,omitempty"` @@ -8411,16 +8410,15 @@ type GoogleCloudAiplatformV1beta1DistillationSpec struct { BaseTeacherModel string `json:"baseTeacherModel,omitempty"` // HyperParameters: Optional. Hyperparameters for Distillation. HyperParameters *GoogleCloudAiplatformV1beta1DistillationHyperParameters `json:"hyperParameters,omitempty"` - // PipelineRootDirectory: Required. Deprecated. A path in a Cloud Storage - // bucket, which will be treated as the root output directory of the - // distillation pipeline. It is used by the system to generate the paths of - // output artifacts. + // PipelineRootDirectory: Deprecated. A path in a Cloud Storage bucket, which + // will be treated as the root output directory of the distillation pipeline. + // It is used by the system to generate the paths of output artifacts. PipelineRootDirectory string `json:"pipelineRootDirectory,omitempty"` // StudentModel: The student model that is being tuned, e.g., // "google/gemma-2b-1.1-it". Deprecated. Use base_model instead. StudentModel string `json:"studentModel,omitempty"` - // TrainingDatasetUri: Required. Cloud Storage path to file containing training - // dataset for tuning. The dataset must be formatted as a JSONL file. + // TrainingDatasetUri: Deprecated. Cloud Storage path to file containing + // training dataset for tuning. The dataset must be formatted as a JSONL file. TrainingDatasetUri string `json:"trainingDatasetUri,omitempty"` // TunedTeacherModelSource: The resource name of the Tuned teacher model. // Format: `projects/{project}/locations/{location}/models/{model}`. @@ -23360,6 +23358,8 @@ type GoogleCloudAiplatformV1beta1Part struct { InlineData *GoogleCloudAiplatformV1beta1Blob `json:"inlineData,omitempty"` // Text: Optional. Text part (can be code). Text string `json:"text,omitempty"` + // Thought: Optional. Indicates if the part is thought from the model. + Thought bool `json:"thought,omitempty"` // VideoMetadata: Optional. Video metadata. The metadata should only be // specified while the video data is presented in inline_data or file_data. VideoMetadata *GoogleCloudAiplatformV1beta1VideoMetadata `json:"videoMetadata,omitempty"` @@ -26767,6 +26767,8 @@ type GoogleCloudAiplatformV1beta1RagFileParsingConfig struct { AdvancedParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigAdvancedParser `json:"advancedParser,omitempty"` // LayoutParser: The Layout Parser to use for RagFiles. LayoutParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser `json:"layoutParser,omitempty"` + // LlmParser: The LLM Parser to use for RagFiles. + LlmParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser `json:"llmParser,omitempty"` // UseAdvancedPdfParsing: Whether to use advanced PDF parsing. UseAdvancedPdfParsing bool `json:"useAdvancedPdfParsing,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvancedParser") to @@ -26845,6 +26847,39 @@ func (s GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser: Specifies the +// advanced parsing for RagFiles. +type GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser struct { + // CustomParsingPrompt: The prompt to use for parsing. If not specified, a + // default prompt will be used. + CustomParsingPrompt string `json:"customParsingPrompt,omitempty"` + // MaxParsingRequestsPerMin: The maximum number of requests the job is allowed + // to make to the LLM model per minute. Consult + // https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your + // document size to set an appropriate value here. If unspecified, a default + // value of 5000 QPM would be used. + MaxParsingRequestsPerMin int64 `json:"maxParsingRequestsPerMin,omitempty"` + // ModelName: The name of a LLM model used for parsing. Format: + // `gemini-1.5-pro-002` + ModelName string `json:"modelName,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomParsingPrompt") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CustomParsingPrompt") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagFileTransformationConfig: Specifies the // transformation config for RagFiles. type GoogleCloudAiplatformV1beta1RagFileTransformationConfig struct {