From 2c8e9f52e6546384228886d76d8f43a76c898865 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 10 May 2024 07:11:50 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- aiplatform/v1/aiplatform-api.json | 430 ++++- aiplatform/v1/aiplatform-gen.go | 562 ++++-- aiplatform/v1beta1/aiplatform-api.json | 922 +++++++++- aiplatform/v1beta1/aiplatform-gen.go | 1631 +++++++++++++++-- androidpublisher/v3/androidpublisher-api.json | 4 +- androidpublisher/v3/androidpublisher-gen.go | 4 +- chat/v1/chat-api.json | 2 +- chat/v1/chat-gen.go | 10 +- .../v1alpha1/contactcenteraiplatform-api.json | 34 +- .../v1alpha1/contactcenteraiplatform-gen.go | 12 + container/v1/container-api.json | 28 +- container/v1/container-gen.go | 18 + content/v2.1/content-api.json | 18 +- content/v2.1/content-gen.go | 25 +- firebaseml/v2beta/firebaseml-api.json | 12 +- firebaseml/v2beta/firebaseml-gen.go | 8 + migrationcenter/v1/migrationcenter-api.json | 4 +- migrationcenter/v1/migrationcenter-gen.go | 4 +- .../v1alpha1/migrationcenter-api.json | 277 ++- .../v1alpha1/migrationcenter-gen.go | 315 +++- playintegrity/v1/playintegrity-api.json | 37 +- playintegrity/v1/playintegrity-gen.go | 38 +- pubsub/v1/pubsub-api.json | 8 +- pubsub/v1/pubsub-gen.go | 2 + sts/v1/sts-api.json | 4 +- sts/v1/sts-gen.go | 3 +- 26 files changed, 3911 insertions(+), 501 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index d93ba243fc..1238045553 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -2230,6 +2230,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.datasets.datasetVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the DatasetVersion.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "restore": { "description": "Restores a dataset version.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", @@ -16204,7 +16238,7 @@ } } }, - "revision": "20240501", + "revision": "20240507", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -16693,6 +16727,10 @@ "description": "The content of a single message from a participant.", "id": "CloudAiNlLlmProtoServiceContent", "properties": { + "isCached": { + "description": "If true, the content is from a cached content.", + "type": "boolean" + }, "parts": { "description": "The parts of the message.", "items": { @@ -16984,7 +17022,7 @@ "type": "object" }, "CloudAiNlLlmProtoServiceRaiResult": { - "description": "The RAI results for a given text.", + "description": "The RAI results for a given text. Next ID: 12", "id": "CloudAiNlLlmProtoServiceRaiResult", "properties": { "aidaRecitationResult": { @@ -17012,6 +17050,10 @@ "$ref": "LearningGenaiRootLanguageFilterResult", "description": "Language filter result from SAFT LangId." }, + "mmRecitationResult": { + "$ref": "LearningGenaiRecitationMMRecitationCheckResult", + "description": "Multi modal recitation results. It will be populated as long as Multi modal Recitation processor is invoked." + }, "raiSignals": { "description": "The RAI signals for the text.", "items": { @@ -19676,6 +19718,10 @@ "description": "Required. Points to a YAML file stored on Google Cloud Storage describing additional information about the Dataset. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/.", "type": "string" }, + "modelReference": { + "description": "Optional. Reference to the public base model last used by the dataset. Only set for prompt datasets.", + "type": "string" + }, "name": { "description": "Output only. The resource name of the Dataset.", "readOnly": true, @@ -19725,6 +19771,11 @@ "readOnly": true, "type": "any" }, + "modelReference": { + "description": "Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the DatasetVersion.", "readOnly": true, @@ -21677,7 +21728,7 @@ "properties": { "bigQuery": { "$ref": "GoogleCloudAiplatformV1FeatureGroupBigQuery", - "description": "Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source, which is required to have an entity_id and a feature_timestamp column in the source." + "description": "Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source. The BigQuery source table or view must have at least one entity ID column and a column named `feature_timestamp`." }, "createTime": { "description": "Output only. Timestamp when this FeatureGroup was created.", @@ -22664,22 +22715,6 @@ "description": "Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity. This field is the maximum number of matches with the same crowding tag.", "format": "int32", "type": "integer" - }, - "rrf": { - "$ref": "GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF", - "description": "Optional. Represents RRF algorithm that combines search results." - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF": { - "description": "Parameters for RRF algorithm that combines search results.", - "id": "GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF", - "properties": { - "alpha": { - "description": "Required. Users can provide an alpha value to give more weight to dense vs sparse results. For example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense.", - "format": "float", - "type": "number" } }, "type": "object" @@ -22728,11 +22763,6 @@ "description": "The distance between the neighbor and the dense embedding query.", "format": "double", "type": "number" - }, - "sparseDistance": { - "description": "The distance between the neighbor and the query sparse_embedding.", - "format": "double", - "type": "number" } }, "type": "object" @@ -22989,6 +23019,22 @@ "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" }, + "responseStyle": { + "description": "Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED", + "enum": [ + "RESPONSE_STYLE_UNSPECIFIED", + "RESPONSE_STYLE_PRECISE", + "RESPONSE_STYLE_BALANCED", + "RESPONSE_STYLE_CREATIVE" + ], + "enumDescriptions": [ + "response style unspecified.", + "Precise response.", + "Default response style.", + "Creative response style." + ], + "type": "string" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -23527,10 +23573,6 @@ "$ref": "GoogleCloudAiplatformV1IndexDatapointRestriction" }, "type": "array" - }, - "sparseEmbedding": { - "$ref": "GoogleCloudAiplatformV1IndexDatapointSparseEmbedding", - "description": "Optional. Feature embedding vector for sparse index." } }, "type": "object" @@ -23619,29 +23661,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1IndexDatapointSparseEmbedding": { - "description": "Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions.", - "id": "GoogleCloudAiplatformV1IndexDatapointSparseEmbedding", - "properties": { - "dimensions": { - "description": "Optional. The list of indexes for the embedding values of the sparse vector.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "values": { - "description": "Optional. The list of embedding values of the sparse vector.", - "items": { - "format": "float", - "type": "number" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1IndexEndpoint": { "description": "Indexes are deployed into it. An IndexEndpoint can have multiple DeployedIndexes.", "id": "GoogleCloudAiplatformV1IndexEndpoint", @@ -23754,12 +23773,6 @@ "readOnly": true, "type": "integer" }, - "sparseVectorsCount": { - "description": "Output only. The number of sparse vectors in the Index.", - "format": "int64", - "readOnly": true, - "type": "string" - }, "vectorsCount": { "description": "Output only. The number of dense vectors in the Index.", "format": "int64", @@ -26856,6 +26869,11 @@ "format": "int64", "type": "string" }, + "invalidSparseRecordCount": { + "description": "Number of sparse records in this file we skipped due to validate errors.", + "format": "int64", + "type": "string" + }, "partialErrors": { "description": "The detail information of the partial failures encountered for those invalid records that couldn't be parsed. Up to 50 partial errors will be reported.", "items": { @@ -26871,6 +26889,11 @@ "description": "Number of records in this file that were successfully processed.", "format": "int64", "type": "string" + }, + "validSparseRecordCount": { + "description": "Number of sparse records in this file that were successfully processed.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -26903,9 +26926,7 @@ "MULTIPLE_VALUES", "INVALID_NUMERIC_VALUE", "INVALID_ENCODING", - "INVALID_SPARSE_DIMENSIONS", - "INVALID_TOKEN_VALUE", - "INVALID_SPARSE_EMBEDDING" + "INVALID_TOKEN_VALUE" ], "enumDescriptions": [ "Default, shall not be used.", @@ -26922,9 +26943,7 @@ "Numeric restrict has multiple values specified.", "Numeric restrict has invalid numeric value specified.", "File is not in UTF_8 format.", - "Error parsing sparse dimensions field.", - "Token restrict value is invalid.", - "Invalid sparse embedding." + "Token restrict value is invalid." ], "type": "string" }, @@ -27217,6 +27236,16 @@ "description": "Required. The user email of the NotebookRuntime.", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "Output only. The service account that the NotebookRuntime workload runs as.", "readOnly": true, @@ -35550,6 +35579,10 @@ "description": "Optional. The description of the TuningJob.", "type": "string" }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1EncryptionSpec", + "description": "Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key." + }, "endTime": { "description": "Output only. Time when the TuningJob entered any of the following JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `JOB_STATE_EXPIRED`.", "format": "google-datetime", @@ -38280,6 +38313,19 @@ }, "type": "object" }, + "LearningGenaiRecitationContentChunkRecitationCheckResult": { + "description": "Recitation check result for a single content chunk.", + "id": "LearningGenaiRecitationContentChunkRecitationCheckResult", + "properties": { + "imageResult": { + "$ref": "LearningGenaiRecitationImageRecitationCheckResult" + }, + "textResult": { + "$ref": "LearningGenaiRecitationRecitationResult" + } + }, + "type": "object" + }, "LearningGenaiRecitationDocAttribution": { "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 30", "id": "LearningGenaiRecitationDocAttribution", @@ -39098,6 +39144,147 @@ }, "type": "object" }, + "LearningGenaiRecitationImageDocAttribution": { + "description": "Attribution information about the recited image.", + "id": "LearningGenaiRecitationImageDocAttribution", + "properties": { + "datasetName": { + "description": "Unique ID of the image.", + "enum": [ + "IMAGE_DATA_SET_UNSPECIFIED", + "JUNO_SHUTTERSTOCK_V1", + "JUNO_V1_HIPR", + "JUNO_V1_WEBLI_AESTHETICS_V2_4_5", + "JUNO_V1_TIGG_DATA_V1", + "JUNO_V1_PINTEREST_A", + "JUNO_V1_PINTEREST_B", + "JUNO_V1_IMAGEJOINS", + "JUNO_V1_M1", + "JUNO_V1_M2_MISC", + "JUNO_V1_M2_ART", + "JUNO_V1_DEVIANTAR", + "IMAGE_PASSAGE" + ], + "enumDescriptions": [ + "", + "go/tigg-shutterstock", + "go/hipr-in-tigg-notes", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "go/image-passage" + ], + "type": "string" + }, + "stringDocids": { + "description": "Doc ID to identify the image. These could be urls of images or amarna id.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRecitationImageRecitationCheckResult": { + "id": "LearningGenaiRecitationImageRecitationCheckResult", + "properties": { + "recitationAction": { + "description": "Only has NO_ACTION or BLOCK to start with.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "recitedImages": { + "description": "Images that are similar to the requested image.", + "items": { + "$ref": "LearningGenaiRecitationImageRecitationCheckResultSimilarImage" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationImageRecitationCheckResultSimilarImage": { + "id": "LearningGenaiRecitationImageRecitationCheckResultSimilarImage", + "properties": { + "docAttribution": { + "$ref": "LearningGenaiRecitationImageDocAttribution", + "description": "Attribution information about the image" + }, + "embeddingModel": { + "description": "The memorization embedding model that returned this image", + "enum": [ + "EMBEDDING_MODEL_UNSPECIFIED", + "STARBURST_V4", + "REISIM" + ], + "enumDescriptions": [ + "", + "Starburst V4, 64 float features.", + "Reisim, 128 Byte float feature" + ], + "type": "string" + }, + "imageId": { + "description": "Image ID corresponding of the image corresponding to the score. `image_id` serves for debugging purposes and can't be used by clients to retrieve an image.", + "format": "uint64", + "type": "string" + }, + "scores": { + "description": "Similarity score of requested image compared with image in training data.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRecitationMMRecitationCheckResult": { + "description": "Recitation check result for a stream of content chunks (e.g. a model response).", + "id": "LearningGenaiRecitationMMRecitationCheckResult", + "properties": { + "chunkResults": { + "items": { + "$ref": "LearningGenaiRecitationContentChunkRecitationCheckResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "Overall recommended recitation action for the content.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + } + }, + "type": "object" + }, "LearningGenaiRecitationRecitationResult": { "description": "The recitation result for one input", "id": "LearningGenaiRecitationRecitationResult", @@ -40772,6 +40959,7 @@ "type": "object" }, "LearningGenaiRootHarmSafetyCatCategories": { + "description": "LINT.ThenChange(//depot/google3/learning/genai/root/util/classifier/backends/grail/grail.cc)", "id": "LearningGenaiRootHarmSafetyCatCategories", "properties": { "categories": { @@ -40832,6 +41020,7 @@ "type": "object" }, "LearningGenaiRootHarmSpiiFilter": { + "description": "LINT.IfChange", "id": "LearningGenaiRootHarmSpiiFilter", "properties": { "usBankRoutingMicr": { @@ -40915,6 +41104,11 @@ "description": "Latency spent on prompt2query. The procedure generates a search-friendly query given the original prompt.", "format": "int64", "type": "string" + }, + "retrievalAugmentMilliseconds": { + "description": "Latency if use GroundedGeneration service for the whole retrieval \u0026 augmentation.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -40953,6 +41147,96 @@ }, "type": "object" }, + "LearningGenaiRootRequestMetrics": { + "id": "LearningGenaiRootRequestMetrics", + "properties": { + "audioMetrics": { + "$ref": "LearningGenaiRootRequestMetricsAudioMetrics", + "description": "Metrics for audio samples in the request." + }, + "imageMetrics": { + "$ref": "LearningGenaiRootRequestMetricsImageMetrics", + "description": "Metrics for image samples in the request." + }, + "textTokenCount": { + "description": "Number of text tokens extracted from the request.", + "format": "int32", + "type": "integer" + }, + "totalTokenCount": { + "description": "Total number of tokens in the request.", + "format": "int32", + "type": "integer" + }, + "videoMetrics": { + "$ref": "LearningGenaiRootRequestMetricsVideoMetrics", + "description": "Metrics for video samples in the request." + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsAudioMetrics": { + "id": "LearningGenaiRootRequestMetricsAudioMetrics", + "properties": { + "audioDuration": { + "description": "Duration of the audio sample in seconds.", + "format": "google-duration", + "type": "string" + }, + "audioTokenCount": { + "description": "Number of tokens derived directly from audio data.", + "format": "int32", + "type": "integer" + }, + "numAudioFrames": { + "description": "Number of audio frames in the audio.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsImageMetrics": { + "id": "LearningGenaiRootRequestMetricsImageMetrics", + "properties": { + "imageTokenCount": { + "description": "Number of tokens extracted from image bytes.", + "format": "int32", + "type": "integer" + }, + "numImages": { + "description": "Number of images in the request.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsVideoMetrics": { + "id": "LearningGenaiRootRequestMetricsVideoMetrics", + "properties": { + "audioSample": { + "$ref": "LearningGenaiRootRequestMetricsAudioMetrics", + "description": "Metrics associated with audio sample in the video." + }, + "numVideoFrames": { + "description": "Number of video frames in the video.", + "format": "int32", + "type": "integer" + }, + "videoDuration": { + "description": "Duration of the video sample in seconds.", + "format": "google-duration", + "type": "string" + }, + "videoFramesTokenCount": { + "description": "Number of tokens extracted from video frames.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "LearningGenaiRootRequestResponseTakedownResult": { "id": "LearningGenaiRootRequestResponseTakedownResult", "properties": { @@ -41424,7 +41708,7 @@ "type": "object" }, "LearningServingLlmMessageMetadata": { - "description": "LINT.IfChange This metadata contains additional information required for debugging. Next ID: 28", + "description": "LINT.IfChange This metadata contains additional information required for debugging.", "id": "LearningServingLlmMessageMetadata", "properties": { "atlasMetadata": { @@ -41500,6 +41784,19 @@ "description": "The LM prefix used to generate this response.", "type": "string" }, + "lmrootInternalRequestMetrics": { + "$ref": "LearningGenaiRootRequestMetrics", + "description": "FOR LMROOT INTERNAL USE ONLY. Externally, use learning.genai.root.RequestMetadata.RequestMetrics. Request metrics per modality including token count, duration, num_frames." + }, + "mmRecitationResult": { + "$ref": "LearningGenaiRecitationMMRecitationCheckResult", + "description": "Multi modal recitation results. It will be populated as long as Multi modal Recitation processor is invoked." + }, + "numRewinds": { + "description": "Number of Controlled Decoding rewind and repeats that have happened for this response.", + "format": "uint32", + "type": "integer" + }, "originalText": { "description": "The original text generated by LLM. This is the raw output for debugging purposes.", "type": "string" @@ -41525,11 +41822,6 @@ "$ref": "LearningGenaiRecitationRecitationResult", "description": "Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome." }, - "returnTokenCount": { - "description": "NOT IMPLEMENTED TODO (b/334187574) Remove this field after Labs migrates to per_stream_returned_token_count and total_returned_token_count.", - "format": "int32", - "type": "integer" - }, "scores": { "description": "All the different scores for a message are logged here.", "items": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index c7a55bf0b1..329b36bfce 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1882,17 +1882,19 @@ func (s *CloudAiNlLlmProtoServiceCitationMetadata) MarshalJSON() ([]byte, error) // CloudAiNlLlmProtoServiceContent: The content of a single message from a // participant. type CloudAiNlLlmProtoServiceContent struct { + // IsCached: If true, the content is from a cached content. + IsCached bool `json:"isCached,omitempty"` // Parts: The parts of the message. Parts []*CloudAiNlLlmProtoServicePart `json:"parts,omitempty"` // Role: The role of the current conversation participant. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parts") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "IsCached") 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. "Parts") to include in API + // NullFields is a list of field names (e.g. "IsCached") 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. @@ -2249,7 +2251,8 @@ func (s *CloudAiNlLlmProtoServicePromptFeedback) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. +// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. Next +// ID: 12 type CloudAiNlLlmProtoServiceRaiResult struct { // AidaRecitationResult: Recitation result from Aida recitation checker. AidaRecitationResult *LanguageLabsAidaTrustRecitationProtoRecitationResult `json:"aidaRecitationResult,omitempty"` @@ -2264,6 +2267,9 @@ type CloudAiNlLlmProtoServiceRaiResult struct { Filtered bool `json:"filtered,omitempty"` // LanguageFilterResult: Language filter result from SAFT LangId. LanguageFilterResult *LearningGenaiRootLanguageFilterResult `json:"languageFilterResult,omitempty"` + // MmRecitationResult: Multi modal recitation results. It will be populated as + // long as Multi modal Recitation processor is invoked. + MmRecitationResult *LearningGenaiRecitationMMRecitationCheckResult `json:"mmRecitationResult,omitempty"` // RaiSignals: The RAI signals for the text. RaiSignals []*CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignals,omitempty"` // TranslationRequestInfos: Translation request info during RAI for debugging @@ -6008,6 +6014,9 @@ type GoogleCloudAiplatformV1Dataset struct { // defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used // here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/. MetadataSchemaUri string `json:"metadataSchemaUri,omitempty"` + // ModelReference: Optional. Reference to the public base model last used by + // the dataset. Only set for prompt datasets. + ModelReference string `json:"modelReference,omitempty"` // Name: Output only. The resource name of the Dataset. Name string `json:"name,omitempty"` // SavedQueries: All SavedQueries belong to the Dataset will be returned in @@ -6055,6 +6064,9 @@ type GoogleCloudAiplatformV1DatasetVersion struct { // Metadata: Required. Output only. Additional information about the // DatasetVersion. Metadata interface{} `json:"metadata,omitempty"` + // ModelReference: Output only. Reference to the public base model last used by + // the dataset version. Only set for prompt dataset versions. + ModelReference string `json:"modelReference,omitempty"` // Name: Output only. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` // UpdateTime: Output only. Timestamp when this DatasetVersion was last @@ -9015,9 +9027,9 @@ func (s *GoogleCloudAiplatformV1Feature) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1FeatureGroup: Vertex AI Feature Group. type GoogleCloudAiplatformV1FeatureGroup struct { // BigQuery: Indicates that features for this group come from BigQuery - // Table/View. By default treats the source as a sparse time series source, - // which is required to have an entity_id and a feature_timestamp column in the - // source. + // Table/View. By default treats the source as a sparse time series source. The + // BigQuery source table or view must have at least one entity ID column and a + // column named `feature_timestamp`. BigQuery *GoogleCloudAiplatformV1FeatureGroupBigQuery `json:"bigQuery,omitempty"` // CreateTime: Output only. Timestamp when this FeatureGroup was created. CreateTime string `json:"createTime,omitempty"` @@ -10519,8 +10531,6 @@ type GoogleCloudAiplatformV1FindNeighborsRequestQuery struct { // crowding_attribute. It's used for improving result diversity. This field is // the maximum number of matches with the same crowding tag. PerCrowdingAttributeNeighborCount int64 `json:"perCrowdingAttributeNeighborCount,omitempty"` - // Rrf: Optional. Represents RRF algorithm that combines search results. - Rrf *GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF `json:"rrf,omitempty"` // ForceSendFields is a list of field names (e.g. "ApproximateNeighborCount") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10553,45 +10563,6 @@ func (s *GoogleCloudAiplatformV1FindNeighborsRequestQuery) UnmarshalJSON(data [] return nil } -// GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF: Parameters for RRF -// algorithm that combines search results. -type GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF struct { - // Alpha: Required. Users can provide an alpha value to give more weight to - // dense vs sparse results. For example, if the alpha is 0, we only return - // sparse and if the alpha is 1, we only return dense. - Alpha float64 `json:"alpha,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alpha") 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. "Alpha") 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 *GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF - var s1 struct { - Alpha gensupport.JSONFloat64 `json:"alpha"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Alpha = float64(s1.Alpha) - return nil -} - // GoogleCloudAiplatformV1FindNeighborsResponse: The response message for // MatchService.FindNeighbors. type GoogleCloudAiplatformV1FindNeighborsResponse struct { @@ -10652,9 +10623,6 @@ type GoogleCloudAiplatformV1FindNeighborsResponseNeighbor struct { Datapoint *GoogleCloudAiplatformV1IndexDatapoint `json:"datapoint,omitempty"` // Distance: The distance between the neighbor and the dense embedding query. Distance float64 `json:"distance,omitempty"` - // SparseDistance: The distance between the neighbor and the query - // sparse_embedding. - SparseDistance float64 `json:"sparseDistance,omitempty"` // ForceSendFields is a list of field names (e.g. "Datapoint") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10676,8 +10644,7 @@ func (s *GoogleCloudAiplatformV1FindNeighborsResponseNeighbor) MarshalJSON() ([] func (s *GoogleCloudAiplatformV1FindNeighborsResponseNeighbor) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudAiplatformV1FindNeighborsResponseNeighbor var s1 struct { - Distance gensupport.JSONFloat64 `json:"distance"` - SparseDistance gensupport.JSONFloat64 `json:"sparseDistance"` + Distance gensupport.JSONFloat64 `json:"distance"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -10685,7 +10652,6 @@ func (s *GoogleCloudAiplatformV1FindNeighborsResponseNeighbor) UnmarshalJSON(dat return err } s.Distance = float64(s1.Distance) - s.SparseDistance = float64(s1.SparseDistance) return nil } @@ -11042,6 +11008,15 @@ type GoogleCloudAiplatformV1GenerationConfig struct { // prompted to output the appropriate response type, otherwise the behavior is // undefined. This is a preview feature. ResponseMimeType string `json:"responseMimeType,omitempty"` + // ResponseStyle: Optional. Control Three levels of creativity in the model + // output. Default: RESPONSE_STYLE_BALANCED + // + // Possible values: + // "RESPONSE_STYLE_UNSPECIFIED" - response style unspecified. + // "RESPONSE_STYLE_PRECISE" - Precise response. + // "RESPONSE_STYLE_BALANCED" - Default response style. + // "RESPONSE_STYLE_CREATIVE" - Creative response style. + ResponseStyle string `json:"responseStyle,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -11670,8 +11645,6 @@ type GoogleCloudAiplatformV1IndexDatapoint struct { // the database eligible for matching. This uses categorical tokens. See: // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering Restricts []*GoogleCloudAiplatformV1IndexDatapointRestriction `json:"restricts,omitempty"` - // SparseEmbedding: Optional. Feature embedding vector for sparse index. - SparseEmbedding *GoogleCloudAiplatformV1IndexDatapointSparseEmbedding `json:"sparseEmbedding,omitempty"` // ForceSendFields is a list of field names (e.g. "CrowdingTag") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -11822,50 +11795,6 @@ func (s *GoogleCloudAiplatformV1IndexDatapointRestriction) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1IndexDatapointSparseEmbedding: Feature embedding -// vector for sparse index. An array of numbers whose values are located in the -// specified dimensions. -type GoogleCloudAiplatformV1IndexDatapointSparseEmbedding struct { - // Dimensions: Optional. The list of indexes for the embedding values of the - // sparse vector. - Dimensions googleapi.Int64s `json:"dimensions,omitempty"` - // Values: Optional. The list of embedding values of the sparse vector. - Values []float64 `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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 *GoogleCloudAiplatformV1IndexDatapointSparseEmbedding) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1IndexDatapointSparseEmbedding - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1IndexDatapointSparseEmbedding) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1IndexDatapointSparseEmbedding - var s1 struct { - Values []gensupport.JSONFloat64 `json:"values"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Values = make([]float64, len(s1.Values)) - for i := range s1.Values { - s.Values[i] = float64(s1.Values[i]) - } - return nil -} - // GoogleCloudAiplatformV1IndexEndpoint: Indexes are deployed into it. An // IndexEndpoint can have multiple DeployedIndexes. type GoogleCloudAiplatformV1IndexEndpoint struct { @@ -11980,8 +11909,6 @@ func (s *GoogleCloudAiplatformV1IndexPrivateEndpoints) MarshalJSON() ([]byte, er type GoogleCloudAiplatformV1IndexStats struct { // ShardsCount: Output only. The number of shards in the Index. ShardsCount int64 `json:"shardsCount,omitempty"` - // SparseVectorsCount: Output only. The number of sparse vectors in the Index. - SparseVectorsCount int64 `json:"sparseVectorsCount,omitempty,string"` // VectorsCount: Output only. The number of dense vectors in the Index. VectorsCount int64 `json:"vectorsCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ShardsCount") to @@ -16538,6 +16465,9 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataContentValidat // InvalidRecordCount: Number of records in this file we skipped due to // validate errors. InvalidRecordCount int64 `json:"invalidRecordCount,omitempty,string"` + // InvalidSparseRecordCount: Number of sparse records in this file we skipped + // due to validate errors. + InvalidSparseRecordCount int64 `json:"invalidSparseRecordCount,omitempty,string"` // PartialErrors: The detail information of the partial failures encountered // for those invalid records that couldn't be parsed. Up to 50 partial errors // will be reported. @@ -16548,6 +16478,9 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataContentValidat // ValidRecordCount: Number of records in this file that were successfully // processed. ValidRecordCount int64 `json:"validRecordCount,omitempty,string"` + // ValidSparseRecordCount: Number of sparse records in this file that were + // successfully processed. + ValidSparseRecordCount int64 `json:"validSparseRecordCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "InvalidRecordCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -16594,9 +16527,7 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataRecordError st // "INVALID_NUMERIC_VALUE" - Numeric restrict has invalid numeric value // specified. // "INVALID_ENCODING" - File is not in UTF_8 format. - // "INVALID_SPARSE_DIMENSIONS" - Error parsing sparse dimensions field. // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. - // "INVALID_SPARSE_EMBEDDING" - Invalid sparse embedding. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -16970,6 +16901,10 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { RuntimeState string `json:"runtimeState,omitempty"` // RuntimeUser: Required. The user email of the NotebookRuntime. RuntimeUser string `json:"runtimeUser,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: Output only. The service account that the NotebookRuntime // workload runs as. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -29305,6 +29240,10 @@ type GoogleCloudAiplatformV1TuningJob struct { CreateTime string `json:"createTime,omitempty"` // Description: Optional. The description of the TuningJob. Description string `json:"description,omitempty"` + // EncryptionSpec: Customer-managed encryption key options for a TuningJob. If + // this is set, then all resources created by the TuningJob will be encrypted + // with the provided encryption key. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` // EndTime: Output only. Time when the TuningJob entered any of the following // JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, // `JOB_STATE_EXPIRED`. @@ -32251,6 +32190,29 @@ func (s *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult) MarshalJSON return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRecitationContentChunkRecitationCheckResult: Recitation check +// result for a single content chunk. +type LearningGenaiRecitationContentChunkRecitationCheckResult struct { + ImageResult *LearningGenaiRecitationImageRecitationCheckResult `json:"imageResult,omitempty"` + TextResult *LearningGenaiRecitationRecitationResult `json:"textResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageResult") 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. "ImageResult") 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 *LearningGenaiRecitationContentChunkRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationContentChunkRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // LearningGenaiRecitationDocAttribution: The proto defines the attribution // information for a document using whatever fields are most applicable for // that document's datasource. For example, a Wikipedia article's attribution @@ -32798,6 +32760,159 @@ func (s *LearningGenaiRecitationDocAttribution) UnmarshalJSON(data []byte) error return nil } +// LearningGenaiRecitationImageDocAttribution: Attribution information about +// the recited image. +type LearningGenaiRecitationImageDocAttribution struct { + // DatasetName: Unique ID of the image. + // + // Possible values: + // "IMAGE_DATA_SET_UNSPECIFIED" + // "JUNO_SHUTTERSTOCK_V1" - go/tigg-shutterstock + // "JUNO_V1_HIPR" - go/hipr-in-tigg-notes + // "JUNO_V1_WEBLI_AESTHETICS_V2_4_5" + // "JUNO_V1_TIGG_DATA_V1" + // "JUNO_V1_PINTEREST_A" + // "JUNO_V1_PINTEREST_B" + // "JUNO_V1_IMAGEJOINS" + // "JUNO_V1_M1" + // "JUNO_V1_M2_MISC" + // "JUNO_V1_M2_ART" + // "JUNO_V1_DEVIANTAR" + // "IMAGE_PASSAGE" - go/image-passage + DatasetName string `json:"datasetName,omitempty"` + // StringDocids: Doc ID to identify the image. These could be urls of images or + // amarna id. + StringDocids string `json:"stringDocids,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatasetName") 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. "DatasetName") 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 *LearningGenaiRecitationImageDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageDocAttribution + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRecitationImageRecitationCheckResult struct { + // RecitationAction: Only has NO_ACTION or BLOCK to start with. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is + // exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + // RecitedImages: Images that are similar to the requested image. + RecitedImages []*LearningGenaiRecitationImageRecitationCheckResultSimilarImage `json:"recitedImages,omitempty"` + // ForceSendFields is a list of field names (e.g. "RecitationAction") 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. "RecitationAction") 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 *LearningGenaiRecitationImageRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRecitationImageRecitationCheckResultSimilarImage struct { + // DocAttribution: Attribution information about the image + DocAttribution *LearningGenaiRecitationImageDocAttribution `json:"docAttribution,omitempty"` + // EmbeddingModel: The memorization embedding model that returned this image + // + // Possible values: + // "EMBEDDING_MODEL_UNSPECIFIED" + // "STARBURST_V4" - Starburst V4, 64 float features. + // "REISIM" - Reisim, 128 Byte float feature + EmbeddingModel string `json:"embeddingModel,omitempty"` + // ImageId: Image ID corresponding of the image corresponding to the score. + // `image_id` serves for debugging purposes and can't be used by clients to + // retrieve an image. + ImageId uint64 `json:"imageId,omitempty,string"` + // Scores: Similarity score of requested image compared with image in training + // data. + Scores float64 `json:"scores,omitempty"` + // ForceSendFields is a list of field names (e.g. "DocAttribution") 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. "DocAttribution") 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 *LearningGenaiRecitationImageRecitationCheckResultSimilarImage) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageRecitationCheckResultSimilarImage + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRecitationImageRecitationCheckResultSimilarImage) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRecitationImageRecitationCheckResultSimilarImage + var s1 struct { + Scores gensupport.JSONFloat64 `json:"scores"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Scores = float64(s1.Scores) + return nil +} + +// LearningGenaiRecitationMMRecitationCheckResult: Recitation check result for +// a stream of content chunks (e.g. a model response). +type LearningGenaiRecitationMMRecitationCheckResult struct { + ChunkResults []*LearningGenaiRecitationContentChunkRecitationCheckResult `json:"chunkResults,omitempty"` + // RecitationAction: Overall recommended recitation action for the content. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is + // exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkResults") 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. "ChunkResults") 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 *LearningGenaiRecitationMMRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationMMRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // LearningGenaiRecitationRecitationResult: The recitation result for one input type LearningGenaiRecitationRecitationResult struct { DynamicSegmentResults []*LearningGenaiRecitationSegmentResult `json:"dynamicSegmentResults,omitempty"` @@ -34171,6 +34286,9 @@ func (s *LearningGenaiRootHarmGrailTextHarmType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRootHarmSafetyCatCategories: +// LINT.ThenChange(//depot/google3/learning/genai/root/util/classifier/backends/ +// grail/grail.cc) type LearningGenaiRootHarmSafetyCatCategories struct { // Possible values: // "SAFETYCAT_CATEGORY_UNSPECIFIED" @@ -34215,6 +34333,7 @@ func (s *LearningGenaiRootHarmSafetyCatCategories) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRootHarmSpiiFilter: LINT.IfChange type LearningGenaiRootHarmSpiiFilter struct { UsBankRoutingMicr bool `json:"usBankRoutingMicr,omitempty"` UsEmployerIdentificationNumber bool `json:"usEmployerIdentificationNumber,omitempty"` @@ -34344,6 +34463,9 @@ type LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata st // Prompt2queryMilliseconds: Latency spent on prompt2query. The procedure // generates a search-friendly query given the original prompt. Prompt2queryMilliseconds int64 `json:"prompt2queryMilliseconds,omitempty,string"` + // RetrievalAugmentMilliseconds: Latency if use GroundedGeneration service for + // the whole retrieval & augmentation. + RetrievalAugmentMilliseconds int64 `json:"retrievalAugmentMilliseconds,omitempty,string"` // ForceSendFields is a list of field names (e.g. // "FactRetrievalMillisecondsByProvider") to unconditionally include in API // requests. By default, fields with empty or default values are omitted from @@ -34427,6 +34549,110 @@ func (s *LearningGenaiRootRegexTakedownResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +type LearningGenaiRootRequestMetrics struct { + // AudioMetrics: Metrics for audio samples in the request. + AudioMetrics *LearningGenaiRootRequestMetricsAudioMetrics `json:"audioMetrics,omitempty"` + // ImageMetrics: Metrics for image samples in the request. + ImageMetrics *LearningGenaiRootRequestMetricsImageMetrics `json:"imageMetrics,omitempty"` + // TextTokenCount: Number of text tokens extracted from the request. + TextTokenCount int64 `json:"textTokenCount,omitempty"` + // TotalTokenCount: Total number of tokens in the request. + TotalTokenCount int64 `json:"totalTokenCount,omitempty"` + // VideoMetrics: Metrics for video samples in the request. + VideoMetrics *LearningGenaiRootRequestMetricsVideoMetrics `json:"videoMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioMetrics") 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. "AudioMetrics") 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 *LearningGenaiRootRequestMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsAudioMetrics struct { + // AudioDuration: Duration of the audio sample in seconds. + AudioDuration string `json:"audioDuration,omitempty"` + // AudioTokenCount: Number of tokens derived directly from audio data. + AudioTokenCount int64 `json:"audioTokenCount,omitempty"` + // NumAudioFrames: Number of audio frames in the audio. + NumAudioFrames int64 `json:"numAudioFrames,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioDuration") 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. "AudioDuration") 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 *LearningGenaiRootRequestMetricsAudioMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsAudioMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsImageMetrics struct { + // ImageTokenCount: Number of tokens extracted from image bytes. + ImageTokenCount int64 `json:"imageTokenCount,omitempty"` + // NumImages: Number of images in the request. + NumImages int64 `json:"numImages,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageTokenCount") 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. "ImageTokenCount") 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 *LearningGenaiRootRequestMetricsImageMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsImageMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsVideoMetrics struct { + // AudioSample: Metrics associated with audio sample in the video. + AudioSample *LearningGenaiRootRequestMetricsAudioMetrics `json:"audioSample,omitempty"` + // NumVideoFrames: Number of video frames in the video. + NumVideoFrames int64 `json:"numVideoFrames,omitempty"` + // VideoDuration: Duration of the video sample in seconds. + VideoDuration string `json:"videoDuration,omitempty"` + // VideoFramesTokenCount: Number of tokens extracted from video frames. + VideoFramesTokenCount int64 `json:"videoFramesTokenCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioSample") 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. "AudioSample") 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 *LearningGenaiRootRequestMetricsVideoMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsVideoMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + type LearningGenaiRootRequestResponseTakedownResult struct { // Allowed: False when response has to be taken down per above config. Allowed bool `json:"allowed,omitempty"` @@ -35125,7 +35351,7 @@ func (s *LearningServingLlmAtlasOutputMetadata) MarshalJSON() ([]byte, error) { } // LearningServingLlmMessageMetadata: LINT.IfChange This metadata contains -// additional information required for debugging. Next ID: 28 +// additional information required for debugging. type LearningServingLlmMessageMetadata struct { AtlasMetadata *LearningServingLlmAtlasOutputMetadata `json:"atlasMetadata,omitempty"` // ClassifierSummary: Summary of classifier output. We attach this to all @@ -35167,6 +35393,16 @@ type LearningServingLlmMessageMetadata struct { Language string `json:"language,omitempty"` // LmPrefix: The LM prefix used to generate this response. LmPrefix string `json:"lmPrefix,omitempty"` + // LmrootInternalRequestMetrics: FOR LMROOT INTERNAL USE ONLY. Externally, use + // learning.genai.root.RequestMetadata.RequestMetrics. Request metrics per + // modality including token count, duration, num_frames. + LmrootInternalRequestMetrics *LearningGenaiRootRequestMetrics `json:"lmrootInternalRequestMetrics,omitempty"` + // MmRecitationResult: Multi modal recitation results. It will be populated as + // long as Multi modal Recitation processor is invoked. + MmRecitationResult *LearningGenaiRecitationMMRecitationCheckResult `json:"mmRecitationResult,omitempty"` + // NumRewinds: Number of Controlled Decoding rewind and repeats that have + // happened for this response. + NumRewinds int64 `json:"numRewinds,omitempty"` // OriginalText: The original text generated by LLM. This is the raw output for // debugging purposes. OriginalText string `json:"originalText,omitempty"` @@ -35186,10 +35422,6 @@ type LearningServingLlmMessageMetadata struct { // RecitationResult: Recitation Results. It will be populated as long as // Recitation processing is enabled, regardless of recitation outcome. RecitationResult *LearningGenaiRecitationRecitationResult `json:"recitationResult,omitempty"` - // ReturnTokenCount: NOT IMPLEMENTED TODO (b/334187574) Remove this field after - // Labs migrates to per_stream_returned_token_count and - // total_returned_token_count. - ReturnTokenCount int64 `json:"returnTokenCount,omitempty"` // Scores: All the different scores for a message are logged here. Scores []*LearningGenaiRootScore `json:"scores,omitempty"` // StreamTerminated: Whether the response is terminated during streaming @@ -42335,6 +42567,116 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Con } } +type ProjectsLocationsDatasetsDatasetVersionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a DatasetVersion. +// +// - name: Output only. The resource name of the DatasetVersion. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Patch(name string, googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c := &ProjectsLocationsDatasetsDatasetVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1datasetversion = googlecloudaiplatformv1datasetversion + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Updatable fields: * `display_name` +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1datasetversion) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1DatasetVersion.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DatasetVersion, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1DatasetVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { s *Service name string diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 73b4867be1..c493aa0aec 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -2695,6 +2695,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.datasets.datasetVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the DatasetVersion.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "restore": { "description": "Restores a dataset version.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", @@ -19306,6 +19340,132 @@ } } } + }, + "tuningJobs": { + "methods": { + "cancel": { + "description": "Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TuningJob to cancel. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1CancelTuningJobRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a TuningJob. A created TuningJob right away will be attempted to be run.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the TuningJob in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tuningJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a TuningJob.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TuningJob resource. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TuningJobs in a Location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token. Typically obtained via ListTuningJob.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the TuningJobs from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tuningJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListTuningJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -19435,7 +19595,7 @@ } } }, - "revision": "20240501", + "revision": "20240507", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -19924,6 +20084,10 @@ "description": "The content of a single message from a participant.", "id": "CloudAiNlLlmProtoServiceContent", "properties": { + "isCached": { + "description": "If true, the content is from a cached content.", + "type": "boolean" + }, "parts": { "description": "The parts of the message.", "items": { @@ -20215,7 +20379,7 @@ "type": "object" }, "CloudAiNlLlmProtoServiceRaiResult": { - "description": "The RAI results for a given text.", + "description": "The RAI results for a given text. Next ID: 12", "id": "CloudAiNlLlmProtoServiceRaiResult", "properties": { "aidaRecitationResult": { @@ -20243,6 +20407,10 @@ "$ref": "LearningGenaiRootLanguageFilterResult", "description": "Language filter result from SAFT LangId." }, + "mmRecitationResult": { + "$ref": "LearningGenaiRecitationMMRecitationCheckResult", + "description": "Multi modal recitation results. It will be populated as long as Multi modal Recitation processor is invoked." + }, "raiSignals": { "description": "The RAI signals for the text.", "items": { @@ -21973,6 +22141,12 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1CancelTuningJobRequest": { + "description": "Request message for GenAiTuningService.CancelTuningJob.", + "id": "GoogleCloudAiplatformV1beta1CancelTuningJobRequest", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Candidate": { "description": "A response candidate generated from the model.", "id": "GoogleCloudAiplatformV1beta1Candidate", @@ -23296,6 +23470,10 @@ "description": "Required. Points to a YAML file stored on Google Cloud Storage describing additional information about the Dataset. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/.", "type": "string" }, + "modelReference": { + "description": "Optional. Reference to the public base model last used by the dataset. Only set for prompt datasets.", + "type": "string" + }, "name": { "description": "Output only. The resource name of the Dataset.", "readOnly": true, @@ -23345,6 +23523,11 @@ "readOnly": true, "type": "any" }, + "modelReference": { + "description": "Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the DatasetVersion.", "readOnly": true, @@ -25722,7 +25905,7 @@ "properties": { "bigQuery": { "$ref": "GoogleCloudAiplatformV1beta1FeatureGroupBigQuery", - "description": "Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source, which is required to have an entity_id and a feature_timestamp column in the source." + "description": "Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source. The BigQuery source table or view must have at least one entity ID column and a column named `feature_timestamp`." }, "createTime": { "description": "Output only. Timestamp when this FeatureGroup was created.", @@ -26853,22 +27036,6 @@ "description": "Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity. This field is the maximum number of matches with the same crowding tag.", "format": "int32", "type": "integer" - }, - "rrf": { - "$ref": "GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF", - "description": "Optional. Represents RRF algorithm that combines search results." - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF": { - "description": "Parameters for RRF algorithm that combines search results.", - "id": "GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF", - "properties": { - "alpha": { - "description": "Required. Users can provide an alpha value to give more weight to dense vs sparse results. For example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense.", - "format": "float", - "type": "number" } }, "type": "object" @@ -26917,11 +27084,6 @@ "description": "The distance between the neighbor and the dense embedding query.", "format": "double", "type": "number" - }, - "sparseDistance": { - "description": "The distance between the neighbor and the query sparse_embedding.", - "format": "double", - "type": "number" } }, "type": "object" @@ -27379,6 +27541,22 @@ "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" }, + "responseStyle": { + "description": "Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED", + "enum": [ + "RESPONSE_STYLE_UNSPECIFIED", + "RESPONSE_STYLE_PRECISE", + "RESPONSE_STYLE_BALANCED", + "RESPONSE_STYLE_CREATIVE" + ], + "enumDescriptions": [ + "response style unspecified.", + "Precise response.", + "Default response style.", + "Creative response style." + ], + "type": "string" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -28070,10 +28248,6 @@ "$ref": "GoogleCloudAiplatformV1beta1IndexDatapointRestriction" }, "type": "array" - }, - "sparseEmbedding": { - "$ref": "GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding", - "description": "Optional. Feature embedding vector for sparse index." } }, "type": "object" @@ -28162,29 +28336,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding": { - "description": "Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions.", - "id": "GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding", - "properties": { - "dimensions": { - "description": "Optional. The list of indexes for the embedding values of the sparse vector.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "values": { - "description": "Optional. The list of embedding values of the sparse vector.", - "items": { - "format": "float", - "type": "number" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1IndexEndpoint": { "description": "Indexes are deployed into it. An IndexEndpoint can have multiple DeployedIndexes.", "id": "GoogleCloudAiplatformV1beta1IndexEndpoint", @@ -28297,12 +28448,6 @@ "readOnly": true, "type": "integer" }, - "sparseVectorsCount": { - "description": "Output only. The number of sparse vectors in the Index.", - "format": "int64", - "readOnly": true, - "type": "string" - }, "vectorsCount": { "description": "Output only. The number of dense vectors in the Index.", "format": "int64", @@ -29463,6 +29608,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListTuningJobsResponse": { + "description": "Response message for GenAiTuningService.ListTuningJobs", + "id": "GoogleCloudAiplatformV1beta1ListTuningJobsResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve the next page of results. Pass to ListTuningJobsRequest.page_token to obtain that page.", + "type": "string" + }, + "tuningJobs": { + "description": "List of TuningJobs in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1LookupStudyRequest": { "description": "Request message for VizierService.LookupStudy.", "id": "GoogleCloudAiplatformV1beta1LookupStudyRequest", @@ -32331,6 +32494,11 @@ "format": "int64", "type": "string" }, + "invalidSparseRecordCount": { + "description": "Number of sparse records in this file we skipped due to validate errors.", + "format": "int64", + "type": "string" + }, "partialErrors": { "description": "The detail information of the partial failures encountered for those invalid records that couldn't be parsed. Up to 50 partial errors will be reported.", "items": { @@ -32346,6 +32514,11 @@ "description": "Number of records in this file that were successfully processed.", "format": "int64", "type": "string" + }, + "validSparseRecordCount": { + "description": "Number of sparse records in this file that were successfully processed.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -32378,9 +32551,7 @@ "MULTIPLE_VALUES", "INVALID_NUMERIC_VALUE", "INVALID_ENCODING", - "INVALID_SPARSE_DIMENSIONS", - "INVALID_TOKEN_VALUE", - "INVALID_SPARSE_EMBEDDING" + "INVALID_TOKEN_VALUE" ], "enumDescriptions": [ "Default, shall not be used.", @@ -32397,9 +32568,7 @@ "Numeric restrict has multiple values specified.", "Numeric restrict has invalid numeric value specified.", "File is not in UTF_8 format.", - "Error parsing sparse dimensions field.", - "Token restrict value is invalid.", - "Invalid sparse embedding." + "Token restrict value is invalid." ], "type": "string" }, @@ -32557,10 +32726,10 @@ }, "gcsNotebookSource": { "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource", - "description": "The GCS url pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`" + "description": "The Cloud Storage url pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`" }, "gcsOutputUri": { - "description": "The GCS location to upload the result to. Format: `gs://bucket-name`", + "description": "The Cloud Storage location to upload the result to. Format: `gs://bucket-name`", "type": "string" }, "jobState": { @@ -32596,6 +32765,13 @@ "readOnly": true, "type": "string" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The labels with user-defined metadata to organize NotebookExecutionJobs. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, "name": { "description": "Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`", "readOnly": true, @@ -32861,6 +33037,16 @@ "description": "Required. The user email of the NotebookRuntime.", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "Output only. The service account that the NotebookRuntime workload runs as.", "readOnly": true, @@ -41694,6 +41880,196 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SupervisedHyperParameters": { + "description": "Hyperparameters for SFT.", + "id": "GoogleCloudAiplatformV1beta1SupervisedHyperParameters", + "properties": { + "adapterSize": { + "description": "Optional. Adapter size for tuning.", + "enum": [ + "ADAPTER_SIZE_UNSPECIFIED", + "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_FOUR", + "ADAPTER_SIZE_EIGHT", + "ADAPTER_SIZE_SIXTEEN" + ], + "enumDescriptions": [ + "Adapter size is unspecified.", + "Adapter size 1.", + "Adapter size 4.", + "Adapter size 8.", + "Adapter size 16." + ], + "type": "string" + }, + "epochCount": { + "description": "Optional. Number of complete passes the model makes over the entire training dataset during training.", + "format": "int64", + "type": "string" + }, + "learningRateMultiplier": { + "description": "Optional. Multiplier for adjusting the default learning rate.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats": { + "description": "Tuning data statistics for Supervised Tuning.", + "id": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", + "properties": { + "totalBillableCharacterCount": { + "description": "Output only. Number of billable characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalTuningCharacterCount": { + "description": "Output only. Number of tuning characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningDatasetExampleCount": { + "description": "Output only. Number of examples in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningStepCount": { + "description": "Output only. Number of tuning steps for this Tuning Job.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "userDatasetExamples": { + "description": "Output only. Sample user messages in the training dataset uri.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Content" + }, + "readOnly": true, + "type": "array" + }, + "userInputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution", + "description": "Output only. Dataset distributions for the user input tokens.", + "readOnly": true + }, + "userMessagePerExampleDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution", + "description": "Output only. Dataset distributions for the messages per example.", + "readOnly": true + }, + "userOutputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution", + "description": "Output only. Dataset distributions for the user output tokens.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution": { + "description": "Dataset distribution for Supervised Tuning.", + "id": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution", + "properties": { + "buckets": { + "description": "Output only. Defines the histogram bucket.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket" + }, + "readOnly": true, + "type": "array" + }, + "max": { + "description": "Output only. The maximum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "mean": { + "description": "Output only. The arithmetic mean of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "median": { + "description": "Output only. The median of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "min": { + "description": "Output only. The minimum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p5": { + "description": "Output only. The 5th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p95": { + "description": "Output only. The 95th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "sum": { + "description": "Output only. Sum of a given population of values.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket": { + "description": "Dataset bucket used to create a histogram for the distribution given a population of values.", + "id": "GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket", + "properties": { + "count": { + "description": "Output only. Number of values in the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "left": { + "description": "Output only. Left bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "right": { + "description": "Output only. Right bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SupervisedTuningSpec": { + "description": "Tuning Spec for Supervised Tuning.", + "id": "GoogleCloudAiplatformV1beta1SupervisedTuningSpec", + "properties": { + "hyperParameters": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedHyperParameters", + "description": "Optional. Hyperparameters for SFT." + }, + "trainingDatasetUri": { + "description": "Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.", + "type": "string" + }, + "validationDatasetUri": { + "description": "Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest": { "description": "Request message for FeatureOnlineStoreAdminService.SyncFeatureView.", "id": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest", @@ -42888,6 +43264,150 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1TunedModel": { + "description": "The Model Registry Model and Online Prediction Endpoint assiociated with this TuningJob.", + "id": "GoogleCloudAiplatformV1beta1TunedModel", + "properties": { + "endpoint": { + "description": "Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.", + "readOnly": true, + "type": "string" + }, + "model": { + "description": "Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}`.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1TuningDataStats": { + "description": "The tuning data statistic values for TuningJob.", + "id": "GoogleCloudAiplatformV1beta1TuningDataStats", + "properties": { + "supervisedTuningDataStats": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", + "description": "The SFT Tuning data stats." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1TuningJob": { + "description": "Represents a TuningJob that runs with Google owned models.", + "id": "GoogleCloudAiplatformV1beta1TuningJob", + "properties": { + "baseModel": { + "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\".", + "type": "string" + }, + "createTime": { + "description": "Output only. Time when the TuningJob was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. The description of the TuningJob.", + "type": "string" + }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1beta1EncryptionSpec", + "description": "Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key." + }, + "endTime": { + "description": "Output only. Time when the TuningJob entered any of the following JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `JOB_STATE_EXPIRED`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Only populated when job's state is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.", + "readOnly": true + }, + "experiment": { + "description": "Output only. The Experiment associated with this TuningJob.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.", + "type": "object" + }, + "name": { + "description": "Output only. Identifier. Resource name of a TuningJob. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. Time when the TuningJob for the first time entered the `JOB_STATE_RUNNING` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The detailed state of the job.", + "enum": [ + "JOB_STATE_UNSPECIFIED", + "JOB_STATE_QUEUED", + "JOB_STATE_PENDING", + "JOB_STATE_RUNNING", + "JOB_STATE_SUCCEEDED", + "JOB_STATE_FAILED", + "JOB_STATE_CANCELLING", + "JOB_STATE_CANCELLED", + "JOB_STATE_PAUSED", + "JOB_STATE_EXPIRED", + "JOB_STATE_UPDATING", + "JOB_STATE_PARTIALLY_SUCCEEDED" + ], + "enumDescriptions": [ + "The job state is unspecified.", + "The job has been just created or resumed and processing has not yet begun.", + "The service is preparing to run the job.", + "The job is in progress.", + "The job completed successfully.", + "The job failed.", + "The job is being cancelled. From this state the job may only go to either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.", + "The job has been cancelled.", + "The job has been stopped, and can be resumed.", + "The job has expired.", + "The job is being updated. Only jobs in the `RUNNING` state can be updated. After updating, the job goes back to the `RUNNING` state.", + "The job is partially succeeded, some results may be missing due to errors." + ], + "readOnly": true, + "type": "string" + }, + "supervisedTuningSpec": { + "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningSpec", + "description": "Tuning Spec for Supervised Fine Tuning." + }, + "tunedModel": { + "$ref": "GoogleCloudAiplatformV1beta1TunedModel", + "description": "Output only. The tuned model resources assiociated with this TuningJob.", + "readOnly": true + }, + "tunedModelDisplayName": { + "description": "Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, + "tuningDataStats": { + "$ref": "GoogleCloudAiplatformV1beta1TuningDataStats", + "description": "Output only. The tuning data statistics associated with this TuningJob.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. Time when the TuningJob was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1UndeployIndexOperationMetadata": { "description": "Runtime operation information for IndexEndpointService.UndeployIndex.", "id": "GoogleCloudAiplatformV1beta1UndeployIndexOperationMetadata", @@ -43348,6 +43868,7 @@ "id": "GoogleCloudAiplatformV1beta1VertexRagStore", "properties": { "ragCorpora": { + "deprecated": true, "description": "Optional. Deprecated. Please use rag_resources instead.", "items": { "type": "string" @@ -45673,6 +46194,19 @@ }, "type": "object" }, + "LearningGenaiRecitationContentChunkRecitationCheckResult": { + "description": "Recitation check result for a single content chunk.", + "id": "LearningGenaiRecitationContentChunkRecitationCheckResult", + "properties": { + "imageResult": { + "$ref": "LearningGenaiRecitationImageRecitationCheckResult" + }, + "textResult": { + "$ref": "LearningGenaiRecitationRecitationResult" + } + }, + "type": "object" + }, "LearningGenaiRecitationDocAttribution": { "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 30", "id": "LearningGenaiRecitationDocAttribution", @@ -46491,6 +47025,147 @@ }, "type": "object" }, + "LearningGenaiRecitationImageDocAttribution": { + "description": "Attribution information about the recited image.", + "id": "LearningGenaiRecitationImageDocAttribution", + "properties": { + "datasetName": { + "description": "Unique ID of the image.", + "enum": [ + "IMAGE_DATA_SET_UNSPECIFIED", + "JUNO_SHUTTERSTOCK_V1", + "JUNO_V1_HIPR", + "JUNO_V1_WEBLI_AESTHETICS_V2_4_5", + "JUNO_V1_TIGG_DATA_V1", + "JUNO_V1_PINTEREST_A", + "JUNO_V1_PINTEREST_B", + "JUNO_V1_IMAGEJOINS", + "JUNO_V1_M1", + "JUNO_V1_M2_MISC", + "JUNO_V1_M2_ART", + "JUNO_V1_DEVIANTAR", + "IMAGE_PASSAGE" + ], + "enumDescriptions": [ + "", + "go/tigg-shutterstock", + "go/hipr-in-tigg-notes", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "go/image-passage" + ], + "type": "string" + }, + "stringDocids": { + "description": "Doc ID to identify the image. These could be urls of images or amarna id.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRecitationImageRecitationCheckResult": { + "id": "LearningGenaiRecitationImageRecitationCheckResult", + "properties": { + "recitationAction": { + "description": "Only has NO_ACTION or BLOCK to start with.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "recitedImages": { + "description": "Images that are similar to the requested image.", + "items": { + "$ref": "LearningGenaiRecitationImageRecitationCheckResultSimilarImage" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationImageRecitationCheckResultSimilarImage": { + "id": "LearningGenaiRecitationImageRecitationCheckResultSimilarImage", + "properties": { + "docAttribution": { + "$ref": "LearningGenaiRecitationImageDocAttribution", + "description": "Attribution information about the image" + }, + "embeddingModel": { + "description": "The memorization embedding model that returned this image", + "enum": [ + "EMBEDDING_MODEL_UNSPECIFIED", + "STARBURST_V4", + "REISIM" + ], + "enumDescriptions": [ + "", + "Starburst V4, 64 float features.", + "Reisim, 128 Byte float feature" + ], + "type": "string" + }, + "imageId": { + "description": "Image ID corresponding of the image corresponding to the score. `image_id` serves for debugging purposes and can't be used by clients to retrieve an image.", + "format": "uint64", + "type": "string" + }, + "scores": { + "description": "Similarity score of requested image compared with image in training data.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRecitationMMRecitationCheckResult": { + "description": "Recitation check result for a stream of content chunks (e.g. a model response).", + "id": "LearningGenaiRecitationMMRecitationCheckResult", + "properties": { + "chunkResults": { + "items": { + "$ref": "LearningGenaiRecitationContentChunkRecitationCheckResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "Overall recommended recitation action for the content.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + } + }, + "type": "object" + }, "LearningGenaiRecitationRecitationResult": { "description": "The recitation result for one input", "id": "LearningGenaiRecitationRecitationResult", @@ -48165,6 +48840,7 @@ "type": "object" }, "LearningGenaiRootHarmSafetyCatCategories": { + "description": "LINT.ThenChange(//depot/google3/learning/genai/root/util/classifier/backends/grail/grail.cc)", "id": "LearningGenaiRootHarmSafetyCatCategories", "properties": { "categories": { @@ -48225,6 +48901,7 @@ "type": "object" }, "LearningGenaiRootHarmSpiiFilter": { + "description": "LINT.IfChange", "id": "LearningGenaiRootHarmSpiiFilter", "properties": { "usBankRoutingMicr": { @@ -48308,6 +48985,11 @@ "description": "Latency spent on prompt2query. The procedure generates a search-friendly query given the original prompt.", "format": "int64", "type": "string" + }, + "retrievalAugmentMilliseconds": { + "description": "Latency if use GroundedGeneration service for the whole retrieval \u0026 augmentation.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -48346,6 +49028,96 @@ }, "type": "object" }, + "LearningGenaiRootRequestMetrics": { + "id": "LearningGenaiRootRequestMetrics", + "properties": { + "audioMetrics": { + "$ref": "LearningGenaiRootRequestMetricsAudioMetrics", + "description": "Metrics for audio samples in the request." + }, + "imageMetrics": { + "$ref": "LearningGenaiRootRequestMetricsImageMetrics", + "description": "Metrics for image samples in the request." + }, + "textTokenCount": { + "description": "Number of text tokens extracted from the request.", + "format": "int32", + "type": "integer" + }, + "totalTokenCount": { + "description": "Total number of tokens in the request.", + "format": "int32", + "type": "integer" + }, + "videoMetrics": { + "$ref": "LearningGenaiRootRequestMetricsVideoMetrics", + "description": "Metrics for video samples in the request." + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsAudioMetrics": { + "id": "LearningGenaiRootRequestMetricsAudioMetrics", + "properties": { + "audioDuration": { + "description": "Duration of the audio sample in seconds.", + "format": "google-duration", + "type": "string" + }, + "audioTokenCount": { + "description": "Number of tokens derived directly from audio data.", + "format": "int32", + "type": "integer" + }, + "numAudioFrames": { + "description": "Number of audio frames in the audio.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsImageMetrics": { + "id": "LearningGenaiRootRequestMetricsImageMetrics", + "properties": { + "imageTokenCount": { + "description": "Number of tokens extracted from image bytes.", + "format": "int32", + "type": "integer" + }, + "numImages": { + "description": "Number of images in the request.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestMetricsVideoMetrics": { + "id": "LearningGenaiRootRequestMetricsVideoMetrics", + "properties": { + "audioSample": { + "$ref": "LearningGenaiRootRequestMetricsAudioMetrics", + "description": "Metrics associated with audio sample in the video." + }, + "numVideoFrames": { + "description": "Number of video frames in the video.", + "format": "int32", + "type": "integer" + }, + "videoDuration": { + "description": "Duration of the video sample in seconds.", + "format": "google-duration", + "type": "string" + }, + "videoFramesTokenCount": { + "description": "Number of tokens extracted from video frames.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "LearningGenaiRootRequestResponseTakedownResult": { "id": "LearningGenaiRootRequestResponseTakedownResult", "properties": { @@ -48817,7 +49589,7 @@ "type": "object" }, "LearningServingLlmMessageMetadata": { - "description": "LINT.IfChange This metadata contains additional information required for debugging. Next ID: 28", + "description": "LINT.IfChange This metadata contains additional information required for debugging.", "id": "LearningServingLlmMessageMetadata", "properties": { "atlasMetadata": { @@ -48893,6 +49665,19 @@ "description": "The LM prefix used to generate this response.", "type": "string" }, + "lmrootInternalRequestMetrics": { + "$ref": "LearningGenaiRootRequestMetrics", + "description": "FOR LMROOT INTERNAL USE ONLY. Externally, use learning.genai.root.RequestMetadata.RequestMetrics. Request metrics per modality including token count, duration, num_frames." + }, + "mmRecitationResult": { + "$ref": "LearningGenaiRecitationMMRecitationCheckResult", + "description": "Multi modal recitation results. It will be populated as long as Multi modal Recitation processor is invoked." + }, + "numRewinds": { + "description": "Number of Controlled Decoding rewind and repeats that have happened for this response.", + "format": "uint32", + "type": "integer" + }, "originalText": { "description": "The original text generated by LLM. This is the raw output for debugging purposes.", "type": "string" @@ -48918,11 +49703,6 @@ "$ref": "LearningGenaiRecitationRecitationResult", "description": "Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome." }, - "returnTokenCount": { - "description": "NOT IMPLEMENTED TODO (b/334187574) Remove this field after Labs migrates to per_stream_returned_token_count and total_returned_token_count.", - "format": "int32", - "type": "integer" - }, "scores": { "description": "All the different scores for a message are logged here.", "items": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 39fcf04085..8982421c5d 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -233,6 +233,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Studies = NewProjectsLocationsStudiesService(s) rs.Tensorboards = NewProjectsLocationsTensorboardsService(s) rs.TrainingPipelines = NewProjectsLocationsTrainingPipelinesService(s) + rs.TuningJobs = NewProjectsLocationsTuningJobsService(s) return rs } @@ -318,6 +319,8 @@ type ProjectsLocationsService struct { Tensorboards *ProjectsLocationsTensorboardsService TrainingPipelines *ProjectsLocationsTrainingPipelinesService + + TuningJobs *ProjectsLocationsTuningJobsService } func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService { @@ -1568,6 +1571,15 @@ type ProjectsLocationsTrainingPipelinesOperationsService struct { s *Service } +func NewProjectsLocationsTuningJobsService(s *Service) *ProjectsLocationsTuningJobsService { + rs := &ProjectsLocationsTuningJobsService{s: s} + return rs +} + +type ProjectsLocationsTuningJobsService struct { + s *Service +} + func NewPublishersService(s *Service) *PublishersService { rs := &PublishersService{s: s} rs.Models = NewPublishersModelsService(s) @@ -2182,17 +2194,19 @@ func (s *CloudAiNlLlmProtoServiceCitationMetadata) MarshalJSON() ([]byte, error) // CloudAiNlLlmProtoServiceContent: The content of a single message from a // participant. type CloudAiNlLlmProtoServiceContent struct { + // IsCached: If true, the content is from a cached content. + IsCached bool `json:"isCached,omitempty"` // Parts: The parts of the message. Parts []*CloudAiNlLlmProtoServicePart `json:"parts,omitempty"` // Role: The role of the current conversation participant. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parts") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "IsCached") 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. "Parts") to include in API + // NullFields is a list of field names (e.g. "IsCached") 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. @@ -2549,7 +2563,8 @@ func (s *CloudAiNlLlmProtoServicePromptFeedback) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. +// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. Next +// ID: 12 type CloudAiNlLlmProtoServiceRaiResult struct { // AidaRecitationResult: Recitation result from Aida recitation checker. AidaRecitationResult *LanguageLabsAidaTrustRecitationProtoRecitationResult `json:"aidaRecitationResult,omitempty"` @@ -2564,6 +2579,9 @@ type CloudAiNlLlmProtoServiceRaiResult struct { Filtered bool `json:"filtered,omitempty"` // LanguageFilterResult: Language filter result from SAFT LangId. LanguageFilterResult *LearningGenaiRootLanguageFilterResult `json:"languageFilterResult,omitempty"` + // MmRecitationResult: Multi modal recitation results. It will be populated as + // long as Multi modal Recitation processor is invoked. + MmRecitationResult *LearningGenaiRecitationMMRecitationCheckResult `json:"mmRecitationResult,omitempty"` // RaiSignals: The RAI signals for the text. RaiSignals []*CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignals,omitempty"` // TranslationRequestInfos: Translation request info during RAI for debugging @@ -5065,6 +5083,11 @@ type GoogleCloudAiplatformV1beta1CancelPipelineJobRequest struct { type GoogleCloudAiplatformV1beta1CancelTrainingPipelineRequest struct { } +// GoogleCloudAiplatformV1beta1CancelTuningJobRequest: Request message for +// GenAiTuningService.CancelTuningJob. +type GoogleCloudAiplatformV1beta1CancelTuningJobRequest struct { +} + // GoogleCloudAiplatformV1beta1Candidate: A response candidate generated from // the model. type GoogleCloudAiplatformV1beta1Candidate struct { @@ -6953,6 +6976,9 @@ type GoogleCloudAiplatformV1beta1Dataset struct { // defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used // here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/. MetadataSchemaUri string `json:"metadataSchemaUri,omitempty"` + // ModelReference: Optional. Reference to the public base model last used by + // the dataset. Only set for prompt datasets. + ModelReference string `json:"modelReference,omitempty"` // Name: Output only. The resource name of the Dataset. Name string `json:"name,omitempty"` // SavedQueries: All SavedQueries belong to the Dataset will be returned in @@ -7000,6 +7026,9 @@ type GoogleCloudAiplatformV1beta1DatasetVersion struct { // Metadata: Required. Output only. Additional information about the // DatasetVersion. Metadata interface{} `json:"metadata,omitempty"` + // ModelReference: Output only. Reference to the public base model last used by + // the dataset version. Only set for prompt dataset versions. + ModelReference string `json:"modelReference,omitempty"` // Name: Output only. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` // UpdateTime: Output only. Timestamp when this DatasetVersion was last @@ -10455,9 +10484,9 @@ func (s *GoogleCloudAiplatformV1beta1Feature) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1FeatureGroup: Vertex AI Feature Group. type GoogleCloudAiplatformV1beta1FeatureGroup struct { // BigQuery: Indicates that features for this group come from BigQuery - // Table/View. By default treats the source as a sparse time series source, - // which is required to have an entity_id and a feature_timestamp column in the - // source. + // Table/View. By default treats the source as a sparse time series source. The + // BigQuery source table or view must have at least one entity ID column and a + // column named `feature_timestamp`. BigQuery *GoogleCloudAiplatformV1beta1FeatureGroupBigQuery `json:"bigQuery,omitempty"` // CreateTime: Output only. Timestamp when this FeatureGroup was created. CreateTime string `json:"createTime,omitempty"` @@ -12135,8 +12164,6 @@ type GoogleCloudAiplatformV1beta1FindNeighborsRequestQuery struct { // crowding_attribute. It's used for improving result diversity. This field is // the maximum number of matches with the same crowding tag. PerCrowdingAttributeNeighborCount int64 `json:"perCrowdingAttributeNeighborCount,omitempty"` - // Rrf: Optional. Represents RRF algorithm that combines search results. - Rrf *GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF `json:"rrf,omitempty"` // ForceSendFields is a list of field names (e.g. "ApproximateNeighborCount") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12169,45 +12196,6 @@ func (s *GoogleCloudAiplatformV1beta1FindNeighborsRequestQuery) UnmarshalJSON(da return nil } -// GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF: Parameters for RRF -// algorithm that combines search results. -type GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF struct { - // Alpha: Required. Users can provide an alpha value to give more weight to - // dense vs sparse results. For example, if the alpha is 0, we only return - // sparse and if the alpha is 1, we only return dense. - Alpha float64 `json:"alpha,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alpha") 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. "Alpha") 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 *GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRRF - var s1 struct { - Alpha gensupport.JSONFloat64 `json:"alpha"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Alpha = float64(s1.Alpha) - return nil -} - // GoogleCloudAiplatformV1beta1FindNeighborsResponse: The response message for // MatchService.FindNeighbors. type GoogleCloudAiplatformV1beta1FindNeighborsResponse struct { @@ -12268,9 +12256,6 @@ type GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor struct { Datapoint *GoogleCloudAiplatformV1beta1IndexDatapoint `json:"datapoint,omitempty"` // Distance: The distance between the neighbor and the dense embedding query. Distance float64 `json:"distance,omitempty"` - // SparseDistance: The distance between the neighbor and the query - // sparse_embedding. - SparseDistance float64 `json:"sparseDistance,omitempty"` // ForceSendFields is a list of field names (e.g. "Datapoint") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12292,8 +12277,7 @@ func (s *GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor) MarshalJSON( func (s *GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor var s1 struct { - Distance gensupport.JSONFloat64 `json:"distance"` - SparseDistance gensupport.JSONFloat64 `json:"sparseDistance"` + Distance gensupport.JSONFloat64 `json:"distance"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -12301,7 +12285,6 @@ func (s *GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor) UnmarshalJSO return err } s.Distance = float64(s1.Distance) - s.SparseDistance = float64(s1.SparseDistance) return nil } @@ -12989,6 +12972,15 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { // prompted to output the appropriate response type, otherwise the behavior is // undefined. This is a preview feature. ResponseMimeType string `json:"responseMimeType,omitempty"` + // ResponseStyle: Optional. Control Three levels of creativity in the model + // output. Default: RESPONSE_STYLE_BALANCED + // + // Possible values: + // "RESPONSE_STYLE_UNSPECIFIED" - response style unspecified. + // "RESPONSE_STYLE_PRECISE" - Precise response. + // "RESPONSE_STYLE_BALANCED" - Default response style. + // "RESPONSE_STYLE_CREATIVE" - Creative response style. + ResponseStyle string `json:"responseStyle,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -13867,8 +13859,6 @@ type GoogleCloudAiplatformV1beta1IndexDatapoint struct { // the database eligible for matching. This uses categorical tokens. See: // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering Restricts []*GoogleCloudAiplatformV1beta1IndexDatapointRestriction `json:"restricts,omitempty"` - // SparseEmbedding: Optional. Feature embedding vector for sparse index. - SparseEmbedding *GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding `json:"sparseEmbedding,omitempty"` // ForceSendFields is a list of field names (e.g. "CrowdingTag") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -14020,50 +14010,6 @@ func (s *GoogleCloudAiplatformV1beta1IndexDatapointRestriction) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding: Feature embedding -// vector for sparse index. An array of numbers whose values are located in the -// specified dimensions. -type GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding struct { - // Dimensions: Optional. The list of indexes for the embedding values of the - // sparse vector. - Dimensions googleapi.Int64s `json:"dimensions,omitempty"` - // Values: Optional. The list of embedding values of the sparse vector. - Values []float64 `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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 *GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1beta1IndexDatapointSparseEmbedding - var s1 struct { - Values []gensupport.JSONFloat64 `json:"values"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Values = make([]float64, len(s1.Values)) - for i := range s1.Values { - s.Values[i] = float64(s1.Values[i]) - } - return nil -} - // GoogleCloudAiplatformV1beta1IndexEndpoint: Indexes are deployed into it. An // IndexEndpoint can have multiple DeployedIndexes. type GoogleCloudAiplatformV1beta1IndexEndpoint struct { @@ -14178,8 +14124,6 @@ func (s *GoogleCloudAiplatformV1beta1IndexPrivateEndpoints) MarshalJSON() ([]byt type GoogleCloudAiplatformV1beta1IndexStats struct { // ShardsCount: Output only. The number of shards in the Index. ShardsCount int64 `json:"shardsCount,omitempty"` - // SparseVectorsCount: Output only. The number of sparse vectors in the Index. - SparseVectorsCount int64 `json:"sparseVectorsCount,omitempty,string"` // VectorsCount: Output only. The number of dense vectors in the Index. VectorsCount int64 `json:"vectorsCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ShardsCount") to @@ -16055,6 +15999,35 @@ func (s *GoogleCloudAiplatformV1beta1ListTrialsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListTuningJobsResponse: Response message for +// GenAiTuningService.ListTuningJobs +type GoogleCloudAiplatformV1beta1ListTuningJobsResponse struct { + // NextPageToken: A token to retrieve the next page of results. Pass to + // ListTuningJobsRequest.page_token to obtain that page. + NextPageToken string `json:"nextPageToken,omitempty"` + // TuningJobs: List of TuningJobs in the requested page. + TuningJobs []*GoogleCloudAiplatformV1beta1TuningJob `json:"tuningJobs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleCloudAiplatformV1beta1ListTuningJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListTuningJobsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1LookupStudyRequest: Request message for // VizierService.LookupStudy. type GoogleCloudAiplatformV1beta1LookupStudyRequest struct { @@ -20117,6 +20090,9 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataContentVa // InvalidRecordCount: Number of records in this file we skipped due to // validate errors. InvalidRecordCount int64 `json:"invalidRecordCount,omitempty,string"` + // InvalidSparseRecordCount: Number of sparse records in this file we skipped + // due to validate errors. + InvalidSparseRecordCount int64 `json:"invalidSparseRecordCount,omitempty,string"` // PartialErrors: The detail information of the partial failures encountered // for those invalid records that couldn't be parsed. Up to 50 partial errors // will be reported. @@ -20127,6 +20103,9 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataContentVa // ValidRecordCount: Number of records in this file that were successfully // processed. ValidRecordCount int64 `json:"validRecordCount,omitempty,string"` + // ValidSparseRecordCount: Number of sparse records in this file that were + // successfully processed. + ValidSparseRecordCount int64 `json:"validSparseRecordCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "InvalidRecordCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -20173,9 +20152,7 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecordErr // "INVALID_NUMERIC_VALUE" - Numeric restrict has invalid numeric value // specified. // "INVALID_ENCODING" - File is not in UTF_8 format. - // "INVALID_SPARSE_DIMENSIONS" - Error parsing sparse dimensions field. // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. - // "INVALID_SPARSE_EMBEDDING" - Invalid sparse embedding. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -20422,10 +20399,10 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // ExecutionUser: The user email to run the execution as. Only supported by // Colab runtimes. ExecutionUser string `json:"executionUser,omitempty"` - // GcsNotebookSource: The GCS url pointing to the ipynb file. Format: + // GcsNotebookSource: The Cloud Storage url pointing to the ipynb file. Format: // `gs://bucket/notebook_file.ipynb` GcsNotebookSource *GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource `json:"gcsNotebookSource,omitempty"` - // GcsOutputUri: The GCS location to upload the result to. Format: + // GcsOutputUri: The Cloud Storage location to upload the result to. Format: // `gs://bucket-name` GcsOutputUri string `json:"gcsOutputUri,omitempty"` // JobState: Output only. The state of the NotebookExecutionJob. @@ -20450,6 +20427,14 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // "JOB_STATE_PARTIALLY_SUCCEEDED" - The job is partially succeeded, some // results may be missing due to errors. JobState string `json:"jobState,omitempty"` + // Labels: The labels with user-defined metadata to organize + // NotebookExecutionJobs. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource name of this NotebookExecutionJob. Format: // `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}` Name string `json:"name,omitempty"` @@ -20749,6 +20734,10 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { RuntimeState string `json:"runtimeState,omitempty"` // RuntimeUser: Required. The user email of the NotebookRuntime. RuntimeUser string `json:"runtimeUser,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: Output only. The service account that the NotebookRuntime // workload runs as. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -34202,6 +34191,239 @@ func (s *GoogleCloudAiplatformV1beta1SummarizationVerbositySpec) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SupervisedHyperParameters: Hyperparameters for +// SFT. +type GoogleCloudAiplatformV1beta1SupervisedHyperParameters struct { + // AdapterSize: Optional. Adapter size for tuning. + // + // Possible values: + // "ADAPTER_SIZE_UNSPECIFIED" - Adapter size is unspecified. + // "ADAPTER_SIZE_ONE" - Adapter size 1. + // "ADAPTER_SIZE_FOUR" - Adapter size 4. + // "ADAPTER_SIZE_EIGHT" - Adapter size 8. + // "ADAPTER_SIZE_SIXTEEN" - Adapter size 16. + AdapterSize string `json:"adapterSize,omitempty"` + // EpochCount: Optional. Number of complete passes the model makes over the + // entire training dataset during training. + EpochCount int64 `json:"epochCount,omitempty,string"` + // LearningRateMultiplier: Optional. Multiplier for adjusting the default + // learning rate. + LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdapterSize") 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. "AdapterSize") 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 *GoogleCloudAiplatformV1beta1SupervisedHyperParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedHyperParameters + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1SupervisedHyperParameters) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedHyperParameters + var s1 struct { + LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LearningRateMultiplier = float64(s1.LearningRateMultiplier) + return nil +} + +// GoogleCloudAiplatformV1beta1SupervisedTuningDataStats: Tuning data +// statistics for Supervised Tuning. +type GoogleCloudAiplatformV1beta1SupervisedTuningDataStats struct { + // TotalBillableCharacterCount: Output only. Number of billable characters in + // the tuning dataset. + TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalTuningCharacterCount: Output only. Number of tuning characters in the + // tuning dataset. + TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` + // TuningDatasetExampleCount: Output only. Number of examples in the tuning + // dataset. + TuningDatasetExampleCount int64 `json:"tuningDatasetExampleCount,omitempty,string"` + // TuningStepCount: Output only. Number of tuning steps for this Tuning Job. + TuningStepCount int64 `json:"tuningStepCount,omitempty,string"` + // UserDatasetExamples: Output only. Sample user messages in the training + // dataset uri. + UserDatasetExamples []*GoogleCloudAiplatformV1beta1Content `json:"userDatasetExamples,omitempty"` + // UserInputTokenDistribution: Output only. Dataset distributions for the user + // input tokens. + UserInputTokenDistribution *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution `json:"userInputTokenDistribution,omitempty"` + // UserMessagePerExampleDistribution: Output only. Dataset distributions for + // the messages per example. + UserMessagePerExampleDistribution *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution `json:"userMessagePerExampleDistribution,omitempty"` + // UserOutputTokenDistribution: Output only. Dataset distributions for the user + // output tokens. + UserOutputTokenDistribution *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution `json:"userOutputTokenDistribution,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "TotalBillableCharacterCount") 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. "TotalBillableCharacterCount") 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 *GoogleCloudAiplatformV1beta1SupervisedTuningDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution: Dataset +// distribution for Supervised Tuning. +type GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution struct { + // Buckets: Output only. Defines the histogram bucket. + Buckets []*GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket `json:"buckets,omitempty"` + // Max: Output only. The maximum of the population values. + Max float64 `json:"max,omitempty"` + // Mean: Output only. The arithmetic mean of the values in the population. + Mean float64 `json:"mean,omitempty"` + // Median: Output only. The median of the values in the population. + Median float64 `json:"median,omitempty"` + // Min: Output only. The minimum of the population values. + Min float64 `json:"min,omitempty"` + // P5: Output only. The 5th percentile of the values in the population. + P5 float64 `json:"p5,omitempty"` + // P95: Output only. The 95th percentile of the values in the population. + P95 float64 `json:"p95,omitempty"` + // Sum: Output only. Sum of a given population of values. + Sum int64 `json:"sum,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Buckets") 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. "Buckets") 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 *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Mean gensupport.JSONFloat64 `json:"mean"` + Median gensupport.JSONFloat64 `json:"median"` + Min gensupport.JSONFloat64 `json:"min"` + P5 gensupport.JSONFloat64 `json:"p5"` + P95 gensupport.JSONFloat64 `json:"p95"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Mean = float64(s1.Mean) + s.Median = float64(s1.Median) + s.Min = float64(s1.Min) + s.P5 = float64(s1.P5) + s.P95 = float64(s1.P95) + return nil +} + +// GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket: +// +// Dataset bucket used to create a histogram for the distribution given a +// +// population of values. +type GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket struct { + // Count: Output only. Number of values in the bucket. + Count float64 `json:"count,omitempty"` + // Left: Output only. Left bound of the bucket. + Left float64 `json:"left,omitempty"` + // Right: Output only. Right bound of the bucket. + Right float64 `json:"right,omitempty"` + // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket + var s1 struct { + Count gensupport.JSONFloat64 `json:"count"` + Left gensupport.JSONFloat64 `json:"left"` + Right gensupport.JSONFloat64 `json:"right"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Count = float64(s1.Count) + s.Left = float64(s1.Left) + s.Right = float64(s1.Right) + return nil +} + +// GoogleCloudAiplatformV1beta1SupervisedTuningSpec: Tuning Spec for Supervised +// Tuning. +type GoogleCloudAiplatformV1beta1SupervisedTuningSpec struct { + // HyperParameters: Optional. Hyperparameters for SFT. + HyperParameters *GoogleCloudAiplatformV1beta1SupervisedHyperParameters `json:"hyperParameters,omitempty"` + // TrainingDatasetUri: Required. Cloud Storage path to file containing training + // dataset for tuning. The dataset must be formatted as a JSONL file. + TrainingDatasetUri string `json:"trainingDatasetUri,omitempty"` + // ValidationDatasetUri: Optional. Cloud Storage path to file containing + // validation dataset for tuning. The dataset must be formatted as a JSONL + // file. + ValidationDatasetUri string `json:"validationDatasetUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "HyperParameters") 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. "HyperParameters") 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 *GoogleCloudAiplatformV1beta1SupervisedTuningSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SupervisedTuningSpec + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SyncFeatureViewRequest: Request message for // FeatureOnlineStoreAdminService.SyncFeatureView. type GoogleCloudAiplatformV1beta1SyncFeatureViewRequest struct { @@ -35787,6 +36009,148 @@ func (s *GoogleCloudAiplatformV1beta1TrialParameter) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1TunedModel: The Model Registry Model and Online +// Prediction Endpoint assiociated with this TuningJob. +type GoogleCloudAiplatformV1beta1TunedModel struct { + // Endpoint: Output only. A resource name of an Endpoint. Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}`. + Endpoint string `json:"endpoint,omitempty"` + // Model: Output only. The resource name of the TunedModel. Format: + // `projects/{project}/locations/{location}/models/{model}`. + Model string `json:"model,omitempty"` + // ForceSendFields is a list of field names (e.g. "Endpoint") 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. "Endpoint") 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 *GoogleCloudAiplatformV1beta1TunedModel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1TunedModel + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1TuningDataStats: The tuning data statistic +// values for TuningJob. +type GoogleCloudAiplatformV1beta1TuningDataStats struct { + // SupervisedTuningDataStats: The SFT Tuning data stats. + SupervisedTuningDataStats *GoogleCloudAiplatformV1beta1SupervisedTuningDataStats `json:"supervisedTuningDataStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "SupervisedTuningDataStats") + // 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. "SupervisedTuningDataStats") 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 *GoogleCloudAiplatformV1beta1TuningDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1TuningDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1TuningJob: Represents a TuningJob that runs with +// Google owned models. +type GoogleCloudAiplatformV1beta1TuningJob struct { + // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". + BaseModel string `json:"baseModel,omitempty"` + // CreateTime: Output only. Time when the TuningJob was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. The description of the TuningJob. + Description string `json:"description,omitempty"` + // EncryptionSpec: Customer-managed encryption key options for a TuningJob. If + // this is set, then all resources created by the TuningJob will be encrypted + // with the provided encryption key. + EncryptionSpec *GoogleCloudAiplatformV1beta1EncryptionSpec `json:"encryptionSpec,omitempty"` + // EndTime: Output only. Time when the TuningJob entered any of the following + // JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, + // `JOB_STATE_EXPIRED`. + EndTime string `json:"endTime,omitempty"` + // Error: Output only. Only populated when job's state is `JOB_STATE_FAILED` or + // `JOB_STATE_CANCELLED`. + Error *GoogleRpcStatus `json:"error,omitempty"` + // Experiment: Output only. The Experiment associated with this TuningJob. + Experiment string `json:"experiment,omitempty"` + // Labels: Optional. The labels with user-defined metadata to organize + // TuningJob and generated resources such as Model and Endpoint. Label keys and + // values can be no longer than 64 characters (Unicode codepoints), can only + // contain lowercase letters, numeric characters, underscores and dashes. + // International characters are allowed. See https://goo.gl/xmQnxf for more + // information and examples of labels. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. Identifier. Resource name of a TuningJob. Format: + // `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` + Name string `json:"name,omitempty"` + // StartTime: Output only. Time when the TuningJob for the first time entered + // the `JOB_STATE_RUNNING` state. + StartTime string `json:"startTime,omitempty"` + // State: Output only. The detailed state of the job. + // + // Possible values: + // "JOB_STATE_UNSPECIFIED" - The job state is unspecified. + // "JOB_STATE_QUEUED" - The job has been just created or resumed and + // processing has not yet begun. + // "JOB_STATE_PENDING" - The service is preparing to run the job. + // "JOB_STATE_RUNNING" - The job is in progress. + // "JOB_STATE_SUCCEEDED" - The job completed successfully. + // "JOB_STATE_FAILED" - The job failed. + // "JOB_STATE_CANCELLING" - The job is being cancelled. From this state the + // job may only go to either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or + // `JOB_STATE_CANCELLED`. + // "JOB_STATE_CANCELLED" - The job has been cancelled. + // "JOB_STATE_PAUSED" - The job has been stopped, and can be resumed. + // "JOB_STATE_EXPIRED" - The job has expired. + // "JOB_STATE_UPDATING" - The job is being updated. Only jobs in the + // `RUNNING` state can be updated. After updating, the job goes back to the + // `RUNNING` state. + // "JOB_STATE_PARTIALLY_SUCCEEDED" - The job is partially succeeded, some + // results may be missing due to errors. + State string `json:"state,omitempty"` + // SupervisedTuningSpec: Tuning Spec for Supervised Fine Tuning. + SupervisedTuningSpec *GoogleCloudAiplatformV1beta1SupervisedTuningSpec `json:"supervisedTuningSpec,omitempty"` + // TunedModel: Output only. The tuned model resources assiociated with this + // TuningJob. + TunedModel *GoogleCloudAiplatformV1beta1TunedModel `json:"tunedModel,omitempty"` + // TunedModelDisplayName: Optional. The display name of the TunedModel. The + // name can be up to 128 characters long and can consist of any UTF-8 + // characters. + TunedModelDisplayName string `json:"tunedModelDisplayName,omitempty"` + // TuningDataStats: Output only. The tuning data statistics associated with + // this TuningJob. + TuningDataStats *GoogleCloudAiplatformV1beta1TuningDataStats `json:"tuningDataStats,omitempty"` + // UpdateTime: Output only. Time when the TuningJob was most recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "BaseModel") 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. "BaseModel") 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 *GoogleCloudAiplatformV1beta1TuningJob) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1TuningJob + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1UndeployIndexOperationMetadata: Runtime // operation information for IndexEndpointService.UndeployIndex. type GoogleCloudAiplatformV1beta1UndeployIndexOperationMetadata struct { @@ -38935,6 +39299,29 @@ func (s *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult) MarshalJSON return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRecitationContentChunkRecitationCheckResult: Recitation check +// result for a single content chunk. +type LearningGenaiRecitationContentChunkRecitationCheckResult struct { + ImageResult *LearningGenaiRecitationImageRecitationCheckResult `json:"imageResult,omitempty"` + TextResult *LearningGenaiRecitationRecitationResult `json:"textResult,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageResult") 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. "ImageResult") 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 *LearningGenaiRecitationContentChunkRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationContentChunkRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // LearningGenaiRecitationDocAttribution: The proto defines the attribution // information for a document using whatever fields are most applicable for // that document's datasource. For example, a Wikipedia article's attribution @@ -39482,6 +39869,159 @@ func (s *LearningGenaiRecitationDocAttribution) UnmarshalJSON(data []byte) error return nil } +// LearningGenaiRecitationImageDocAttribution: Attribution information about +// the recited image. +type LearningGenaiRecitationImageDocAttribution struct { + // DatasetName: Unique ID of the image. + // + // Possible values: + // "IMAGE_DATA_SET_UNSPECIFIED" + // "JUNO_SHUTTERSTOCK_V1" - go/tigg-shutterstock + // "JUNO_V1_HIPR" - go/hipr-in-tigg-notes + // "JUNO_V1_WEBLI_AESTHETICS_V2_4_5" + // "JUNO_V1_TIGG_DATA_V1" + // "JUNO_V1_PINTEREST_A" + // "JUNO_V1_PINTEREST_B" + // "JUNO_V1_IMAGEJOINS" + // "JUNO_V1_M1" + // "JUNO_V1_M2_MISC" + // "JUNO_V1_M2_ART" + // "JUNO_V1_DEVIANTAR" + // "IMAGE_PASSAGE" - go/image-passage + DatasetName string `json:"datasetName,omitempty"` + // StringDocids: Doc ID to identify the image. These could be urls of images or + // amarna id. + StringDocids string `json:"stringDocids,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatasetName") 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. "DatasetName") 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 *LearningGenaiRecitationImageDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageDocAttribution + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRecitationImageRecitationCheckResult struct { + // RecitationAction: Only has NO_ACTION or BLOCK to start with. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is + // exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + // RecitedImages: Images that are similar to the requested image. + RecitedImages []*LearningGenaiRecitationImageRecitationCheckResultSimilarImage `json:"recitedImages,omitempty"` + // ForceSendFields is a list of field names (e.g. "RecitationAction") 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. "RecitationAction") 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 *LearningGenaiRecitationImageRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRecitationImageRecitationCheckResultSimilarImage struct { + // DocAttribution: Attribution information about the image + DocAttribution *LearningGenaiRecitationImageDocAttribution `json:"docAttribution,omitempty"` + // EmbeddingModel: The memorization embedding model that returned this image + // + // Possible values: + // "EMBEDDING_MODEL_UNSPECIFIED" + // "STARBURST_V4" - Starburst V4, 64 float features. + // "REISIM" - Reisim, 128 Byte float feature + EmbeddingModel string `json:"embeddingModel,omitempty"` + // ImageId: Image ID corresponding of the image corresponding to the score. + // `image_id` serves for debugging purposes and can't be used by clients to + // retrieve an image. + ImageId uint64 `json:"imageId,omitempty,string"` + // Scores: Similarity score of requested image compared with image in training + // data. + Scores float64 `json:"scores,omitempty"` + // ForceSendFields is a list of field names (e.g. "DocAttribution") 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. "DocAttribution") 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 *LearningGenaiRecitationImageRecitationCheckResultSimilarImage) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationImageRecitationCheckResultSimilarImage + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRecitationImageRecitationCheckResultSimilarImage) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRecitationImageRecitationCheckResultSimilarImage + var s1 struct { + Scores gensupport.JSONFloat64 `json:"scores"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Scores = float64(s1.Scores) + return nil +} + +// LearningGenaiRecitationMMRecitationCheckResult: Recitation check result for +// a stream of content chunks (e.g. a model response). +type LearningGenaiRecitationMMRecitationCheckResult struct { + ChunkResults []*LearningGenaiRecitationContentChunkRecitationCheckResult `json:"chunkResults,omitempty"` + // RecitationAction: Overall recommended recitation action for the content. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is + // exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkResults") 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. "ChunkResults") 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 *LearningGenaiRecitationMMRecitationCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationMMRecitationCheckResult + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // LearningGenaiRecitationRecitationResult: The recitation result for one input type LearningGenaiRecitationRecitationResult struct { DynamicSegmentResults []*LearningGenaiRecitationSegmentResult `json:"dynamicSegmentResults,omitempty"` @@ -40855,6 +41395,9 @@ func (s *LearningGenaiRootHarmGrailTextHarmType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRootHarmSafetyCatCategories: +// LINT.ThenChange(//depot/google3/learning/genai/root/util/classifier/backends/ +// grail/grail.cc) type LearningGenaiRootHarmSafetyCatCategories struct { // Possible values: // "SAFETYCAT_CATEGORY_UNSPECIFIED" @@ -40899,6 +41442,7 @@ func (s *LearningGenaiRootHarmSafetyCatCategories) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// LearningGenaiRootHarmSpiiFilter: LINT.IfChange type LearningGenaiRootHarmSpiiFilter struct { UsBankRoutingMicr bool `json:"usBankRoutingMicr,omitempty"` UsEmployerIdentificationNumber bool `json:"usEmployerIdentificationNumber,omitempty"` @@ -41028,6 +41572,9 @@ type LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata st // Prompt2queryMilliseconds: Latency spent on prompt2query. The procedure // generates a search-friendly query given the original prompt. Prompt2queryMilliseconds int64 `json:"prompt2queryMilliseconds,omitempty,string"` + // RetrievalAugmentMilliseconds: Latency if use GroundedGeneration service for + // the whole retrieval & augmentation. + RetrievalAugmentMilliseconds int64 `json:"retrievalAugmentMilliseconds,omitempty,string"` // ForceSendFields is a list of field names (e.g. // "FactRetrievalMillisecondsByProvider") to unconditionally include in API // requests. By default, fields with empty or default values are omitted from @@ -41111,6 +41658,110 @@ func (s *LearningGenaiRootRegexTakedownResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +type LearningGenaiRootRequestMetrics struct { + // AudioMetrics: Metrics for audio samples in the request. + AudioMetrics *LearningGenaiRootRequestMetricsAudioMetrics `json:"audioMetrics,omitempty"` + // ImageMetrics: Metrics for image samples in the request. + ImageMetrics *LearningGenaiRootRequestMetricsImageMetrics `json:"imageMetrics,omitempty"` + // TextTokenCount: Number of text tokens extracted from the request. + TextTokenCount int64 `json:"textTokenCount,omitempty"` + // TotalTokenCount: Total number of tokens in the request. + TotalTokenCount int64 `json:"totalTokenCount,omitempty"` + // VideoMetrics: Metrics for video samples in the request. + VideoMetrics *LearningGenaiRootRequestMetricsVideoMetrics `json:"videoMetrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioMetrics") 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. "AudioMetrics") 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 *LearningGenaiRootRequestMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsAudioMetrics struct { + // AudioDuration: Duration of the audio sample in seconds. + AudioDuration string `json:"audioDuration,omitempty"` + // AudioTokenCount: Number of tokens derived directly from audio data. + AudioTokenCount int64 `json:"audioTokenCount,omitempty"` + // NumAudioFrames: Number of audio frames in the audio. + NumAudioFrames int64 `json:"numAudioFrames,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioDuration") 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. "AudioDuration") 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 *LearningGenaiRootRequestMetricsAudioMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsAudioMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsImageMetrics struct { + // ImageTokenCount: Number of tokens extracted from image bytes. + ImageTokenCount int64 `json:"imageTokenCount,omitempty"` + // NumImages: Number of images in the request. + NumImages int64 `json:"numImages,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageTokenCount") 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. "ImageTokenCount") 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 *LearningGenaiRootRequestMetricsImageMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsImageMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestMetricsVideoMetrics struct { + // AudioSample: Metrics associated with audio sample in the video. + AudioSample *LearningGenaiRootRequestMetricsAudioMetrics `json:"audioSample,omitempty"` + // NumVideoFrames: Number of video frames in the video. + NumVideoFrames int64 `json:"numVideoFrames,omitempty"` + // VideoDuration: Duration of the video sample in seconds. + VideoDuration string `json:"videoDuration,omitempty"` + // VideoFramesTokenCount: Number of tokens extracted from video frames. + VideoFramesTokenCount int64 `json:"videoFramesTokenCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioSample") 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. "AudioSample") 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 *LearningGenaiRootRequestMetricsVideoMetrics) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestMetricsVideoMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + type LearningGenaiRootRequestResponseTakedownResult struct { // Allowed: False when response has to be taken down per above config. Allowed bool `json:"allowed,omitempty"` @@ -41809,7 +42460,7 @@ func (s *LearningServingLlmAtlasOutputMetadata) MarshalJSON() ([]byte, error) { } // LearningServingLlmMessageMetadata: LINT.IfChange This metadata contains -// additional information required for debugging. Next ID: 28 +// additional information required for debugging. type LearningServingLlmMessageMetadata struct { AtlasMetadata *LearningServingLlmAtlasOutputMetadata `json:"atlasMetadata,omitempty"` // ClassifierSummary: Summary of classifier output. We attach this to all @@ -41851,6 +42502,16 @@ type LearningServingLlmMessageMetadata struct { Language string `json:"language,omitempty"` // LmPrefix: The LM prefix used to generate this response. LmPrefix string `json:"lmPrefix,omitempty"` + // LmrootInternalRequestMetrics: FOR LMROOT INTERNAL USE ONLY. Externally, use + // learning.genai.root.RequestMetadata.RequestMetrics. Request metrics per + // modality including token count, duration, num_frames. + LmrootInternalRequestMetrics *LearningGenaiRootRequestMetrics `json:"lmrootInternalRequestMetrics,omitempty"` + // MmRecitationResult: Multi modal recitation results. It will be populated as + // long as Multi modal Recitation processor is invoked. + MmRecitationResult *LearningGenaiRecitationMMRecitationCheckResult `json:"mmRecitationResult,omitempty"` + // NumRewinds: Number of Controlled Decoding rewind and repeats that have + // happened for this response. + NumRewinds int64 `json:"numRewinds,omitempty"` // OriginalText: The original text generated by LLM. This is the raw output for // debugging purposes. OriginalText string `json:"originalText,omitempty"` @@ -41870,10 +42531,6 @@ type LearningServingLlmMessageMetadata struct { // RecitationResult: Recitation Results. It will be populated as long as // Recitation processing is enabled, regardless of recitation outcome. RecitationResult *LearningGenaiRecitationRecitationResult `json:"recitationResult,omitempty"` - // ReturnTokenCount: NOT IMPLEMENTED TODO (b/334187574) Remove this field after - // Labs migrates to per_stream_returned_token_count and - // total_returned_token_count. - ReturnTokenCount int64 `json:"returnTokenCount,omitempty"` // Scores: All the different scores for a message are logged here. Scores []*LearningGenaiRootScore `json:"scores,omitempty"` // StreamTerminated: Whether the response is terminated during streaming @@ -50758,68 +51415,68 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Con } } -type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Restore: Restores a dataset version. +// Patch: Updates a DatasetVersion. // -// - name: The name of the DatasetVersion resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions -// /{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { - c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the DatasetVersion. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Patch(name string, googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c := &ProjectsLocationsDatasetsDatasetVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1datasetversion = googlecloudaiplatformv1beta1datasetversion + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Updatable fields: * `display_name` +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1datasetversion) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restore") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -50830,13 +51487,13 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" call. +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1beta1DatasetVersion.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DatasetVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50855,7 +51512,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1DatasetVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50868,27 +51525,22 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea return ret, nil } -type ProjectsLocationsDatasetsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Restore: Restores a dataset version. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { - c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DatasetVersion resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions +// /{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { + c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50896,34 +51548,45 @@ func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restore") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -50934,13 +51597,13 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50959,7 +51622,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50972,7 +51635,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal return ret, nil } -type ProjectsLocationsDatasetsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50980,14 +51643,19 @@ type ProjectsLocationsDatasetsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { + c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50995,34 +51663,34 @@ func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -51033,13 +51701,112 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsDatasetsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -112431,6 +113198,480 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsWaitCall) Do(opts ...google return ret, nil } +type ProjectsLocationsTuningJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1canceltuningjobrequest *GoogleCloudAiplatformV1beta1CancelTuningJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a TuningJob. Starts asynchronous cancellation on the +// TuningJob. The server makes a best effort to cancel the job, but success is +// not guaranteed. Clients can use GenAiTuningService.GetTuningJob or other +// methods to check whether the cancellation succeeded or whether the job +// completed despite cancellation. On successful cancellation, the TuningJob is +// not deleted; instead it becomes a job with a TuningJob.error value with a +// google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and +// TuningJob.state is set to `CANCELLED`. +// +// - name: The name of the TuningJob to cancel. Format: +// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`. +func (r *ProjectsLocationsTuningJobsService) Cancel(name string, googlecloudaiplatformv1beta1canceltuningjobrequest *GoogleCloudAiplatformV1beta1CancelTuningJobRequest) *ProjectsLocationsTuningJobsCancelCall { + c := &ProjectsLocationsTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1canceltuningjobrequest = googlecloudaiplatformv1beta1canceltuningjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1canceltuningjobrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsTuningJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1tuningjob *GoogleCloudAiplatformV1beta1TuningJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a TuningJob. A created TuningJob right away will be +// attempted to be run. +// +// - parent: The resource name of the Location to create the TuningJob in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) Create(parent string, googlecloudaiplatformv1beta1tuningjob *GoogleCloudAiplatformV1beta1TuningJob) *ProjectsLocationsTuningJobsCreateCall { + c := &ProjectsLocationsTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1tuningjob = googlecloudaiplatformv1beta1tuningjob + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1tuningjob) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tuningJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1TuningJob.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1TuningJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1TuningJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsTuningJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a TuningJob. +// +// - name: The name of the TuningJob resource. Format: +// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`. +func (r *ProjectsLocationsTuningJobsService) Get(name string) *ProjectsLocationsTuningJobsGetCall { + c := &ProjectsLocationsTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTuningJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1TuningJob.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1TuningJob, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1TuningJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsTuningJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists TuningJobs in a Location. +// +// - parent: The resource name of the Location to list the TuningJobs from. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) List(parent string) *ProjectsLocationsTuningJobsListCall { + c := &ProjectsLocationsTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsTuningJobsListCall) Filter(filter string) *ProjectsLocationsTuningJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsTuningJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. Typically obtained via ListTuningJob.next_page_token of the previous +// GenAiTuningService.ListTuningJob][] call. +func (c *ProjectsLocationsTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsTuningJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTuningJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tuningJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListTuningJobsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListTuningJobsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1ListTuningJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListTuningJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type PublishersModelsGetCall struct { s *Service name string diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 74619874ae..2624899747 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4731,7 +4731,7 @@ } } }, - "revision": "20240507", + "revision": "20240509", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -5630,7 +5630,7 @@ "type": "object" }, "CanceledStateContext": { - "description": "Information specific to a subscription in canceled state.", + "description": "Information specific to a subscription in the SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED state.", "id": "CanceledStateContext", "properties": { "developerInitiatedCancellation": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 5c76f706e7..b96b854b27 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -1818,8 +1818,8 @@ func (s *CancelSurveyResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// CanceledStateContext: Information specific to a subscription in canceled -// state. +// CanceledStateContext: Information specific to a subscription in the +// SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED state. type CanceledStateContext struct { // DeveloperInitiatedCancellation: Subscription was canceled by the developer. DeveloperInitiatedCancellation *DeveloperInitiatedCancellation `json:"developerInitiatedCancellation,omitempty"` diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 3f338c30fe..6711111c86 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -4026,7 +4026,7 @@ "id": "Space", "properties": { "adminInstalled": { - "description": "Output only. Whether the Chat app was installed by a Google Workspace administrator. Administrators can install a Chat app for their domain, organizational unit, or a group of users. Administrators can only install Chat apps for direct messaging between users and the app. To support admin install, your app must feature direct messaging.", + "description": "Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization. To support admin install, your Chat app must feature direct messaging.", "readOnly": true, "type": "boolean" }, diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index c014441eb5..f36b2ab461 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -4521,11 +4521,11 @@ func (s *SlashCommandMetadata) MarshalJSON() ([]byte, error) { // Space: A space in Google Chat. Spaces are conversations between two or more // users or 1:1 messages between a user and a Chat app. type Space struct { - // AdminInstalled: Output only. Whether the Chat app was installed by a Google - // Workspace administrator. Administrators can install a Chat app for their - // domain, organizational unit, or a group of users. Administrators can only - // install Chat apps for direct messaging between users and the app. To support - // admin install, your app must feature direct messaging. + // AdminInstalled: Output only. For direct message (DM) spaces with a Chat app, + // whether the space was created by a Google Workspace administrator. + // Administrators can install and set up a direct message with a Chat app on + // behalf of users in their organization. To support admin install, your Chat + // app must feature direct messaging. AdminInstalled bool `json:"adminInstalled,omitempty"` // CreateTime: Optional. Immutable. For spaces created in Chat, the time the // space was created. This field is output only, except when used in import diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index c0545338a8..547b62e1e3 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -512,7 +512,7 @@ } } }, - "revision": "20240419", + "revision": "20240506", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -740,7 +740,13 @@ "STANDARD_XLARGE", "STANDARD_2XLARGE", "STANDARD_3XLARGE", - "DEV_XSMALL" + "DEV_XSMALL", + "MULTIREGION_SMALL", + "MULTIREGION_MEDIUM", + "MULTIREGION_LARGE", + "MULTIREGION_XLARGE", + "MULTIREGION_2XLARGE", + "MULTIREGION_3XLARGE" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -750,7 +756,13 @@ "Instance Size STANDARD_XLARGE.", "Instance Size STANDARD_2XLARGE.", "Instance Size STANDARD_3XLARGE.", - "Instance Size DEV_EXTRA_SMALL." + "Instance Size DEV_EXTRA_SMALL.", + "Instance Size MULTIREGION_SMALL", + "Instance Size MULTIREGION_MEDIUM", + "Instance Size MULTIREGION_LARGE", + "Instance Size MULTIREGION_XLARGE", + "Instance Size MULTIREGION_2XLARGE.", + "Instance Size MULTIREGION_3XLARGE." ], "type": "string" } @@ -965,7 +977,13 @@ "STANDARD_XLARGE", "STANDARD_2XLARGE", "STANDARD_3XLARGE", - "DEV_XSMALL" + "DEV_XSMALL", + "MULTIREGION_SMALL", + "MULTIREGION_MEDIUM", + "MULTIREGION_LARGE", + "MULTIREGION_XLARGE", + "MULTIREGION_2XLARGE", + "MULTIREGION_3XLARGE" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -975,7 +993,13 @@ "Instance Size STANDARD_XLARGE.", "Instance Size STANDARD_2XLARGE.", "Instance Size STANDARD_3XLARGE.", - "Instance Size DEV_EXTRA_SMALL." + "Instance Size DEV_EXTRA_SMALL.", + "Instance Size MULTIREGION_SMALL", + "Instance Size MULTIREGION_MEDIUM", + "Instance Size MULTIREGION_LARGE", + "Instance Size MULTIREGION_XLARGE", + "Instance Size MULTIREGION_2XLARGE.", + "Instance Size MULTIREGION_3XLARGE." ], "type": "string" } diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index f6f7551349..edee4bcf75 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -402,6 +402,12 @@ type InstanceConfig struct { // "STANDARD_2XLARGE" - Instance Size STANDARD_2XLARGE. // "STANDARD_3XLARGE" - Instance Size STANDARD_3XLARGE. // "DEV_XSMALL" - Instance Size DEV_EXTRA_SMALL. + // "MULTIREGION_SMALL" - Instance Size MULTIREGION_SMALL + // "MULTIREGION_MEDIUM" - Instance Size MULTIREGION_MEDIUM + // "MULTIREGION_LARGE" - Instance Size MULTIREGION_LARGE + // "MULTIREGION_XLARGE" - Instance Size MULTIREGION_XLARGE + // "MULTIREGION_2XLARGE" - Instance Size MULTIREGION_2XLARGE. + // "MULTIREGION_3XLARGE" - Instance Size MULTIREGION_3XLARGE. InstanceSize string `json:"instanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSize") to // unconditionally include in API requests. By default, fields with empty or @@ -657,6 +663,12 @@ type Quota struct { // "STANDARD_2XLARGE" - Instance Size STANDARD_2XLARGE. // "STANDARD_3XLARGE" - Instance Size STANDARD_3XLARGE. // "DEV_XSMALL" - Instance Size DEV_EXTRA_SMALL. + // "MULTIREGION_SMALL" - Instance Size MULTIREGION_SMALL + // "MULTIREGION_MEDIUM" - Instance Size MULTIREGION_MEDIUM + // "MULTIREGION_LARGE" - Instance Size MULTIREGION_LARGE + // "MULTIREGION_XLARGE" - Instance Size MULTIREGION_XLARGE + // "MULTIREGION_2XLARGE" - Instance Size MULTIREGION_2XLARGE. + // "MULTIREGION_3XLARGE" - Instance Size MULTIREGION_3XLARGE. ContactCenterInstanceSize string `json:"contactCenterInstanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "ContactCenterCountLimit") to // unconditionally include in API requests. By default, fields with empty or diff --git a/container/v1/container-api.json b/container/v1/container-api.json index c467066aea..ae43d91c40 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20240409", + "revision": "20240422", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3369,6 +3369,16 @@ "$ref": "ResourceUsageExportConfig", "description": "Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "securityPostureConfig": { "$ref": "SecurityPostureConfig", "description": "Enable/Disable Security Posture API features for the cluster." @@ -3661,6 +3671,14 @@ "$ref": "ClusterNetworkPerformanceConfig", "description": "The desired network performance config." }, + "desiredNodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "The desired node kubelet config for the cluster." + }, + "desiredNodePoolAutoConfigKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "The desired node kubelet config for all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." + }, "desiredNodePoolAutoConfigNetworkTags": { "$ref": "NetworkTags", "description": "The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." @@ -5463,6 +5481,10 @@ "loggingConfig": { "$ref": "NodePoolLoggingConfig", "description": "Logging configuration for node pools." + }, + "nodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "NodeKubeletConfig controls the defaults for new node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be set here." } }, "type": "object" @@ -5709,6 +5731,10 @@ "$ref": "NetworkTags", "description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035." }, + "nodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "NodeKubeletConfig controls the defaults for autoprovisioned node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be set here." + }, "resourceManagerTags": { "$ref": "ResourceManagerTags", "description": "Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies." diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 2d2f3226bd..84dc2d71c9 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1272,6 +1272,10 @@ type Cluster struct { // ResourceUsageExportConfig: Configuration for exporting resource usages. // Resource usage export is disabled when this config is unspecified. ResourceUsageExportConfig *ResourceUsageExportConfig `json:"resourceUsageExportConfig,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SecurityPostureConfig: Enable/Disable Security Posture API features for the // cluster. SecurityPostureConfig *SecurityPostureConfig `json:"securityPostureConfig,omitempty"` @@ -1544,6 +1548,12 @@ type ClusterUpdate struct { DesiredMonitoringService string `json:"desiredMonitoringService,omitempty"` // DesiredNetworkPerformanceConfig: The desired network performance config. DesiredNetworkPerformanceConfig *ClusterNetworkPerformanceConfig `json:"desiredNetworkPerformanceConfig,omitempty"` + // DesiredNodeKubeletConfig: The desired node kubelet config for the cluster. + DesiredNodeKubeletConfig *NodeKubeletConfig `json:"desiredNodeKubeletConfig,omitempty"` + // DesiredNodePoolAutoConfigKubeletConfig: The desired node kubelet config for + // all auto-provisioned node pools in autopilot clusters and node + // auto-provisioning enabled clusters. + DesiredNodePoolAutoConfigKubeletConfig *NodeKubeletConfig `json:"desiredNodePoolAutoConfigKubeletConfig,omitempty"` // DesiredNodePoolAutoConfigNetworkTags: The desired network tags that apply to // all auto-provisioned node pools in autopilot clusters and node // auto-provisioning enabled clusters. @@ -3993,6 +4003,10 @@ type NodeConfigDefaults struct { GcfsConfig *GcfsConfig `json:"gcfsConfig,omitempty"` // LoggingConfig: Logging configuration for node pools. LoggingConfig *NodePoolLoggingConfig `json:"loggingConfig,omitempty"` + // NodeKubeletConfig: NodeKubeletConfig controls the defaults for new + // node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be + // set here. + NodeKubeletConfig *NodeKubeletConfig `json:"nodeKubeletConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ContainerdConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4319,6 +4333,10 @@ type NodePoolAutoConfig struct { // by the client during cluster creation. Each tag within the list must comply // with RFC1035. NetworkTags *NetworkTags `json:"networkTags,omitempty"` + // NodeKubeletConfig: NodeKubeletConfig controls the defaults for + // autoprovisioned node-pools. Currently only + // `insecure_kubelet_readonly_port_enabled` can be set here. + NodeKubeletConfig *NodeKubeletConfig `json:"nodeKubeletConfig,omitempty"` // ResourceManagerTags: Resource manager tag keys and values to be attached to // the nodes for managing Compute Engine firewalls using Network Firewall // Policies. diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 9420846114..e7f1039ff3 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -6219,7 +6219,7 @@ } } }, - "revision": "20240424", + "revision": "20240508", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -14015,6 +14015,22 @@ "description": "Price insights fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceInsightsProductView`. https://support.google.com/merchants/answer/11916926", "id": "PriceInsights", "properties": { + "effectiveness": { + "description": "The predicted effectiveness of applying the price suggestion, bucketed.", + "enum": [ + "EFFECTIVENESS_UNSPECIFIED", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Effectiveness is unknown.", + "Effectiveness is low.", + "Effectiveness is medium.", + "Effectiveness is high." + ], + "type": "string" + }, "predictedClicksChangeFraction": { "description": "The predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks.", "format": "double", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index dad2b88018..d19c67609d 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -11121,6 +11121,15 @@ func (s *PriceCompetitiveness) MarshalJSON() ([]byte, error) { // `PriceInsightsProductView`. // https://support.google.com/merchants/answer/11916926 type PriceInsights struct { + // Effectiveness: The predicted effectiveness of applying the price suggestion, + // bucketed. + // + // Possible values: + // "EFFECTIVENESS_UNSPECIFIED" - Effectiveness is unknown. + // "LOW" - Effectiveness is low. + // "MEDIUM" - Effectiveness is medium. + // "HIGH" - Effectiveness is high. + Effectiveness string `json:"effectiveness,omitempty"` // PredictedClicksChangeFraction: The predicted change in clicks as a fraction // after introducing the suggested price compared to current active price. For // example, 0.05 is a 5% predicted increase in clicks. @@ -11153,15 +11162,15 @@ type PriceInsights struct { // SuggestedPriceMicros: The latest suggested price in micros (1 millionth of a // standard unit, 1 USD = 1000000 micros) for the product. SuggestedPriceMicros int64 `json:"suggestedPriceMicros,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "PredictedClicksChangeFraction") 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 is a list of field names (e.g. "Effectiveness") 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. "PredictedClicksChangeFraction") - // to include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Effectiveness") 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:"-"` } diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 60b7304ce7..cc7e030438 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240503", + "revision": "20240508", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Blob": { @@ -668,6 +668,12 @@ }, "type": "object" }, + "GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", + "id": "GoogleSearchRetrieval", + "properties": {}, + "type": "object" + }, "GroundingMetadata": { "description": "Metadata returned to client when grounding is enabled.", "id": "GroundingMetadata", @@ -1111,6 +1117,10 @@ }, "type": "array" }, + "googleSearchRetrieval": { + "$ref": "GoogleSearchRetrieval", + "description": "Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search." + }, "retrieval": { "$ref": "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." diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index d7ebc4c8ee..5f0109a7d3 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -776,6 +776,11 @@ func (s *GenerationConfig) UnmarshalJSON(data []byte) error { return nil } +// GoogleSearchRetrieval: Tool to retrieve public web data for grounding, +// powered by Google. +type GoogleSearchRetrieval struct { +} + // GroundingMetadata: Metadata returned to client when grounding is enabled. type GroundingMetadata struct { // RetrievalQueries: Optional. Queries executed by the retrieval tools. @@ -1224,6 +1229,9 @@ type Tool struct { // will generate the final response back to the user. Maximum 64 function // declarations can be provided. FunctionDeclarations []*FunctionDeclaration `json:"functionDeclarations,omitempty"` + // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. + // Specialized retrieval tool that is powered by Google search. + GoogleSearchRetrieval *GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` // Retrieval: 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. diff --git a/migrationcenter/v1/migrationcenter-api.json b/migrationcenter/v1/migrationcenter-api.json index 8ab5ff9807..ab7b4254cb 100644 --- a/migrationcenter/v1/migrationcenter-api.json +++ b/migrationcenter/v1/migrationcenter-api.json @@ -2309,7 +2309,7 @@ } } }, - "revision": "20240411", + "revision": "20240502", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2666,7 +2666,7 @@ "id": "AssetPerformanceData", "properties": { "dailyResourceUsageAggregations": { - "description": "Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.", + "description": "Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 40 days. Aggregations are sorted from oldest to most recent.", "items": { "$ref": "DailyResourceUsageAggregation" }, diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index b4abd26d0a..3890eef89b 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -778,8 +778,8 @@ func (s *AssetList) MarshalJSON() ([]byte, error) { // AssetPerformanceData: Performance data for an asset. type AssetPerformanceData struct { // DailyResourceUsageAggregations: Daily resource usage aggregations. Contains - // all of the data available for an asset, up to the last 420 days. - // Aggregations are sorted from oldest to most recent. + // all of the data available for an asset, up to the last 40 days. Aggregations + // are sorted from oldest to most recent. DailyResourceUsageAggregations []*DailyResourceUsageAggregation `json:"dailyResourceUsageAggregations,omitempty"` // ForceSendFields is a list of field names (e.g. // "DailyResourceUsageAggregations") to unconditionally include in API diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 4f5367a815..11c25248f4 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2317,7 +2317,7 @@ } } }, - "revision": "20240421", + "revision": "20240502", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2715,7 +2715,7 @@ "id": "AssetPerformanceData", "properties": { "dailyResourceUsageAggregations": { - "description": "Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.", + "description": "Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 40 days. Aggregations are sorted from oldest to most recent.", "items": { "$ref": "DailyResourceUsageAggregation" }, @@ -3529,6 +3529,13 @@ "description": "Details of a database instance.", "id": "DatabaseInstance", "properties": { + "hosts": { + "description": "Optional. The instance's hosts.", + "items": { + "$ref": "DatabaseInstanceHost" + }, + "type": "array" + }, "instanceName": { "description": "The instance's name.", "type": "string" @@ -3552,6 +3559,17 @@ }, "type": "object" }, + "DatabaseInstanceHost": { + "description": "Details of a host of a database instance.", + "id": "DatabaseInstanceHost", + "properties": { + "hostName": { + "description": "Optional. The host name of the host.", + "type": "string" + } + }, + "type": "object" + }, "DatabaseObjects": { "description": "Details of a group of database objects.", "id": "DatabaseObjects", @@ -3788,6 +3806,10 @@ "description": "Details of a database schema.", "id": "DatabaseSchema", "properties": { + "mysql": { + "$ref": "MySqlSchemaDetails", + "description": "Details of a Mysql schema." + }, "objects": { "description": "List of details of objects by category.", "items": { @@ -3795,10 +3817,18 @@ }, "type": "array" }, + "postgresql": { + "$ref": "PostgreSqlSchemaDetails", + "description": "Details of a PostgreSql schema." + }, "schemaName": { "description": "The name of the schema.", "type": "string" }, + "sqlServer": { + "$ref": "SqlServerSchemaDetails", + "description": "Details of a SqlServer schema." + }, "tablesSizeBytes": { "description": "The total size of tables in bytes.", "format": "int64", @@ -5025,11 +5055,15 @@ "description": "Output only. Type of object associated with this migration compatibility issue.", "enum": [ "OBJECT_TYPE_UNSPECIFIED", - "DATABASE_DEPLOYMENT" + "DATABASE_DEPLOYMENT", + "DATABASE", + "SCHEMA" ], "enumDescriptions": [ "An unspecified object type.", - "A database deployment object type." + "A database deployment object type.", + "A logical database object type.", + "A schema object type." ], "readOnly": true, "type": "string" @@ -5499,6 +5533,108 @@ }, "type": "object" }, + "MySqlProperty": { + "description": "MySql property.", + "id": "MySqlProperty", + "properties": { + "enabled": { + "description": "Required. The property is enabled.", + "type": "boolean" + }, + "numericValue": { + "description": "Required. The property numeric value.", + "format": "int64", + "type": "string" + }, + "property": { + "description": "Required. The property name.", + "type": "string" + } + }, + "type": "object" + }, + "MySqlSchemaDetails": { + "description": "Specific details for a Mysql database.", + "id": "MySqlSchemaDetails", + "properties": { + "storageEngines": { + "description": "Optional. Mysql storage engine tables.", + "items": { + "$ref": "MySqlStorageEngineDetails" + }, + "type": "array" + } + }, + "type": "object" + }, + "MySqlStorageEngineDetails": { + "description": "Mysql storage engine tables.", + "id": "MySqlStorageEngineDetails", + "properties": { + "encryptedTableCount": { + "description": "Optional. The number of encrypted tables.", + "format": "int32", + "type": "integer" + }, + "engine": { + "description": "Required. The storage engine.", + "enum": [ + "ENGINE_UNSPECIFIED", + "INNODB", + "MYISAM", + "MEMORY", + "CSV", + "ARCHIVE", + "BLACKHOLE", + "NDB", + "MERGE", + "FEDERATED", + "EXAMPLE", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified storage engine.", + "InnoDB.", + "MyISAM.", + "Memory.", + "CSV.", + "Archive.", + "Blackhole.", + "NDB.", + "Merge.", + "Federated.", + "Example.", + "Other." + ], + "type": "string" + }, + "tableCount": { + "description": "Optional. The number of tables.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "MySqlVariable": { + "description": "MySql variable.", + "id": "MySqlVariable", + "properties": { + "category": { + "description": "Required. The variable category.", + "type": "string" + }, + "value": { + "description": "Required. The variable value.", + "type": "string" + }, + "variable": { + "description": "Required. The variable name.", + "type": "string" + } + }, + "type": "object" + }, "MysqlDatabaseDeployment": { "description": "Specific details for a Mysql database deployment.", "id": "MysqlDatabaseDeployment", @@ -5509,6 +5645,25 @@ "$ref": "MySqlPlugin" }, "type": "array" + }, + "properties": { + "description": "Optional. List of MySql properties.", + "items": { + "$ref": "MySqlProperty" + }, + "type": "array" + }, + "resourceGroupsCount": { + "description": "Optional. Number of resource groups.", + "format": "int32", + "type": "integer" + }, + "variables": { + "description": "Optional. List of MySql variables.", + "items": { + "$ref": "MySqlVariable" + }, + "type": "array" } }, "type": "object" @@ -5902,7 +6057,113 @@ "PostgreSqlDatabaseDeployment": { "description": "Specific details for a PostgreSQL database deployment.", "id": "PostgreSqlDatabaseDeployment", - "properties": {}, + "properties": { + "properties": { + "description": "Optional. List of PostgreSql properties.", + "items": { + "$ref": "PostgreSqlProperty" + }, + "type": "array" + }, + "settings": { + "description": "Optional. List of PostgreSql settings.", + "items": { + "$ref": "PostgreSqlSetting" + }, + "type": "array" + } + }, + "type": "object" + }, + "PostgreSqlExtension": { + "description": "PostgreSql extension.", + "id": "PostgreSqlExtension", + "properties": { + "extension": { + "description": "Required. The extension name.", + "type": "string" + }, + "version": { + "description": "Required. The extension version.", + "type": "string" + } + }, + "type": "object" + }, + "PostgreSqlProperty": { + "description": "PostgreSql property.", + "id": "PostgreSqlProperty", + "properties": { + "enabled": { + "description": "Required. The property is enabled.", + "type": "boolean" + }, + "numericValue": { + "description": "Required. The property numeric value.", + "format": "int64", + "type": "string" + }, + "property": { + "description": "Required. The property name.", + "type": "string" + } + }, + "type": "object" + }, + "PostgreSqlSchemaDetails": { + "description": "Specific details for a PostgreSql schema.", + "id": "PostgreSqlSchemaDetails", + "properties": { + "foreignTablesCount": { + "description": "Optional. PostgreSql foreign tables.", + "format": "int32", + "type": "integer" + }, + "postgresqlExtensions": { + "description": "Optional. PostgreSql extensions.", + "items": { + "$ref": "PostgreSqlExtension" + }, + "type": "array" + } + }, + "type": "object" + }, + "PostgreSqlSetting": { + "description": "PostgreSql setting.", + "id": "PostgreSqlSetting", + "properties": { + "boolValue": { + "description": "Required. The setting boolean value.", + "type": "boolean" + }, + "intValue": { + "description": "Required. The setting int value.", + "format": "int64", + "type": "string" + }, + "realValue": { + "description": "Required. The setting real value.", + "format": "float", + "type": "number" + }, + "setting": { + "description": "Required. The setting name.", + "type": "string" + }, + "source": { + "description": "Required. The setting source.", + "type": "string" + }, + "stringValue": { + "description": "Required. The setting string value. Notice that enum values are stored as strings.", + "type": "string" + }, + "unit": { + "description": "Optional. The setting unit.", + "type": "string" + } + }, "type": "object" }, "PreferenceSet": { @@ -7019,6 +7280,12 @@ }, "type": "object" }, + "SqlServerSchemaDetails": { + "description": "Specific details for a SqlServer database.", + "id": "SqlServerSchemaDetails", + "properties": {}, + "type": "object" + }, "SqlServerServerFlag": { "description": "SQL Server server flag details.", "id": "SqlServerServerFlag", diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 30b6efad29..778cc56d05 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -800,8 +800,8 @@ func (s *AssetList) MarshalJSON() ([]byte, error) { // AssetPerformanceData: Performance data for an asset. type AssetPerformanceData struct { // DailyResourceUsageAggregations: Daily resource usage aggregations. Contains - // all of the data available for an asset, up to the last 420 days. - // Aggregations are sorted from oldest to most recent. + // all of the data available for an asset, up to the last 40 days. Aggregations + // are sorted from oldest to most recent. DailyResourceUsageAggregations []*DailyResourceUsageAggregation `json:"dailyResourceUsageAggregations,omitempty"` // ForceSendFields is a list of field names (e.g. // "DailyResourceUsageAggregations") to unconditionally include in API @@ -1730,6 +1730,8 @@ func (s *DatabaseDetailsParentDatabaseDeployment) MarshalJSON() ([]byte, error) // DatabaseInstance: Details of a database instance. type DatabaseInstance struct { + // Hosts: Optional. The instance's hosts. + Hosts []*DatabaseInstanceHost `json:"hosts,omitempty"` // InstanceName: The instance's name. InstanceName string `json:"instanceName,omitempty"` // Role: The instance role in the database engine. @@ -1740,13 +1742,13 @@ type DatabaseInstance struct { // "SECONDARY" - Secondary. // "ARBITER" - Arbiter. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "Hosts") 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. "InstanceName") to include in API + // NullFields is a list of field names (e.g. "Hosts") 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. @@ -1758,6 +1760,28 @@ func (s *DatabaseInstance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// DatabaseInstanceHost: Details of a host of a database instance. +type DatabaseInstanceHost struct { + // HostName: Optional. The host name of the host. + HostName string `json:"hostName,omitempty"` + // ForceSendFields is a list of field names (e.g. "HostName") 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. "HostName") 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 *DatabaseInstanceHost) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstanceHost + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // DatabaseObjects: Details of a group of database objects. type DatabaseObjects struct { // Category: The category of the objects. @@ -2035,19 +2059,25 @@ func (s *DatabasePreferencesCloudSqlSqlServer) MarshalJSON() ([]byte, error) { // DatabaseSchema: Details of a database schema. type DatabaseSchema struct { + // Mysql: Details of a Mysql schema. + Mysql *MySqlSchemaDetails `json:"mysql,omitempty"` // Objects: List of details of objects by category. Objects []*DatabaseObjects `json:"objects,omitempty"` + // Postgresql: Details of a PostgreSql schema. + Postgresql *PostgreSqlSchemaDetails `json:"postgresql,omitempty"` // SchemaName: The name of the schema. SchemaName string `json:"schemaName,omitempty"` + // SqlServer: Details of a SqlServer schema. + SqlServer *SqlServerSchemaDetails `json:"sqlServer,omitempty"` // TablesSizeBytes: The total size of tables in bytes. TablesSizeBytes int64 `json:"tablesSizeBytes,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Objects") to unconditionally + // ForceSendFields is a list of field names (e.g. "Mysql") 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. "Objects") to include in API + // NullFields is a list of field names (e.g. "Mysql") 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. @@ -3383,6 +3413,8 @@ type IssueCompatibilityIssue struct { // Possible values: // "OBJECT_TYPE_UNSPECIFIED" - An unspecified object type. // "DATABASE_DEPLOYMENT" - A database deployment object type. + // "DATABASE" - A logical database object type. + // "SCHEMA" - A schema object type. AssociatedObjectType string `json:"associatedObjectType,omitempty"` // AssociatedValue: Output only. A string representation of actual value // associated with this issue. Some values may contain aggregated information, @@ -3992,10 +4024,130 @@ func (s *MySqlPlugin) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// MySqlProperty: MySql property. +type MySqlProperty struct { + // Enabled: Required. The property is enabled. + Enabled bool `json:"enabled,omitempty"` + // NumericValue: Required. The property numeric value. + NumericValue int64 `json:"numericValue,omitempty,string"` + // Property: Required. The property name. + Property string `json:"property,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *MySqlProperty) MarshalJSON() ([]byte, error) { + type NoMethod MySqlProperty + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// MySqlSchemaDetails: Specific details for a Mysql database. +type MySqlSchemaDetails struct { + // StorageEngines: Optional. Mysql storage engine tables. + StorageEngines []*MySqlStorageEngineDetails `json:"storageEngines,omitempty"` + // ForceSendFields is a list of field names (e.g. "StorageEngines") 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. "StorageEngines") 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 *MySqlSchemaDetails) MarshalJSON() ([]byte, error) { + type NoMethod MySqlSchemaDetails + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// MySqlStorageEngineDetails: Mysql storage engine tables. +type MySqlStorageEngineDetails struct { + // EncryptedTableCount: Optional. The number of encrypted tables. + EncryptedTableCount int64 `json:"encryptedTableCount,omitempty"` + // Engine: Required. The storage engine. + // + // Possible values: + // "ENGINE_UNSPECIFIED" - Unspecified storage engine. + // "INNODB" - InnoDB. + // "MYISAM" - MyISAM. + // "MEMORY" - Memory. + // "CSV" - CSV. + // "ARCHIVE" - Archive. + // "BLACKHOLE" - Blackhole. + // "NDB" - NDB. + // "MERGE" - Merge. + // "FEDERATED" - Federated. + // "EXAMPLE" - Example. + // "OTHER" - Other. + Engine string `json:"engine,omitempty"` + // TableCount: Optional. The number of tables. + TableCount int64 `json:"tableCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptedTableCount") 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. "EncryptedTableCount") 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 *MySqlStorageEngineDetails) MarshalJSON() ([]byte, error) { + type NoMethod MySqlStorageEngineDetails + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// MySqlVariable: MySql variable. +type MySqlVariable struct { + // Category: Required. The variable category. + Category string `json:"category,omitempty"` + // Value: Required. The variable value. + Value string `json:"value,omitempty"` + // Variable: Required. The variable name. + Variable string `json:"variable,omitempty"` + // ForceSendFields is a list of field names (e.g. "Category") 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. "Category") 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 *MySqlVariable) MarshalJSON() ([]byte, error) { + type NoMethod MySqlVariable + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // MysqlDatabaseDeployment: Specific details for a Mysql database deployment. type MysqlDatabaseDeployment struct { // Plugins: Optional. List of MySql plugins. Plugins []*MySqlPlugin `json:"plugins,omitempty"` + // Properties: Optional. List of MySql properties. + Properties []*MySqlProperty `json:"properties,omitempty"` + // ResourceGroupsCount: Optional. Number of resource groups. + ResourceGroupsCount int64 `json:"resourceGroupsCount,omitempty"` + // Variables: Optional. List of MySql variables. + Variables []*MySqlVariable `json:"variables,omitempty"` // ForceSendFields is a list of field names (e.g. "Plugins") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -4512,6 +4664,149 @@ func (s *PlatformDetails) MarshalJSON() ([]byte, error) { // PostgreSqlDatabaseDeployment: Specific details for a PostgreSQL database // deployment. type PostgreSqlDatabaseDeployment struct { + // Properties: Optional. List of PostgreSql properties. + Properties []*PostgreSqlProperty `json:"properties,omitempty"` + // Settings: Optional. List of PostgreSql settings. + Settings []*PostgreSqlSetting `json:"settings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Properties") 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. "Properties") 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 *PostgreSqlDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlDatabaseDeployment + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlExtension: PostgreSql extension. +type PostgreSqlExtension struct { + // Extension: Required. The extension name. + Extension string `json:"extension,omitempty"` + // Version: Required. The extension version. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Extension") 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. "Extension") 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 *PostgreSqlExtension) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlExtension + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlProperty: PostgreSql property. +type PostgreSqlProperty struct { + // Enabled: Required. The property is enabled. + Enabled bool `json:"enabled,omitempty"` + // NumericValue: Required. The property numeric value. + NumericValue int64 `json:"numericValue,omitempty,string"` + // Property: Required. The property name. + Property string `json:"property,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *PostgreSqlProperty) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlProperty + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlSchemaDetails: Specific details for a PostgreSql schema. +type PostgreSqlSchemaDetails struct { + // ForeignTablesCount: Optional. PostgreSql foreign tables. + ForeignTablesCount int64 `json:"foreignTablesCount,omitempty"` + // PostgresqlExtensions: Optional. PostgreSql extensions. + PostgresqlExtensions []*PostgreSqlExtension `json:"postgresqlExtensions,omitempty"` + // ForceSendFields is a list of field names (e.g. "ForeignTablesCount") 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. "ForeignTablesCount") 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 *PostgreSqlSchemaDetails) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlSchemaDetails + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// PostgreSqlSetting: PostgreSql setting. +type PostgreSqlSetting struct { + // BoolValue: Required. The setting boolean value. + BoolValue bool `json:"boolValue,omitempty"` + // IntValue: Required. The setting int value. + IntValue int64 `json:"intValue,omitempty,string"` + // RealValue: Required. The setting real value. + RealValue float64 `json:"realValue,omitempty"` + // Setting: Required. The setting name. + Setting string `json:"setting,omitempty"` + // Source: Required. The setting source. + Source string `json:"source,omitempty"` + // StringValue: Required. The setting string value. Notice that enum values are + // stored as strings. + StringValue string `json:"stringValue,omitempty"` + // Unit: Optional. The setting unit. + Unit string `json:"unit,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "BoolValue") 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 *PostgreSqlSetting) MarshalJSON() ([]byte, error) { + type NoMethod PostgreSqlSetting + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *PostgreSqlSetting) UnmarshalJSON(data []byte) error { + type NoMethod PostgreSqlSetting + var s1 struct { + RealValue gensupport.JSONFloat64 `json:"realValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.RealValue = float64(s1.RealValue) + return nil } // PreferenceSet: The preferences that apply to all assets in a given context. @@ -5781,6 +6076,10 @@ func (s *SqlServerFeature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// SqlServerSchemaDetails: Specific details for a SqlServer database. +type SqlServerSchemaDetails struct { +} + // SqlServerServerFlag: SQL Server server flag details. type SqlServerServerFlag struct { // ServerFlagName: Required. The server flag name. diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 934addc842..87c0268890 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20240424", + "revision": "20240508", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -199,8 +199,38 @@ "description": "Contains signals about others apps on the device which could be used to access or control the requesting app.", "id": "AppAccessRiskVerdict", "properties": { + "appsDetected": { + "description": "List of detected app types signalled for App Access Risk.", + "items": { + "enum": [ + "APPS_DETECTED_UNSPECIFIED", + "KNOWN_INSTALLED", + "KNOWN_CAPTURING", + "KNOWN_OVERLAYS", + "KNOWN_CONTROLLING", + "UNKNOWN_INSTALLED", + "UNKNOWN_CAPTURING", + "UNKNOWN_OVERLAYS", + "UNKNOWN_CONTROLLING" + ], + "enumDescriptions": [ + "Apps detected is unspecified.", + "One or more apps is installed by Google Play or preloaded on the system partition by the device manufacturer.", + "One or more apps installed by Google Play or preloaded on the device is running that could be used to read or capture the requesting app, such as a screen recording app.", + "One or more apps installed by Google Play or preloaded on the device is running that could be used to display overlays over the requesting app.", + "One or more apps installed by Google Play or preloaded on the device is running that could be used to control the device, such as a remote support app.", + "One or more unknown apps is installed, that were not installed by Google Play or preloaded on the system partition by the device manufacturer.", + "One or more unknown apps, which were not installed by Google Play or preloaded on the device, is running that could be used to read or capture the requesting app, such as a screen recording app.", + "One or more unknown apps, which were not installed by Google Play or preloaded on the device, is running that could be used to display overlays over the requesting app.", + "One or more unknown apps, which were not installed by Google Play or preloaded on the device, is running that could be used to control the device, such as a remote support app." + ], + "type": "string" + }, + "type": "array" + }, "otherApps": { - "description": "App access risk verdict related to apps that are not installed by Google Play, and are not preloaded on the system image by the device manufacturer.", + "deprecated": true, + "description": "Deprecated: this field will be removed, please use apps_detected instead. App access risk verdict related to apps that are not installed by Google Play, and are not preloaded on the system image by the device manufacturer.", "enum": [ "UNKNOWN", "UNEVALUATED", @@ -220,7 +250,8 @@ "type": "string" }, "playOrSystemApps": { - "description": "App access risk verdict related to apps that are not installed by the Google Play Store, and are not preloaded on the system image by the device manufacturer.", + "deprecated": true, + "description": "Deprecated: this field will be removed, please use apps_detected instead. App access risk verdict related to apps that are not installed by the Google Play Store, and are not preloaded on the system image by the device manufacturer.", "enum": [ "UNKNOWN", "UNEVALUATED", diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index ce8bb5e658..f02378ae7c 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -238,7 +238,36 @@ func (s *AccountDetails) MarshalJSON() ([]byte, error) { // AppAccessRiskVerdict: Contains signals about others apps on the device which // could be used to access or control the requesting app. type AppAccessRiskVerdict struct { - // OtherApps: App access risk verdict related to apps that are not installed by + // AppsDetected: List of detected app types signalled for App Access Risk. + // + // Possible values: + // "APPS_DETECTED_UNSPECIFIED" - Apps detected is unspecified. + // "KNOWN_INSTALLED" - One or more apps is installed by Google Play or + // preloaded on the system partition by the device manufacturer. + // "KNOWN_CAPTURING" - One or more apps installed by Google Play or preloaded + // on the device is running that could be used to read or capture the + // requesting app, such as a screen recording app. + // "KNOWN_OVERLAYS" - One or more apps installed by Google Play or preloaded + // on the device is running that could be used to display overlays over the + // requesting app. + // "KNOWN_CONTROLLING" - One or more apps installed by Google Play or + // preloaded on the device is running that could be used to control the device, + // such as a remote support app. + // "UNKNOWN_INSTALLED" - One or more unknown apps is installed, that were not + // installed by Google Play or preloaded on the system partition by the device + // manufacturer. + // "UNKNOWN_CAPTURING" - One or more unknown apps, which were not installed + // by Google Play or preloaded on the device, is running that could be used to + // read or capture the requesting app, such as a screen recording app. + // "UNKNOWN_OVERLAYS" - One or more unknown apps, which were not installed by + // Google Play or preloaded on the device, is running that could be used to + // display overlays over the requesting app. + // "UNKNOWN_CONTROLLING" - One or more unknown apps, which were not installed + // by Google Play or preloaded on the device, is running that could be used to + // control the device, such as a remote support app. + AppsDetected []string `json:"appsDetected,omitempty"` + // OtherApps: Deprecated: this field will be removed, please use apps_detected + // instead. App access risk verdict related to apps that are not installed by // Google Play, and are not preloaded on the system image by the device // manufacturer. // @@ -257,7 +286,8 @@ type AppAccessRiskVerdict struct { // control the device and inputs and outputs of the requesting app, such as // remote controlling apps. OtherApps string `json:"otherApps,omitempty"` - // PlayOrSystemApps: App access risk verdict related to apps that are not + // PlayOrSystemApps: Deprecated: this field will be removed, please use + // apps_detected instead. App access risk verdict related to apps that are not // installed by the Google Play Store, and are not preloaded on the system // image by the device manufacturer. // @@ -276,13 +306,13 @@ type AppAccessRiskVerdict struct { // control the device and inputs and outputs of the requesting app, such as // remote controlling apps. PlayOrSystemApps string `json:"playOrSystemApps,omitempty"` - // ForceSendFields is a list of field names (e.g. "OtherApps") to + // ForceSendFields is a list of field names (e.g. "AppsDetected") 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. "OtherApps") to include in API + // NullFields is a list of field names (e.g. "AppsDetected") 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. diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index b78a41c25b..ea24c9fb6f 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1583,7 +1583,7 @@ } } }, - "revision": "20240319", + "revision": "20240430", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1774,14 +1774,16 @@ "ACTIVE", "PERMISSION_DENIED", "NOT_FOUND", - "IN_TRANSIT_LOCATION_RESTRICTION" + "IN_TRANSIT_LOCATION_RESTRICTION", + "SCHEMA_MISMATCH" ], "enumDescriptions": [ "Default value. This value is unused.", "The subscription can actively send messages to Cloud Storage.", "Cannot write to the Cloud Storage bucket because of permission denied errors.", "Cannot write to the Cloud Storage bucket because it does not exist.", - "Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions." + "Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions.", + "Cannot write to the Cloud Storage bucket due to an incompatibility between the topic schema and subscription settings." ], "readOnly": true, "type": "string" diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index ebc669b9db..5e1b73c33f 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -575,6 +575,8 @@ type CloudStorageConfig struct { // "IN_TRANSIT_LOCATION_RESTRICTION" - Cannot write to the destination // because enforce_in_transit is set to true and the destination locations are // not in the allowed regions. + // "SCHEMA_MISMATCH" - Cannot write to the Cloud Storage bucket due to an + // incompatibility between the topic schema and subscription settings. State string `json:"state,omitempty"` // TextConfig: Optional. If set, message data will be written to Cloud Storage // in text format. diff --git a/sts/v1/sts-api.json b/sts/v1/sts-api.json index 6e0d860860..7bd20e50c2 100644 --- a/sts/v1/sts-api.json +++ b/sts/v1/sts-api.json @@ -116,7 +116,7 @@ } } }, - "revision": "20240425", + "revision": "20240501", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -194,7 +194,7 @@ "type": "string" }, "requestedTokenType": { - "description": "Required. An identifier for the type of requested security token. Must be `urn:ietf:params:oauth:token-type:access_token`.", + "description": "Required. An identifier for the type of requested security token. Can be `urn:ietf:params:oauth:token-type:access_token` or `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`.", "type": "string" }, "scope": { diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index 59c43aa5e7..d6982f9442 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -343,7 +343,8 @@ type GoogleIdentityStsV1ExchangeTokenRequest struct { // characters. Options string `json:"options,omitempty"` // RequestedTokenType: Required. An identifier for the type of requested - // security token. Must be `urn:ietf:params:oauth:token-type:access_token`. + // security token. Can be `urn:ietf:params:oauth:token-type:access_token` or + // `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`. RequestedTokenType string `json:"requestedTokenType,omitempty"` // Scope: The OAuth 2.0 scopes to include on the resulting access token, // formatted as a list of space-delimited, case-sensitive strings. Required