diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 4557ddae323..557aaf85dd4 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -4604,7 +4604,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -11668,11 +11668,6 @@ "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" - }, - "preflightValidations": { - "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - "location": "query", - "type": "boolean" } }, "path": "v1/{+parent}/pipelineJobs", @@ -15567,7 +15562,7 @@ } } }, - "revision": "20240205", + "revision": "20240213", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -16476,6 +16471,13 @@ ], "type": "string" }, + "influentialTerms": { + "description": "The influential terms that could potentially block the response.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm" + }, + "type": "array" + }, "probability": { "description": "Harm probability levels in the content.", "enum": [ @@ -16493,6 +16495,69 @@ "High level of harm." ], "type": "string" + }, + "probabilityScore": { + "description": "Harm probability score.", + "format": "float", + "type": "number" + }, + "severity": { + "description": "Harm severity levels in the content.", + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Harm probability unspecified.", + "Negligible level of harm.", + "Low level of harm.", + "Medium level of harm.", + "High level of harm." + ], + "type": "string" + }, + "severityScore": { + "description": "Harm severity score.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm": { + "description": "The influential term that could potentially block the response.", + "id": "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm", + "properties": { + "beginOffset": { + "description": "The beginning offset of the influential term.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "The confidence score of the influential term.", + "format": "float", + "type": "number" + }, + "source": { + "description": "The source of the influential term, prompt or response.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PROMPT", + "RESPONSE" + ], + "enumDescriptions": [ + "Unspecified source.", + "The influential term comes from the prompt.", + "The influential term comes from the response." + ], + "type": "string" + }, + "term": { + "description": "The influential term.", + "type": "string" } }, "type": "object" @@ -17675,6 +17740,11 @@ "readOnly": true, "type": "string" }, + "groundingMetadata": { + "$ref": "GoogleCloudAiplatformV1GroundingMetadata", + "description": "Output only. Metadata specifies sources used to ground generated content.", + "readOnly": true + }, "index": { "description": "Output only. Index of the candidate.", "format": "int32", @@ -18286,10 +18356,6 @@ "pipelineJobId": { "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" - }, - "preflightValidations": { - "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - "type": "boolean" } }, "type": "object" @@ -19489,6 +19555,10 @@ "$ref": "GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig", "description": "Configures the request-response logging for online prediction." }, + "privateServiceConnectConfig": { + "$ref": "GoogleCloudAiplatformV1PrivateServiceConnectConfig", + "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." + }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -21204,6 +21274,11 @@ "$ref": "GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup" }, "type": "array" + }, + "projectNumber": { + "description": "Optional. The project number of the parent project of the Feature Groups.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -21249,6 +21324,11 @@ "$ref": "GoogleTypeInterval", "description": "Output only. Time when this FeatureViewSync is finished.", "readOnly": true + }, + "syncSummary": { + "$ref": "GoogleCloudAiplatformV1FeatureViewSyncSyncSummary", + "description": "Output only. Summary of the sync job.", + "readOnly": true } }, "type": "object" @@ -21264,6 +21344,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FeatureViewSyncSyncSummary": { + "description": "Summary from the Sync job. For continuous syncs, the summary is updated periodically. For batch syncs, it gets updated on completion of the sync.", + "id": "GoogleCloudAiplatformV1FeatureViewSyncSyncSummary", + "properties": { + "rowSynced": { + "description": "Output only. Total number of rows synced.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalSlot": { + "description": "Output only. BigQuery slot milliseconds consumed for the sync job.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Featurestore": { "description": "Vertex AI Feature Store provides a centralized repository for organizing, storing, and serving ML features. The Featurestore is a top-level container for your features and their values.", "id": "GoogleCloudAiplatformV1Featurestore", @@ -21795,7 +21894,7 @@ "type": "array" }, "tools": { - "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. The only supported tool is currently `Function`", + "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", "items": { "$ref": "GoogleCloudAiplatformV1Tool" }, @@ -21950,6 +22049,77 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", + "id": "GoogleCloudAiplatformV1GoogleSearchRetrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GroundingAttribution": { + "description": "Grounding attribution.", + "id": "GoogleCloudAiplatformV1GroundingAttribution", + "properties": { + "confidenceScore": { + "description": "Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "segment": { + "$ref": "GoogleCloudAiplatformV1Segment", + "description": "Output only. Segment of the content this attribution belongs to.", + "readOnly": true + }, + "web": { + "$ref": "GoogleCloudAiplatformV1GroundingAttributionWeb", + "description": "Optional. Attribution from the web." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GroundingAttributionWeb": { + "description": "Attribution from the web.", + "id": "GoogleCloudAiplatformV1GroundingAttributionWeb", + "properties": { + "title": { + "description": "Output only. Title of the attribution.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Output only. URI reference of the attribution.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GroundingMetadata": { + "description": "Metadata returned to client when grounding is enabled.", + "id": "GoogleCloudAiplatformV1GroundingMetadata", + "properties": { + "groundingAttributions": { + "description": "Optional. List of grounding attributions.", + "items": { + "$ref": "GoogleCloudAiplatformV1GroundingAttribution" + }, + "type": "array" + }, + "webSearchQueries": { + "description": "Optional. Web search queries for the following-up web search.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1HyperparameterTuningJob": { "description": "Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.", "id": "GoogleCloudAiplatformV1HyperparameterTuningJob", @@ -26331,10 +26501,6 @@ "description": "The runtime config of a PipelineJob.", "id": "GoogleCloudAiplatformV1PipelineJobRuntimeConfig", "properties": { - "defaultRuntime": { - "$ref": "GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime", - "description": "Optional. The default runtime for the PipelineJob. If not provided, Vertex Custom Job is used as the runtime. For Vertex Custom Job, please refer to https://cloud.google.com/vertex-ai/docs/training/overview" - }, "failurePolicy": { "description": "Represents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion.", "enum": [ @@ -26378,17 +26544,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime": { - "description": "The default runtime for the PipelineJob.", - "id": "GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime", - "properties": { - "persistentResourceRuntimeDetail": { - "$ref": "GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail", - "description": "Persistent resource based runtime detail." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact": { "description": "The type of an input artifact.", "id": "GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact", @@ -26400,17 +26555,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail": { - "description": "Persistent resource based runtime detail. For more information, refer to https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview", - "id": "GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail", - "properties": { - "persistentResourceName": { - "description": "Persistent resource name. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1PipelineTaskDetail": { "description": "The runtime detail of a task execution.", "id": "GoogleCloudAiplatformV1PipelineTaskDetail", @@ -27741,6 +27885,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Retrieval": { + "description": "Defines a retrieval tool that model can call to access external knowledge.", + "id": "GoogleCloudAiplatformV1Retrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + }, + "vertexAiSearch": { + "$ref": "GoogleCloudAiplatformV1VertexAISearch", + "description": "Set to use data source powered by Vertex AI Search." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudAiplatformV1SafetyRating", @@ -32061,6 +32220,31 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Segment": { + "description": "Segment of the content.", + "id": "GoogleCloudAiplatformV1Segment", + "properties": { + "endIndex": { + "description": "Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "partIndex": { + "description": "Output only. The index of a Part object within its parent Content object.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "startIndex": { + "description": "Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ShieldedVmConfig": { "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", "id": "GoogleCloudAiplatformV1ShieldedVmConfig", @@ -33412,7 +33596,7 @@ "type": "object" }, "GoogleCloudAiplatformV1Tool": { - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool.", "id": "GoogleCloudAiplatformV1Tool", "properties": { "functionDeclarations": { @@ -33421,6 +33605,14 @@ "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" }, "type": "array" + }, + "googleSearchRetrieval": { + "$ref": "GoogleCloudAiplatformV1GoogleSearchRetrieval", + "description": "Optional. Specialized retrieval tool that is powered by Google search." + }, + "retrieval": { + "$ref": "GoogleCloudAiplatformV1Retrieval", + "description": "Optional. 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." } }, "type": "object" @@ -34044,6 +34236,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1VertexAISearch": { + "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", + "id": "GoogleCloudAiplatformV1VertexAISearch", + "properties": { + "datastore": { + "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. projects/\u003c\u003e/locations/\u003c\u003e/collections/\u003c\u003e/dataStores/\u003c\u003e", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1VideoMetadata": { "description": "Metadata describes the input video content.", "id": "GoogleCloudAiplatformV1VideoMetadata", @@ -34825,12 +35028,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -34939,7 +35142,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -35137,12 +35347,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -35251,6 +35461,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -35335,7 +35552,7 @@ "type": "array" }, "recitationAction": { - "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION. When the given input is not found in any source, the recitation action will not be specified.", "enum": [ "ACTION_UNSPECIFIED", "CITE", @@ -35563,12 +35780,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -35677,7 +35894,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -35875,12 +36099,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -35989,6 +36213,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -36312,12 +36543,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -36426,7 +36657,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -36624,12 +36862,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -36738,6 +36976,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -36822,7 +37067,7 @@ "type": "array" }, "recitationAction": { - "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION. When the given input is not found in any source, the recitation action will be NO_ACTION.", "enum": [ "ACTION_UNSPECIFIED", "CITE", @@ -37050,12 +37295,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -37164,7 +37409,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -37362,12 +37614,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -37476,6 +37728,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -38624,6 +38883,10 @@ "groundingMetadata": { "$ref": "LearningGenaiRootGroundingMetadata" }, + "isCode": { + "description": "Applies to streaming response message only. Whether the message is a code.", + "type": "boolean" + }, "isFallback": { "description": "Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty.", "type": "boolean" diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index b339f734c11..2f591df8795 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -2545,6 +2545,10 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // explicit. Category string `json:"category,omitempty"` + // InfluentialTerms: The influential terms that could potentially block + // the response. + InfluentialTerms []*CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm `json:"influentialTerms,omitempty"` + // Probability: Harm probability levels in the content. // // Possible values: @@ -2555,6 +2559,22 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // "HIGH" - High level of harm. Probability string `json:"probability,omitempty"` + // ProbabilityScore: Harm probability score. + ProbabilityScore float64 `json:"probabilityScore,omitempty"` + + // Severity: Harm severity levels in the content. + // + // Possible values: + // "HARM_PROBABILITY_UNSPECIFIED" - Harm probability unspecified. + // "NEGLIGIBLE" - Negligible level of harm. + // "LOW" - Low level of harm. + // "MEDIUM" - Medium level of harm. + // "HIGH" - High level of harm. + Severity string `json:"severity,omitempty"` + + // SeverityScore: Harm severity score. + SeverityScore float64 `json:"severityScore,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocked") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2578,6 +2598,79 @@ func (s *CloudAiNlLlmProtoServiceSafetyRating) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *CloudAiNlLlmProtoServiceSafetyRating) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceSafetyRating + var s1 struct { + ProbabilityScore gensupport.JSONFloat64 `json:"probabilityScore"` + SeverityScore gensupport.JSONFloat64 `json:"severityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProbabilityScore = float64(s1.ProbabilityScore) + s.SeverityScore = float64(s1.SeverityScore) + return nil +} + +// CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm: The influential +// term that could potentially block the response. +type CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm struct { + // BeginOffset: The beginning offset of the influential term. + BeginOffset int64 `json:"beginOffset,omitempty"` + + // Confidence: The confidence score of the influential term. + Confidence float64 `json:"confidence,omitempty"` + + // Source: The source of the influential term, prompt or response. + // + // Possible values: + // "SOURCE_UNSPECIFIED" - Unspecified source. + // "PROMPT" - The influential term comes from the prompt. + // "RESPONSE" - The influential term comes from the response. + Source string `json:"source,omitempty"` + + // Term: The influential term. + Term string `json:"term,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BeginOffset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BeginOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // CloudAiNlLlmProtoServiceUsageMetadata: Usage metadata about // response(s). type CloudAiNlLlmProtoServiceUsageMetadata struct { @@ -4830,6 +4923,10 @@ type GoogleCloudAiplatformV1Candidate struct { // "OTHER" - All other reasons that stopped the token generation FinishReason string `json:"finishReason,omitempty"` + // GroundingMetadata: Output only. Metadata specifies sources used to + // ground generated content. + GroundingMetadata *GoogleCloudAiplatformV1GroundingMetadata `json:"groundingMetadata,omitempty"` + // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` @@ -6075,11 +6172,6 @@ type GoogleCloudAiplatformV1CreatePipelineJobRequest struct { // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` - // PreflightValidations: Optional. Whether to do component level - // validations before job creation. Currently we only support Google - // First Party Component/Pipelines. - PreflightValidations bool `json:"preflightValidations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8318,6 +8410,11 @@ type GoogleCloudAiplatformV1Endpoint struct { // logging for online prediction. PredictRequestResponseLoggingConfig *GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig `json:"predictRequestResponseLoggingConfig,omitempty"` + // PrivateServiceConnectConfig: Optional. Configuration for private + // service connect. network and private_service_connect_config are + // mutually exclusive. + PrivateServiceConnectConfig *GoogleCloudAiplatformV1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` + // TrafficSplit: A map from a DeployedModel's ID to the percentage of // this Endpoint's traffic that should be forwarded to that // DeployedModel. If a DeployedModel's ID is not listed in this map, @@ -11482,6 +11579,10 @@ type GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource struct { // Online Store. FeatureGroups []*GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup `json:"featureGroups,omitempty"` + // ProjectNumber: Optional. The project number of the parent project of + // the Feature Groups. + ProjectNumber int64 `json:"projectNumber,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FeatureGroups") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -11562,6 +11663,9 @@ type GoogleCloudAiplatformV1FeatureViewSync struct { // RunTime: Output only. Time when this FeatureViewSync is finished. RunTime *GoogleTypeInterval `json:"runTime,omitempty"` + // SyncSummary: Output only. Summary of the sync job. + SyncSummary *GoogleCloudAiplatformV1FeatureViewSyncSyncSummary `json:"syncSummary,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -11624,6 +11728,40 @@ func (s *GoogleCloudAiplatformV1FeatureViewSyncConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1FeatureViewSyncSyncSummary: Summary from the +// Sync job. For continuous syncs, the summary is updated periodically. +// For batch syncs, it gets updated on completion of the sync. +type GoogleCloudAiplatformV1FeatureViewSyncSyncSummary struct { + // RowSynced: Output only. Total number of rows synced. + RowSynced int64 `json:"rowSynced,omitempty,string"` + + // TotalSlot: Output only. BigQuery slot milliseconds consumed for the + // sync job. + TotalSlot int64 `json:"totalSlot,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "RowSynced") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RowSynced") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FeatureViewSyncSyncSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FeatureViewSyncSyncSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1Featurestore: Vertex AI Feature Store provides // a centralized repository for organizing, storing, and serving ML // features. The Featurestore is a top-level container for your features @@ -12749,8 +12887,7 @@ type GoogleCloudAiplatformV1GenerateContentRequest struct { // Tools: Optional. A list of `Tools` the model may use to generate the // next response. A `Tool` is a piece of code that enables the system to // interact with external systems to perform an action, or set of - // actions, outside of knowledge and scope of the model. The only - // supported tool is currently `Function` + // actions, outside of knowledge and scope of the model. Tools []*GoogleCloudAiplatformV1Tool `json:"tools,omitempty"` // ForceSendFields is a list of field names (e.g. "Contents") to @@ -12996,6 +13133,156 @@ func (s *GoogleCloudAiplatformV1GenericOperationMetadata) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1GoogleSearchRetrieval: Tool to retrieve public +// web data for grounding, powered by Google. +type GoogleCloudAiplatformV1GoogleSearchRetrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisableAttribution") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GoogleSearchRetrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GoogleSearchRetrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GroundingAttribution: Grounding attribution. +type GoogleCloudAiplatformV1GroundingAttribution struct { + // ConfidenceScore: Optional. Output only. Confidence score of the + // attribution. Ranges from 0 to 1. 1 is the most confident. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // Segment: Output only. Segment of the content this attribution belongs + // to. + Segment *GoogleCloudAiplatformV1Segment `json:"segment,omitempty"` + + // Web: Optional. Attribution from the web. + Web *GoogleCloudAiplatformV1GroundingAttributionWeb `json:"web,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceScore") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GroundingAttribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GroundingAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1GroundingAttribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1GroundingAttribution + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudAiplatformV1GroundingAttributionWeb: Attribution from the +// web. +type GoogleCloudAiplatformV1GroundingAttributionWeb struct { + // Title: Output only. Title of the attribution. + Title string `json:"title,omitempty"` + + // Uri: Output only. URI reference of the attribution. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Title") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Title") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GroundingAttributionWeb) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GroundingAttributionWeb + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GroundingMetadata: Metadata returned to client +// when grounding is enabled. +type GoogleCloudAiplatformV1GroundingMetadata struct { + // GroundingAttributions: Optional. List of grounding attributions. + GroundingAttributions []*GoogleCloudAiplatformV1GroundingAttribution `json:"groundingAttributions,omitempty"` + + // WebSearchQueries: Optional. Web search queries for the following-up + // web search. + WebSearchQueries []string `json:"webSearchQueries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "GroundingAttributions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroundingAttributions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GroundingMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GroundingMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1HyperparameterTuningJob: Represents a // HyperparameterTuningJob. A HyperparameterTuningJob has a Study // specification and multiple CustomJobs with identical CustomJob @@ -20659,12 +20946,6 @@ func (s *GoogleCloudAiplatformV1PipelineJobDetail) MarshalJSON() ([]byte, error) // GoogleCloudAiplatformV1PipelineJobRuntimeConfig: The runtime config // of a PipelineJob. type GoogleCloudAiplatformV1PipelineJobRuntimeConfig struct { - // DefaultRuntime: Optional. The default runtime for the PipelineJob. If - // not provided, Vertex Custom Job is used as the runtime. For Vertex - // Custom Job, please refer to - // https://cloud.google.com/vertex-ai/docs/training/overview - DefaultRuntime *GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime `json:"defaultRuntime,omitempty"` - // FailurePolicy: Represents the failure policy of a pipeline. // Currently, the default of a pipeline is that the pipeline will // continue to run until no more tasks can be executed, also known as @@ -20714,7 +20995,7 @@ type GoogleCloudAiplatformV1PipelineJobRuntimeConfig struct { // pipelines built using Kubeflow Pipelines SDK 1.8 or lower. Parameters map[string]GoogleCloudAiplatformV1Value `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultRuntime") to + // ForceSendFields is a list of field names (e.g. "FailurePolicy") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -20722,13 +21003,12 @@ type GoogleCloudAiplatformV1PipelineJobRuntimeConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DefaultRuntime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FailurePolicy") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -20738,38 +21018,6 @@ func (s *GoogleCloudAiplatformV1PipelineJobRuntimeConfig) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime: The -// default runtime for the PipelineJob. -type GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime struct { - // PersistentResourceRuntimeDetail: Persistent resource based runtime - // detail. - PersistentResourceRuntimeDetail *GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail `json:"persistentResourceRuntimeDetail,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PersistentResourceRuntimeDetail") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PersistentResourceRuntimeDetail") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact: The // type of an input artifact. type GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact struct { @@ -20803,41 +21051,6 @@ func (s *GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRunti -// meDetail: Persistent resource based runtime detail. For more -// information, refer to -// https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview -type GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail struct { - // PersistentResourceName: Persistent resource name. Format: - // `projects/{project}/locations/{location}/persistentResources/{persiste - // nt_resource}` - PersistentResourceName string `json:"persistentResourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PersistentResourceName") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PersistentResourceName") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1PipelineTaskDetail: The runtime detail of a // task execution. type GoogleCloudAiplatformV1PipelineTaskDetail struct { @@ -23263,6 +23476,41 @@ func (s *GoogleCloudAiplatformV1ResumeScheduleRequest) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Retrieval: Defines a retrieval tool that model +// can call to access external knowledge. +type GoogleCloudAiplatformV1Retrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // VertexAiSearch: Set to use data source powered by Vertex AI Search. + VertexAiSearch *GoogleCloudAiplatformV1VertexAISearch `json:"vertexAiSearch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisableAttribution") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Retrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Retrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SafetyRating: Safety rating corresponding to // the generated content. type GoogleCloudAiplatformV1SafetyRating struct { @@ -31976,6 +32224,45 @@ func (s *GoogleCloudAiplatformV1SearchNearestEntitiesResponse) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Segment: Segment of the content. +type GoogleCloudAiplatformV1Segment struct { + // EndIndex: Output only. End index in the given Part, measured in + // bytes. Offset from the start of the Part, exclusive, starting at + // zero. + EndIndex int64 `json:"endIndex,omitempty"` + + // PartIndex: Output only. The index of a Part object within its parent + // Content object. + PartIndex int64 `json:"partIndex,omitempty"` + + // StartIndex: Output only. Start index in the given Part, measured in + // bytes. Offset from the start of the Part, inclusive, starting at + // zero. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndIndex") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndIndex") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Segment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Segment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ShieldedVmConfig: A set of Shielded Instance // options. See Images using supported Shielded VM features // (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). @@ -34379,7 +34666,8 @@ func (s *GoogleCloudAiplatformV1TokensInfo) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1Tool: Tool details that the model may use to // generate response. A `Tool` is a piece of code that enables the // system to interact with external systems to perform an action, or set -// of actions, outside of knowledge and scope of the model. +// of actions, outside of knowledge and scope of the model. A Tool +// object should contain exactly one type of Tool. type GoogleCloudAiplatformV1Tool struct { // FunctionDeclarations: Optional. One or more function declarations to // be passed to the model along with the current user query. Model may @@ -34390,6 +34678,15 @@ type GoogleCloudAiplatformV1Tool struct { // function declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` + // GoogleSearchRetrieval: Optional. Specialized retrieval tool that is + // powered by Google search. + GoogleSearchRetrieval *GoogleCloudAiplatformV1GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` + + // Retrieval: Optional. 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. + Retrieval *GoogleCloudAiplatformV1Retrieval `json:"retrieval,omitempty"` + // ForceSendFields is a list of field names (e.g. // "FunctionDeclarations") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -35625,6 +35922,37 @@ func (s *GoogleCloudAiplatformV1Value) UnmarshalJSON(data []byte) error { return nil } +// GoogleCloudAiplatformV1VertexAISearch: Retrieve from Vertex AI Search +// datastore for grounding. See +// https://cloud.google.com/vertex-ai-search-and-conversation +type GoogleCloudAiplatformV1VertexAISearch struct { + // Datastore: Required. Fully-qualified Vertex AI Search's datastore + // resource ID. projects/<>/locations/<>/collections/<>/dataStores/<> + Datastore string `json:"datastore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Datastore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Datastore") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1VertexAISearch) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1VertexAISearch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1VideoMetadata: Metadata describes the input // video content. type GoogleCloudAiplatformV1VideoMetadata struct { @@ -37135,12 +37463,12 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -37334,6 +37662,14 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -37440,7 +37776,9 @@ type LanguageLabsAidaTrustRecitationProtoRecitationResult struct { // RecitationAction: The recitation action for one given input. When its // segments contain different actions, the overall action will be - // returned in the precedence of BLOCK > CITE > NO_ACTION. + // returned in the precedence of BLOCK > CITE > NO_ACTION. When the + // given input is not found in any source, the recitation action will + // not be specified. // // Possible values: // "ACTION_UNSPECIFIED" @@ -37705,12 +38043,12 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -37904,6 +38242,14 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -38272,12 +38618,12 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -38471,6 +38817,14 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -38576,7 +38930,9 @@ type LearningGenaiRecitationRecitationResult struct { // RecitationAction: The recitation action for one given input. When its // segments contain different actions, the overall action will be - // returned in the precedence of BLOCK > CITE > NO_ACTION. + // returned in the precedence of BLOCK > CITE > NO_ACTION. When the + // given input is not found in any source, the recitation action will be + // NO_ACTION. // // Possible values: // "ACTION_UNSPECIFIED" @@ -38842,12 +39198,12 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -39041,6 +39397,14 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -40799,6 +41163,10 @@ type LearningServingLlmMessageMetadata struct { GroundingMetadata *LearningGenaiRootGroundingMetadata `json:"groundingMetadata,omitempty"` + // IsCode: Applies to streaming response message only. Whether the + // message is a code. + IsCode bool `json:"isCode,omitempty"` + // IsFallback: Applies to Response message only. Indicates whether the // message is a fallback and the response would have otherwise been // empty. @@ -62833,7 +63201,7 @@ func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name str // overwritten if it is in the mask. If the user does not provide a mask // then only the non-empty fields present in the request will be // overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` +// Updatable fields: * `labels` * `serviceAgentType` func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -62946,7 +63314,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -98991,15 +99359,6 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId st return c } -// PreflightValidations sets the optional parameter -// "preflightValidations": Whether to do component level validations -// before job creation. Currently we only support Google First Party -// Component/Pipelines. -func (c *ProjectsLocationsPipelineJobsCreateCall) PreflightValidations(preflightValidations bool) *ProjectsLocationsPipelineJobsCreateCall { - c.urlParams_.Set("preflightValidations", fmt.Sprint(preflightValidations)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -99111,11 +99470,6 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" - // }, - // "preflightValidations": { - // "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - // "location": "query", - // "type": "boolean" // } // }, // "path": "v1/{+parent}/pipelineJobs", diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 2915a14a934..b670096f995 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -3856,6 +3856,136 @@ } } }, + "evaluationTasks": { + "resources": { + "operations": { + "methods": { + "delete": { + "description": "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`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationTasks.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationTasks.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationTasks.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationTasks.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "exampleStores": { "resources": { "operations": { @@ -5436,7 +5566,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -17340,7 +17470,7 @@ } } }, - "revision": "20240205", + "revision": "20240213", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -18249,6 +18379,13 @@ ], "type": "string" }, + "influentialTerms": { + "description": "The influential terms that could potentially block the response.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm" + }, + "type": "array" + }, "probability": { "description": "Harm probability levels in the content.", "enum": [ @@ -18266,6 +18403,69 @@ "High level of harm." ], "type": "string" + }, + "probabilityScore": { + "description": "Harm probability score.", + "format": "float", + "type": "number" + }, + "severity": { + "description": "Harm severity levels in the content.", + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Harm probability unspecified.", + "Negligible level of harm.", + "Low level of harm.", + "Medium level of harm.", + "High level of harm." + ], + "type": "string" + }, + "severityScore": { + "description": "Harm severity score.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm": { + "description": "The influential term that could potentially block the response.", + "id": "CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm", + "properties": { + "beginOffset": { + "description": "The beginning offset of the influential term.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "The confidence score of the influential term.", + "format": "float", + "type": "number" + }, + "source": { + "description": "The source of the influential term, prompt or response.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PROMPT", + "RESPONSE" + ], + "enumDescriptions": [ + "Unspecified source.", + "The influential term comes from the prompt.", + "The influential term comes from the response." + ], + "type": "string" + }, + "term": { + "description": "The influential term.", + "type": "string" } }, "type": "object" @@ -19520,6 +19720,11 @@ "readOnly": true, "type": "string" }, + "groundingMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GroundingMetadata", + "description": "Output only. Metadata specifies sources used to ground generated content.", + "readOnly": true + }, "index": { "description": "Output only. Index of the candidate.", "format": "int32", @@ -21390,6 +21595,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig", "description": "Configures the request-response logging for online prediction." }, + "privateServiceConnectConfig": { + "$ref": "GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig", + "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." + }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -22363,39 +22572,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata": { - "description": "Details of EndpointService.ExportEndpoint operation.", - "id": "GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata", - "properties": { - "genericMetadata": { - "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", - "description": "The common part of the operation metadata." - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1ExportEndpointResponse": { - "description": "Response message of EndpointService.ExportEndpoint operation.", - "id": "GoogleCloudAiplatformV1beta1ExportEndpointResponse", - "properties": { - "outputInfo": { - "$ref": "GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo", - "description": "Information further describing the output of this Endpoint export." - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo": { - "description": "Describes the output of the ExportEndpoint.", - "id": "GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo", - "properties": { - "bigQueryDestination": { - "$ref": "GoogleCloudAiplatformV1beta1BigQueryDestination", - "description": "If the Endpoint is being exported to BigQuery this is the full path of the BigQuery ML model created." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1ExportFeatureValuesOperationMetadata": { "description": "Details of operations that exports Features values.", "id": "GoogleCloudAiplatformV1beta1ExportFeatureValuesOperationMetadata", @@ -23191,6 +23367,11 @@ "$ref": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup" }, "type": "array" + }, + "projectNumber": { + "description": "Optional. The project number of the parent project of the Feature Groups.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -23236,6 +23417,11 @@ "$ref": "GoogleTypeInterval", "description": "Output only. Time when this FeatureViewSync is finished.", "readOnly": true + }, + "syncSummary": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary", + "description": "Output only. Summary of the sync job.", + "readOnly": true } }, "type": "object" @@ -23251,6 +23437,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary": { + "description": "Summary from the Sync job. For continuous syncs, the summary is updated periodically. For batch syncs, it gets updated on completion of the sync.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary", + "properties": { + "rowSynced": { + "description": "Output only. Total number of rows synced.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalSlot": { + "description": "Output only. BigQuery slot milliseconds consumed for the sync job.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig": { "deprecated": true, "description": "Deprecated. Use IndexConfig instead.", @@ -23911,7 +24116,7 @@ "type": "array" }, "tools": { - "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. The only supported tool is currently `Function`", + "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", "items": { "$ref": "GoogleCloudAiplatformV1beta1Tool" }, @@ -24066,6 +24271,77 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", + "id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GroundingAttribution": { + "description": "Grounding attribution.", + "id": "GoogleCloudAiplatformV1beta1GroundingAttribution", + "properties": { + "confidenceScore": { + "description": "Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "segment": { + "$ref": "GoogleCloudAiplatformV1beta1Segment", + "description": "Output only. Segment of the content this attribution belongs to.", + "readOnly": true + }, + "web": { + "$ref": "GoogleCloudAiplatformV1beta1GroundingAttributionWeb", + "description": "Optional. Attribution from the web." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GroundingAttributionWeb": { + "description": "Attribution from the web.", + "id": "GoogleCloudAiplatformV1beta1GroundingAttributionWeb", + "properties": { + "title": { + "description": "Output only. Title of the attribution.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Output only. URI reference of the attribution.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GroundingMetadata": { + "description": "Metadata returned to client when grounding is enabled.", + "id": "GoogleCloudAiplatformV1beta1GroundingMetadata", + "properties": { + "groundingAttributions": { + "description": "Optional. List of grounding attributions.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1GroundingAttribution" + }, + "type": "array" + }, + "webSearchQueries": { + "description": "Optional. Web search queries for the following-up web search.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1HyperparameterTuningJob": { "description": "Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.", "id": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob", @@ -28636,10 +28912,6 @@ "description": "The runtime config of a PipelineJob.", "id": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig", "properties": { - "defaultRuntime": { - "$ref": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime", - "description": "Optional. The default runtime for the PipelineJob. If not provided, Vertex Custom Job is used as the runtime. For Vertex Custom Job, please refer to https://cloud.google.com/vertex-ai/docs/training/overview" - }, "failurePolicy": { "description": "Represents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion.", "enum": [ @@ -28683,17 +28955,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime": { - "description": "The default runtime for the PipelineJob.", - "id": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime", - "properties": { - "persistentResourceRuntimeDetail": { - "$ref": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail", - "description": "Persistent resource based runtime detail." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact": { "description": "The type of an input artifact.", "id": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact", @@ -28705,17 +28966,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail": { - "description": "Persistent resource based runtime detail. For more information, refer to https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview", - "id": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail", - "properties": { - "persistentResourceName": { - "description": "Persistent resource name. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1PipelineTaskDetail": { "description": "The runtime detail of a task execution.", "id": "GoogleCloudAiplatformV1beta1PipelineTaskDetail", @@ -29779,6 +30029,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RayMetricSpec": { + "description": "Configuration for the Ray metrics.", + "id": "GoogleCloudAiplatformV1beta1RayMetricSpec", + "properties": { + "disabled": { + "description": "Optional. Flag to disable the Ray metrics collection.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RaySpec": { "description": "Configuration information for the Ray cluster. For experimental launch, Ray cluster creation and Persistent cluster creation are 1:1 mapping: We will provision all the nodes within the Persistent cluster as Ray nodes.", "id": "GoogleCloudAiplatformV1beta1RaySpec", @@ -29791,6 +30052,10 @@ "description": "Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.", "type": "string" }, + "rayMetricSpec": { + "$ref": "GoogleCloudAiplatformV1beta1RayMetricSpec", + "description": "Optional. Ray metrics configurations." + }, "resourcePoolImages": { "additionalProperties": { "type": "string" @@ -30268,6 +30533,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1Retrieval": { + "description": "Defines a retrieval tool that model can call to access external knowledge.", + "id": "GoogleCloudAiplatformV1beta1Retrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + }, + "vertexAiSearch": { + "$ref": "GoogleCloudAiplatformV1beta1VertexAISearch", + "description": "Set to use data source powered by Vertex AI Search." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudAiplatformV1beta1SafetyRating", @@ -34466,6 +34746,31 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1Segment": { + "description": "Segment of the content.", + "id": "GoogleCloudAiplatformV1beta1Segment", + "properties": { + "endIndex": { + "description": "Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "partIndex": { + "description": "Output only. The index of a Part object within its parent Content object.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "startIndex": { + "description": "Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ServiceAccountSpec": { "description": "Configuration for the use of custom service account to run the workloads.", "id": "GoogleCloudAiplatformV1beta1ServiceAccountSpec", @@ -35880,7 +36185,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1Tool": { - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool.", "id": "GoogleCloudAiplatformV1beta1Tool", "properties": { "functionDeclarations": { @@ -35889,6 +36194,14 @@ "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration" }, "type": "array" + }, + "googleSearchRetrieval": { + "$ref": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", + "description": "Optional. Specialized retrieval tool that is powered by Google search." + }, + "retrieval": { + "$ref": "GoogleCloudAiplatformV1beta1Retrieval", + "description": "Optional. 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." } }, "type": "object" @@ -36538,6 +36851,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1VertexAISearch": { + "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", + "id": "GoogleCloudAiplatformV1beta1VertexAISearch", + "properties": { + "datastore": { + "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. projects/\u003c\u003e/locations/\u003c\u003e/collections/\u003c\u003e/dataStores/\u003c\u003e", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1VideoMetadata": { "description": "Metadata describes the input video content.", "id": "GoogleCloudAiplatformV1beta1VideoMetadata", @@ -37356,12 +37680,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -37470,7 +37794,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -37668,12 +37999,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -37782,6 +38113,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -37866,7 +38204,7 @@ "type": "array" }, "recitationAction": { - "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION. When the given input is not found in any source, the recitation action will not be specified.", "enum": [ "ACTION_UNSPECIFIED", "CITE", @@ -38094,12 +38432,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -38208,7 +38546,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -38406,12 +38751,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -38520,6 +38865,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -38843,12 +39195,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -38957,7 +39309,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -39155,12 +39514,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -39269,6 +39628,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -39353,7 +39719,7 @@ "type": "array" }, "recitationAction": { - "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION. When the given input is not found in any source, the recitation action will be NO_ACTION.", "enum": [ "ACTION_UNSPECIFIED", "CITE", @@ -39581,12 +39947,12 @@ "GEMINI_IT_MECH", "GEMINI_IT_TABLE_GEN", "GEMINI_IT_NIMBUS_DECIBEL", - "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_IT_CLOUD_CODE_IF", "GEMINI_IT_CLOUD_EUR_LEX_JSON", "GEMINI_IT_CLOUD_OASST", "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMIT_BRIDGE_SUFFIX_FT", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -39695,7 +40061,14 @@ "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", - "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT", + "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI", + "CLOUD_GEMIT_MT_DIALGUE_LMSYS", + "CLOUD_GEMIT_MTS_DIALOGUE_V3", + "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", + "CLOUD_GEMIT_CODE_IF_V1", + "CLOUD_GEMIT_CODE_SELF_REPAIR", + "CLOUD_GEMIT_IDENTITY" ], "enumDescriptions": [ "", @@ -39893,12 +40266,12 @@ "", "", "", - "Gemit Bridge ULM FT dataset", - "Gemini IT Cloud Build datasets.", "", "", "", "", + "", + "Gemit Bridge ULM FT dataset", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -40007,6 +40380,13 @@ "", "", "", + "", + "Cloud gemit pro FT datasets.", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -41155,6 +41535,10 @@ "groundingMetadata": { "$ref": "LearningGenaiRootGroundingMetadata" }, + "isCode": { + "description": "Applies to streaming response message only. Whether the message is a code.", + "type": "boolean" + }, "isFallback": { "description": "Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty.", "type": "boolean" diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index e084f03c535..bdb4649fb4c 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -189,6 +189,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.DeploymentResourcePools = NewProjectsLocationsDeploymentResourcePoolsService(s) rs.EdgeDevices = NewProjectsLocationsEdgeDevicesService(s) rs.Endpoints = NewProjectsLocationsEndpointsService(s) + rs.EvaluationTasks = NewProjectsLocationsEvaluationTasksService(s) rs.ExampleStores = NewProjectsLocationsExampleStoresService(s) rs.ExtensionControllers = NewProjectsLocationsExtensionControllersService(s) rs.Extensions = NewProjectsLocationsExtensionsService(s) @@ -238,6 +239,8 @@ type ProjectsLocationsService struct { Endpoints *ProjectsLocationsEndpointsService + EvaluationTasks *ProjectsLocationsEvaluationTasksService + ExampleStores *ProjectsLocationsExampleStoresService ExtensionControllers *ProjectsLocationsExtensionControllersService @@ -540,6 +543,27 @@ type ProjectsLocationsEndpointsOperationsService struct { s *Service } +func NewProjectsLocationsEvaluationTasksService(s *Service) *ProjectsLocationsEvaluationTasksService { + rs := &ProjectsLocationsEvaluationTasksService{s: s} + rs.Operations = NewProjectsLocationsEvaluationTasksOperationsService(s) + return rs +} + +type ProjectsLocationsEvaluationTasksService struct { + s *Service + + Operations *ProjectsLocationsEvaluationTasksOperationsService +} + +func NewProjectsLocationsEvaluationTasksOperationsService(s *Service) *ProjectsLocationsEvaluationTasksOperationsService { + rs := &ProjectsLocationsEvaluationTasksOperationsService{s: s} + return rs +} + +type ProjectsLocationsEvaluationTasksOperationsService struct { + s *Service +} + func NewProjectsLocationsExampleStoresService(s *Service) *ProjectsLocationsExampleStoresService { rs := &ProjectsLocationsExampleStoresService{s: s} rs.Operations = NewProjectsLocationsExampleStoresOperationsService(s) @@ -2773,6 +2797,10 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // explicit. Category string `json:"category,omitempty"` + // InfluentialTerms: The influential terms that could potentially block + // the response. + InfluentialTerms []*CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm `json:"influentialTerms,omitempty"` + // Probability: Harm probability levels in the content. // // Possible values: @@ -2783,6 +2811,22 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // "HIGH" - High level of harm. Probability string `json:"probability,omitempty"` + // ProbabilityScore: Harm probability score. + ProbabilityScore float64 `json:"probabilityScore,omitempty"` + + // Severity: Harm severity levels in the content. + // + // Possible values: + // "HARM_PROBABILITY_UNSPECIFIED" - Harm probability unspecified. + // "NEGLIGIBLE" - Negligible level of harm. + // "LOW" - Low level of harm. + // "MEDIUM" - Medium level of harm. + // "HIGH" - High level of harm. + Severity string `json:"severity,omitempty"` + + // SeverityScore: Harm severity score. + SeverityScore float64 `json:"severityScore,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocked") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2806,6 +2850,79 @@ func (s *CloudAiNlLlmProtoServiceSafetyRating) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *CloudAiNlLlmProtoServiceSafetyRating) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceSafetyRating + var s1 struct { + ProbabilityScore gensupport.JSONFloat64 `json:"probabilityScore"` + SeverityScore gensupport.JSONFloat64 `json:"severityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProbabilityScore = float64(s1.ProbabilityScore) + s.SeverityScore = float64(s1.SeverityScore) + return nil +} + +// CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm: The influential +// term that could potentially block the response. +type CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm struct { + // BeginOffset: The beginning offset of the influential term. + BeginOffset int64 `json:"beginOffset,omitempty"` + + // Confidence: The confidence score of the influential term. + Confidence float64 `json:"confidence,omitempty"` + + // Source: The source of the influential term, prompt or response. + // + // Possible values: + // "SOURCE_UNSPECIFIED" - Unspecified source. + // "PROMPT" - The influential term comes from the prompt. + // "RESPONSE" - The influential term comes from the response. + Source string `json:"source,omitempty"` + + // Term: The influential term. + Term string `json:"term,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BeginOffset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BeginOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // CloudAiNlLlmProtoServiceUsageMetadata: Usage metadata about // response(s). type CloudAiNlLlmProtoServiceUsageMetadata struct { @@ -5192,6 +5309,10 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // "OTHER" - All other reasons that stopped the token generation FinishReason string `json:"finishReason,omitempty"` + // GroundingMetadata: Output only. Metadata specifies sources used to + // ground generated content. + GroundingMetadata *GoogleCloudAiplatformV1beta1GroundingMetadata `json:"groundingMetadata,omitempty"` + // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` @@ -8826,6 +8947,11 @@ type GoogleCloudAiplatformV1beta1Endpoint struct { // logging for online prediction. PredictRequestResponseLoggingConfig *GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig `json:"predictRequestResponseLoggingConfig,omitempty"` + // PrivateServiceConnectConfig: Optional. Configuration for private + // service connect. network and private_service_connect_config are + // mutually exclusive. + PrivateServiceConnectConfig *GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` + // TrafficSplit: A map from a DeployedModel's ID to the percentage of // this Endpoint's traffic that should be forwarded to that // DeployedModel. If a DeployedModel's ID is not listed in this map, @@ -10556,97 +10682,6 @@ func (s *GoogleCloudAiplatformV1beta1ExportDataResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata: Details -// of EndpointService.ExportEndpoint operation. -type GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata struct { - // GenericMetadata: The common part of the operation metadata. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1ExportEndpointOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1ExportEndpointResponse: Response message -// of EndpointService.ExportEndpoint operation. -type GoogleCloudAiplatformV1beta1ExportEndpointResponse struct { - // OutputInfo: Information further describing the output of this - // Endpoint export. - OutputInfo *GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo `json:"outputInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OutputInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OutputInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1ExportEndpointResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1ExportEndpointResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo: -// Describes the output of the ExportEndpoint. -type GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo struct { - // BigQueryDestination: If the Endpoint is being exported to BigQuery - // this is the full path of the BigQuery ML model created. - BigQueryDestination *GoogleCloudAiplatformV1beta1BigQueryDestination `json:"bigQueryDestination,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BigQueryDestination") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BigQueryDestination") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1ExportEndpointResponseOutputInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1ExportFeatureValuesOperationMetadata: // Details of operations that exports Features values. type GoogleCloudAiplatformV1beta1ExportFeatureValuesOperationMetadata struct { @@ -12159,6 +12194,10 @@ type GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource struct { // Online Store. FeatureGroups []*GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup `json:"featureGroups,omitempty"` + // ProjectNumber: Optional. The project number of the parent project of + // the Feature Groups. + ProjectNumber int64 `json:"projectNumber,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FeatureGroups") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -12239,6 +12278,9 @@ type GoogleCloudAiplatformV1beta1FeatureViewSync struct { // RunTime: Output only. Time when this FeatureViewSync is finished. RunTime *GoogleTypeInterval `json:"runTime,omitempty"` + // SyncSummary: Output only. Summary of the sync job. + SyncSummary *GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary `json:"syncSummary,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -12301,6 +12343,41 @@ func (s *GoogleCloudAiplatformV1beta1FeatureViewSyncConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary: Summary from +// the Sync job. For continuous syncs, the summary is updated +// periodically. For batch syncs, it gets updated on completion of the +// sync. +type GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary struct { + // RowSynced: Output only. Total number of rows synced. + RowSynced int64 `json:"rowSynced,omitempty,string"` + + // TotalSlot: Output only. BigQuery slot milliseconds consumed for the + // sync job. + TotalSlot int64 `json:"totalSlot,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "RowSynced") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RowSynced") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig: // Deprecated. Use IndexConfig instead. type GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig struct { @@ -13635,8 +13712,7 @@ type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { // Tools: Optional. A list of `Tools` the model may use to generate the // next response. A `Tool` is a piece of code that enables the system to // interact with external systems to perform an action, or set of - // actions, outside of knowledge and scope of the model. The only - // supported tool is currently `Function` + // actions, outside of knowledge and scope of the model. Tools []*GoogleCloudAiplatformV1beta1Tool `json:"tools,omitempty"` // ForceSendFields is a list of field names (e.g. "Contents") to @@ -13882,6 +13958,157 @@ func (s *GoogleCloudAiplatformV1beta1GenericOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GoogleSearchRetrieval: Tool to retrieve +// public web data for grounding, powered by Google. +type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisableAttribution") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GoogleSearchRetrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GoogleSearchRetrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1GroundingAttribution: Grounding +// attribution. +type GoogleCloudAiplatformV1beta1GroundingAttribution struct { + // ConfidenceScore: Optional. Output only. Confidence score of the + // attribution. Ranges from 0 to 1. 1 is the most confident. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // Segment: Output only. Segment of the content this attribution belongs + // to. + Segment *GoogleCloudAiplatformV1beta1Segment `json:"segment,omitempty"` + + // Web: Optional. Attribution from the web. + Web *GoogleCloudAiplatformV1beta1GroundingAttributionWeb `json:"web,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceScore") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GroundingAttribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1GroundingAttribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudAiplatformV1beta1GroundingAttributionWeb: Attribution from +// the web. +type GoogleCloudAiplatformV1beta1GroundingAttributionWeb struct { + // Title: Output only. Title of the attribution. + Title string `json:"title,omitempty"` + + // Uri: Output only. URI reference of the attribution. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Title") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Title") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GroundingAttributionWeb) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GroundingAttributionWeb + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1GroundingMetadata: Metadata returned to +// client when grounding is enabled. +type GoogleCloudAiplatformV1beta1GroundingMetadata struct { + // GroundingAttributions: Optional. List of grounding attributions. + GroundingAttributions []*GoogleCloudAiplatformV1beta1GroundingAttribution `json:"groundingAttributions,omitempty"` + + // WebSearchQueries: Optional. Web search queries for the following-up + // web search. + WebSearchQueries []string `json:"webSearchQueries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "GroundingAttributions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroundingAttributions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GroundingMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GroundingMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1HyperparameterTuningJob: Represents a // HyperparameterTuningJob. A HyperparameterTuningJob has a Study // specification and multiple CustomJobs with identical CustomJob @@ -21839,12 +22066,6 @@ func (s *GoogleCloudAiplatformV1beta1PipelineJobDetail) MarshalJSON() ([]byte, e // GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig: The runtime // config of a PipelineJob. type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig struct { - // DefaultRuntime: Optional. The default runtime for the PipelineJob. If - // not provided, Vertex Custom Job is used as the runtime. For Vertex - // Custom Job, please refer to - // https://cloud.google.com/vertex-ai/docs/training/overview - DefaultRuntime *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime `json:"defaultRuntime,omitempty"` - // FailurePolicy: Represents the failure policy of a pipeline. // Currently, the default of a pipeline is that the pipeline will // continue to run until no more tasks can be executed, also known as @@ -21894,7 +22115,7 @@ type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig struct { // pipelines built using Kubeflow Pipelines SDK 1.8 or lower. Parameters map[string]GoogleCloudAiplatformV1beta1Value `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultRuntime") to + // ForceSendFields is a list of field names (e.g. "FailurePolicy") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -21902,13 +22123,12 @@ type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DefaultRuntime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FailurePolicy") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -21918,38 +22138,6 @@ func (s *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime: -// The default runtime for the PipelineJob. -type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime struct { - // PersistentResourceRuntimeDetail: Persistent resource based runtime - // detail. - PersistentResourceRuntimeDetail *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail `json:"persistentResourceRuntimeDetail,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PersistentResourceRuntimeDetail") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PersistentResourceRuntimeDetail") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact: // The type of an input artifact. type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact struct { @@ -21983,41 +22171,6 @@ func (s *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact) Mars return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResource -// RuntimeDetail: Persistent resource based runtime detail. For more -// information, refer to -// https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview -type GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail struct { - // PersistentResourceName: Persistent resource name. Format: - // `projects/{project}/locations/{location}/persistentResources/{persiste - // nt_resource}` - PersistentResourceName string `json:"persistentResourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PersistentResourceName") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PersistentResourceName") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1PipelineTaskDetail: The runtime detail of // a task execution. type GoogleCloudAiplatformV1beta1PipelineTaskDetail struct { @@ -23820,6 +23973,35 @@ func (s *GoogleCloudAiplatformV1beta1RawPredictRequest) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RayMetricSpec: Configuration for the Ray +// metrics. +type GoogleCloudAiplatformV1beta1RayMetricSpec struct { + // Disabled: Optional. Flag to disable the Ray metrics collection. + Disabled bool `json:"disabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Disabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Disabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1RayMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RayMetricSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RaySpec: Configuration information for // the Ray cluster. For experimental launch, Ray cluster creation and // Persistent cluster creation are 1:1 mapping: We will provision all @@ -23840,6 +24022,9 @@ type GoogleCloudAiplatformV1beta1RaySpec struct { // Otherwise, use the {@code resource_pool_images} field. ImageUri string `json:"imageUri,omitempty"` + // RayMetricSpec: Optional. Ray metrics configurations. + RayMetricSpec *GoogleCloudAiplatformV1beta1RayMetricSpec `json:"rayMetricSpec,omitempty"` + // ResourcePoolImages: Optional. Required if image_uri isn't set. A map // of resource_pool_id to prebuild Ray image if user need to use // different images for different head/worker pools. This map needs to @@ -24840,6 +25025,41 @@ func (s *GoogleCloudAiplatformV1beta1ResumeScheduleRequest) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1Retrieval: Defines a retrieval tool that +// model can call to access external knowledge. +type GoogleCloudAiplatformV1beta1Retrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // VertexAiSearch: Set to use data source powered by Vertex AI Search. + VertexAiSearch *GoogleCloudAiplatformV1beta1VertexAISearch `json:"vertexAiSearch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisableAttribution") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1Retrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1Retrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SafetyRating: Safety rating corresponding // to the generated content. type GoogleCloudAiplatformV1beta1SafetyRating struct { @@ -33401,6 +33621,45 @@ func (s *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1Segment: Segment of the content. +type GoogleCloudAiplatformV1beta1Segment struct { + // EndIndex: Output only. End index in the given Part, measured in + // bytes. Offset from the start of the Part, exclusive, starting at + // zero. + EndIndex int64 `json:"endIndex,omitempty"` + + // PartIndex: Output only. The index of a Part object within its parent + // Content object. + PartIndex int64 `json:"partIndex,omitempty"` + + // StartIndex: Output only. Start index in the given Part, measured in + // bytes. Offset from the start of the Part, inclusive, starting at + // zero. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndIndex") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndIndex") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1Segment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1Segment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ServiceAccountSpec: Configuration for the // use of custom service account to run the workloads. type GoogleCloudAiplatformV1beta1ServiceAccountSpec struct { @@ -35927,7 +36186,8 @@ func (s *GoogleCloudAiplatformV1beta1TokensInfo) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1Tool: Tool details that the model may use // to generate response. A `Tool` is a piece of code that enables the // system to interact with external systems to perform an action, or set -// of actions, outside of knowledge and scope of the model. +// of actions, outside of knowledge and scope of the model. A Tool +// object should contain exactly one type of Tool. type GoogleCloudAiplatformV1beta1Tool struct { // FunctionDeclarations: Optional. One or more function declarations to // be passed to the model along with the current user query. Model may @@ -35938,6 +36198,15 @@ type GoogleCloudAiplatformV1beta1Tool struct { // function declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1beta1FunctionDeclaration `json:"functionDeclarations,omitempty"` + // GoogleSearchRetrieval: Optional. Specialized retrieval tool that is + // powered by Google search. + GoogleSearchRetrieval *GoogleCloudAiplatformV1beta1GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` + + // Retrieval: Optional. 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. + Retrieval *GoogleCloudAiplatformV1beta1Retrieval `json:"retrieval,omitempty"` + // ForceSendFields is a list of field names (e.g. // "FunctionDeclarations") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -37241,6 +37510,37 @@ func (s *GoogleCloudAiplatformV1beta1Value) UnmarshalJSON(data []byte) error { return nil } +// GoogleCloudAiplatformV1beta1VertexAISearch: Retrieve from Vertex AI +// Search datastore for grounding. See +// https://cloud.google.com/vertex-ai-search-and-conversation +type GoogleCloudAiplatformV1beta1VertexAISearch struct { + // Datastore: Required. Fully-qualified Vertex AI Search's datastore + // resource ID. projects/<>/locations/<>/collections/<>/dataStores/<> + Datastore string `json:"datastore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Datastore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Datastore") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1VertexAISearch) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1VertexAISearch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1VideoMetadata: Metadata describes the // input video content. type GoogleCloudAiplatformV1beta1VideoMetadata struct { @@ -38856,12 +39156,12 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -39055,6 +39355,14 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -39161,7 +39469,9 @@ type LanguageLabsAidaTrustRecitationProtoRecitationResult struct { // RecitationAction: The recitation action for one given input. When its // segments contain different actions, the overall action will be - // returned in the precedence of BLOCK > CITE > NO_ACTION. + // returned in the precedence of BLOCK > CITE > NO_ACTION. When the + // given input is not found in any source, the recitation action will + // not be specified. // // Possible values: // "ACTION_UNSPECIFIED" @@ -39426,12 +39736,12 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -39625,6 +39935,14 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -39993,12 +40311,12 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -40192,6 +40510,14 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -40297,7 +40623,9 @@ type LearningGenaiRecitationRecitationResult struct { // RecitationAction: The recitation action for one given input. When its // segments contain different actions, the overall action will be - // returned in the precedence of BLOCK > CITE > NO_ACTION. + // returned in the precedence of BLOCK > CITE > NO_ACTION. When the + // given input is not found in any source, the recitation action will be + // NO_ACTION. // // Possible values: // "ACTION_UNSPECIFIED" @@ -40563,12 +40891,12 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_IT_MECH" // "GEMINI_IT_TABLE_GEN" // "GEMINI_IT_NIMBUS_DECIBEL" - // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset - // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_CODE_IF" // "GEMINI_IT_CLOUD_EUR_LEX_JSON" // "GEMINI_IT_CLOUD_OASST" // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -40762,6 +41090,14 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + // "CLOUD_GEMIT_CLOUD_FACTUALITY_GROUNDING_MAGI" - Cloud gemit pro FT + // datasets. + // "CLOUD_GEMIT_MT_DIALGUE_LMSYS" + // "CLOUD_GEMIT_MTS_DIALOGUE_V3" + // "CLOUD_GEMIT_COMMIT_MSG_GEN_V3" + // "CLOUD_GEMIT_CODE_IF_V1" + // "CLOUD_GEMIT_CODE_SELF_REPAIR" + // "CLOUD_GEMIT_IDENTITY" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -42520,6 +42856,10 @@ type LearningServingLlmMessageMetadata struct { GroundingMetadata *LearningGenaiRootGroundingMetadata `json:"groundingMetadata,omitempty"` + // IsCode: Applies to streaming response message only. Whether the + // message is a code. + IsCode bool `json:"isCode,omitempty"` + // IsFallback: Applies to Response message only. Indicates whether the // message is a fallback and the response would have otherwise been // empty. @@ -60881,150 +61221,9 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.exampleStores.operations.cancel": +// method id "aiplatform.projects.locations.evaluationTasks.operations.delete": -type ProjectsLocationsExampleStoresOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - 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`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExampleStoresOperationsService) Cancel(name string) *ProjectsLocationsExampleStoresOperationsCancelCall { - c := &ProjectsLocationsExampleStoresOperationsCancelCall{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 information. -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - 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 += "?" + 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.exampleStores.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExampleStoresOperationsCancelCall) 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 - // { - // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.exampleStores.operations.delete": - -type ProjectsLocationsExampleStoresOperationsDeleteCall struct { +type ProjectsLocationsEvaluationTasksOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61038,8 +61237,8 @@ type ProjectsLocationsExampleStoresOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *ProjectsLocationsExampleStoresOperationsDeleteCall { - c := &ProjectsLocationsExampleStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationTasksOperationsService) Delete(name string) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { + c := &ProjectsLocationsEvaluationTasksOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61047,7 +61246,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsDeleteCall { +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61055,21 +61254,21 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googlea // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsDeleteCall { +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61092,14 +61291,14 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.delete" call. +// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61131,9 +61330,9 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.exampleStores.operations.delete", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.delete", // "parameterOrder": [ // "name" // ], @@ -61141,7 +61340,7 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61157,9 +61356,9 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.get": +// method id "aiplatform.projects.locations.evaluationTasks.operations.get": -type ProjectsLocationsExampleStoresOperationsGetCall struct { +type ProjectsLocationsEvaluationTasksOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61173,8 +61372,8 @@ type ProjectsLocationsExampleStoresOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { - c := &ProjectsLocationsExampleStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationTasksOperationsService) Get(name string) *ProjectsLocationsEvaluationTasksOperationsGetCall { + c := &ProjectsLocationsEvaluationTasksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61182,7 +61381,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsGetCall { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61192,7 +61391,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi. // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsGetCall { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -61200,21 +61399,21 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExampleStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsGetCall { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExampleStoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61240,14 +61439,14 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.get" call. +// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61279,9 +61478,9 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.get", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.get", // "parameterOrder": [ // "name" // ], @@ -61289,7 +61488,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61305,9 +61504,9 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.exampleStores.operations.list": +// method id "aiplatform.projects.locations.evaluationTasks.operations.list": -type ProjectsLocationsExampleStoresOperationsListCall struct { +type ProjectsLocationsEvaluationTasksOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61321,29 +61520,29 @@ type ProjectsLocationsExampleStoresOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExampleStoresOperationsService) List(name string) *ProjectsLocationsExampleStoresOperationsListCall { - c := &ProjectsLocationsExampleStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationTasksOperationsService) List(name string) *ProjectsLocationsEvaluationTasksOperationsListCall { + c := &ProjectsLocationsEvaluationTasksOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Filter(filter string) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Filter(filter string) *ProjectsLocationsEvaluationTasksOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExampleStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationTasksOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationTasksOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -61351,7 +61550,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61361,7 +61560,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -61369,21 +61568,21 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61409,7 +61608,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.list" call. +// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -61417,7 +61616,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) // 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 *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61449,9 +61648,9 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.list", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.list", // "parameterOrder": [ // "name" // ], @@ -61464,7 +61663,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+$", // "required": true, // "type": "string" // }, @@ -61494,7 +61693,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. // 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 *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -61512,9 +61711,9 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.exampleStores.operations.wait": +// method id "aiplatform.projects.locations.evaluationTasks.operations.wait": -type ProjectsLocationsExampleStoresOperationsWaitCall struct { +type ProjectsLocationsEvaluationTasksOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61534,8 +61733,8 @@ type ProjectsLocationsExampleStoresOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *ProjectsLocationsExampleStoresOperationsWaitCall { - c := &ProjectsLocationsExampleStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationTasksOperationsService) Wait(name string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { + c := &ProjectsLocationsEvaluationTasksOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61544,7 +61743,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *Pro // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -61552,7 +61751,7 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61560,21 +61759,21 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61597,14 +61796,14 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.wait" call. +// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61636,9 +61835,9 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi. return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.exampleStores.operations.wait", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.wait", // "parameterOrder": [ // "name" // ], @@ -61646,7 +61845,7 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -61668,9 +61867,9 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": +// method id "aiplatform.projects.locations.exampleStores.operations.cancel": -type ProjectsLocationsExtensionControllersOperationsCancelCall struct { +type ProjectsLocationsExampleStoresOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61690,8 +61889,8 @@ type ProjectsLocationsExtensionControllersOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { - c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Cancel(name string) *ProjectsLocationsExampleStoresOperationsCancelCall { + c := &ProjectsLocationsExampleStoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61699,7 +61898,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61707,21 +61906,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsCancelCall { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61744,14 +61943,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.exampleStores.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61783,9 +61982,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", + // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -61793,7 +61992,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61809,9 +62008,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.delete": +// method id "aiplatform.projects.locations.exampleStores.operations.delete": -type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { +type ProjectsLocationsExampleStoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61825,8 +62024,8 @@ type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { - c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *ProjectsLocationsExampleStoresOperationsDeleteCall { + c := &ProjectsLocationsExampleStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61834,7 +62033,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61842,21 +62041,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -61879,14 +62078,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. +// Do executes the "aiplatform.projects.locations.exampleStores.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61918,9 +62117,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", + // "id": "aiplatform.projects.locations.exampleStores.operations.delete", // "parameterOrder": [ // "name" // ], @@ -61928,7 +62127,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61944,9 +62143,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.get": +// method id "aiplatform.projects.locations.exampleStores.operations.get": -type ProjectsLocationsExtensionControllersOperationsGetCall struct { +type ProjectsLocationsExampleStoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61960,8 +62159,8 @@ type ProjectsLocationsExtensionControllersOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { - c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { + c := &ProjectsLocationsExampleStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61969,7 +62168,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61979,7 +62178,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -61987,21 +62186,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62027,14 +62226,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. +// Do executes the "aiplatform.projects.locations.exampleStores.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62066,9 +62265,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.get", + // "id": "aiplatform.projects.locations.exampleStores.operations.get", // "parameterOrder": [ // "name" // ], @@ -62076,7 +62275,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62092,9 +62291,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.extensionControllers.operations.list": +// method id "aiplatform.projects.locations.exampleStores.operations.list": -type ProjectsLocationsExtensionControllersOperationsListCall struct { +type ProjectsLocationsExampleStoresOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62108,29 +62307,29 @@ type ProjectsLocationsExtensionControllersOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { - c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) List(name string) *ProjectsLocationsExampleStoresOperationsListCall { + c := &ProjectsLocationsExampleStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Filter(filter string) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -62138,7 +62337,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(page // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62148,7 +62347,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -62156,21 +62355,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62196,7 +62395,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. +// Do executes the "aiplatform.projects.locations.exampleStores.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -62204,7 +62403,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt // 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 *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62236,9 +62435,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.list", + // "id": "aiplatform.projects.locations.exampleStores.operations.list", // "parameterOrder": [ // "name" // ], @@ -62251,7 +62450,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", // "required": true, // "type": "string" // }, @@ -62281,7 +62480,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo // 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 *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -62299,9 +62498,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx cont } } -// method id "aiplatform.projects.locations.extensionControllers.operations.wait": +// method id "aiplatform.projects.locations.exampleStores.operations.wait": -type ProjectsLocationsExtensionControllersOperationsWaitCall struct { +type ProjectsLocationsExampleStoresOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62321,8 +62520,8 @@ type ProjectsLocationsExtensionControllersOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { - c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *ProjectsLocationsExampleStoresOperationsWaitCall { + c := &ProjectsLocationsExampleStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62331,7 +62530,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name strin // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -62339,7 +62538,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62347,21 +62546,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...go // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62384,14 +62583,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. +// Do executes the "aiplatform.projects.locations.exampleStores.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62423,9 +62622,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", + // "id": "aiplatform.projects.locations.exampleStores.operations.wait", // "parameterOrder": [ // "name" // ], @@ -62433,7 +62632,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -62455,9 +62654,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": +// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": -type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { +type ProjectsLocationsExtensionControllersOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62477,8 +62676,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62486,7 +62685,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62494,21 +62693,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s .. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62531,14 +62730,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62570,9 +62769,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ... return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", + // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -62580,7 +62779,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ... // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62596,9 +62795,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ... } -// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": +// method id "aiplatform.projects.locations.extensionControllers.operations.delete": -type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { +type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62612,8 +62811,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62621,7 +62820,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62629,21 +62828,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s .. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62666,14 +62865,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.delete" call. +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62705,9 +62904,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", + // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", // "parameterOrder": [ // "name" // ], @@ -62715,7 +62914,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62731,9 +62930,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.extensions.deployments.operations.get": +// method id "aiplatform.projects.locations.extensionControllers.operations.get": -type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { +type ProjectsLocationsExtensionControllersOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62747,8 +62946,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62756,7 +62955,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62766,7 +62965,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -62774,21 +62973,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62814,14 +63013,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62853,9 +63052,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", + // "id": "aiplatform.projects.locations.extensionControllers.operations.get", // "parameterOrder": [ // "name" // ], @@ -62863,7 +63062,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62879,9 +63078,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.list": +// method id "aiplatform.projects.locations.extensionControllers.operations.list": -type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { +type ProjectsLocationsExtensionControllersOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62895,29 +63094,29 @@ type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { + c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -62925,7 +63124,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pag // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62935,7 +63134,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -62943,21 +63142,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -62983,7 +63182,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -62991,7 +63190,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt // 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63023,9 +63222,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", + // "id": "aiplatform.projects.locations.extensionControllers.operations.list", // "parameterOrder": [ // "name" // ], @@ -63038,7 +63237,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", // "required": true, // "type": "string" // }, @@ -63068,7 +63267,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -63086,9 +63285,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx con } } -// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": +// method id "aiplatform.projects.locations.extensionControllers.operations.wait": -type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { +type ProjectsLocationsExtensionControllersOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63108,8 +63307,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63118,7 +63317,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name stri // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -63126,7 +63325,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63134,21 +63333,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63171,14 +63370,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63210,9 +63409,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", + // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", // "parameterOrder": [ // "name" // ], @@ -63220,7 +63419,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -63242,9 +63441,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.extensions.operations.cancel": +// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": -type ProjectsLocationsExtensionsOperationsCancelCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63264,8 +63463,8 @@ type ProjectsLocationsExtensionsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { - c := &ProjectsLocationsExtensionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63273,7 +63472,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63281,21 +63480,21 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63318,14 +63517,14 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63357,9 +63556,9 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.cancel", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -63367,7 +63566,7 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -63383,9 +63582,9 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.extensions.operations.delete": +// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": -type ProjectsLocationsExtensionsOperationsDeleteCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63399,8 +63598,8 @@ type ProjectsLocationsExtensionsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63408,7 +63607,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63416,21 +63615,21 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63453,14 +63652,14 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63492,9 +63691,9 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C return ret, nil // { // "description": "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`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.operations.delete", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", // "parameterOrder": [ // "name" // ], @@ -63502,7 +63701,7 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -63518,9 +63717,9 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.extensions.operations.get": +// method id "aiplatform.projects.locations.extensions.deployments.operations.get": -type ProjectsLocationsExtensionsOperationsGetCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63534,8 +63733,8 @@ type ProjectsLocationsExtensionsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { - c := &ProjectsLocationsExtensionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63543,7 +63742,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63553,7 +63752,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -63561,21 +63760,21 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63601,14 +63800,14 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.get" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63640,9 +63839,9 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.get", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", // "parameterOrder": [ // "name" // ], @@ -63650,7 +63849,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -63666,9 +63865,9 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.extensions.operations.list": +// method id "aiplatform.projects.locations.extensions.deployments.operations.list": -type ProjectsLocationsExtensionsOperationsListCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63682,29 +63881,29 @@ type ProjectsLocationsExtensionsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { - c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -63712,7 +63911,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63722,7 +63921,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -63730,21 +63929,21 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63770,7 +63969,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.list" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -63778,7 +63977,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* // 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 *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63810,9 +64009,9 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.list", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", // "parameterOrder": [ // "name" // ], @@ -63825,7 +64024,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", // "required": true, // "type": "string" // }, @@ -63855,7 +64054,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal // 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 *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -63873,9 +64072,9 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Contex } } -// method id "aiplatform.projects.locations.extensions.operations.wait": +// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": -type ProjectsLocationsExtensionsOperationsWaitCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63895,8 +64094,8 @@ type ProjectsLocationsExtensionsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { - c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63905,7 +64104,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *Projec // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -63913,7 +64112,7 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63921,21 +64120,21 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -63958,14 +64157,14 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63997,9 +64196,9 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.wait", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", // "parameterOrder": [ // "name" // ], @@ -64007,7 +64206,7 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -64029,43 +64228,38 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureGroups.create": +// method id "aiplatform.projects.locations.extensions.operations.cancel": -type ProjectsLocationsFeatureGroupsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureGroup in a given project and location. +// 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`. // -// - parent: The resource name of the Location to create FeatureGroups. -// Format: `projects/{project}/locations/{location}'`. -func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { - c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup - return c -} - -// FeatureGroupId sets the optional parameter "featureGroupId": -// Required. The ID to use for this FeatureGroup, which will become the -// final component of the FeatureGroup's resource name. This value may -// be up to 60 characters, and valid characters are `[a-z0-9_]`. The -// first character cannot be a number. The value must be unique within -// the project and location. -func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { - c.urlParams_.Set("featureGroupId", featureGroupId) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { + c := &ProjectsLocationsExtensionsOperationsCancelCall{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 information. -func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64073,21 +64267,21 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -64095,14 +64289,9 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -64110,19 +64299,19 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// 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 +// Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64141,7 +64330,7 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64153,33 +64342,25 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new FeatureGroup in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "description": "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`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.create", + // "id": "aiplatform.projects.locations.extensions.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featureGroupId": { - // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureGroups", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64188,9 +64369,9 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featureGroups.delete": +// method id "aiplatform.projects.locations.extensions.operations.delete": -type ProjectsLocationsFeatureGroupsDeleteCall struct { +type ProjectsLocationsExtensionsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -64198,29 +64379,22 @@ type ProjectsLocationsFeatureGroupsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FeatureGroup. +// 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 FeatureGroup to be deleted. Format: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { - c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// Features under this FeatureGroup will also be deleted. (Otherwise, -// the request will only work if the FeatureGroup has no Features.) -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64228,21 +64402,833 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + 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.extensions.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsOperationsDeleteCall) 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 + // { + // "description": "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`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensions.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensions.operations.get": + +type ProjectsLocationsExtensionsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { + c := &ProjectsLocationsExtensionsOperationsGetCall{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 information. +func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + 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.extensions.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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 + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensions.operations.list": + +type ProjectsLocationsExtensionsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { + c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { + 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 information. +func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + 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}/operations") + 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.extensions.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + 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 + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + +// method id "aiplatform.projects.locations.extensions.operations.wait": + +type ProjectsLocationsExtensionsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { + c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + 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.extensions.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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 + // { + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.extensions.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.create": + +type ProjectsLocationsFeatureGroupsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FeatureGroup in a given project and location. +// +// - parent: The resource name of the Location to create FeatureGroups. +// Format: `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { + c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup + return c +} + +// FeatureGroupId sets the optional parameter "featureGroupId": +// Required. The ID to use for this FeatureGroup, which will become the +// final component of the FeatureGroup's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("featureGroupId", featureGroupId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureGroups") + 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.featureGroups.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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 + // { + // "description": "Creates a new FeatureGroup in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "featureGroupId": { + // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/featureGroups", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.delete": + +type ProjectsLocationsFeatureGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single FeatureGroup. +// +// - name: The name of the FeatureGroup to be deleted. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { + c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any +// Features under this FeatureGroup will also be deleted. (Otherwise, +// the request will only work if the FeatureGroup has no Features.) +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -68806,7 +69792,7 @@ func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name str // overwritten if it is in the mask. If the user does not provide a mask // then only the non-empty fields present in the request will be // overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` +// Updatable fields: * `labels` * `serviceAgentType` func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -68919,7 +69905,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/certificatemanager/v1/certificatemanager-api.json b/certificatemanager/v1/certificatemanager-api.json index 8b1c18a92e6..14ac07a0fbb 100644 --- a/certificatemanager/v1/certificatemanager-api.json +++ b/certificatemanager/v1/certificatemanager-api.json @@ -1280,7 +1280,7 @@ } } }, - "revision": "20230906", + "revision": "20240209", "rootUrl": "https://certificatemanager.googleapis.com/", "schemas": { "AuthorizationAttemptInfo": { @@ -1646,6 +1646,20 @@ "description": "A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern `projects/*/locations/*/dnsAuthorizations/*`.", "type": "string" }, + "type": { + "description": "Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used: - in location global: FIXED_RECORD.", + "enum": [ + "TYPE_UNSPECIFIED", + "FIXED_RECORD", + "PER_PROJECT_RECORD" + ], + "enumDescriptions": [ + "Type is unspecified.", + "FIXED_RECORD DNS authorization uses DNS-01 validation method.", + "PER_PROJECT_RECORD DNS authorization allows for independent management of Google-managed certificates with DNS authorization across multiple projects." + ], + "type": "string" + }, "updateTime": { "description": "Output only. The last update timestamp of a DnsAuthorization.", "format": "google-datetime", diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index 73b0aafbaaa..25ac9600a9a 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -704,6 +704,19 @@ type DnsAuthorization struct { // `projects/*/locations/*/dnsAuthorizations/*`. Name string `json:"name,omitempty"` + // Type: Immutable. Type of DnsAuthorization. If unset during resource + // creation the following default will be used: - in location global: + // FIXED_RECORD. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "FIXED_RECORD" - FIXED_RECORD DNS authorization uses DNS-01 + // validation method. + // "PER_PROJECT_RECORD" - PER_PROJECT_RECORD DNS authorization allows + // for independent management of Google-managed certificates with DNS + // authorization across multiple projects. + Type string `json:"type,omitempty"` + // UpdateTime: Output only. The last update timestamp of a // DnsAuthorization. UpdateTime string `json:"updateTime,omitempty"` diff --git a/language/v1/language-api.json b/language/v1/language-api.json index 5435de7f558..98ac48b01d8 100644 --- a/language/v1/language-api.json +++ b/language/v1/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20231209", + "revision": "20240211", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -465,12 +465,47 @@ "type": "string" }, "features": { - "$ref": "Features", + "$ref": "AnnotateTextRequestFeatures", "description": "Required. The enabled features." } }, "type": "object" }, + "AnnotateTextRequestFeatures": { + "description": "All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.", + "id": "AnnotateTextRequestFeatures", + "properties": { + "classificationModelOptions": { + "$ref": "ClassificationModelOptions", + "description": "Optional. The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true." + }, + "classifyText": { + "description": "Classify the full document into categories.", + "type": "boolean" + }, + "extractDocumentSentiment": { + "description": "Extract document-level sentiment.", + "type": "boolean" + }, + "extractEntities": { + "description": "Extract entities.", + "type": "boolean" + }, + "extractEntitySentiment": { + "description": "Extract entities and their associated sentiment.", + "type": "boolean" + }, + "extractSyntax": { + "description": "Extract syntax information.", + "type": "boolean" + }, + "moderateText": { + "description": "Moderate the document for harmful and sensitive categories.", + "type": "boolean" + } + }, + "type": "object" + }, "AnnotateTextResponse": { "description": "The text annotations response message.", "id": "AnnotateTextResponse", @@ -542,16 +577,43 @@ "id": "ClassificationModelOptions", "properties": { "v1Model": { - "$ref": "V1Model", + "$ref": "ClassificationModelOptionsV1Model", "description": "Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future." }, "v2Model": { - "$ref": "V2Model", + "$ref": "ClassificationModelOptionsV2Model", "description": "Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model." } }, "type": "object" }, + "ClassificationModelOptionsV1Model": { + "description": "Options for the V1 model.", + "id": "ClassificationModelOptionsV1Model", + "properties": {}, + "type": "object" + }, + "ClassificationModelOptionsV2Model": { + "description": "Options for the V2 model.", + "id": "ClassificationModelOptionsV2Model", + "properties": { + "contentCategoriesVersion": { + "description": "The content categories used for classification.", + "enum": [ + "CONTENT_CATEGORIES_VERSION_UNSPECIFIED", + "V1", + "V2" + ], + "enumDescriptions": [ + "If `ContentCategoriesVersion` is not specified, this option will default to `V1`.", + "Legacy content categories of our initial launch in 2017.", + "Updated content categories in 2022." + ], + "type": "string" + } + }, + "type": "object" + }, "ClassifyTextRequest": { "description": "The document classification request message.", "id": "ClassifyTextRequest", @@ -581,6 +643,419 @@ }, "type": "object" }, + "Color": { + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "id": "Color", + "properties": { + "alpha": { + "description": "The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).", + "format": "float", + "type": "number" + }, + "blue": { + "description": "The amount of blue in the color as a value in the interval [0, 1].", + "format": "float", + "type": "number" + }, + "green": { + "description": "The amount of green in the color as a value in the interval [0, 1].", + "format": "float", + "type": "number" + }, + "red": { + "description": "The amount of red in the color as a value in the interval [0, 1].", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CpuMetric": { + "description": "Metric for billing reports.", + "id": "CpuMetric", + "properties": { + "coreNumber": { + "description": "Required. Number of CPU cores.", + "format": "int64", + "type": "string" + }, + "coreSec": { + "description": "Required. Total seconds of core usage, e.g. 4.", + "format": "int64", + "type": "string" + }, + "cpuType": { + "description": "Required. Type of cpu, e.g. N2.", + "enum": [ + "UNKNOWN_CPU_TYPE", + "A2", + "A3", + "C2", + "C2D", + "CUSTOM", + "E2", + "G2", + "C3", + "M2", + "M1", + "N1", + "N2_CUSTOM", + "N2", + "N2D" + ], + "enumDescriptions": [ + "", + "GPU-based machine, skip quota reporting.", + "GPU-based machine, skip quota reporting.", + "COMPUTE_OPTIMIZED", + "", + "", + "", + "GPU-based machine, skip quota reporting.", + "", + "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", + "MEMORY_OPTIMIZED", + "", + "", + "", + "" + ], + "type": "string" + }, + "machineSpec": { + "description": "Required. Machine spec, e.g. N1_STANDARD_4.", + "enum": [ + "UNKNOWN_MACHINE_SPEC", + "N1_STANDARD_2", + "N1_STANDARD_4", + "N1_STANDARD_8", + "N1_STANDARD_16", + "N1_STANDARD_32", + "N1_STANDARD_64", + "N1_STANDARD_96", + "N1_HIGHMEM_2", + "N1_HIGHMEM_4", + "N1_HIGHMEM_8", + "N1_HIGHMEM_16", + "N1_HIGHMEM_32", + "N1_HIGHMEM_64", + "N1_HIGHMEM_96", + "N1_HIGHCPU_2", + "N1_HIGHCPU_4", + "N1_HIGHCPU_8", + "N1_HIGHCPU_16", + "N1_HIGHCPU_32", + "N1_HIGHCPU_64", + "N1_HIGHCPU_96", + "A2_HIGHGPU_1G", + "A2_HIGHGPU_2G", + "A2_HIGHGPU_4G", + "A2_HIGHGPU_8G", + "A2_MEGAGPU_16G", + "A2_ULTRAGPU_1G", + "A2_ULTRAGPU_2G", + "A2_ULTRAGPU_4G", + "A2_ULTRAGPU_8G", + "A3_HIGHGPU_8G", + "E2_STANDARD_2", + "E2_STANDARD_4", + "E2_STANDARD_8", + "E2_STANDARD_16", + "E2_STANDARD_32", + "E2_HIGHMEM_2", + "E2_HIGHMEM_4", + "E2_HIGHMEM_8", + "E2_HIGHMEM_16", + "E2_HIGHCPU_2", + "E2_HIGHCPU_4", + "E2_HIGHCPU_8", + "E2_HIGHCPU_16", + "E2_HIGHCPU_32", + "N2_STANDARD_2", + "N2_STANDARD_4", + "N2_STANDARD_8", + "N2_STANDARD_16", + "N2_STANDARD_32", + "N2_STANDARD_48", + "N2_STANDARD_64", + "N2_STANDARD_80", + "N2_STANDARD_96", + "N2_STANDARD_128", + "N2_HIGHMEM_2", + "N2_HIGHMEM_4", + "N2_HIGHMEM_8", + "N2_HIGHMEM_16", + "N2_HIGHMEM_32", + "N2_HIGHMEM_48", + "N2_HIGHMEM_64", + "N2_HIGHMEM_80", + "N2_HIGHMEM_96", + "N2_HIGHMEM_128", + "N2_HIGHCPU_2", + "N2_HIGHCPU_4", + "N2_HIGHCPU_8", + "N2_HIGHCPU_16", + "N2_HIGHCPU_32", + "N2_HIGHCPU_48", + "N2_HIGHCPU_64", + "N2_HIGHCPU_80", + "N2_HIGHCPU_96", + "N2D_STANDARD_2", + "N2D_STANDARD_4", + "N2D_STANDARD_8", + "N2D_STANDARD_16", + "N2D_STANDARD_32", + "N2D_STANDARD_48", + "N2D_STANDARD_64", + "N2D_STANDARD_80", + "N2D_STANDARD_96", + "N2D_STANDARD_128", + "N2D_STANDARD_224", + "N2D_HIGHMEM_2", + "N2D_HIGHMEM_4", + "N2D_HIGHMEM_8", + "N2D_HIGHMEM_16", + "N2D_HIGHMEM_32", + "N2D_HIGHMEM_48", + "N2D_HIGHMEM_64", + "N2D_HIGHMEM_80", + "N2D_HIGHMEM_96", + "N2D_HIGHCPU_2", + "N2D_HIGHCPU_4", + "N2D_HIGHCPU_8", + "N2D_HIGHCPU_16", + "N2D_HIGHCPU_32", + "N2D_HIGHCPU_48", + "N2D_HIGHCPU_64", + "N2D_HIGHCPU_80", + "N2D_HIGHCPU_96", + "N2D_HIGHCPU_128", + "N2D_HIGHCPU_224", + "C2_STANDARD_4", + "C2_STANDARD_8", + "C2_STANDARD_16", + "C2_STANDARD_30", + "C2_STANDARD_60", + "C2D_STANDARD_2", + "C2D_STANDARD_4", + "C2D_STANDARD_8", + "C2D_STANDARD_16", + "C2D_STANDARD_32", + "C2D_STANDARD_56", + "C2D_STANDARD_112", + "C2D_HIGHCPU_2", + "C2D_HIGHCPU_4", + "C2D_HIGHCPU_8", + "C2D_HIGHCPU_16", + "C2D_HIGHCPU_32", + "C2D_HIGHCPU_56", + "C2D_HIGHCPU_112", + "C2D_HIGHMEM_2", + "C2D_HIGHMEM_4", + "C2D_HIGHMEM_8", + "C2D_HIGHMEM_16", + "C2D_HIGHMEM_32", + "C2D_HIGHMEM_56", + "C2D_HIGHMEM_112", + "G2_STANDARD_4", + "G2_STANDARD_8", + "G2_STANDARD_12", + "G2_STANDARD_16", + "G2_STANDARD_24", + "G2_STANDARD_32", + "G2_STANDARD_48", + "G2_STANDARD_96", + "C3_STANDARD_4", + "C3_STANDARD_8", + "C3_STANDARD_22", + "C3_STANDARD_44", + "C3_STANDARD_88", + "C3_STANDARD_176", + "C3_HIGHCPU_4", + "C3_HIGHCPU_8", + "C3_HIGHCPU_22", + "C3_HIGHCPU_44", + "C3_HIGHCPU_88", + "C3_HIGHCPU_176", + "C3_HIGHMEM_4", + "C3_HIGHMEM_8", + "C3_HIGHMEM_22", + "C3_HIGHMEM_44", + "C3_HIGHMEM_88", + "C3_HIGHMEM_176" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "trackingLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. \"key\": \"goog-k8s-cluster-name\",\"value\": \"us-east1-b4rk\"", + "type": "object" + } + }, + "type": "object" + }, "DependencyEdge": { "description": "Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017", "id": "DependencyEdge", @@ -767,6 +1242,37 @@ }, "type": "object" }, + "DiskMetric": { + "id": "DiskMetric", + "properties": { + "diskType": { + "description": "Required. Type of Disk, e.g. REGIONAL_SSD.", + "enum": [ + "UNKNOWN_DISK_TYPE", + "REGIONAL_SSD", + "REGIONAL_STORAGE", + "PD_SSD", + "PD_STANDARD", + "STORAGE_SNAPSHOT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "gibSec": { + "description": "Required. Seconds of physical disk usage, e.g. 3600.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "Document": { "description": "Represents the input to API methods.", "id": "Document", @@ -897,37 +1403,414 @@ }, "type": "object" }, - "Features": { - "description": "All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.", - "id": "Features", + "GpuMetric": { + "id": "GpuMetric", "properties": { - "classificationModelOptions": { - "$ref": "ClassificationModelOptions", - "description": "Optional. The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true." + "gpuSec": { + "description": "Required. Seconds of GPU usage, e.g. 3600.", + "format": "int64", + "type": "string" }, - "classifyText": { - "description": "Classify the full document into categories.", - "type": "boolean" + "gpuType": { + "description": "Required. Type of GPU, e.g. NVIDIA_TESLA_V100.", + "enum": [ + "UNKNOWN_GPU_TYPE", + "NVIDIA_TESLA_A100", + "NVIDIA_A100_80GB", + "NVIDIA_TESLA_K80", + "NVIDIA_L4", + "NVIDIA_TESLA_P100", + "NVIDIA_TESLA_P4", + "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_V100", + "NVIDIA_H100_80GB" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" }, - "extractDocumentSentiment": { - "description": "Extract document-level sentiment.", - "type": "boolean" + "machineSpec": { + "description": "Required. Machine spec, e.g. N1_STANDARD_4.", + "enum": [ + "UNKNOWN_MACHINE_SPEC", + "N1_STANDARD_2", + "N1_STANDARD_4", + "N1_STANDARD_8", + "N1_STANDARD_16", + "N1_STANDARD_32", + "N1_STANDARD_64", + "N1_STANDARD_96", + "N1_HIGHMEM_2", + "N1_HIGHMEM_4", + "N1_HIGHMEM_8", + "N1_HIGHMEM_16", + "N1_HIGHMEM_32", + "N1_HIGHMEM_64", + "N1_HIGHMEM_96", + "N1_HIGHCPU_2", + "N1_HIGHCPU_4", + "N1_HIGHCPU_8", + "N1_HIGHCPU_16", + "N1_HIGHCPU_32", + "N1_HIGHCPU_64", + "N1_HIGHCPU_96", + "A2_HIGHGPU_1G", + "A2_HIGHGPU_2G", + "A2_HIGHGPU_4G", + "A2_HIGHGPU_8G", + "A2_MEGAGPU_16G", + "A2_ULTRAGPU_1G", + "A2_ULTRAGPU_2G", + "A2_ULTRAGPU_4G", + "A2_ULTRAGPU_8G", + "A3_HIGHGPU_8G", + "E2_STANDARD_2", + "E2_STANDARD_4", + "E2_STANDARD_8", + "E2_STANDARD_16", + "E2_STANDARD_32", + "E2_HIGHMEM_2", + "E2_HIGHMEM_4", + "E2_HIGHMEM_8", + "E2_HIGHMEM_16", + "E2_HIGHCPU_2", + "E2_HIGHCPU_4", + "E2_HIGHCPU_8", + "E2_HIGHCPU_16", + "E2_HIGHCPU_32", + "N2_STANDARD_2", + "N2_STANDARD_4", + "N2_STANDARD_8", + "N2_STANDARD_16", + "N2_STANDARD_32", + "N2_STANDARD_48", + "N2_STANDARD_64", + "N2_STANDARD_80", + "N2_STANDARD_96", + "N2_STANDARD_128", + "N2_HIGHMEM_2", + "N2_HIGHMEM_4", + "N2_HIGHMEM_8", + "N2_HIGHMEM_16", + "N2_HIGHMEM_32", + "N2_HIGHMEM_48", + "N2_HIGHMEM_64", + "N2_HIGHMEM_80", + "N2_HIGHMEM_96", + "N2_HIGHMEM_128", + "N2_HIGHCPU_2", + "N2_HIGHCPU_4", + "N2_HIGHCPU_8", + "N2_HIGHCPU_16", + "N2_HIGHCPU_32", + "N2_HIGHCPU_48", + "N2_HIGHCPU_64", + "N2_HIGHCPU_80", + "N2_HIGHCPU_96", + "N2D_STANDARD_2", + "N2D_STANDARD_4", + "N2D_STANDARD_8", + "N2D_STANDARD_16", + "N2D_STANDARD_32", + "N2D_STANDARD_48", + "N2D_STANDARD_64", + "N2D_STANDARD_80", + "N2D_STANDARD_96", + "N2D_STANDARD_128", + "N2D_STANDARD_224", + "N2D_HIGHMEM_2", + "N2D_HIGHMEM_4", + "N2D_HIGHMEM_8", + "N2D_HIGHMEM_16", + "N2D_HIGHMEM_32", + "N2D_HIGHMEM_48", + "N2D_HIGHMEM_64", + "N2D_HIGHMEM_80", + "N2D_HIGHMEM_96", + "N2D_HIGHCPU_2", + "N2D_HIGHCPU_4", + "N2D_HIGHCPU_8", + "N2D_HIGHCPU_16", + "N2D_HIGHCPU_32", + "N2D_HIGHCPU_48", + "N2D_HIGHCPU_64", + "N2D_HIGHCPU_80", + "N2D_HIGHCPU_96", + "N2D_HIGHCPU_128", + "N2D_HIGHCPU_224", + "C2_STANDARD_4", + "C2_STANDARD_8", + "C2_STANDARD_16", + "C2_STANDARD_30", + "C2_STANDARD_60", + "C2D_STANDARD_2", + "C2D_STANDARD_4", + "C2D_STANDARD_8", + "C2D_STANDARD_16", + "C2D_STANDARD_32", + "C2D_STANDARD_56", + "C2D_STANDARD_112", + "C2D_HIGHCPU_2", + "C2D_HIGHCPU_4", + "C2D_HIGHCPU_8", + "C2D_HIGHCPU_16", + "C2D_HIGHCPU_32", + "C2D_HIGHCPU_56", + "C2D_HIGHCPU_112", + "C2D_HIGHMEM_2", + "C2D_HIGHMEM_4", + "C2D_HIGHMEM_8", + "C2D_HIGHMEM_16", + "C2D_HIGHMEM_32", + "C2D_HIGHMEM_56", + "C2D_HIGHMEM_112", + "G2_STANDARD_4", + "G2_STANDARD_8", + "G2_STANDARD_12", + "G2_STANDARD_16", + "G2_STANDARD_24", + "G2_STANDARD_32", + "G2_STANDARD_48", + "G2_STANDARD_96", + "C3_STANDARD_4", + "C3_STANDARD_8", + "C3_STANDARD_22", + "C3_STANDARD_44", + "C3_STANDARD_88", + "C3_STANDARD_176", + "C3_HIGHCPU_4", + "C3_HIGHCPU_8", + "C3_HIGHCPU_22", + "C3_HIGHCPU_44", + "C3_HIGHCPU_88", + "C3_HIGHCPU_176", + "C3_HIGHMEM_4", + "C3_HIGHMEM_8", + "C3_HIGHMEM_22", + "C3_HIGHMEM_44", + "C3_HIGHMEM_88", + "C3_HIGHMEM_176" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" }, - "extractEntities": { - "description": "Extract entities.", - "type": "boolean" + "trackingLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. \"key\": \"goog-k8s-cluster-name\",\"value\": \"us-east1-b4rk\"", + "type": "object" + } + }, + "type": "object" + }, + "InfraUsage": { + "description": "Infra Usage of billing metrics. Next ID: 6", + "id": "InfraUsage", + "properties": { + "cpuMetrics": { + "description": "Aggregated core metrics since requested start_time.", + "items": { + "$ref": "CpuMetric" + }, + "type": "array" }, - "extractEntitySentiment": { - "description": "Extract entities and their associated sentiment.", - "type": "boolean" + "diskMetrics": { + "description": "Aggregated persistent disk metrics since requested start_time.", + "items": { + "$ref": "DiskMetric" + }, + "type": "array" }, - "extractSyntax": { - "description": "Extract syntax information.", - "type": "boolean" + "gpuMetrics": { + "description": "Aggregated gpu metrics since requested start_time.", + "items": { + "$ref": "GpuMetric" + }, + "type": "array" }, - "moderateText": { - "description": "Moderate the document for harmful and sensitive categories.", - "type": "boolean" + "ramMetrics": { + "description": "Aggregated ram metrics since requested start_time.", + "items": { + "$ref": "RamMetric" + }, + "type": "array" + }, + "tpuMetrics": { + "description": "Aggregated tpu metrics since requested start_time.", + "items": { + "$ref": "TpuMetric" + }, + "type": "array" } }, "type": "object" @@ -1224,6 +2107,391 @@ }, "type": "object" }, + "RamMetric": { + "id": "RamMetric", + "properties": { + "gibSec": { + "description": "Required. VM memory in Gigabyte second, e.g. 3600. Using int64 type to match billing metrics definition.", + "format": "int64", + "type": "string" + }, + "machineSpec": { + "description": "Required. Machine spec, e.g. N1_STANDARD_4.", + "enum": [ + "UNKNOWN_MACHINE_SPEC", + "N1_STANDARD_2", + "N1_STANDARD_4", + "N1_STANDARD_8", + "N1_STANDARD_16", + "N1_STANDARD_32", + "N1_STANDARD_64", + "N1_STANDARD_96", + "N1_HIGHMEM_2", + "N1_HIGHMEM_4", + "N1_HIGHMEM_8", + "N1_HIGHMEM_16", + "N1_HIGHMEM_32", + "N1_HIGHMEM_64", + "N1_HIGHMEM_96", + "N1_HIGHCPU_2", + "N1_HIGHCPU_4", + "N1_HIGHCPU_8", + "N1_HIGHCPU_16", + "N1_HIGHCPU_32", + "N1_HIGHCPU_64", + "N1_HIGHCPU_96", + "A2_HIGHGPU_1G", + "A2_HIGHGPU_2G", + "A2_HIGHGPU_4G", + "A2_HIGHGPU_8G", + "A2_MEGAGPU_16G", + "A2_ULTRAGPU_1G", + "A2_ULTRAGPU_2G", + "A2_ULTRAGPU_4G", + "A2_ULTRAGPU_8G", + "A3_HIGHGPU_8G", + "E2_STANDARD_2", + "E2_STANDARD_4", + "E2_STANDARD_8", + "E2_STANDARD_16", + "E2_STANDARD_32", + "E2_HIGHMEM_2", + "E2_HIGHMEM_4", + "E2_HIGHMEM_8", + "E2_HIGHMEM_16", + "E2_HIGHCPU_2", + "E2_HIGHCPU_4", + "E2_HIGHCPU_8", + "E2_HIGHCPU_16", + "E2_HIGHCPU_32", + "N2_STANDARD_2", + "N2_STANDARD_4", + "N2_STANDARD_8", + "N2_STANDARD_16", + "N2_STANDARD_32", + "N2_STANDARD_48", + "N2_STANDARD_64", + "N2_STANDARD_80", + "N2_STANDARD_96", + "N2_STANDARD_128", + "N2_HIGHMEM_2", + "N2_HIGHMEM_4", + "N2_HIGHMEM_8", + "N2_HIGHMEM_16", + "N2_HIGHMEM_32", + "N2_HIGHMEM_48", + "N2_HIGHMEM_64", + "N2_HIGHMEM_80", + "N2_HIGHMEM_96", + "N2_HIGHMEM_128", + "N2_HIGHCPU_2", + "N2_HIGHCPU_4", + "N2_HIGHCPU_8", + "N2_HIGHCPU_16", + "N2_HIGHCPU_32", + "N2_HIGHCPU_48", + "N2_HIGHCPU_64", + "N2_HIGHCPU_80", + "N2_HIGHCPU_96", + "N2D_STANDARD_2", + "N2D_STANDARD_4", + "N2D_STANDARD_8", + "N2D_STANDARD_16", + "N2D_STANDARD_32", + "N2D_STANDARD_48", + "N2D_STANDARD_64", + "N2D_STANDARD_80", + "N2D_STANDARD_96", + "N2D_STANDARD_128", + "N2D_STANDARD_224", + "N2D_HIGHMEM_2", + "N2D_HIGHMEM_4", + "N2D_HIGHMEM_8", + "N2D_HIGHMEM_16", + "N2D_HIGHMEM_32", + "N2D_HIGHMEM_48", + "N2D_HIGHMEM_64", + "N2D_HIGHMEM_80", + "N2D_HIGHMEM_96", + "N2D_HIGHCPU_2", + "N2D_HIGHCPU_4", + "N2D_HIGHCPU_8", + "N2D_HIGHCPU_16", + "N2D_HIGHCPU_32", + "N2D_HIGHCPU_48", + "N2D_HIGHCPU_64", + "N2D_HIGHCPU_80", + "N2D_HIGHCPU_96", + "N2D_HIGHCPU_128", + "N2D_HIGHCPU_224", + "C2_STANDARD_4", + "C2_STANDARD_8", + "C2_STANDARD_16", + "C2_STANDARD_30", + "C2_STANDARD_60", + "C2D_STANDARD_2", + "C2D_STANDARD_4", + "C2D_STANDARD_8", + "C2D_STANDARD_16", + "C2D_STANDARD_32", + "C2D_STANDARD_56", + "C2D_STANDARD_112", + "C2D_HIGHCPU_2", + "C2D_HIGHCPU_4", + "C2D_HIGHCPU_8", + "C2D_HIGHCPU_16", + "C2D_HIGHCPU_32", + "C2D_HIGHCPU_56", + "C2D_HIGHCPU_112", + "C2D_HIGHMEM_2", + "C2D_HIGHMEM_4", + "C2D_HIGHMEM_8", + "C2D_HIGHMEM_16", + "C2D_HIGHMEM_32", + "C2D_HIGHMEM_56", + "C2D_HIGHMEM_112", + "G2_STANDARD_4", + "G2_STANDARD_8", + "G2_STANDARD_12", + "G2_STANDARD_16", + "G2_STANDARD_24", + "G2_STANDARD_32", + "G2_STANDARD_48", + "G2_STANDARD_96", + "C3_STANDARD_4", + "C3_STANDARD_8", + "C3_STANDARD_22", + "C3_STANDARD_44", + "C3_STANDARD_88", + "C3_STANDARD_176", + "C3_HIGHCPU_4", + "C3_HIGHCPU_8", + "C3_HIGHCPU_22", + "C3_HIGHCPU_44", + "C3_HIGHCPU_88", + "C3_HIGHCPU_176", + "C3_HIGHMEM_4", + "C3_HIGHMEM_8", + "C3_HIGHMEM_22", + "C3_HIGHMEM_44", + "C3_HIGHMEM_88", + "C3_HIGHMEM_176" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "memories": { + "description": "Required. VM memory in gb.", + "format": "double", + "type": "number" + }, + "ramType": { + "description": "Required. Type of ram.", + "enum": [ + "UNKNOWN_RAM_TYPE", + "A2", + "A3", + "C2", + "C2D", + "CUSTOM", + "E2", + "G2", + "C3", + "M2", + "M1", + "N1", + "N2_CUSTOM", + "N2", + "N2D" + ], + "enumDescriptions": [ + "", + "", + "", + "COMPUTE_OPTIMIZED", + "", + "", + "", + "", + "", + "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", + "MEMORY_OPTIMIZED", + "", + "", + "", + "" + ], + "type": "string" + }, + "trackingLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. \"key\": \"goog-k8s-cluster-name\",\"value\": \"us-east1-b4rk\"", + "type": "object" + } + }, + "type": "object" + }, "Sentence": { "description": "Represents a sentence in the input document.", "id": "Sentence", @@ -1322,32 +2590,3079 @@ }, "type": "object" }, - "V1Model": { - "description": "Options for the V1 model.", - "id": "V1Model", - "properties": {}, - "type": "object" - }, - "V2Model": { - "description": "Options for the V2 model.", - "id": "V2Model", + "TpuMetric": { + "id": "TpuMetric", "properties": { - "contentCategoriesVersion": { - "description": "The content categories used for classification.", + "tpuSec": { + "description": "Required. Seconds of TPU usage, e.g. 3600.", + "format": "int64", + "type": "string" + }, + "tpuType": { + "description": "Required. Type of TPU, e.g. TPU_V2, TPU_V3_POD.", "enum": [ - "CONTENT_CATEGORIES_VERSION_UNSPECIFIED", - "V1", - "V2" + "UNKNOWN_TPU_TYPE", + "TPU_V2_POD", + "TPU_V2", + "TPU_V3_POD", + "TPU_V3", + "TPU_V5_LITEPOD" ], "enumDescriptions": [ - "If `ContentCategoriesVersion` is not specified, this option will default to `V1`.", - "Legacy content categories of our initial launch in 2017.", - "Updated content categories in 2022." + "", + "", + "", + "", + "", + "" ], "type": "string" } }, "type": "object" + }, + "XPSArrayStats": { + "description": "The data statistics of a series of ARRAY values.", + "id": "XPSArrayStats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "memberStats": { + "$ref": "XPSDataStats", + "description": "Stats of all the values of all arrays, as if they were a single long series of data. The type depends on the element type of the array." + } + }, + "type": "object" + }, + "XPSBatchPredictResponse": { + "id": "XPSBatchPredictResponse", + "properties": { + "exampleSet": { + "$ref": "XPSExampleSet", + "description": "Examples for batch prediction result. Under full API implementation, results are stored in shared RecordIO of AnnotatedExample protobufs, the annotations field of which is populated by XPS backend." + } + }, + "type": "object" + }, + "XPSBoundingBoxMetricsEntry": { + "description": "Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.", + "id": "XPSBoundingBoxMetricsEntry", + "properties": { + "confidenceMetricsEntries": { + "description": "Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99.", + "items": { + "$ref": "XPSBoundingBoxMetricsEntryConfidenceMetricsEntry" + }, + "type": "array" + }, + "iouThreshold": { + "description": "The intersection-over-union threshold value used to compute this metrics entry.", + "format": "float", + "type": "number" + }, + "meanAveragePrecision": { + "description": "The mean average precision.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSBoundingBoxMetricsEntryConfidenceMetricsEntry": { + "description": "Metrics for a single confidence threshold.", + "id": "XPSBoundingBoxMetricsEntryConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "The confidence threshold value used to compute the metrics.", + "format": "float", + "type": "number" + }, + "f1Score": { + "description": "The harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "precision": { + "description": "Precision for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Recall for the given confidence threshold.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSCategoryStats": { + "description": "The data statistics of a series of CATEGORY values.", + "id": "XPSCategoryStats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "topCategoryStats": { + "description": "The statistics of the top 20 CATEGORY values, ordered by CategoryStats.SingleCategoryStats.count.", + "items": { + "$ref": "XPSCategoryStatsSingleCategoryStats" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSCategoryStatsSingleCategoryStats": { + "description": "The statistics of a single CATEGORY value.", + "id": "XPSCategoryStatsSingleCategoryStats", + "properties": { + "count": { + "description": "The number of occurrences of this value in the series.", + "format": "int64", + "type": "string" + }, + "value": { + "description": "The CATEGORY value.", + "type": "string" + } + }, + "type": "object" + }, + "XPSClassificationEvaluationMetrics": { + "description": "Model evaluation metrics for classification problems. It can be used for image and video classification. Next tag: 9.", + "id": "XPSClassificationEvaluationMetrics", + "properties": { + "auPrc": { + "description": "The Area under precision recall curve metric.", + "format": "float", + "type": "number" + }, + "auRoc": { + "description": "The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.", + "format": "float", + "type": "number" + }, + "baseAuPrc": { + "description": "The Area under precision recall curve metric based on priors.", + "format": "float", + "type": "number" + }, + "confidenceMetricsEntries": { + "description": "Metrics that have confidence thresholds. Precision-recall curve can be derived from it.", + "items": { + "$ref": "XPSConfidenceMetricsEntry" + }, + "type": "array" + }, + "confusionMatrix": { + "$ref": "XPSConfusionMatrix", + "description": "Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of annotation specs is no more than 10. Only set for model level evaluation, not for evaluation per label." + }, + "evaluatedExamplesCount": { + "description": "The number of examples used for model evaluation.", + "format": "int32", + "type": "integer" + }, + "logLoss": { + "description": "The Log Loss metric.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSColorMap": { + "description": "Map from color to display name. Will only be used by Image Segmentation for uCAIP.", + "id": "XPSColorMap", + "properties": { + "annotationSpecIdToken": { + "description": "Should be used during training.", + "type": "string" + }, + "color": { + "$ref": "Color", + "deprecated": true, + "description": "This type is deprecated in favor of the IntColor below. This is because google.type.Color represent color has a float which semantically does not reflect discrete classes/categories concept. Moreover, to handle it well we need to have some tolerance when converting to a discretized color. As such, the recommendation is to have API surface still use google.type.Color while internally IntColor is used." + }, + "displayName": { + "description": "Should be used during preprocessing.", + "type": "string" + }, + "intColor": { + "$ref": "XPSColorMapIntColor" + } + }, + "type": "object" + }, + "XPSColorMapIntColor": { + "description": "RGB color and each channel is represented by an integer.", + "id": "XPSColorMapIntColor", + "properties": { + "blue": { + "description": "The value should be in range of [0, 255].", + "format": "int32", + "type": "integer" + }, + "green": { + "description": "The value should be in range of [0, 255].", + "format": "int32", + "type": "integer" + }, + "red": { + "description": "The value should be in range of [0, 255].", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "XPSColumnSpec": { + "id": "XPSColumnSpec", + "properties": { + "columnId": { + "description": "The unique id of the column. When Preprocess, the Tables BE will popuate the order id of the column, which reflects the order of the column inside the table, i.e. 0 means the first column in the table, N-1 means the last column. AutoML BE will persist this order id in Spanner and set the order id here when calling RefreshTablesStats and Train. Note: it's different than the column_spec_id that is generated in AutoML BE.", + "format": "int32", + "type": "integer" + }, + "dataStats": { + "$ref": "XPSDataStats", + "description": "The data stats of the column. It's outputed in RefreshTablesStats and a required input for Train." + }, + "dataType": { + "$ref": "XPSDataType", + "description": "The data type of the column. It's outputed in Preprocess rpc and a required input for RefreshTablesStats and Train." + }, + "displayName": { + "description": "The display name of the column. It's outputed in Preprocess and a required input for RefreshTablesStats and Train.", + "type": "string" + }, + "forecastingMetadata": { + "$ref": "XPSColumnSpecForecastingMetadata" + }, + "topCorrelatedColumns": { + "description": "It's outputed in RefreshTablesStats, and a required input in Train.", + "items": { + "$ref": "XPSColumnSpecCorrelatedColumn" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSColumnSpecCorrelatedColumn": { + "description": "Identifies a table's column, and its correlation with the column this ColumnSpec describes.", + "id": "XPSColumnSpecCorrelatedColumn", + "properties": { + "columnId": { + "format": "int32", + "type": "integer" + }, + "correlationStats": { + "$ref": "XPSCorrelationStats" + } + }, + "type": "object" + }, + "XPSColumnSpecForecastingMetadata": { + "description": "=========================================================================== # The fields below are used exclusively for Forecasting.", + "id": "XPSColumnSpecForecastingMetadata", + "properties": { + "columnType": { + "description": "The type of the column for FORECASTING model training purposes.", + "enum": [ + "COLUMN_TYPE_UNSPECIFIED", + "KEY", + "KEY_METADATA", + "TIME_SERIES_AVAILABLE_PAST_ONLY", + "TIME_SERIES_AVAILABLE_PAST_AND_FUTURE" + ], + "enumDescriptions": [ + "An un-set value of this enum.", + "Key columns are used to identify timeseries.", + "This column contains information describing static properties of the entities identified by the key column(s) (e.g. city's ZIP code).", + "This column contains information for the given entity, at any time poinrt, they are only available in the time series before.", + "This column contains information for the given entity is known both for the past and the sufficiently far future." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSCommonStats": { + "description": "Common statistics for a column with a specified data type.", + "id": "XPSCommonStats", + "properties": { + "distinctValueCount": { + "format": "int64", + "type": "string" + }, + "nullValueCount": { + "format": "int64", + "type": "string" + }, + "validValueCount": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSConfidenceMetricsEntry": { + "description": "ConfidenceMetricsEntry includes generic precision, recall, f1 score etc. Next tag: 16.", + "id": "XPSConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "Metrics are computed with an assumption that the model never return predictions with score lower than this value.", + "format": "float", + "type": "number" + }, + "f1Score": { + "description": "The harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "f1ScoreAt1": { + "description": "The harmonic mean of recall_at1 and precision_at1.", + "format": "float", + "type": "number" + }, + "falseNegativeCount": { + "description": "The number of ground truth labels that are not matched by a model created label.", + "format": "int64", + "type": "string" + }, + "falsePositiveCount": { + "description": "The number of model created labels that do not match a ground truth label.", + "format": "int64", + "type": "string" + }, + "falsePositiveRate": { + "description": "False Positive Rate for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "falsePositiveRateAt1": { + "description": "The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example.", + "format": "float", + "type": "number" + }, + "positionThreshold": { + "description": "Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold.", + "format": "int32", + "type": "integer" + }, + "precision": { + "description": "Precision for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "precisionAt1": { + "description": "The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Recall (true positive rate) for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "recallAt1": { + "description": "The recall (true positive rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example.", + "format": "float", + "type": "number" + }, + "trueNegativeCount": { + "description": "The number of labels that were not created by the model, but if they would, they would not match a ground truth label.", + "format": "int64", + "type": "string" + }, + "truePositiveCount": { + "description": "The number of model created labels that match a ground truth label.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSConfusionMatrix": { + "description": "Confusion matrix of the model running the classification.", + "id": "XPSConfusionMatrix", + "properties": { + "annotationSpecIdToken": { + "description": "For the following three repeated fields, only one is intended to be set. annotation_spec_id_token is preferable to be set. ID tokens of the annotation specs used in the confusion matrix.", + "items": { + "type": "string" + }, + "type": "array" + }, + "category": { + "description": "Category (mainly for segmentation). Set only for image segmentation models. Note: uCAIP Image Segmentation should use annotation_spec_id_token.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "row": { + "description": "Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id_token`. `row[i].value[j]` is the number of examples that have ground truth of the `annotation_spec_id_token[i]` and are predicted as `annotation_spec_id_token[j]` by the model being evaluated.", + "items": { + "$ref": "XPSConfusionMatrixRow" + }, + "type": "array" + }, + "sentimentLabel": { + "description": "Sentiment labels used in the confusion matrix. Set only for text sentiment models. For AutoML Text Revamp, use `annotation_spec_id_token` instead and leave this field empty.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSConfusionMatrixRow": { + "description": "A row in the confusion matrix.", + "id": "XPSConfusionMatrixRow", + "properties": { + "count": { + "description": "Same as above except intended to represent other counts (for e.g. for segmentation this is pixel count). NOTE(params): Only example_count or count is set (oneoff does not support repeated fields unless they are embedded inside another message).", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "exampleCount": { + "description": "Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the annotation_spec_id_token field.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSCoreMlFormat": { + "description": "A model format used for iOS mobile devices.", + "id": "XPSCoreMlFormat", + "properties": {}, + "type": "object" + }, + "XPSCorrelationStats": { + "description": "A correlation statistics between two series of DataType values. The series may have differing DataType-s, but within a single series the DataType must be the same.", + "id": "XPSCorrelationStats", + "properties": { + "cramersV": { + "description": "The correlation value using the Cramer's V measure.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSDataErrors": { + "description": "Different types of errors and the stats associatesd with each error.", + "id": "XPSDataErrors", + "properties": { + "count": { + "description": "Number of records having errors associated with the enum.", + "format": "int32", + "type": "integer" + }, + "errorType": { + "description": "Type of the error.", + "enum": [ + "ERROR_TYPE_UNSPECIFIED", + "UNSUPPORTED_AUDIO_FORMAT", + "FILE_EXTENSION_MISMATCH_WITH_AUDIO_FORMAT", + "FILE_TOO_LARGE", + "MISSING_TRANSCRIPTION" + ], + "enumDescriptions": [ + "Not specified.", + "Audio format not in the formats by cloud-speech AutoML. Currently only wav and flac file formats are supported.", + "File format differnt from what is specified in the file name extension.", + "File too large. Maximum allowed size is 50 MB.", + "Transcript is missing." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSDataStats": { + "description": "The data statistics of a series of values that share the same DataType.", + "id": "XPSDataStats", + "properties": { + "arrayStats": { + "$ref": "XPSArrayStats", + "description": "The statistics for ARRAY DataType." + }, + "categoryStats": { + "$ref": "XPSCategoryStats", + "description": "The statistics for CATEGORY DataType." + }, + "distinctValueCount": { + "description": "The number of distinct values.", + "format": "int64", + "type": "string" + }, + "float64Stats": { + "$ref": "XPSFloat64Stats", + "description": "The statistics for FLOAT64 DataType." + }, + "nullValueCount": { + "description": "The number of values that are null.", + "format": "int64", + "type": "string" + }, + "stringStats": { + "$ref": "XPSStringStats", + "description": "The statistics for STRING DataType." + }, + "structStats": { + "$ref": "XPSStructStats", + "description": "The statistics for STRUCT DataType." + }, + "timestampStats": { + "$ref": "XPSTimestampStats", + "description": "The statistics for TIMESTAMP DataType." + }, + "validValueCount": { + "description": "The number of values that are valid.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSDataType": { + "description": "Indicated the type of data that can be stored in a structured data entity (e.g. a table).", + "id": "XPSDataType", + "properties": { + "compatibleDataTypes": { + "description": "The highly compatible data types to this data type.", + "items": { + "$ref": "XPSDataType" + }, + "type": "array" + }, + "listElementType": { + "$ref": "XPSDataType", + "description": "If type_code == ARRAY, then `list_element_type` is the type of the elements." + }, + "nullable": { + "description": "If true, this DataType can also be `null`.", + "type": "boolean" + }, + "structType": { + "$ref": "XPSStructType", + "description": "If type_code == STRUCT, then `struct_type` provides type information for the struct's fields." + }, + "timeFormat": { + "description": "If type_code == TIMESTAMP then `time_format` provides the format in which that time field is expressed. The time_format must be written in `strftime` syntax. If time_format is not set, then the default format as described on the field is used.", + "type": "string" + }, + "typeCode": { + "description": "Required. The TypeCode for this type.", + "enum": [ + "TYPE_CODE_UNSPECIFIED", + "FLOAT64", + "TIMESTAMP", + "STRING", + "ARRAY", + "STRUCT", + "CATEGORY" + ], + "enumDescriptions": [ + "Not specified. Should not be used.", + "Encoded as `number`, or the strings `\"NaN\"`, `\"Infinity\"`, or `\"-Infinity\"`.", + "Must be between 0AD and 9999AD. Encoded as `string` according to time_format, or, if that format is not set, then in RFC 3339 `date-time` format, where `time-offset` = `\"Z\"` (e.g. 1985-04-12T23:20:50.52Z).", + "Encoded as `string`.", + "Encoded as `list`, where the list elements are represented according to list_element_type.", + "Encoded as `struct`, where field values are represented according to struct_type.", + "Values of this type are not further understood by AutoML, e.g. AutoML is unable to tell the order of values (as it could with FLOAT64), or is unable to say if one value contains another (as it could with STRING). Encoded as `string` (bytes should be base64-encoded, as described in RFC 4648, section 4)." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSDockerFormat": { + "description": "A model format used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system.", + "id": "XPSDockerFormat", + "properties": { + "cpuArchitecture": { + "description": "Optional. Additional cpu information describing the requirements for the to be exported model files.", + "enum": [ + "CPU_ARCHITECTURE_UNSPECIFIED", + "CPU_ARCHITECTURE_X86_64" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "gpuArchitecture": { + "description": "Optional. Additional gpu information describing the requirements for the to be exported model files.", + "enum": [ + "GPU_ARCHITECTURE_UNSPECIFIED", + "GPU_ARCHITECTURE_NVIDIA" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSEdgeTpuTfLiteFormat": { + "description": "A model format used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.", + "id": "XPSEdgeTpuTfLiteFormat", + "properties": {}, + "type": "object" + }, + "XPSEvaluationMetrics": { + "description": "Contains xPS-specific model evaluation metrics either for a single annotation spec (label), or for the model overall. Next tag: 18.", + "id": "XPSEvaluationMetrics", + "properties": { + "annotationSpecIdToken": { + "description": "The annotation_spec for which this evaluation metrics instance had been created. Empty iff this is an overall model evaluation (like Tables evaluation metrics), i.e. aggregated across all labels. The value comes from the input annotations in AnnotatedExample. For MVP product or for text sentiment models where annotation_spec_id_token is not available, set label instead.", + "type": "string" + }, + "category": { + "description": "The integer category label for which this evaluation metric instance had been created. Valid categories are 0 or higher. Overall model evaluation should set this to negative values (rather than implicit zero). Only used for Image Segmentation (prefer to set annotation_spec_id_token instead). Note: uCAIP Image Segmentation should use annotation_spec_id_token.", + "format": "int32", + "type": "integer" + }, + "evaluatedExampleCount": { + "description": "The number of examples used to create this evaluation metrics instance.", + "format": "int32", + "type": "integer" + }, + "imageClassificationEvalMetrics": { + "$ref": "XPSClassificationEvaluationMetrics" + }, + "imageObjectDetectionEvalMetrics": { + "$ref": "XPSImageObjectDetectionEvaluationMetrics" + }, + "imageSegmentationEvalMetrics": { + "$ref": "XPSImageSegmentationEvaluationMetrics" + }, + "label": { + "description": "The label for which this evaluation metrics instance had been created. Empty iff this is an overall model evaluation (like Tables evaluation metrics), i.e. aggregated across all labels. The label maps to AnnotationSpec.display_name in Public API protos. Only used by MVP implementation and text sentiment FULL implementation.", + "type": "string" + }, + "regressionEvalMetrics": { + "$ref": "XPSRegressionEvaluationMetrics" + }, + "tablesClassificationEvalMetrics": { + "$ref": "XPSClassificationEvaluationMetrics" + }, + "tablesEvalMetrics": { + "$ref": "XPSTablesEvaluationMetrics" + }, + "textClassificationEvalMetrics": { + "$ref": "XPSClassificationEvaluationMetrics" + }, + "textExtractionEvalMetrics": { + "$ref": "XPSTextExtractionEvaluationMetrics" + }, + "textSentimentEvalMetrics": { + "$ref": "XPSTextSentimentEvaluationMetrics" + }, + "translationEvalMetrics": { + "$ref": "XPSTranslationEvaluationMetrics" + }, + "videoActionRecognitionEvalMetrics": { + "$ref": "XPSVideoActionRecognitionEvaluationMetrics" + }, + "videoClassificationEvalMetrics": { + "$ref": "XPSClassificationEvaluationMetrics" + }, + "videoObjectTrackingEvalMetrics": { + "$ref": "XPSVideoObjectTrackingEvaluationMetrics" + } + }, + "type": "object" + }, + "XPSEvaluationMetricsSet": { + "description": "Specifies location of model evaluation metrics.", + "id": "XPSEvaluationMetricsSet", + "properties": { + "evaluationMetrics": { + "description": "Inline EvaluationMetrics - should be relatively small. For passing large quantities of exhaustive metrics, use file_spec.", + "items": { + "$ref": "XPSEvaluationMetrics" + }, + "type": "array" + }, + "fileSpec": { + "$ref": "XPSFileSpec", + "description": "File spec containing evaluation metrics of a model, must point to RecordIO file(s) of intelligence.cloud.automl.xps.EvaluationMetrics messages." + }, + "numEvaluationMetrics": { + "description": "Number of the evaluation metrics (usually one per label plus overall).", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSExampleSet": { + "description": "Set of examples or input sources.", + "id": "XPSExampleSet", + "properties": { + "fileSpec": { + "$ref": "XPSFileSpec", + "description": "File spec of the examples or input sources." + }, + "fingerprint": { + "description": "Fingerprint of the example set.", + "format": "int64", + "type": "string" + }, + "numExamples": { + "description": "Number of examples.", + "format": "int64", + "type": "string" + }, + "numInputSources": { + "description": "Number of input sources.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSExportModelOutputConfig": { + "id": "XPSExportModelOutputConfig", + "properties": { + "coreMlFormat": { + "$ref": "XPSCoreMlFormat" + }, + "dockerFormat": { + "$ref": "XPSDockerFormat" + }, + "edgeTpuTfLiteFormat": { + "$ref": "XPSEdgeTpuTfLiteFormat" + }, + "exportFirebaseAuxiliaryInfo": { + "description": "For any model and format: If true, will additionally export FirebaseExportedModelInfo in a firebase.txt file.", + "type": "boolean" + }, + "outputGcrUri": { + "description": "The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", + "type": "string" + }, + "outputGcsUri": { + "description": "The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory", + "type": "string" + }, + "tfJsFormat": { + "$ref": "XPSTfJsFormat" + }, + "tfLiteFormat": { + "$ref": "XPSTfLiteFormat" + }, + "tfSavedModelFormat": { + "$ref": "XPSTfSavedModelFormat" + } + }, + "type": "object" + }, + "XPSFileSpec": { + "description": "Spec of input and output files, on external file systems (CNS, GCS, etc).", + "id": "XPSFileSpec", + "properties": { + "directoryPath": { + "deprecated": true, + "description": "Deprecated. Use file_spec.", + "type": "string" + }, + "fileFormat": { + "enum": [ + "FILE_FORMAT_UNKNOWN", + "FILE_FORMAT_SSTABLE", + "FILE_FORMAT_TRANSLATION_RKV", + "FILE_FORMAT_RECORDIO", + "FILE_FORMAT_RAW_CSV", + "FILE_FORMAT_RAW_CAPACITOR" + ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false + ], + "enumDescriptions": [ + "", + "", + "Internal format for parallel text data used by Google Translate. go/rkvtools", + "", + "Only the lexicographically first file described by the file_spec contains the header line.", + "" + ], + "type": "string" + }, + "fileSpec": { + "description": "Single file path, or file pattern of format \"/path/to/file@shard_count\". E.g. /cns/cell-d/somewhere/file@2 is expanded to two files: /cns/cell-d/somewhere/file-00000-of-00002 and /cns/cell-d/somewhere/file-00001-of-00002.", + "type": "string" + }, + "singleFilePath": { + "deprecated": true, + "description": "Deprecated. Use file_spec.", + "type": "string" + } + }, + "type": "object" + }, + "XPSFloat64Stats": { + "description": "The data statistics of a series of FLOAT64 values.", + "id": "XPSFloat64Stats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "histogramBuckets": { + "description": "Histogram buckets of the data series. Sorted by the min value of the bucket, ascendingly, and the number of the buckets is dynamically generated. The buckets are non-overlapping and completely cover whole FLOAT64 range with min of first bucket being `\"-Infinity\"`, and max of the last one being `\"Infinity\"`.", + "items": { + "$ref": "XPSFloat64StatsHistogramBucket" + }, + "type": "array" + }, + "mean": { + "description": "The mean of the series.", + "format": "double", + "type": "number" + }, + "quantiles": { + "description": "Ordered from 0 to k k-quantile values of the data series of n values. The value at index i is, approximately, the i*n/k-th smallest value in the series; for i = 0 and i = k these are, respectively, the min and max values.", + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "standardDeviation": { + "description": "The standard deviation of the series.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSFloat64StatsHistogramBucket": { + "description": "A bucket of a histogram.", + "id": "XPSFloat64StatsHistogramBucket", + "properties": { + "count": { + "description": "The number of data values that are in the bucket, i.e. are between min and max values.", + "format": "int64", + "type": "string" + }, + "max": { + "description": "The maximum value of the bucket, exclusive unless max = `\"Infinity\"`, in which case it's inclusive.", + "format": "double", + "type": "number" + }, + "min": { + "description": "The minimum value of the bucket, inclusive.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSImageClassificationTrainResponse": { + "id": "XPSImageClassificationTrainResponse", + "properties": { + "classCount": { + "description": "Total number of classes.", + "format": "int64", + "type": "string" + }, + "exportModelSpec": { + "$ref": "XPSImageExportModelSpec", + "description": "Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Populated for AutoMl requests." + }, + "modelArtifactSpec": { + "$ref": "XPSImageModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope." + }, + "modelServingSpec": { + "$ref": "XPSImageModelServingSpec" + }, + "stopReason": { + "description": "Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED', 'MODEL_EARLY_STOPPED'.", + "enum": [ + "TRAIN_STOP_REASON_UNSPECIFIED", + "TRAIN_STOP_REASON_BUDGET_REACHED", + "TRAIN_STOP_REASON_MODEL_CONVERGED", + "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" + ], + "enumDescriptions": [ + "", + "", + "Model fully converged, can not be resumbed training.", + "Model early converged, can be further trained till full convergency." + ], + "type": "string" + }, + "trainCostInNodeTime": { + "description": "The actual cost to create this model. - For edge type model, the cost is expressed in node hour. - For cloud type model,the cost is expressed in compute hour. - Populated for models created before GA. To be deprecated after GA.", + "format": "google-duration", + "type": "string" + }, + "trainCostNodeSeconds": { + "description": "The actual training cost, expressed in node seconds. Populated for models trained in node time.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSImageExportModelSpec": { + "description": "Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Upon receiving ExportModel request from user, AutoMl backend can serve the pre-generated models to user if exists (by copying the files from internal path to user provided location), otherwise, AutoMl backend will call xPS ExportModel API to generate the model on the fly with the requesting format.", + "id": "XPSImageExportModelSpec", + "properties": { + "exportModelOutputConfig": { + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "items": { + "$ref": "XPSExportModelOutputConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSImageModelArtifactSpec": { + "description": "Stores the locations and related metadata of the model artifacts. Populated for uCAIP requests only.", + "id": "XPSImageModelArtifactSpec", + "properties": { + "checkpointArtifact": { + "$ref": "XPSModelArtifactItem", + "description": "The Tensorflow checkpoint files. e.g. Used for resumable training." + }, + "exportArtifact": { + "description": "The model binary files in different formats for model export.", + "items": { + "$ref": "XPSModelArtifactItem" + }, + "type": "array" + }, + "labelGcsUri": { + "description": "GCS uri of decoded labels file for model export 'dict.txt'.", + "type": "string" + }, + "servingArtifact": { + "$ref": "XPSModelArtifactItem", + "description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API." + }, + "tfJsBinaryGcsPrefix": { + "description": "GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated.", + "type": "string" + }, + "tfLiteMetadataGcsUri": { + "description": "GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.", + "type": "string" + } + }, + "type": "object" + }, + "XPSImageModelServingSpec": { + "description": "Serving specification for image models.", + "id": "XPSImageModelServingSpec", + "properties": { + "modelThroughputEstimation": { + "description": "Populate under uCAIP request scope.", + "items": { + "$ref": "XPSImageModelServingSpecModelThroughputEstimation" + }, + "type": "array" + }, + "nodeQps": { + "description": "An estimated value of how much traffic a node can serve. Populated for AutoMl request only.", + "format": "double", + "type": "number" + }, + "tfRuntimeVersion": { + "description": "## The fields below are only populated under uCAIP request scope. https://cloud.google.com/ml-engine/docs/runtime-version-list", + "type": "string" + } + }, + "type": "object" + }, + "XPSImageModelServingSpecModelThroughputEstimation": { + "id": "XPSImageModelServingSpecModelThroughputEstimation", + "properties": { + "computeEngineAcceleratorType": { + "enum": [ + "UNSPECIFIED", + "NVIDIA_TESLA_K80", + "NVIDIA_TESLA_P100", + "NVIDIA_TESLA_V100", + "NVIDIA_TESLA_P4", + "NVIDIA_TESLA_T4", + "NVIDIA_TESLA_A100", + "NVIDIA_A100_80GB", + "NVIDIA_L4", + "NVIDIA_H100_80GB", + "TPU_V2", + "TPU_V3", + "TPU_V4_POD", + "TPU_V5_LITEPOD" + ], + "enumDescriptions": [ + "", + "Nvidia Tesla K80 GPU.", + "Nvidia Tesla P100 GPU.", + "Nvidia Tesla V100 GPU.", + "Nvidia Tesla P4 GPU.", + "Nvidia Tesla T4 GPU.", + "Nvidia Tesla A100 GPU.", + "Nvidia A100 80GB GPU.", + "Nvidia L4 GPU.", + "Nvidia H100 80Gb GPU.", + "TPU v2 (JellyFish).", + "TPU v3 (DragonFish).", + "TPU_v4 (PufferFish).", + "TPU v5 Lite Pods." + ], + "type": "string" + }, + "latencyInMilliseconds": { + "description": "Estimated latency.", + "format": "double", + "type": "number" + }, + "nodeQps": { + "description": "The approximate qps a deployed node can serve.", + "format": "double", + "type": "number" + }, + "servomaticPartitionType": { + "enum": [ + "PARTITION_TYPE_UNSPECIFIED", + "PARTITION_ZERO", + "PARTITION_REDUCED_HOMING", + "PARTITION_JELLYFISH", + "PARTITION_CPU", + "PARTITION_CUSTOM_STORAGE_CPU" + ], + "enumDescriptions": [ + "", + "The default partition.", + "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", + "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "The partition used by regionalized servomatic cloud regions.", + "The partition used for loading models from custom storage." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSImageObjectDetectionEvaluationMetrics": { + "description": "Model evaluation metrics for image object detection problems. Evaluates prediction quality of labeled bounding boxes.", + "id": "XPSImageObjectDetectionEvaluationMetrics", + "properties": { + "boundingBoxMeanAveragePrecision": { + "description": "The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries.", + "format": "float", + "type": "number" + }, + "boundingBoxMetricsEntries": { + "description": "The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 pair.", + "items": { + "$ref": "XPSBoundingBoxMetricsEntry" + }, + "type": "array" + }, + "evaluatedBoundingBoxCount": { + "description": "The total number of bounding boxes (i.e. summed over all images) the ground truth used to create this evaluation had.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "XPSImageObjectDetectionModelSpec": { + "id": "XPSImageObjectDetectionModelSpec", + "properties": { + "classCount": { + "description": "Total number of classes.", + "format": "int64", + "type": "string" + }, + "exportModelSpec": { + "$ref": "XPSImageExportModelSpec" + }, + "maxBoundingBoxCount": { + "description": "Max number of bounding box.", + "format": "int64", + "type": "string" + }, + "modelArtifactSpec": { + "$ref": "XPSImageModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope." + }, + "modelServingSpec": { + "$ref": "XPSImageModelServingSpec" + }, + "stopReason": { + "description": "Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'.", + "enum": [ + "TRAIN_STOP_REASON_UNSPECIFIED", + "TRAIN_STOP_REASON_BUDGET_REACHED", + "TRAIN_STOP_REASON_MODEL_CONVERGED", + "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" + ], + "enumDescriptions": [ + "", + "", + "Model fully converged, can not be resumbed training.", + "Model early converged, can be further trained till full convergency." + ], + "type": "string" + }, + "trainCostNodeSeconds": { + "description": "The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSImageSegmentationEvaluationMetrics": { + "description": "Model evaluation metrics for image segmentation problems. Next tag: 4.", + "id": "XPSImageSegmentationEvaluationMetrics", + "properties": { + "confidenceMetricsEntries": { + "description": "Metrics that have confidence thresholds. Precision-recall curve can be derived from it.", + "items": { + "$ref": "XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry": { + "description": "Metrics for a single confidence threshold.", + "id": "XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "The confidence threshold value used to compute the metrics.", + "format": "float", + "type": "number" + }, + "confusionMatrix": { + "$ref": "XPSConfusionMatrix", + "description": "Confusion matrix of the per confidence_threshold evaluation. Pixel counts are set here. Only set for model level evaluation, not for evaluation per label." + }, + "diceScoreCoefficient": { + "description": "DSC or the F1 score: The harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "iouScore": { + "description": "IOU score.", + "format": "float", + "type": "number" + }, + "precision": { + "description": "Precision for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Recall for the given confidence threshold.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSImageSegmentationTrainResponse": { + "id": "XPSImageSegmentationTrainResponse", + "properties": { + "colorMaps": { + "description": "Color map of the model.", + "items": { + "$ref": "XPSColorMap" + }, + "type": "array" + }, + "exportModelSpec": { + "$ref": "XPSImageExportModelSpec", + "description": "NOTE: These fields are not used/needed in EAP but will be set later." + }, + "modelArtifactSpec": { + "$ref": "XPSImageModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope. Model artifact spec stores and model gcs pathes and related metadata" + }, + "modelServingSpec": { + "$ref": "XPSImageModelServingSpec" + }, + "stopReason": { + "description": "Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'.", + "enum": [ + "TRAIN_STOP_REASON_UNSPECIFIED", + "TRAIN_STOP_REASON_BUDGET_REACHED", + "TRAIN_STOP_REASON_MODEL_CONVERGED", + "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" + ], + "enumDescriptions": [ + "", + "", + "Model fully converged, can not be resumbed training.", + "Model early converged, can be further trained till full convergency." + ], + "type": "string" + }, + "trainCostNodeSeconds": { + "description": "The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSIntegratedGradientsAttribution": { + "deprecated": true, + "description": "An attribution method that computes the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365", + "id": "XPSIntegratedGradientsAttribution", + "properties": { + "stepCount": { + "description": "The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is within the desired error range. Valid range of its value is [1, 100], inclusively.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "XPSMetricEntry": { + "id": "XPSMetricEntry", + "properties": { + "argentumMetricId": { + "description": "For billing metrics that are using legacy sku's, set the legacy billing metric id here. This will be sent to Chemist as the \"cloudbilling.googleapis.com/argentum_metric_id\" label. Otherwise leave empty.", + "type": "string" + }, + "doubleValue": { + "description": "A double value.", + "format": "double", + "type": "number" + }, + "int64Value": { + "description": "A signed 64-bit integer value.", + "format": "int64", + "type": "string" + }, + "metricName": { + "description": "The metric name defined in the service configuration.", + "type": "string" + }, + "systemLabels": { + "description": "Billing system labels for this (metric, value) pair.", + "items": { + "$ref": "XPSMetricEntryLabel" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSMetricEntryLabel": { + "id": "XPSMetricEntryLabel", + "properties": { + "labelName": { + "description": "The name of the label.", + "type": "string" + }, + "labelValue": { + "description": "The value of the label.", + "type": "string" + } + }, + "type": "object" + }, + "XPSModelArtifactItem": { + "description": "A single model artifact item.", + "id": "XPSModelArtifactItem", + "properties": { + "artifactFormat": { + "description": "The model artifact format.", + "enum": [ + "ARTIFACT_FORMAT_UNSPECIFIED", + "TF_CHECKPOINT", + "TF_SAVED_MODEL", + "TF_LITE", + "EDGE_TPU_TF_LITE", + "TF_JS", + "CORE_ML" + ], + "enumDescriptions": [ + "Should not be used.", + "The Tensorflow checkpoints. See https://www.tensorflow.org/guide/checkpoint.", + "The Tensorflow SavedModel binary.", + "Model artifact in generic TensorFlow Lite (.tflite) format. See https://www.tensorflow.org/lite.", + "Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.", + "A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript.", + "Used for iOS mobile devices in (.mlmodel) format. See https://developer.apple.com/documentation/coreml" + ], + "type": "string" + }, + "gcsUri": { + "description": "The Google Cloud Storage (GCS) uri that stores the model binary files.", + "type": "string" + } + }, + "type": "object" + }, + "XPSPreprocessResponse": { + "description": "Next ID: 8", + "id": "XPSPreprocessResponse", + "properties": { + "outputExampleSet": { + "$ref": "XPSExampleSet", + "description": "Preprocessed examples, that are to be imported into AutoML storage. This should point to RecordIO file(s) of PreprocessedExample messages. The PreprocessedExample.mvp_training_data-s returned here are later verbatim passed to Train() call in TrainExample.mvp_training_data." + }, + "speechPreprocessResp": { + "$ref": "XPSSpeechPreprocessResponse" + }, + "tablesPreprocessResponse": { + "$ref": "XPSTablesPreprocessResponse" + }, + "translationPreprocessResp": { + "$ref": "XPSTranslationPreprocessResponse" + } + }, + "type": "object" + }, + "XPSRegressionEvaluationMetrics": { + "description": "Model evaluation metrics for regression problems. It can be used for Tables.", + "id": "XPSRegressionEvaluationMetrics", + "properties": { + "meanAbsoluteError": { + "description": "Mean Absolute Error (MAE).", + "format": "float", + "type": "number" + }, + "meanAbsolutePercentageError": { + "description": "Mean absolute percentage error. Only set if all ground truth values are positive.", + "format": "float", + "type": "number" + }, + "rSquared": { + "description": "R squared.", + "format": "float", + "type": "number" + }, + "regressionMetricsEntries": { + "description": "A list of actual versus predicted points for the model being evaluated.", + "items": { + "$ref": "XPSRegressionMetricsEntry" + }, + "type": "array" + }, + "rootMeanSquaredError": { + "description": "Root Mean Squared Error (RMSE).", + "format": "float", + "type": "number" + }, + "rootMeanSquaredLogError": { + "description": "Root mean squared log error.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSRegressionMetricsEntry": { + "description": "A pair of actual \u0026 observed values for the model being evaluated.", + "id": "XPSRegressionMetricsEntry", + "properties": { + "predictedValue": { + "description": "The observed value for a row in the dataset.", + "format": "float", + "type": "number" + }, + "trueValue": { + "description": "The actual target value for a row in the dataset.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSReportingMetrics": { + "id": "XPSReportingMetrics", + "properties": { + "effectiveTrainingDuration": { + "deprecated": true, + "description": "The effective time training used. If set, this is used for quota management and billing. Deprecated. AutoML BE doesn't use this. Don't set.", + "format": "google-duration", + "type": "string" + }, + "metricEntries": { + "description": "One entry per metric name. The values must be aggregated per metric name.", + "items": { + "$ref": "XPSMetricEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSResponseExplanationMetadata": { + "deprecated": true, + "id": "XPSResponseExplanationMetadata", + "properties": { + "inputs": { + "additionalProperties": { + "$ref": "XPSResponseExplanationMetadataInputMetadata" + }, + "description": "Metadata of the input.", + "type": "object" + }, + "outputs": { + "additionalProperties": { + "$ref": "XPSResponseExplanationMetadataOutputMetadata" + }, + "description": "Metadata of the output.", + "type": "object" + } + }, + "type": "object" + }, + "XPSResponseExplanationMetadataInputMetadata": { + "description": "Metadata of the input of a feature.", + "id": "XPSResponseExplanationMetadataInputMetadata", + "properties": { + "inputTensorName": { + "description": "Name of the input tensor for this model. Only needed in train response.", + "type": "string" + }, + "modality": { + "description": "Modality of the feature. Valid values are: numeric, image. Defaults to numeric.", + "enum": [ + "MODALITY_UNSPECIFIED", + "NUMERIC", + "IMAGE", + "CATEGORICAL" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "visualizationConfig": { + "$ref": "XPSVisualization", + "description": "Visualization configurations for image explanation." + } + }, + "type": "object" + }, + "XPSResponseExplanationMetadataOutputMetadata": { + "description": "Metadata of the prediction output to be explained.", + "id": "XPSResponseExplanationMetadataOutputMetadata", + "properties": { + "outputTensorName": { + "description": "Name of the output tensor. Only needed in train response.", + "type": "string" + } + }, + "type": "object" + }, + "XPSResponseExplanationParameters": { + "deprecated": true, + "id": "XPSResponseExplanationParameters", + "properties": { + "integratedGradientsAttribution": { + "$ref": "XPSIntegratedGradientsAttribution", + "description": "An attribution method that computes Aumann-Shapley values taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365" + }, + "xraiAttribution": { + "$ref": "XPSXraiAttribution", + "description": "An attribution method that redistributes Integrated Gradients attribution to segmented regions, taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825 XRAI currently performs better on natural images, like a picture of a house or an animal. If the images are taken in artificial environments, like a lab or manufacturing line, or from diagnostic equipment, like x-rays or quality-control cameras, use Integrated Gradients instead." + } + }, + "type": "object" + }, + "XPSResponseExplanationSpec": { + "deprecated": true, + "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.", + "id": "XPSResponseExplanationSpec", + "properties": { + "explanationType": { + "description": "Explanation type. For AutoML Image Classification models, possible values are: * `image-integrated-gradients` * `image-xrai`", + "type": "string" + }, + "metadata": { + "$ref": "XPSResponseExplanationMetadata", + "description": "Metadata describing the Model's input and output for explanation." + }, + "parameters": { + "$ref": "XPSResponseExplanationParameters", + "description": "Parameters that configure explaining of the Model's predictions." + } + }, + "type": "object" + }, + "XPSRow": { + "id": "XPSRow", + "properties": { + "columnIds": { + "description": "The ids of the columns. Note: The below `values` field must match order of this field, if this field is set.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "values": { + "description": "The values of the row cells, given in the same order as the column_ids. If column_ids is not set, then in the same order as the input_feature_column_ids in TablesModelMetadata.", + "items": { + "type": "any" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSSpeechEvaluationMetrics": { + "id": "XPSSpeechEvaluationMetrics", + "properties": { + "subModelEvaluationMetrics": { + "description": "Evaluation metrics for all submodels contained in this model.", + "items": { + "$ref": "XPSSpeechEvaluationMetricsSubModelEvaluationMetric" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSSpeechEvaluationMetricsSubModelEvaluationMetric": { + "id": "XPSSpeechEvaluationMetricsSubModelEvaluationMetric", + "properties": { + "biasingModelType": { + "description": "Type of the biasing model.", + "enum": [ + "BIASING_MODEL_TYPE_UNSPECIFIED", + "COMMAND_AND_SEARCH", + "PHONE_CALL", + "VIDEO", + "DEFAULT" + ], + "enumDescriptions": [ + "", + "Build biasing model on top of COMMAND_AND_SEARCH model", + "Build biasing model on top of PHONE_CALL model", + "Build biasing model on top of VIDEO model", + "Build biasing model on top of DEFAULT model" + ], + "type": "string" + }, + "isEnhancedModel": { + "description": "If true then it means we have an enhanced version of the biasing models.", + "type": "boolean" + }, + "numDeletions": { + "format": "int32", + "type": "integer" + }, + "numInsertions": { + "format": "int32", + "type": "integer" + }, + "numSubstitutions": { + "format": "int32", + "type": "integer" + }, + "numUtterances": { + "description": "Number of utterances used in the wer computation.", + "format": "int32", + "type": "integer" + }, + "numWords": { + "description": "Number of words over which the word error rate was computed.", + "format": "int32", + "type": "integer" + }, + "sentenceAccuracy": { + "description": "Below fields are used for debugging purposes", + "format": "double", + "type": "number" + }, + "wer": { + "description": "Word error rate (standard error metric used for speech recognition).", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSSpeechModelSpec": { + "id": "XPSSpeechModelSpec", + "properties": { + "datasetId": { + "description": "Required for speech xps backend. Speech xps has to use dataset_id and model_id as the primary key in db so that speech API can query the db directly.", + "format": "int64", + "type": "string" + }, + "language": { + "type": "string" + }, + "subModelSpecs": { + "description": "Model specs for all submodels contained in this model.", + "items": { + "$ref": "XPSSpeechModelSpecSubModelSpec" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSSpeechModelSpecSubModelSpec": { + "id": "XPSSpeechModelSpecSubModelSpec", + "properties": { + "biasingModelType": { + "description": "Type of the biasing model.", + "enum": [ + "BIASING_MODEL_TYPE_UNSPECIFIED", + "COMMAND_AND_SEARCH", + "PHONE_CALL", + "VIDEO", + "DEFAULT" + ], + "enumDescriptions": [ + "", + "Build biasing model on top of COMMAND_AND_SEARCH model", + "Build biasing model on top of PHONE_CALL model", + "Build biasing model on top of VIDEO model", + "Build biasing model on top of DEFAULT model" + ], + "type": "string" + }, + "clientId": { + "description": "In S3, Recognition ClientContextId.client_id", + "type": "string" + }, + "contextId": { + "description": "In S3, Recognition ClientContextId.context_id", + "type": "string" + }, + "isEnhancedModel": { + "description": "If true then it means we have an enhanced version of the biasing models.", + "type": "boolean" + } + }, + "type": "object" + }, + "XPSSpeechPreprocessResponse": { + "id": "XPSSpeechPreprocessResponse", + "properties": { + "cnsTestDataPath": { + "description": "Location od shards of sstables (test data) of DataUtterance protos.", + "type": "string" + }, + "cnsTrainDataPath": { + "description": "Location of shards of sstables (training data) of DataUtterance protos.", + "type": "string" + }, + "prebuiltModelEvaluationMetrics": { + "$ref": "XPSSpeechEvaluationMetrics", + "description": "The metrics for prebuilt speech models. They are included here because there is no prebuilt speech models stored in the AutoML." + }, + "speechPreprocessStats": { + "$ref": "XPSSpeechPreprocessStats", + "description": "Stats associated with the data." + } + }, + "type": "object" + }, + "XPSSpeechPreprocessStats": { + "id": "XPSSpeechPreprocessStats", + "properties": { + "dataErrors": { + "description": "Different types of data errors and the counts associated with them.", + "items": { + "$ref": "XPSDataErrors" + }, + "type": "array" + }, + "numHumanLabeledExamples": { + "description": "The number of rows marked HUMAN_LABELLED", + "format": "int32", + "type": "integer" + }, + "numLogsExamples": { + "description": "The number of samples found in the previously recorded logs data.", + "format": "int32", + "type": "integer" + }, + "numMachineTranscribedExamples": { + "description": "The number of rows marked as MACHINE_TRANSCRIBED", + "format": "int32", + "type": "integer" + }, + "testExamplesCount": { + "description": "The number of examples labelled as TEST by Speech xps server.", + "format": "int32", + "type": "integer" + }, + "testSentencesCount": { + "description": "The number of sentences in the test data set.", + "format": "int32", + "type": "integer" + }, + "testWordsCount": { + "description": "The number of words in the test data set.", + "format": "int32", + "type": "integer" + }, + "trainExamplesCount": { + "description": "The number of examples labeled as TRAIN by Speech xps server.", + "format": "int32", + "type": "integer" + }, + "trainSentencesCount": { + "description": "The number of sentences in the training data set.", + "format": "int32", + "type": "integer" + }, + "trainWordsCount": { + "description": "The number of words in the training data set.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "XPSStringStats": { + "description": "The data statistics of a series of STRING values.", + "id": "XPSStringStats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "topUnigramStats": { + "description": "The statistics of the top 20 unigrams, ordered by StringStats.UnigramStats.count.", + "items": { + "$ref": "XPSStringStatsUnigramStats" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSStringStatsUnigramStats": { + "description": "The statistics of a unigram.", + "id": "XPSStringStatsUnigramStats", + "properties": { + "count": { + "description": "The number of occurrences of this unigram in the series.", + "format": "int64", + "type": "string" + }, + "value": { + "description": "The unigram.", + "type": "string" + } + }, + "type": "object" + }, + "XPSStructStats": { + "description": "The data statistics of a series of STRUCT values.", + "id": "XPSStructStats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "fieldStats": { + "additionalProperties": { + "$ref": "XPSDataStats" + }, + "description": "Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.", + "type": "object" + } + }, + "type": "object" + }, + "XPSStructType": { + "description": "`StructType` defines the DataType-s of a STRUCT type.", + "id": "XPSStructType", + "properties": { + "fields": { + "additionalProperties": { + "$ref": "XPSDataType" + }, + "description": "Unordered map of struct field names to their data types.", + "type": "object" + } + }, + "type": "object" + }, + "XPSTableSpec": { + "id": "XPSTableSpec", + "properties": { + "columnSpecs": { + "additionalProperties": { + "$ref": "XPSColumnSpec" + }, + "description": "Mapping from column id to column spec.", + "type": "object" + }, + "importedDataSizeInBytes": { + "description": "The total size of imported data of the table.", + "format": "int64", + "type": "string" + }, + "rowCount": { + "description": "The number of rows in the table.", + "format": "int64", + "type": "string" + }, + "timeColumnId": { + "description": "The id of the time column.", + "format": "int32", + "type": "integer" + }, + "validRowCount": { + "description": "The number of valid rows.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSTablesClassificationMetrics": { + "description": "Metrics for Tables classification problems.", + "id": "XPSTablesClassificationMetrics", + "properties": { + "curveMetrics": { + "description": "Metrics building a curve.", + "items": { + "$ref": "XPSTablesClassificationMetricsCurveMetrics" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSTablesClassificationMetricsCurveMetrics": { + "description": "Metrics curve data point for a single value.", + "id": "XPSTablesClassificationMetricsCurveMetrics", + "properties": { + "aucPr": { + "description": "The area under the precision-recall curve.", + "format": "double", + "type": "number" + }, + "aucRoc": { + "description": "The area under receiver operating characteristic curve.", + "format": "double", + "type": "number" + }, + "confidenceMetricsEntries": { + "description": "Metrics that have confidence thresholds. Precision-recall curve and ROC curve can be derived from them.", + "items": { + "$ref": "XPSTablesConfidenceMetricsEntry" + }, + "type": "array" + }, + "logLoss": { + "description": "The Log loss metric.", + "format": "double", + "type": "number" + }, + "positionThreshold": { + "description": "The position threshold value used to compute the metrics.", + "format": "int32", + "type": "integer" + }, + "value": { + "description": "The CATEGORY row value (for ARRAY unnested) the curve metrics are for.", + "type": "string" + } + }, + "type": "object" + }, + "XPSTablesConfidenceMetricsEntry": { + "description": "Metrics for a single confidence threshold.", + "id": "XPSTablesConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "The confidence threshold value used to compute the metrics.", + "format": "double", + "type": "number" + }, + "f1Score": { + "description": "The harmonic mean of recall and precision. (2 * precision * recall) / (precision + recall)", + "format": "double", + "type": "number" + }, + "falseNegativeCount": { + "description": "False negative count.", + "format": "int64", + "type": "string" + }, + "falsePositiveCount": { + "description": "False positive count.", + "format": "int64", + "type": "string" + }, + "falsePositiveRate": { + "description": "FPR = #false positives / (#false positives + #true negatives)", + "format": "double", + "type": "number" + }, + "precision": { + "description": "Precision = #true positives / (#true positives + #false positives).", + "format": "double", + "type": "number" + }, + "recall": { + "description": "Recall = #true positives / (#true positives + #false negatives).", + "format": "double", + "type": "number" + }, + "trueNegativeCount": { + "description": "True negative count.", + "format": "int64", + "type": "string" + }, + "truePositiveCount": { + "description": "True positive count.", + "format": "int64", + "type": "string" + }, + "truePositiveRate": { + "description": "TPR = #true positives / (#true positives + #false negatvies)", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSTablesDatasetMetadata": { + "description": "Metadata for a dataset used for AutoML Tables. Next ID: 6", + "id": "XPSTablesDatasetMetadata", + "properties": { + "mlUseColumnId": { + "description": "Id the column to split the table.", + "format": "int32", + "type": "integer" + }, + "primaryTableSpec": { + "$ref": "XPSTableSpec", + "description": "Primary table." + }, + "targetColumnCorrelations": { + "additionalProperties": { + "$ref": "XPSCorrelationStats" + }, + "description": "(the column id : its CorrelationStats with target column).", + "type": "object" + }, + "targetColumnId": { + "description": "Id of the primary table column that should be used as the training label.", + "format": "int32", + "type": "integer" + }, + "weightColumnId": { + "description": "Id of the primary table column that should be used as the weight column.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "XPSTablesEvaluationMetrics": { + "id": "XPSTablesEvaluationMetrics", + "properties": { + "classificationMetrics": { + "$ref": "XPSTablesClassificationMetrics", + "description": "Classification metrics." + }, + "regressionMetrics": { + "$ref": "XPSTablesRegressionMetrics", + "description": "Regression metrics." + } + }, + "type": "object" + }, + "XPSTablesModelColumnInfo": { + "description": "An information specific to given column and Tables Model, in context of the Model and the predictions created by it.", + "id": "XPSTablesModelColumnInfo", + "properties": { + "columnId": { + "description": "The ID of the column.", + "format": "int32", + "type": "integer" + }, + "featureImportance": { + "description": "When given as part of a Model: Measurement of how much model predictions correctness on the TEST data depend on values in this column. A value between 0 and 1, higher means higher influence. These values are normalized - for all input feature columns of a given model they add to 1. When given back by Predict or Batch Predict: Measurement of how impactful for the prediction returned for the given row the value in this column was. Specifically, the feature importance specifies the marginal contribution that the feature made to the prediction score compared to the baseline score. These values are computed using the Sampled Shapley method.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSTablesModelStructure": { + "description": "A description of Tables model structure.", + "id": "XPSTablesModelStructure", + "properties": { + "modelParameters": { + "description": "A list of models.", + "items": { + "$ref": "XPSTablesModelStructureModelParameters" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSTablesModelStructureModelParameters": { + "description": "Model hyper-parameters for a model.", + "id": "XPSTablesModelStructureModelParameters", + "properties": { + "hyperparameters": { + "items": { + "$ref": "XPSTablesModelStructureModelParametersParameter" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSTablesModelStructureModelParametersParameter": { + "id": "XPSTablesModelStructureModelParametersParameter", + "properties": { + "floatValue": { + "description": "Float type parameter value.", + "format": "double", + "type": "number" + }, + "intValue": { + "description": "Integer type parameter value.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Parameter name.", + "type": "string" + }, + "stringValue": { + "description": "String type parameter value.", + "type": "string" + } + }, + "type": "object" + }, + "XPSTablesPreprocessResponse": { + "id": "XPSTablesPreprocessResponse", + "properties": { + "tablesDatasetMetadata": { + "$ref": "XPSTablesDatasetMetadata", + "description": "The table/column id, column_name and the DataTypes of the columns will be populated." + } + }, + "type": "object" + }, + "XPSTablesRegressionMetrics": { + "description": "Metrics for Tables regression problems.", + "id": "XPSTablesRegressionMetrics", + "properties": { + "meanAbsoluteError": { + "description": "Mean absolute error.", + "format": "double", + "type": "number" + }, + "meanAbsolutePercentageError": { + "description": "Mean absolute percentage error, only set if all of the target column's values are positive.", + "format": "double", + "type": "number" + }, + "rSquared": { + "description": "R squared.", + "format": "double", + "type": "number" + }, + "regressionMetricsEntries": { + "description": "A list of actual versus predicted points for the model being evaluated.", + "items": { + "$ref": "XPSRegressionMetricsEntry" + }, + "type": "array" + }, + "rootMeanSquaredError": { + "description": "Root mean squared error.", + "format": "double", + "type": "number" + }, + "rootMeanSquaredLogError": { + "description": "Root mean squared log error.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSTablesTrainResponse": { + "id": "XPSTablesTrainResponse", + "properties": { + "modelStructure": { + "$ref": "XPSTablesModelStructure" + }, + "predictionSampleRows": { + "description": "Sample rows from the dataset this model was trained.", + "items": { + "$ref": "XPSRow" + }, + "type": "array" + }, + "tablesModelColumnInfo": { + "description": "Output only. Auxiliary information for each of the input_feature_column_specs, with respect to this particular model.", + "items": { + "$ref": "XPSTablesModelColumnInfo" + }, + "type": "array" + }, + "trainCostMilliNodeHours": { + "description": "The actual training cost of the model, expressed in milli node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed to not exceed the train budget.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSTablesTrainingOperationMetadata": { + "id": "XPSTablesTrainingOperationMetadata", + "properties": { + "createModelStage": { + "description": "Current stage of creating model.", + "enum": [ + "CREATE_MODEL_STAGE_UNSPECIFIED", + "DATA_PREPROCESSING", + "TRAINING", + "EVALUATING", + "MODEL_POST_PROCESSING" + ], + "enumDescriptions": [ + "Unspecified stage.", + "Prepare the model training pipeline and run data processing.", + "Training model.", + "Run evaluation.", + "Finalizing model training pipeline." + ], + "type": "string" + }, + "optimizationObjective": { + "description": "The optimization objective for model.", + "type": "string" + }, + "topTrials": { + "description": "This field is for training. When the operation is terminated successfully, AutoML Backend post this field to operation metadata in spanner. If the metadata has no trials returned, the training operation is supposed to be a failure.", + "items": { + "$ref": "XPSTuningTrial" + }, + "type": "array" + }, + "trainBudgetMilliNodeHours": { + "description": "Creating model budget.", + "format": "int64", + "type": "string" + }, + "trainingObjectivePoints": { + "description": "This field records the training objective value with respect to time, giving insight into how the model architecture search is performing as training time elapses.", + "items": { + "$ref": "XPSTrainingObjectivePoint" + }, + "type": "array" + }, + "trainingStartTime": { + "description": "Timestamp when training process starts.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "XPSTextComponentModel": { + "description": "Component model. Next ID: 10", + "id": "XPSTextComponentModel", + "properties": { + "batchPredictionModelGcsUri": { + "description": "The Cloud Storage resource path to hold batch prediction model.", + "type": "string" + }, + "onlinePredictionModelGcsUri": { + "description": "The Cloud Storage resource path to hold online prediction model.", + "type": "string" + }, + "partition": { + "description": "The partition where the model is deployed. Populated by uCAIP BE as part of online PredictRequest.", + "enum": [ + "PARTITION_TYPE_UNSPECIFIED", + "PARTITION_ZERO", + "PARTITION_REDUCED_HOMING", + "PARTITION_JELLYFISH", + "PARTITION_CPU", + "PARTITION_CUSTOM_STORAGE_CPU" + ], + "enumDescriptions": [ + "", + "The default partition.", + "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", + "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "The partition used by regionalized servomatic cloud regions.", + "The partition used for loading models from custom storage." + ], + "type": "string" + }, + "servingArtifact": { + "$ref": "XPSModelArtifactItem", + "description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud Ai Platform API." + }, + "servoModelName": { + "description": "The name of servo model. Populated by uCAIP BE as part of online PredictRequest.", + "type": "string" + }, + "submodelName": { + "description": "The name of the trained NL submodel.", + "type": "string" + }, + "submodelType": { + "description": "The type of trained NL submodel", + "enum": [ + "TEXT_MODEL_TYPE_UNSPECIFIED", + "TEXT_MODEL_TYPE_DEFAULT", + "TEXT_MODEL_TYPE_META_ARCHITECT", + "TEXT_MODEL_TYPE_ATC", + "TEXT_MODEL_TYPE_CLARA2", + "TEXT_MODEL_TYPE_CHATBASE", + "TEXT_MODEL_TYPE_SAFT_SPAN_LABELING", + "TEXT_MODEL_TYPE_TEXT_EXTRACTION", + "TEXT_MODEL_TYPE_RELATIONSHIP_EXTRACTION", + "TEXT_MODEL_TYPE_COMPOSITE", + "TEXT_MODEL_TYPE_ALL_MODELS", + "TEXT_MODEL_TYPE_BERT", + "TEXT_MODEL_TYPE_ENC_PALM" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "Model type for entity extraction.", + "Model type for relationship extraction.", + "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model. Please refer to go/cnl-composite-models for more information.", + "Model type used to train default, MA, and ATC models in a single batch worker pipeline.", + "BERT pipeline needs a specific model type, since it uses a different TFX configuration compared with DEFAULT (despite sharing most of the code).", + "Model type for EncPaLM." + ], + "type": "string" + }, + "tfRuntimeVersion": { + "description": "## The fields below are only populated under uCAIP request scope. https://cloud.google.com/ml-engine/docs/runtime-version-list", + "type": "string" + }, + "versionNumber": { + "description": "The servomatic model version number. Populated by uCAIP BE as part of online PredictRequest.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSTextExtractionEvaluationMetrics": { + "id": "XPSTextExtractionEvaluationMetrics", + "properties": { + "bestF1ConfidenceMetrics": { + "$ref": "XPSConfidenceMetricsEntry", + "deprecated": true, + "description": "Values are at the highest F1 score on the precision-recall curve. Only confidence_threshold, recall, precision, and f1_score will be set." + }, + "confidenceMetricsEntries": { + "description": "If the enclosing EvaluationMetrics.label is empty, confidence_metrics_entries is an evaluation of the entire model across all labels. If the enclosing EvaluationMetrics.label is set, confidence_metrics_entries applies to that label.", + "items": { + "$ref": "XPSConfidenceMetricsEntry" + }, + "type": "array" + }, + "confusionMatrix": { + "$ref": "XPSConfusionMatrix", + "description": "Confusion matrix of the model, at the default confidence threshold (0.0). Only set for whole-model evaluation, not for evaluation per label." + }, + "perLabelConfidenceMetrics": { + "additionalProperties": { + "$ref": "XPSConfidenceMetricsEntry" + }, + "deprecated": true, + "description": "Only recall, precision, and f1_score will be set.", + "type": "object" + } + }, + "type": "object" + }, + "XPSTextSentimentEvaluationMetrics": { + "description": "Model evaluation metrics for text sentiment problems.", + "id": "XPSTextSentimentEvaluationMetrics", + "properties": { + "confusionMatrix": { + "$ref": "XPSConfusionMatrix", + "description": "Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec." + }, + "f1Score": { + "description": "Output only. The harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "linearKappa": { + "description": "Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.", + "format": "float", + "type": "number" + }, + "meanAbsoluteError": { + "description": "Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.", + "format": "float", + "type": "number" + }, + "meanSquaredError": { + "description": "Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.", + "format": "float", + "type": "number" + }, + "precision": { + "description": "Output only. Precision.", + "format": "float", + "type": "number" + }, + "quadraticKappa": { + "description": "Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Output only. Recall.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSTextToSpeechTrainResponse": { + "description": "TextToSpeech train response", + "id": "XPSTextToSpeechTrainResponse", + "properties": {}, + "type": "object" + }, + "XPSTextTrainResponse": { + "id": "XPSTextTrainResponse", + "properties": { + "componentModel": { + "description": "Component submodels.", + "items": { + "$ref": "XPSTextComponentModel" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSTfJsFormat": { + "description": "A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript.", + "id": "XPSTfJsFormat", + "properties": {}, + "type": "object" + }, + "XPSTfLiteFormat": { + "description": "LINT.IfChange A model format used for mobile and IoT devices. See https://www.tensorflow.org/lite.", + "id": "XPSTfLiteFormat", + "properties": {}, + "type": "object" + }, + "XPSTfSavedModelFormat": { + "description": "A tensorflow model format in SavedModel format.", + "id": "XPSTfSavedModelFormat", + "properties": {}, + "type": "object" + }, + "XPSTimestampStats": { + "description": "The data statistics of a series of TIMESTAMP values.", + "id": "XPSTimestampStats", + "properties": { + "commonStats": { + "$ref": "XPSCommonStats" + }, + "granularStats": { + "additionalProperties": { + "$ref": "XPSTimestampStatsGranularStats" + }, + "description": "The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year. Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated).", + "type": "object" + }, + "medianTimestampNanos": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSTimestampStatsGranularStats": { + "description": "Stats split by a defined in context granularity.", + "id": "XPSTimestampStatsGranularStats", + "properties": { + "buckets": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "A map from granularity key to example count for that key. E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).", + "type": "object" + } + }, + "type": "object" + }, + "XPSTrackMetricsEntry": { + "description": "Track matching model metrics for a single track match threshold and multiple label match confidence thresholds. Next tag: 6.", + "id": "XPSTrackMetricsEntry", + "properties": { + "confidenceMetricsEntries": { + "description": "Output only. Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is derived from them.", + "items": { + "$ref": "XPSTrackMetricsEntryConfidenceMetricsEntry" + }, + "type": "array" + }, + "iouThreshold": { + "description": "Output only. The intersection-over-union threshold value between bounding boxes across frames used to compute this metric entry.", + "format": "float", + "type": "number" + }, + "meanBoundingBoxIou": { + "description": "Output only. The mean bounding box iou over all confidence thresholds.", + "format": "float", + "type": "number" + }, + "meanMismatchRate": { + "description": "Output only. The mean mismatch rate over all confidence thresholds.", + "format": "float", + "type": "number" + }, + "meanTrackingAveragePrecision": { + "description": "Output only. The mean average precision over all confidence thresholds.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSTrackMetricsEntryConfidenceMetricsEntry": { + "description": "Metrics for a single confidence threshold. Next tag: 6.", + "id": "XPSTrackMetricsEntryConfidenceMetricsEntry", + "properties": { + "boundingBoxIou": { + "description": "Output only. Bounding box intersection-over-union precision. Measures how well the bounding boxes overlap between each other (e.g. complete overlap or just barely above iou_threshold).", + "format": "float", + "type": "number" + }, + "confidenceThreshold": { + "description": "Output only. The confidence threshold value used to compute the metrics.", + "format": "float", + "type": "number" + }, + "mismatchRate": { + "description": "Output only. Mismatch rate, which measures the tracking consistency, i.e. correctness of instance ID continuity.", + "format": "float", + "type": "number" + }, + "trackingPrecision": { + "description": "Output only. Tracking precision.", + "format": "float", + "type": "number" + }, + "trackingRecall": { + "description": "Output only. Tracking recall.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSTrainResponse": { + "description": "Next ID: 18", + "id": "XPSTrainResponse", + "properties": { + "deployedModelSizeBytes": { + "description": "Estimated model size in bytes once deployed.", + "format": "int64", + "type": "string" + }, + "errorAnalysisConfigs": { + "description": "Optional vision model error analysis configuration. The field is set when model error analysis is enabled in the training request. The results of error analysis will be binded together with evaluation results (in the format of AnnotatedExample).", + "items": { + "$ref": "XPSVisionErrorAnalysisConfig" + }, + "type": "array" + }, + "evaluatedExampleSet": { + "$ref": "XPSExampleSet", + "description": "Examples used to evaluate the model (usually the test set), with the predicted annotations. The file_spec should point to recordio file(s) of AnnotatedExample. For each returned example, the example_id_token and annotations predicted by the model must be set. The example payload can and is recommended to be omitted." + }, + "evaluationMetricsSet": { + "$ref": "XPSEvaluationMetricsSet", + "description": "The trained model evaluation metrics. This can be optionally returned." + }, + "explanationConfigs": { + "deprecated": true, + "description": "VisionExplanationConfig for XAI on test set. Optional for when XAI is enable in training request.", + "items": { + "$ref": "XPSResponseExplanationSpec" + }, + "type": "array" + }, + "imageClassificationTrainResp": { + "$ref": "XPSImageClassificationTrainResponse" + }, + "imageObjectDetectionTrainResp": { + "$ref": "XPSImageObjectDetectionModelSpec" + }, + "imageSegmentationTrainResp": { + "$ref": "XPSImageSegmentationTrainResponse" + }, + "modelToken": { + "description": "Token that represents the trained model. This is considered immutable and is persisted in AutoML. xPS can put their own proto in the byte string, to e.g. point to the model checkpoints. The token is passed to other xPS APIs to refer to the model.", + "format": "byte", + "type": "string" + }, + "speechTrainResp": { + "$ref": "XPSSpeechModelSpec" + }, + "tablesTrainResp": { + "$ref": "XPSTablesTrainResponse" + }, + "textToSpeechTrainResp": { + "$ref": "XPSTextToSpeechTrainResponse" + }, + "textTrainResp": { + "$ref": "XPSTextTrainResponse", + "description": "Will only be needed for uCAIP from Beta." + }, + "translationTrainResp": { + "$ref": "XPSTranslationTrainResponse" + }, + "videoActionRecognitionTrainResp": { + "$ref": "XPSVideoActionRecognitionTrainResponse" + }, + "videoClassificationTrainResp": { + "$ref": "XPSVideoClassificationTrainResponse" + }, + "videoObjectTrackingTrainResp": { + "$ref": "XPSVideoObjectTrackingTrainResponse" + } + }, + "type": "object" + }, + "XPSTrainingObjectivePoint": { + "id": "XPSTrainingObjectivePoint", + "properties": { + "createTime": { + "description": "The time at which this point was recorded.", + "format": "google-datetime", + "type": "string" + }, + "value": { + "description": "The objective value when this point was recorded.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSTranslationEvaluationMetrics": { + "description": "Evaluation metrics for the dataset.", + "id": "XPSTranslationEvaluationMetrics", + "properties": { + "baseBleuScore": { + "description": "BLEU score for base model.", + "format": "double", + "type": "number" + }, + "bleuScore": { + "description": "BLEU score.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "XPSTranslationPreprocessResponse": { + "description": "Translation preprocess response.", + "id": "XPSTranslationPreprocessResponse", + "properties": { + "parsedExampleCount": { + "description": "Total example count parsed.", + "format": "int64", + "type": "string" + }, + "validExampleCount": { + "description": "Total valid example count.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSTranslationTrainResponse": { + "description": "Train response for translation.", + "id": "XPSTranslationTrainResponse", + "properties": { + "modelType": { + "description": "Type of the model.", + "enum": [ + "MODEL_TYPE_UNSPECIFIED", + "LEGACY", + "CURRENT" + ], + "enumDescriptions": [ + "Default", + "Legacy model. Will be deprecated.", + "Current model." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSTuningTrial": { + "description": "Metrics for a tuning job generated, will get forwarded to Stackdriver as model tuning logs. Setting this as a standalone message out of CreateModelMetadata to avoid confusion as we expose this message only to users.", + "id": "XPSTuningTrial", + "properties": { + "modelStructure": { + "$ref": "XPSTablesModelStructure", + "description": "Model parameters for the trial." + }, + "trainingObjectivePoint": { + "$ref": "XPSTrainingObjectivePoint", + "description": "The optimization objective evaluation of the eval split data." + } + }, + "type": "object" + }, + "XPSVideoActionMetricsEntry": { + "description": "The Evaluation metrics entry given a specific precision_window_length.", + "id": "XPSVideoActionMetricsEntry", + "properties": { + "confidenceMetricsEntries": { + "description": "Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99.", + "items": { + "$ref": "XPSVideoActionMetricsEntryConfidenceMetricsEntry" + }, + "type": "array" + }, + "meanAveragePrecision": { + "description": "The mean average precision.", + "format": "float", + "type": "number" + }, + "precisionWindowLength": { + "description": "This VideoActionMetricsEntry is calculated based on this prediction window length. If the predicted action's timestamp is inside the time window whose center is the ground truth action's timestamp with this specific length, the prediction result is treated as a true positive.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "XPSVideoActionMetricsEntryConfidenceMetricsEntry": { + "description": "Metrics for a single confidence threshold.", + "id": "XPSVideoActionMetricsEntryConfidenceMetricsEntry", + "properties": { + "confidenceThreshold": { + "description": "Output only. The confidence threshold value used to compute the metrics.", + "format": "float", + "type": "number" + }, + "f1Score": { + "description": "Output only. The harmonic mean of recall and precision.", + "format": "float", + "type": "number" + }, + "precision": { + "description": "Output only. Precision for the given confidence threshold.", + "format": "float", + "type": "number" + }, + "recall": { + "description": "Output only. Recall for the given confidence threshold.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "XPSVideoActionRecognitionEvaluationMetrics": { + "description": "Model evaluation metrics for video action recognition.", + "id": "XPSVideoActionRecognitionEvaluationMetrics", + "properties": { + "evaluatedActionCount": { + "description": "Output only. The number of ground truth actions used to create this evaluation.", + "format": "int32", + "type": "integer" + }, + "videoActionMetricsEntries": { + "description": "Output only. The metric entries for precision window lengths: 1s,2s,3s,4s, 5s.", + "items": { + "$ref": "XPSVideoActionMetricsEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSVideoActionRecognitionTrainResponse": { + "id": "XPSVideoActionRecognitionTrainResponse", + "properties": { + "modelArtifactSpec": { + "$ref": "XPSVideoModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope." + }, + "trainCostNodeSeconds": { + "description": "The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSVideoBatchPredictOperationMetadata": { + "id": "XPSVideoBatchPredictOperationMetadata", + "properties": { + "outputExamples": { + "description": "All the partial batch prediction results that are completed at the moment. Output examples are sorted by completion time. The order will not be changed. Each output example should be the path of a single RecordIO file of AnnotatedExamples.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSVideoClassificationTrainResponse": { + "id": "XPSVideoClassificationTrainResponse", + "properties": { + "modelArtifactSpec": { + "$ref": "XPSVideoModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope." + }, + "trainCostNodeSeconds": { + "description": "The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSVideoExportModelSpec": { + "description": "Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Upon receiving ExportModel request from user, AutoMl backend can serve the pre-generated models to user if exists (by copying the files from internal path to user provided location), otherwise, AutoMl backend will call xPS ExportModel API to generate the model on the fly with the requesting format.", + "id": "XPSVideoExportModelSpec", + "properties": { + "exportModelOutputConfig": { + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "items": { + "$ref": "XPSExportModelOutputConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSVideoModelArtifactSpec": { + "id": "XPSVideoModelArtifactSpec", + "properties": { + "exportArtifact": { + "description": "The model binary files in different formats for model export.", + "items": { + "$ref": "XPSModelArtifactItem" + }, + "type": "array" + }, + "servingArtifact": { + "$ref": "XPSModelArtifactItem", + "description": "The default model binary file used for serving (e.g. batch predict) via public Cloud AI Platform API." + } + }, + "type": "object" + }, + "XPSVideoObjectTrackingEvaluationMetrics": { + "description": "Model evaluation metrics for ObjectTracking problems. Next tag: 10.", + "id": "XPSVideoObjectTrackingEvaluationMetrics", + "properties": { + "boundingBoxMeanAveragePrecision": { + "description": "Output only. The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries.", + "format": "float", + "type": "number" + }, + "boundingBoxMetricsEntries": { + "description": "Output only. The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99.", + "items": { + "$ref": "XPSBoundingBoxMetricsEntry" + }, + "type": "array" + }, + "evaluatedBoundingboxCount": { + "description": "The number of bounding boxes used for model evaluation.", + "format": "int32", + "type": "integer" + }, + "evaluatedFrameCount": { + "description": "The number of video frames used for model evaluation.", + "format": "int32", + "type": "integer" + }, + "evaluatedTrackCount": { + "description": "The number of tracks used for model evaluation.", + "format": "int32", + "type": "integer" + }, + "trackMeanAveragePrecision": { + "description": "Output only. The single metric for tracks accuracy evaluation: the mean_average_precision averaged over all track_metrics_entries.", + "format": "float", + "type": "number" + }, + "trackMeanBoundingBoxIou": { + "description": "Output only. The single metric for tracks bounding box iou evaluation: the mean_bounding_box_iou averaged over all track_metrics_entries.", + "format": "float", + "type": "number" + }, + "trackMeanMismatchRate": { + "description": "Output only. The single metric for tracking consistency evaluation: the mean_mismatch_rate averaged over all track_metrics_entries.", + "format": "float", + "type": "number" + }, + "trackMetricsEntries": { + "description": "Output only. The tracks match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99.", + "items": { + "$ref": "XPSTrackMetricsEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "XPSVideoObjectTrackingTrainResponse": { + "id": "XPSVideoObjectTrackingTrainResponse", + "properties": { + "exportModelSpec": { + "$ref": "XPSVideoExportModelSpec", + "description": "Populated for AutoML request only." + }, + "modelArtifactSpec": { + "$ref": "XPSVideoModelArtifactSpec", + "description": "## The fields below are only populated under uCAIP request scope." + }, + "trainCostNodeSeconds": { + "description": "The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSVideoTrainingOperationMetadata": { + "id": "XPSVideoTrainingOperationMetadata", + "properties": { + "trainCostMilliNodeHour": { + "description": "This is an estimation of the node hours necessary for training a model, expressed in milli node hours (i.e. 1,000 value in this field means 1 node hour). A node hour represents the time a virtual machine spends running your training job. The cost of one node running for one hour is a node hour.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "XPSVisionErrorAnalysisConfig": { + "description": "The vision model error analysis configuration. Next tag: 3", + "id": "XPSVisionErrorAnalysisConfig", + "properties": { + "exampleCount": { + "description": "The number of query examples in error analysis.", + "format": "int32", + "type": "integer" + }, + "queryType": { + "description": "The query type used in retrieval. The enum values are frozen in the foreseeable future.", + "enum": [ + "QUERY_TYPE_UNSPECIFIED", + "QUERY_TYPE_ALL_SIMILAR", + "QUERY_TYPE_SAME_CLASS_SIMILAR", + "QUERY_TYPE_SAME_CLASS_DISSIMILAR" + ], + "enumDescriptions": [ + "Unspecified query type for model error analysis.", + "Query similar samples across all classes in the dataset.", + "Query similar samples from the same class of the input sample.", + "Query dissimilar samples from the same class of the input sample." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSVisionTrainingOperationMetadata": { + "deprecated": true, + "id": "XPSVisionTrainingOperationMetadata", + "properties": { + "explanationUsage": { + "$ref": "InfraUsage", + "description": "Aggregated infra usage within certain time period, for billing report purpose if XAI is enable in training request." + } + }, + "type": "object" + }, + "XPSVisualization": { + "deprecated": true, + "description": "Visualization configurations for image explanation.", + "id": "XPSVisualization", + "properties": { + "clipPercentLowerbound": { + "description": "Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.", + "format": "float", + "type": "number" + }, + "clipPercentUpperbound": { + "description": "Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9.", + "format": "float", + "type": "number" + }, + "colorMap": { + "description": "The color scheme used for the highlighted areas. Defaults to PINK_GREEN for Integrated Gradients attribution, which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for XRAI attribution, which highlights the most influential regions in yellow and the least influential in blue.", + "enum": [ + "COLOR_MAP_UNSPECIFIED", + "PINK_GREEN", + "VIRIDIS", + "RED", + "GREEN", + "RED_GREEN", + "PINK_WHITE_GREEN" + ], + "enumDescriptions": [ + "Should not be used.", + "Positive: green. Negative: pink.", + "Viridis color map: A perceptually uniform color mapping which is easier to see by those with colorblindness and progresses from yellow to green to blue. Positive: yellow. Negative: blue.", + "Positive: red. Negative: red.", + "Positive: green. Negative: green.", + "Positive: green. Negative: red.", + "PiYG palette." + ], + "type": "string" + }, + "overlayType": { + "description": "How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.", + "enum": [ + "OVERLAY_TYPE_UNSPECIFIED", + "NONE", + "ORIGINAL", + "GRAYSCALE", + "MASK_BLACK" + ], + "enumDescriptions": [ + "Default value. This is the same as NONE.", + "No overlay.", + "The attributions are shown on top of the original image.", + "The attributions are shown on top of grayscaled version of the original image.", + "The attributions are used as a mask to reveal predictive parts of the image and hide the un-predictive parts." + ], + "type": "string" + }, + "polarity": { + "description": "Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.", + "enum": [ + "POLARITY_UNSPECIFIED", + "POSITIVE", + "NEGATIVE", + "BOTH" + ], + "enumDescriptions": [ + "Default value. This is the same as POSITIVE.", + "Highlights the pixels/outlines that were most influential to the model's prediction.", + "Setting polarity to negative highlights areas that does not lead to the models's current prediction.", + "Shows both positive and negative attributions." + ], + "type": "string" + }, + "type": { + "description": "Type of the image visualization. Only applicable to Integrated Gradients attribution. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.", + "enum": [ + "TYPE_UNSPECIFIED", + "PIXELS", + "OUTLINES" + ], + "enumDescriptions": [ + "Should not be used.", + "Shows which pixel contributed to the image prediction.", + "Shows which region contributed to the image prediction by outlining the region." + ], + "type": "string" + } + }, + "type": "object" + }, + "XPSXpsOperationMetadata": { + "id": "XPSXpsOperationMetadata", + "properties": { + "exampleCount": { + "description": "Optional. XPS server can opt to provide example count of the long running operation (e.g. training, data importing, batch prediction).", + "format": "int64", + "type": "string" + }, + "reportingMetrics": { + "$ref": "XPSReportingMetrics", + "description": "Metrics for the operation. By the time the operation is terminated (whether succeeded or failed) as returned from XPS, AutoML BE assumes the metrics are finalized. AutoML BE transparently posts the metrics to Chemist if it's not empty, regardless of the response content or error type. If user is supposed to be charged in case of cancellation/error, this field should be set. In the case where the type of LRO doesn't require any billing, this field should be left unset." + }, + "tablesTrainingOperationMetadata": { + "$ref": "XPSTablesTrainingOperationMetadata" + }, + "videoBatchPredictOperationMetadata": { + "$ref": "XPSVideoBatchPredictOperationMetadata" + }, + "videoTrainingOperationMetadata": { + "$ref": "XPSVideoTrainingOperationMetadata" + }, + "visionTrainingOperationMetadata": { + "$ref": "XPSVisionTrainingOperationMetadata" + } + }, + "type": "object" + }, + "XPSXraiAttribution": { + "deprecated": true, + "description": "An explanation method that redistributes Integrated Gradients attributions to segmented regions, taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825 Only supports image Models (modality is IMAGE).", + "id": "XPSXraiAttribution", + "properties": { + "stepCount": { + "description": "The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Valid range of its value is [1, 100], inclusively.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index 8e18e4da79b..649ae0df129 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -540,7 +540,7 @@ type AnnotateTextRequest struct { EncodingType string `json:"encodingType,omitempty"` // Features: Required. The enabled features. - Features *Features `json:"features,omitempty"` + Features *AnnotateTextRequestFeatures `json:"features,omitempty"` // ForceSendFields is a list of field names (e.g. "Document") to // unconditionally include in API requests. By default, fields with @@ -565,6 +565,60 @@ func (s *AnnotateTextRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AnnotateTextRequestFeatures: All available features for sentiment, +// syntax, and semantic analysis. Setting each one to true will enable +// that specific analysis for the input. +type AnnotateTextRequestFeatures struct { + // ClassificationModelOptions: Optional. The model options to use for + // classification. Defaults to v1 options if not specified. Only used if + // `classify_text` is set to true. + ClassificationModelOptions *ClassificationModelOptions `json:"classificationModelOptions,omitempty"` + + // ClassifyText: Classify the full document into categories. + ClassifyText bool `json:"classifyText,omitempty"` + + // ExtractDocumentSentiment: Extract document-level sentiment. + ExtractDocumentSentiment bool `json:"extractDocumentSentiment,omitempty"` + + // ExtractEntities: Extract entities. + ExtractEntities bool `json:"extractEntities,omitempty"` + + // ExtractEntitySentiment: Extract entities and their associated + // sentiment. + ExtractEntitySentiment bool `json:"extractEntitySentiment,omitempty"` + + // ExtractSyntax: Extract syntax information. + ExtractSyntax bool `json:"extractSyntax,omitempty"` + + // ModerateText: Moderate the document for harmful and sensitive + // categories. + ModerateText bool `json:"moderateText,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassificationModelOptions") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ClassificationModelOptions") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AnnotateTextRequestFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AnnotateTextRequestFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AnnotateTextResponse: The text annotations response message. type AnnotateTextResponse struct { // Categories: Categories identified in the input document. @@ -680,12 +734,12 @@ type ClassificationModelOptions struct { // V1Model: Setting this field will use the V1 model and V1 content // categories version. The V1 model is a legacy model; support for this // will be discontinued in the future. - V1Model *V1Model `json:"v1Model,omitempty"` + V1Model *ClassificationModelOptionsV1Model `json:"v1Model,omitempty"` // V2Model: Setting this field will use the V2 model with the // appropriate content categories version. The V2 model is a better // performing model. - V2Model *V2Model `json:"v2Model,omitempty"` + V2Model *ClassificationModelOptionsV2Model `json:"v2Model,omitempty"` // ForceSendFields is a list of field names (e.g. "V1Model") to // unconditionally include in API requests. By default, fields with @@ -710,6 +764,48 @@ func (s *ClassificationModelOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ClassificationModelOptionsV1Model: Options for the V1 model. +type ClassificationModelOptionsV1Model struct { +} + +// ClassificationModelOptionsV2Model: Options for the V2 model. +type ClassificationModelOptionsV2Model struct { + // ContentCategoriesVersion: The content categories used for + // classification. + // + // Possible values: + // "CONTENT_CATEGORIES_VERSION_UNSPECIFIED" - If + // `ContentCategoriesVersion` is not specified, this option will default + // to `V1`. + // "V1" - Legacy content categories of our initial launch in 2017. + // "V2" - Updated content categories in 2022. + ContentCategoriesVersion string `json:"contentCategoriesVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ContentCategoriesVersion") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContentCategoriesVersion") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ClassificationModelOptionsV2Model) MarshalJSON() ([]byte, error) { + type NoMethod ClassificationModelOptionsV2Model + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ClassifyTextRequest: The document classification request message. type ClassifyTextRequest struct { // ClassificationModelOptions: Optional. Model options to use for @@ -776,6 +872,347 @@ func (s *ClassifyTextResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Color: Represents a color in the RGBA color space. This +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page doesn't have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), +// protocolor.getGreen(), protocolor.getBlue(), alpha); } public static +// Color toProto(java.awt.Color color) { float red = (float) +// color.getRed(); float green = (float) color.getGreen(); float blue = +// (float) color.getBlue(); float denominator = 255.0; Color.Builder +// resultBuilder = Color .newBuilder() .setRed(red / denominator) +// .setGreen(green / denominator) .setBlue(blue / denominator); int +// alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( +// FloatValue .newBuilder() .setValue(((float) alpha) / denominator) +// .build()); } return resultBuilder.build(); } // ... Example (iOS / +// Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float +// red = [protocolor red]; float green = [protocolor green]; float blue +// = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; +// float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper +// value]; } return [UIColor colorWithRed:red green:green blue:blue +// alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, +// green, blue, alpha; if (![color getRed:&red green:&green blue:&blue +// alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; +// [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; +// if (alpha <= 0.9999) { [result +// setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; +// return result; } // ... Example (JavaScript): // ... var +// protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red +// || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = +// rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green +// = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); +// if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, +// blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams +// = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', +// alphaFrac, ')'].join(”); }; var rgbToCssColor = function(red, green, +// blue) { var rgbNumber = new Number((red << 16) | (green << 8) | +// blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - +// hexString.length; var resultBuilder = ['#']; for (var i = 0; i < +// missingZeros; i++) { resultBuilder.push('0'); } +// resultBuilder.push(hexString); return resultBuilder.join(”); }; // +// ... +type Color struct { + // Alpha: The fraction of this color that should be applied to the + // pixel. That is, the final pixel color is defined by the equation: + // `pixel color = alpha * (this color) + (1.0 - alpha) * (background + // color)` This means that a value of 1.0 corresponds to a solid color, + // whereas a value of 0.0 corresponds to a completely transparent color. + // This uses a wrapper message rather than a simple float scalar so that + // it is possible to distinguish between a default value and the value + // being unset. If omitted, this color object is rendered as a solid + // color (as if the alpha value had been explicitly given a value of + // 1.0). + Alpha float64 `json:"alpha,omitempty"` + + // Blue: The amount of blue in the color as a value in the interval [0, + // 1]. + Blue float64 `json:"blue,omitempty"` + + // Green: The amount of green in the color as a value in the interval + // [0, 1]. + Green float64 `json:"green,omitempty"` + + // Red: The amount of red in the color as a value in the interval [0, + // 1]. + Red float64 `json:"red,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Color) MarshalJSON() ([]byte, error) { + type NoMethod Color + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Color) UnmarshalJSON(data []byte) error { + type NoMethod Color + var s1 struct { + Alpha gensupport.JSONFloat64 `json:"alpha"` + Blue gensupport.JSONFloat64 `json:"blue"` + Green gensupport.JSONFloat64 `json:"green"` + Red gensupport.JSONFloat64 `json:"red"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Alpha = float64(s1.Alpha) + s.Blue = float64(s1.Blue) + s.Green = float64(s1.Green) + s.Red = float64(s1.Red) + return nil +} + +// CpuMetric: Metric for billing reports. +type CpuMetric struct { + // CoreNumber: Required. Number of CPU cores. + CoreNumber int64 `json:"coreNumber,omitempty,string"` + + // CoreSec: Required. Total seconds of core usage, e.g. 4. + CoreSec int64 `json:"coreSec,omitempty,string"` + + // CpuType: Required. Type of cpu, e.g. N2. + // + // Possible values: + // "UNKNOWN_CPU_TYPE" + // "A2" - GPU-based machine, skip quota reporting. + // "A3" - GPU-based machine, skip quota reporting. + // "C2" - COMPUTE_OPTIMIZED + // "C2D" + // "CUSTOM" + // "E2" + // "G2" - GPU-based machine, skip quota reporting. + // "C3" + // "M2" - MEMORY_OPTIMIZED_UPGRADE_PREMIUM + // "M1" - MEMORY_OPTIMIZED + // "N1" + // "N2_CUSTOM" + // "N2" + // "N2D" + CpuType string `json:"cpuType,omitempty"` + + // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. + // + // Possible values: + // "UNKNOWN_MACHINE_SPEC" + // "N1_STANDARD_2" + // "N1_STANDARD_4" + // "N1_STANDARD_8" + // "N1_STANDARD_16" + // "N1_STANDARD_32" + // "N1_STANDARD_64" + // "N1_STANDARD_96" + // "N1_HIGHMEM_2" + // "N1_HIGHMEM_4" + // "N1_HIGHMEM_8" + // "N1_HIGHMEM_16" + // "N1_HIGHMEM_32" + // "N1_HIGHMEM_64" + // "N1_HIGHMEM_96" + // "N1_HIGHCPU_2" + // "N1_HIGHCPU_4" + // "N1_HIGHCPU_8" + // "N1_HIGHCPU_16" + // "N1_HIGHCPU_32" + // "N1_HIGHCPU_64" + // "N1_HIGHCPU_96" + // "A2_HIGHGPU_1G" + // "A2_HIGHGPU_2G" + // "A2_HIGHGPU_4G" + // "A2_HIGHGPU_8G" + // "A2_MEGAGPU_16G" + // "A2_ULTRAGPU_1G" + // "A2_ULTRAGPU_2G" + // "A2_ULTRAGPU_4G" + // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_8G" + // "E2_STANDARD_2" + // "E2_STANDARD_4" + // "E2_STANDARD_8" + // "E2_STANDARD_16" + // "E2_STANDARD_32" + // "E2_HIGHMEM_2" + // "E2_HIGHMEM_4" + // "E2_HIGHMEM_8" + // "E2_HIGHMEM_16" + // "E2_HIGHCPU_2" + // "E2_HIGHCPU_4" + // "E2_HIGHCPU_8" + // "E2_HIGHCPU_16" + // "E2_HIGHCPU_32" + // "N2_STANDARD_2" + // "N2_STANDARD_4" + // "N2_STANDARD_8" + // "N2_STANDARD_16" + // "N2_STANDARD_32" + // "N2_STANDARD_48" + // "N2_STANDARD_64" + // "N2_STANDARD_80" + // "N2_STANDARD_96" + // "N2_STANDARD_128" + // "N2_HIGHMEM_2" + // "N2_HIGHMEM_4" + // "N2_HIGHMEM_8" + // "N2_HIGHMEM_16" + // "N2_HIGHMEM_32" + // "N2_HIGHMEM_48" + // "N2_HIGHMEM_64" + // "N2_HIGHMEM_80" + // "N2_HIGHMEM_96" + // "N2_HIGHMEM_128" + // "N2_HIGHCPU_2" + // "N2_HIGHCPU_4" + // "N2_HIGHCPU_8" + // "N2_HIGHCPU_16" + // "N2_HIGHCPU_32" + // "N2_HIGHCPU_48" + // "N2_HIGHCPU_64" + // "N2_HIGHCPU_80" + // "N2_HIGHCPU_96" + // "N2D_STANDARD_2" + // "N2D_STANDARD_4" + // "N2D_STANDARD_8" + // "N2D_STANDARD_16" + // "N2D_STANDARD_32" + // "N2D_STANDARD_48" + // "N2D_STANDARD_64" + // "N2D_STANDARD_80" + // "N2D_STANDARD_96" + // "N2D_STANDARD_128" + // "N2D_STANDARD_224" + // "N2D_HIGHMEM_2" + // "N2D_HIGHMEM_4" + // "N2D_HIGHMEM_8" + // "N2D_HIGHMEM_16" + // "N2D_HIGHMEM_32" + // "N2D_HIGHMEM_48" + // "N2D_HIGHMEM_64" + // "N2D_HIGHMEM_80" + // "N2D_HIGHMEM_96" + // "N2D_HIGHCPU_2" + // "N2D_HIGHCPU_4" + // "N2D_HIGHCPU_8" + // "N2D_HIGHCPU_16" + // "N2D_HIGHCPU_32" + // "N2D_HIGHCPU_48" + // "N2D_HIGHCPU_64" + // "N2D_HIGHCPU_80" + // "N2D_HIGHCPU_96" + // "N2D_HIGHCPU_128" + // "N2D_HIGHCPU_224" + // "C2_STANDARD_4" + // "C2_STANDARD_8" + // "C2_STANDARD_16" + // "C2_STANDARD_30" + // "C2_STANDARD_60" + // "C2D_STANDARD_2" + // "C2D_STANDARD_4" + // "C2D_STANDARD_8" + // "C2D_STANDARD_16" + // "C2D_STANDARD_32" + // "C2D_STANDARD_56" + // "C2D_STANDARD_112" + // "C2D_HIGHCPU_2" + // "C2D_HIGHCPU_4" + // "C2D_HIGHCPU_8" + // "C2D_HIGHCPU_16" + // "C2D_HIGHCPU_32" + // "C2D_HIGHCPU_56" + // "C2D_HIGHCPU_112" + // "C2D_HIGHMEM_2" + // "C2D_HIGHMEM_4" + // "C2D_HIGHMEM_8" + // "C2D_HIGHMEM_16" + // "C2D_HIGHMEM_32" + // "C2D_HIGHMEM_56" + // "C2D_HIGHMEM_112" + // "G2_STANDARD_4" + // "G2_STANDARD_8" + // "G2_STANDARD_12" + // "G2_STANDARD_16" + // "G2_STANDARD_24" + // "G2_STANDARD_32" + // "G2_STANDARD_48" + // "G2_STANDARD_96" + // "C3_STANDARD_4" + // "C3_STANDARD_8" + // "C3_STANDARD_22" + // "C3_STANDARD_44" + // "C3_STANDARD_88" + // "C3_STANDARD_176" + // "C3_HIGHCPU_4" + // "C3_HIGHCPU_8" + // "C3_HIGHCPU_22" + // "C3_HIGHCPU_44" + // "C3_HIGHCPU_88" + // "C3_HIGHCPU_176" + // "C3_HIGHMEM_4" + // "C3_HIGHMEM_8" + // "C3_HIGHMEM_22" + // "C3_HIGHMEM_44" + // "C3_HIGHMEM_88" + // "C3_HIGHMEM_176" + MachineSpec string `json:"machineSpec,omitempty"` + + // TrackingLabels: Billing tracking labels. They do not contain any user + // data but only the labels set by Vertex Core Infra itself. Tracking + // labels' keys are defined with special format: goog-[\p{Ll}\p{N}]+ + // E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + TrackingLabels map[string]string `json:"trackingLabels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CoreNumber") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CoreNumber") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CpuMetric) MarshalJSON() ([]byte, error) { + type NoMethod CpuMetric + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DependencyEdge: Represents dependency parse tree information for a // token. (For more information on dependency labels, see // http://www.aclweb.org/anthology/P13-2017 @@ -901,6 +1338,44 @@ func (s *DependencyEdge) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type DiskMetric struct { + // DiskType: Required. Type of Disk, e.g. REGIONAL_SSD. + // + // Possible values: + // "UNKNOWN_DISK_TYPE" + // "REGIONAL_SSD" + // "REGIONAL_STORAGE" + // "PD_SSD" + // "PD_STANDARD" + // "STORAGE_SNAPSHOT" + DiskType string `json:"diskType,omitempty"` + + // GibSec: Required. Seconds of physical disk usage, e.g. 3600. + GibSec int64 `json:"gibSec,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DiskType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiskType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DiskMetric) MarshalJSON() ([]byte, error) { + type NoMethod DiskMetric + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Document: Represents the input to API methods. type Document struct { // Content: The content of the input in string format. Cloud audit @@ -1100,56 +1575,254 @@ func (s *EntityMention) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Features: All available features for sentiment, syntax, and semantic -// analysis. Setting each one to true will enable that specific analysis -// for the input. -type Features struct { - // ClassificationModelOptions: Optional. The model options to use for - // classification. Defaults to v1 options if not specified. Only used if - // `classify_text` is set to true. - ClassificationModelOptions *ClassificationModelOptions `json:"classificationModelOptions,omitempty"` +type GpuMetric struct { + // GpuSec: Required. Seconds of GPU usage, e.g. 3600. + GpuSec int64 `json:"gpuSec,omitempty,string"` - // ClassifyText: Classify the full document into categories. - ClassifyText bool `json:"classifyText,omitempty"` + // GpuType: Required. Type of GPU, e.g. NVIDIA_TESLA_V100. + // + // Possible values: + // "UNKNOWN_GPU_TYPE" + // "NVIDIA_TESLA_A100" + // "NVIDIA_A100_80GB" + // "NVIDIA_TESLA_K80" + // "NVIDIA_L4" + // "NVIDIA_TESLA_P100" + // "NVIDIA_TESLA_P4" + // "NVIDIA_TESLA_T4" + // "NVIDIA_TESLA_V100" + // "NVIDIA_H100_80GB" + GpuType string `json:"gpuType,omitempty"` + + // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. + // + // Possible values: + // "UNKNOWN_MACHINE_SPEC" + // "N1_STANDARD_2" + // "N1_STANDARD_4" + // "N1_STANDARD_8" + // "N1_STANDARD_16" + // "N1_STANDARD_32" + // "N1_STANDARD_64" + // "N1_STANDARD_96" + // "N1_HIGHMEM_2" + // "N1_HIGHMEM_4" + // "N1_HIGHMEM_8" + // "N1_HIGHMEM_16" + // "N1_HIGHMEM_32" + // "N1_HIGHMEM_64" + // "N1_HIGHMEM_96" + // "N1_HIGHCPU_2" + // "N1_HIGHCPU_4" + // "N1_HIGHCPU_8" + // "N1_HIGHCPU_16" + // "N1_HIGHCPU_32" + // "N1_HIGHCPU_64" + // "N1_HIGHCPU_96" + // "A2_HIGHGPU_1G" + // "A2_HIGHGPU_2G" + // "A2_HIGHGPU_4G" + // "A2_HIGHGPU_8G" + // "A2_MEGAGPU_16G" + // "A2_ULTRAGPU_1G" + // "A2_ULTRAGPU_2G" + // "A2_ULTRAGPU_4G" + // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_8G" + // "E2_STANDARD_2" + // "E2_STANDARD_4" + // "E2_STANDARD_8" + // "E2_STANDARD_16" + // "E2_STANDARD_32" + // "E2_HIGHMEM_2" + // "E2_HIGHMEM_4" + // "E2_HIGHMEM_8" + // "E2_HIGHMEM_16" + // "E2_HIGHCPU_2" + // "E2_HIGHCPU_4" + // "E2_HIGHCPU_8" + // "E2_HIGHCPU_16" + // "E2_HIGHCPU_32" + // "N2_STANDARD_2" + // "N2_STANDARD_4" + // "N2_STANDARD_8" + // "N2_STANDARD_16" + // "N2_STANDARD_32" + // "N2_STANDARD_48" + // "N2_STANDARD_64" + // "N2_STANDARD_80" + // "N2_STANDARD_96" + // "N2_STANDARD_128" + // "N2_HIGHMEM_2" + // "N2_HIGHMEM_4" + // "N2_HIGHMEM_8" + // "N2_HIGHMEM_16" + // "N2_HIGHMEM_32" + // "N2_HIGHMEM_48" + // "N2_HIGHMEM_64" + // "N2_HIGHMEM_80" + // "N2_HIGHMEM_96" + // "N2_HIGHMEM_128" + // "N2_HIGHCPU_2" + // "N2_HIGHCPU_4" + // "N2_HIGHCPU_8" + // "N2_HIGHCPU_16" + // "N2_HIGHCPU_32" + // "N2_HIGHCPU_48" + // "N2_HIGHCPU_64" + // "N2_HIGHCPU_80" + // "N2_HIGHCPU_96" + // "N2D_STANDARD_2" + // "N2D_STANDARD_4" + // "N2D_STANDARD_8" + // "N2D_STANDARD_16" + // "N2D_STANDARD_32" + // "N2D_STANDARD_48" + // "N2D_STANDARD_64" + // "N2D_STANDARD_80" + // "N2D_STANDARD_96" + // "N2D_STANDARD_128" + // "N2D_STANDARD_224" + // "N2D_HIGHMEM_2" + // "N2D_HIGHMEM_4" + // "N2D_HIGHMEM_8" + // "N2D_HIGHMEM_16" + // "N2D_HIGHMEM_32" + // "N2D_HIGHMEM_48" + // "N2D_HIGHMEM_64" + // "N2D_HIGHMEM_80" + // "N2D_HIGHMEM_96" + // "N2D_HIGHCPU_2" + // "N2D_HIGHCPU_4" + // "N2D_HIGHCPU_8" + // "N2D_HIGHCPU_16" + // "N2D_HIGHCPU_32" + // "N2D_HIGHCPU_48" + // "N2D_HIGHCPU_64" + // "N2D_HIGHCPU_80" + // "N2D_HIGHCPU_96" + // "N2D_HIGHCPU_128" + // "N2D_HIGHCPU_224" + // "C2_STANDARD_4" + // "C2_STANDARD_8" + // "C2_STANDARD_16" + // "C2_STANDARD_30" + // "C2_STANDARD_60" + // "C2D_STANDARD_2" + // "C2D_STANDARD_4" + // "C2D_STANDARD_8" + // "C2D_STANDARD_16" + // "C2D_STANDARD_32" + // "C2D_STANDARD_56" + // "C2D_STANDARD_112" + // "C2D_HIGHCPU_2" + // "C2D_HIGHCPU_4" + // "C2D_HIGHCPU_8" + // "C2D_HIGHCPU_16" + // "C2D_HIGHCPU_32" + // "C2D_HIGHCPU_56" + // "C2D_HIGHCPU_112" + // "C2D_HIGHMEM_2" + // "C2D_HIGHMEM_4" + // "C2D_HIGHMEM_8" + // "C2D_HIGHMEM_16" + // "C2D_HIGHMEM_32" + // "C2D_HIGHMEM_56" + // "C2D_HIGHMEM_112" + // "G2_STANDARD_4" + // "G2_STANDARD_8" + // "G2_STANDARD_12" + // "G2_STANDARD_16" + // "G2_STANDARD_24" + // "G2_STANDARD_32" + // "G2_STANDARD_48" + // "G2_STANDARD_96" + // "C3_STANDARD_4" + // "C3_STANDARD_8" + // "C3_STANDARD_22" + // "C3_STANDARD_44" + // "C3_STANDARD_88" + // "C3_STANDARD_176" + // "C3_HIGHCPU_4" + // "C3_HIGHCPU_8" + // "C3_HIGHCPU_22" + // "C3_HIGHCPU_44" + // "C3_HIGHCPU_88" + // "C3_HIGHCPU_176" + // "C3_HIGHMEM_4" + // "C3_HIGHMEM_8" + // "C3_HIGHMEM_22" + // "C3_HIGHMEM_44" + // "C3_HIGHMEM_88" + // "C3_HIGHMEM_176" + MachineSpec string `json:"machineSpec,omitempty"` + + // TrackingLabels: Billing tracking labels. They do not contain any user + // data but only the labels set by Vertex Core Infra itself. Tracking + // labels' keys are defined with special format: goog-[\p{Ll}\p{N}]+ + // E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + TrackingLabels map[string]string `json:"trackingLabels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GpuSec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // ExtractDocumentSentiment: Extract document-level sentiment. - ExtractDocumentSentiment bool `json:"extractDocumentSentiment,omitempty"` + // NullFields is a list of field names (e.g. "GpuSec") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // ExtractEntities: Extract entities. - ExtractEntities bool `json:"extractEntities,omitempty"` +func (s *GpuMetric) MarshalJSON() ([]byte, error) { + type NoMethod GpuMetric + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // ExtractEntitySentiment: Extract entities and their associated - // sentiment. - ExtractEntitySentiment bool `json:"extractEntitySentiment,omitempty"` +// InfraUsage: Infra Usage of billing metrics. Next ID: 6 +type InfraUsage struct { + // CpuMetrics: Aggregated core metrics since requested start_time. + CpuMetrics []*CpuMetric `json:"cpuMetrics,omitempty"` - // ExtractSyntax: Extract syntax information. - ExtractSyntax bool `json:"extractSyntax,omitempty"` + // DiskMetrics: Aggregated persistent disk metrics since requested + // start_time. + DiskMetrics []*DiskMetric `json:"diskMetrics,omitempty"` - // ModerateText: Moderate the document for harmful and sensitive - // categories. - ModerateText bool `json:"moderateText,omitempty"` + // GpuMetrics: Aggregated gpu metrics since requested start_time. + GpuMetrics []*GpuMetric `json:"gpuMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ClassificationModelOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // RamMetrics: Aggregated ram metrics since requested start_time. + RamMetrics []*RamMetric `json:"ramMetrics,omitempty"` + + // TpuMetrics: Aggregated tpu metrics since requested start_time. + TpuMetrics []*TpuMetric `json:"tpuMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CpuMetrics") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "ClassificationModelOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CpuMetrics") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Features) MarshalJSON() ([]byte, error) { - type NoMethod Features +func (s *InfraUsage) MarshalJSON() ([]byte, error) { + type NoMethod InfraUsage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -1397,17 +2070,204 @@ func (s *PartOfSpeech) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Sentence: Represents a sentence in the input document. -type Sentence struct { - // Sentiment: For calls to AnalyzeSentiment or if - // AnnotateTextRequest.Features.extract_document_sentiment is set to - // true, this field will contain the sentiment for the sentence. - Sentiment *Sentiment `json:"sentiment,omitempty"` - - // Text: The sentence text. - Text *TextSpan `json:"text,omitempty"` +type RamMetric struct { + // GibSec: Required. VM memory in Gigabyte second, e.g. 3600. Using + // int64 type to match billing metrics definition. + GibSec int64 `json:"gibSec,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Sentiment") to + // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. + // + // Possible values: + // "UNKNOWN_MACHINE_SPEC" + // "N1_STANDARD_2" + // "N1_STANDARD_4" + // "N1_STANDARD_8" + // "N1_STANDARD_16" + // "N1_STANDARD_32" + // "N1_STANDARD_64" + // "N1_STANDARD_96" + // "N1_HIGHMEM_2" + // "N1_HIGHMEM_4" + // "N1_HIGHMEM_8" + // "N1_HIGHMEM_16" + // "N1_HIGHMEM_32" + // "N1_HIGHMEM_64" + // "N1_HIGHMEM_96" + // "N1_HIGHCPU_2" + // "N1_HIGHCPU_4" + // "N1_HIGHCPU_8" + // "N1_HIGHCPU_16" + // "N1_HIGHCPU_32" + // "N1_HIGHCPU_64" + // "N1_HIGHCPU_96" + // "A2_HIGHGPU_1G" + // "A2_HIGHGPU_2G" + // "A2_HIGHGPU_4G" + // "A2_HIGHGPU_8G" + // "A2_MEGAGPU_16G" + // "A2_ULTRAGPU_1G" + // "A2_ULTRAGPU_2G" + // "A2_ULTRAGPU_4G" + // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_8G" + // "E2_STANDARD_2" + // "E2_STANDARD_4" + // "E2_STANDARD_8" + // "E2_STANDARD_16" + // "E2_STANDARD_32" + // "E2_HIGHMEM_2" + // "E2_HIGHMEM_4" + // "E2_HIGHMEM_8" + // "E2_HIGHMEM_16" + // "E2_HIGHCPU_2" + // "E2_HIGHCPU_4" + // "E2_HIGHCPU_8" + // "E2_HIGHCPU_16" + // "E2_HIGHCPU_32" + // "N2_STANDARD_2" + // "N2_STANDARD_4" + // "N2_STANDARD_8" + // "N2_STANDARD_16" + // "N2_STANDARD_32" + // "N2_STANDARD_48" + // "N2_STANDARD_64" + // "N2_STANDARD_80" + // "N2_STANDARD_96" + // "N2_STANDARD_128" + // "N2_HIGHMEM_2" + // "N2_HIGHMEM_4" + // "N2_HIGHMEM_8" + // "N2_HIGHMEM_16" + // "N2_HIGHMEM_32" + // "N2_HIGHMEM_48" + // "N2_HIGHMEM_64" + // "N2_HIGHMEM_80" + // "N2_HIGHMEM_96" + // "N2_HIGHMEM_128" + // "N2_HIGHCPU_2" + // "N2_HIGHCPU_4" + // "N2_HIGHCPU_8" + // "N2_HIGHCPU_16" + // "N2_HIGHCPU_32" + // "N2_HIGHCPU_48" + // "N2_HIGHCPU_64" + // "N2_HIGHCPU_80" + // "N2_HIGHCPU_96" + // "N2D_STANDARD_2" + // "N2D_STANDARD_4" + // "N2D_STANDARD_8" + // "N2D_STANDARD_16" + // "N2D_STANDARD_32" + // "N2D_STANDARD_48" + // "N2D_STANDARD_64" + // "N2D_STANDARD_80" + // "N2D_STANDARD_96" + // "N2D_STANDARD_128" + // "N2D_STANDARD_224" + // "N2D_HIGHMEM_2" + // "N2D_HIGHMEM_4" + // "N2D_HIGHMEM_8" + // "N2D_HIGHMEM_16" + // "N2D_HIGHMEM_32" + // "N2D_HIGHMEM_48" + // "N2D_HIGHMEM_64" + // "N2D_HIGHMEM_80" + // "N2D_HIGHMEM_96" + // "N2D_HIGHCPU_2" + // "N2D_HIGHCPU_4" + // "N2D_HIGHCPU_8" + // "N2D_HIGHCPU_16" + // "N2D_HIGHCPU_32" + // "N2D_HIGHCPU_48" + // "N2D_HIGHCPU_64" + // "N2D_HIGHCPU_80" + // "N2D_HIGHCPU_96" + // "N2D_HIGHCPU_128" + // "N2D_HIGHCPU_224" + // "C2_STANDARD_4" + // "C2_STANDARD_8" + // "C2_STANDARD_16" + // "C2_STANDARD_30" + // "C2_STANDARD_60" + // "C2D_STANDARD_2" + // "C2D_STANDARD_4" + // "C2D_STANDARD_8" + // "C2D_STANDARD_16" + // "C2D_STANDARD_32" + // "C2D_STANDARD_56" + // "C2D_STANDARD_112" + // "C2D_HIGHCPU_2" + // "C2D_HIGHCPU_4" + // "C2D_HIGHCPU_8" + // "C2D_HIGHCPU_16" + // "C2D_HIGHCPU_32" + // "C2D_HIGHCPU_56" + // "C2D_HIGHCPU_112" + // "C2D_HIGHMEM_2" + // "C2D_HIGHMEM_4" + // "C2D_HIGHMEM_8" + // "C2D_HIGHMEM_16" + // "C2D_HIGHMEM_32" + // "C2D_HIGHMEM_56" + // "C2D_HIGHMEM_112" + // "G2_STANDARD_4" + // "G2_STANDARD_8" + // "G2_STANDARD_12" + // "G2_STANDARD_16" + // "G2_STANDARD_24" + // "G2_STANDARD_32" + // "G2_STANDARD_48" + // "G2_STANDARD_96" + // "C3_STANDARD_4" + // "C3_STANDARD_8" + // "C3_STANDARD_22" + // "C3_STANDARD_44" + // "C3_STANDARD_88" + // "C3_STANDARD_176" + // "C3_HIGHCPU_4" + // "C3_HIGHCPU_8" + // "C3_HIGHCPU_22" + // "C3_HIGHCPU_44" + // "C3_HIGHCPU_88" + // "C3_HIGHCPU_176" + // "C3_HIGHMEM_4" + // "C3_HIGHMEM_8" + // "C3_HIGHMEM_22" + // "C3_HIGHMEM_44" + // "C3_HIGHMEM_88" + // "C3_HIGHMEM_176" + MachineSpec string `json:"machineSpec,omitempty"` + + // Memories: Required. VM memory in gb. + Memories float64 `json:"memories,omitempty"` + + // RamType: Required. Type of ram. + // + // Possible values: + // "UNKNOWN_RAM_TYPE" + // "A2" + // "A3" + // "C2" - COMPUTE_OPTIMIZED + // "C2D" + // "CUSTOM" + // "E2" + // "G2" + // "C3" + // "M2" - MEMORY_OPTIMIZED_UPGRADE_PREMIUM + // "M1" - MEMORY_OPTIMIZED + // "N1" + // "N2_CUSTOM" + // "N2" + // "N2D" + RamType string `json:"ramType,omitempty"` + + // TrackingLabels: Billing tracking labels. They do not contain any user + // data but only the labels set by Vertex Core Infra itself. Tracking + // labels' keys are defined with special format: goog-[\p{Ll}\p{N}]+ + // E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + TrackingLabels map[string]string `json:"trackingLabels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GibSec") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1415,8 +2275,8 @@ type Sentence struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sentiment") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "GibSec") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1424,26 +2284,73 @@ type Sentence struct { NullFields []string `json:"-"` } -func (s *Sentence) MarshalJSON() ([]byte, error) { - type NoMethod Sentence +func (s *RamMetric) MarshalJSON() ([]byte, error) { + type NoMethod RamMetric raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Sentiment: Represents the feeling associated with the entire text or -// entities in the text. -type Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which - // represents the absolute magnitude of sentiment regardless of score - // (positive or negative). - Magnitude float64 `json:"magnitude,omitempty"` - - // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 - // (positive sentiment). - Score float64 `json:"score,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Magnitude") to - // unconditionally include in API requests. By default, fields with +func (s *RamMetric) UnmarshalJSON(data []byte) error { + type NoMethod RamMetric + var s1 struct { + Memories gensupport.JSONFloat64 `json:"memories"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Memories = float64(s1.Memories) + return nil +} + +// Sentence: Represents a sentence in the input document. +type Sentence struct { + // Sentiment: For calls to AnalyzeSentiment or if + // AnnotateTextRequest.Features.extract_document_sentiment is set to + // true, this field will contain the sentiment for the sentence. + Sentiment *Sentiment `json:"sentiment,omitempty"` + + // Text: The sentence text. + Text *TextSpan `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Sentiment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Sentiment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Sentence) MarshalJSON() ([]byte, error) { + type NoMethod Sentence + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Sentiment: Represents the feeling associated with the entire text or +// entities in the text. +type Sentiment struct { + // Magnitude: A non-negative number in the [0, +inf) range, which + // represents the absolute magnitude of sentiment regardless of score + // (positive or negative). + Magnitude float64 `json:"magnitude,omitempty"` + + // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 + // (positive sentiment). + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Magnitude") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. @@ -1598,25 +2505,123 @@ func (s *Token) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// V1Model: Options for the V1 model. -type V1Model struct { -} +type TpuMetric struct { + // TpuSec: Required. Seconds of TPU usage, e.g. 3600. + TpuSec int64 `json:"tpuSec,omitempty,string"` -// V2Model: Options for the V2 model. -type V2Model struct { - // ContentCategoriesVersion: The content categories used for - // classification. + // TpuType: Required. Type of TPU, e.g. TPU_V2, TPU_V3_POD. // // Possible values: - // "CONTENT_CATEGORIES_VERSION_UNSPECIFIED" - If - // `ContentCategoriesVersion` is not specified, this option will default - // to `V1`. - // "V1" - Legacy content categories of our initial launch in 2017. - // "V2" - Updated content categories in 2022. - ContentCategoriesVersion string `json:"contentCategoriesVersion,omitempty"` + // "UNKNOWN_TPU_TYPE" + // "TPU_V2_POD" + // "TPU_V2" + // "TPU_V3_POD" + // "TPU_V3" + // "TPU_V5_LITEPOD" + TpuType string `json:"tpuType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TpuSec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TpuSec") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TpuMetric) MarshalJSON() ([]byte, error) { + type NoMethod TpuMetric + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSArrayStats: The data statistics of a series of ARRAY values. +type XPSArrayStats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // MemberStats: Stats of all the values of all arrays, as if they were a + // single long series of data. The type depends on the element type of + // the array. + MemberStats *XPSDataStats `json:"memberStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSArrayStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSArrayStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSBatchPredictResponse struct { + // ExampleSet: Examples for batch prediction result. Under full API + // implementation, results are stored in shared RecordIO of + // AnnotatedExample protobufs, the annotations field of which is + // populated by XPS backend. + ExampleSet *XPSExampleSet `json:"exampleSet,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleSet") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleSet") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSBatchPredictResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSBatchPredictResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSBoundingBoxMetricsEntry: Bounding box matching model metrics for a +// single intersection-over-union threshold and multiple label match +// confidence thresholds. +type XPSBoundingBoxMetricsEntry struct { + // ConfidenceMetricsEntries: Metrics for each label-match + // confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + ConfidenceMetricsEntries []*XPSBoundingBoxMetricsEntryConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // IouThreshold: The intersection-over-union threshold value used to + // compute this metrics entry. + IouThreshold float64 `json:"iouThreshold,omitempty"` + + // MeanAveragePrecision: The mean average precision. + MeanAveragePrecision float64 `json:"meanAveragePrecision,omitempty"` // ForceSendFields is a list of field names (e.g. - // "ContentCategoriesVersion") to unconditionally include in API + // "ConfidenceMetricsEntries") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of @@ -1624,7 +2629,7 @@ type V2Model struct { // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContentCategoriesVersion") + // NullFields is a list of field names (e.g. "ConfidenceMetricsEntries") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the @@ -1634,8 +2639,5017 @@ type V2Model struct { NullFields []string `json:"-"` } -func (s *V2Model) MarshalJSON() ([]byte, error) { - type NoMethod V2Model +func (s *XPSBoundingBoxMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSBoundingBoxMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSBoundingBoxMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSBoundingBoxMetricsEntry + var s1 struct { + IouThreshold gensupport.JSONFloat64 `json:"iouThreshold"` + MeanAveragePrecision gensupport.JSONFloat64 `json:"meanAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.IouThreshold = float64(s1.IouThreshold) + s.MeanAveragePrecision = float64(s1.MeanAveragePrecision) + return nil +} + +// XPSBoundingBoxMetricsEntryConfidenceMetricsEntry: Metrics for a +// single confidence threshold. +type XPSBoundingBoxMetricsEntryConfidenceMetricsEntry struct { + // ConfidenceThreshold: The confidence threshold value used to compute + // the metrics. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // F1Score: The harmonic mean of recall and precision. + F1Score float64 `json:"f1Score,omitempty"` + + // Precision: Precision for the given confidence threshold. + Precision float64 `json:"precision,omitempty"` + + // Recall: Recall for the given confidence threshold. + Recall float64 `json:"recall,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSBoundingBoxMetricsEntryConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSBoundingBoxMetricsEntryConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSBoundingBoxMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSBoundingBoxMetricsEntryConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + F1Score gensupport.JSONFloat64 `json:"f1Score"` + Precision gensupport.JSONFloat64 `json:"precision"` + Recall gensupport.JSONFloat64 `json:"recall"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.F1Score = float64(s1.F1Score) + s.Precision = float64(s1.Precision) + s.Recall = float64(s1.Recall) + return nil +} + +// XPSCategoryStats: The data statistics of a series of CATEGORY values. +type XPSCategoryStats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // TopCategoryStats: The statistics of the top 20 CATEGORY values, + // ordered by CategoryStats.SingleCategoryStats.count. + TopCategoryStats []*XPSCategoryStatsSingleCategoryStats `json:"topCategoryStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSCategoryStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSCategoryStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSCategoryStatsSingleCategoryStats: The statistics of a single +// CATEGORY value. +type XPSCategoryStatsSingleCategoryStats struct { + // Count: The number of occurrences of this value in the series. + Count int64 `json:"count,omitempty,string"` + + // Value: The CATEGORY value. + Value string `json:"value,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSCategoryStatsSingleCategoryStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSCategoryStatsSingleCategoryStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSClassificationEvaluationMetrics: Model evaluation metrics for +// classification problems. It can be used for image and video +// classification. Next tag: 9. +type XPSClassificationEvaluationMetrics struct { + // AuPrc: The Area under precision recall curve metric. + AuPrc float64 `json:"auPrc,omitempty"` + + // AuRoc: The Area Under Receiver Operating Characteristic curve metric. + // Micro-averaged for the overall evaluation. + AuRoc float64 `json:"auRoc,omitempty"` + + // BaseAuPrc: The Area under precision recall curve metric based on + // priors. + BaseAuPrc float64 `json:"baseAuPrc,omitempty"` + + // ConfidenceMetricsEntries: Metrics that have confidence thresholds. + // Precision-recall curve can be derived from it. + ConfidenceMetricsEntries []*XPSConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // ConfusionMatrix: Confusion matrix of the evaluation. Only set for + // MULTICLASS classification problems where number of annotation specs + // is no more than 10. Only set for model level evaluation, not for + // evaluation per label. + ConfusionMatrix *XPSConfusionMatrix `json:"confusionMatrix,omitempty"` + + // EvaluatedExamplesCount: The number of examples used for model + // evaluation. + EvaluatedExamplesCount int64 `json:"evaluatedExamplesCount,omitempty"` + + // LogLoss: The Log Loss metric. + LogLoss float64 `json:"logLoss,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuPrc") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuPrc") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSClassificationEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSClassificationEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSClassificationEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSClassificationEvaluationMetrics + var s1 struct { + AuPrc gensupport.JSONFloat64 `json:"auPrc"` + AuRoc gensupport.JSONFloat64 `json:"auRoc"` + BaseAuPrc gensupport.JSONFloat64 `json:"baseAuPrc"` + LogLoss gensupport.JSONFloat64 `json:"logLoss"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AuPrc = float64(s1.AuPrc) + s.AuRoc = float64(s1.AuRoc) + s.BaseAuPrc = float64(s1.BaseAuPrc) + s.LogLoss = float64(s1.LogLoss) + return nil +} + +// XPSColorMap: Map from color to display name. Will only be used by +// Image Segmentation for uCAIP. +type XPSColorMap struct { + // AnnotationSpecIdToken: Should be used during training. + AnnotationSpecIdToken string `json:"annotationSpecIdToken,omitempty"` + + // Color: This type is deprecated in favor of the IntColor below. This + // is because google.type.Color represent color has a float which + // semantically does not reflect discrete classes/categories concept. + // Moreover, to handle it well we need to have some tolerance when + // converting to a discretized color. As such, the recommendation is to + // have API surface still use google.type.Color while internally + // IntColor is used. + Color *Color `json:"color,omitempty"` + + // DisplayName: Should be used during preprocessing. + DisplayName string `json:"displayName,omitempty"` + + IntColor *XPSColorMapIntColor `json:"intColor,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotationSpecIdToken") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecIdToken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSColorMap) MarshalJSON() ([]byte, error) { + type NoMethod XPSColorMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSColorMapIntColor: RGB color and each channel is represented by an +// integer. +type XPSColorMapIntColor struct { + // Blue: The value should be in range of [0, 255]. + Blue int64 `json:"blue,omitempty"` + + // Green: The value should be in range of [0, 255]. + Green int64 `json:"green,omitempty"` + + // Red: The value should be in range of [0, 255]. + Red int64 `json:"red,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Blue") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSColorMapIntColor) MarshalJSON() ([]byte, error) { + type NoMethod XPSColorMapIntColor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSColumnSpec struct { + // ColumnId: The unique id of the column. When Preprocess, the Tables BE + // will popuate the order id of the column, which reflects the order of + // the column inside the table, i.e. 0 means the first column in the + // table, N-1 means the last column. AutoML BE will persist this order + // id in Spanner and set the order id here when calling + // RefreshTablesStats and Train. Note: it's different than the + // column_spec_id that is generated in AutoML BE. + ColumnId int64 `json:"columnId,omitempty"` + + // DataStats: The data stats of the column. It's outputed in + // RefreshTablesStats and a required input for Train. + DataStats *XPSDataStats `json:"dataStats,omitempty"` + + // DataType: The data type of the column. It's outputed in Preprocess + // rpc and a required input for RefreshTablesStats and Train. + DataType *XPSDataType `json:"dataType,omitempty"` + + // DisplayName: The display name of the column. It's outputed in + // Preprocess and a required input for RefreshTablesStats and Train. + DisplayName string `json:"displayName,omitempty"` + + ForecastingMetadata *XPSColumnSpecForecastingMetadata `json:"forecastingMetadata,omitempty"` + + // TopCorrelatedColumns: It's outputed in RefreshTablesStats, and a + // required input in Train. + TopCorrelatedColumns []*XPSColumnSpecCorrelatedColumn `json:"topCorrelatedColumns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSColumnSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSColumnSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSColumnSpecCorrelatedColumn: Identifies a table's column, and its +// correlation with the column this ColumnSpec describes. +type XPSColumnSpecCorrelatedColumn struct { + ColumnId int64 `json:"columnId,omitempty"` + + CorrelationStats *XPSCorrelationStats `json:"correlationStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSColumnSpecCorrelatedColumn) MarshalJSON() ([]byte, error) { + type NoMethod XPSColumnSpecCorrelatedColumn + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSColumnSpecForecastingMetadata: +// ====================================================================== +// ===== # The fields below are used exclusively for Forecasting. +type XPSColumnSpecForecastingMetadata struct { + // ColumnType: The type of the column for FORECASTING model training + // purposes. + // + // Possible values: + // "COLUMN_TYPE_UNSPECIFIED" - An un-set value of this enum. + // "KEY" - Key columns are used to identify timeseries. + // "KEY_METADATA" - This column contains information describing static + // properties of the entities identified by the key column(s) (e.g. + // city's ZIP code). + // "TIME_SERIES_AVAILABLE_PAST_ONLY" - This column contains + // information for the given entity, at any time poinrt, they are only + // available in the time series before. + // "TIME_SERIES_AVAILABLE_PAST_AND_FUTURE" - This column contains + // information for the given entity is known both for the past and the + // sufficiently far future. + ColumnType string `json:"columnType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSColumnSpecForecastingMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSColumnSpecForecastingMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSCommonStats: Common statistics for a column with a specified data +// type. +type XPSCommonStats struct { + DistinctValueCount int64 `json:"distinctValueCount,omitempty,string"` + + NullValueCount int64 `json:"nullValueCount,omitempty,string"` + + ValidValueCount int64 `json:"validValueCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DistinctValueCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DistinctValueCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSCommonStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSCommonStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSConfidenceMetricsEntry: ConfidenceMetricsEntry includes generic +// precision, recall, f1 score etc. Next tag: 16. +type XPSConfidenceMetricsEntry struct { + // ConfidenceThreshold: Metrics are computed with an assumption that the + // model never return predictions with score lower than this value. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // F1Score: The harmonic mean of recall and precision. + F1Score float64 `json:"f1Score,omitempty"` + + // F1ScoreAt1: The harmonic mean of recall_at1 and precision_at1. + F1ScoreAt1 float64 `json:"f1ScoreAt1,omitempty"` + + // FalseNegativeCount: The number of ground truth labels that are not + // matched by a model created label. + FalseNegativeCount int64 `json:"falseNegativeCount,omitempty,string"` + + // FalsePositiveCount: The number of model created labels that do not + // match a ground truth label. + FalsePositiveCount int64 `json:"falsePositiveCount,omitempty,string"` + + // FalsePositiveRate: False Positive Rate for the given confidence + // threshold. + FalsePositiveRate float64 `json:"falsePositiveRate,omitempty"` + + // FalsePositiveRateAt1: The False Positive Rate when only considering + // the label that has the highest prediction score and not below the + // confidence threshold for each example. + FalsePositiveRateAt1 float64 `json:"falsePositiveRateAt1,omitempty"` + + // PositionThreshold: Metrics are computed with an assumption that the + // model always returns at most this many predictions (ordered by their + // score, descendingly), but they all still need to meet the + // confidence_threshold. + PositionThreshold int64 `json:"positionThreshold,omitempty"` + + // Precision: Precision for the given confidence threshold. + Precision float64 `json:"precision,omitempty"` + + // PrecisionAt1: The precision when only considering the label that has + // the highest prediction score and not below the confidence threshold + // for each example. + PrecisionAt1 float64 `json:"precisionAt1,omitempty"` + + // Recall: Recall (true positive rate) for the given confidence + // threshold. + Recall float64 `json:"recall,omitempty"` + + // RecallAt1: The recall (true positive rate) when only considering the + // label that has the highest prediction score and not below the + // confidence threshold for each example. + RecallAt1 float64 `json:"recallAt1,omitempty"` + + // TrueNegativeCount: The number of labels that were not created by the + // model, but if they would, they would not match a ground truth label. + TrueNegativeCount int64 `json:"trueNegativeCount,omitempty,string"` + + // TruePositiveCount: The number of model created labels that match a + // ground truth label. + TruePositiveCount int64 `json:"truePositiveCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + F1Score gensupport.JSONFloat64 `json:"f1Score"` + F1ScoreAt1 gensupport.JSONFloat64 `json:"f1ScoreAt1"` + FalsePositiveRate gensupport.JSONFloat64 `json:"falsePositiveRate"` + FalsePositiveRateAt1 gensupport.JSONFloat64 `json:"falsePositiveRateAt1"` + Precision gensupport.JSONFloat64 `json:"precision"` + PrecisionAt1 gensupport.JSONFloat64 `json:"precisionAt1"` + Recall gensupport.JSONFloat64 `json:"recall"` + RecallAt1 gensupport.JSONFloat64 `json:"recallAt1"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.F1Score = float64(s1.F1Score) + s.F1ScoreAt1 = float64(s1.F1ScoreAt1) + s.FalsePositiveRate = float64(s1.FalsePositiveRate) + s.FalsePositiveRateAt1 = float64(s1.FalsePositiveRateAt1) + s.Precision = float64(s1.Precision) + s.PrecisionAt1 = float64(s1.PrecisionAt1) + s.Recall = float64(s1.Recall) + s.RecallAt1 = float64(s1.RecallAt1) + return nil +} + +// XPSConfusionMatrix: Confusion matrix of the model running the +// classification. +type XPSConfusionMatrix struct { + // AnnotationSpecIdToken: For the following three repeated fields, only + // one is intended to be set. annotation_spec_id_token is preferable to + // be set. ID tokens of the annotation specs used in the confusion + // matrix. + AnnotationSpecIdToken []string `json:"annotationSpecIdToken,omitempty"` + + // Category: Category (mainly for segmentation). Set only for image + // segmentation models. Note: uCAIP Image Segmentation should use + // annotation_spec_id_token. + Category []int64 `json:"category,omitempty"` + + // Row: Rows in the confusion matrix. The number of rows is equal to the + // size of `annotation_spec_id_token`. `row[i].value[j]` is the number + // of examples that have ground truth of the + // `annotation_spec_id_token[i]` and are predicted as + // `annotation_spec_id_token[j]` by the model being evaluated. + Row []*XPSConfusionMatrixRow `json:"row,omitempty"` + + // SentimentLabel: Sentiment labels used in the confusion matrix. Set + // only for text sentiment models. For AutoML Text Revamp, use + // `annotation_spec_id_token` instead and leave this field empty. + SentimentLabel []int64 `json:"sentimentLabel,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotationSpecIdToken") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecIdToken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSConfusionMatrix) MarshalJSON() ([]byte, error) { + type NoMethod XPSConfusionMatrix + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSConfusionMatrixRow: A row in the confusion matrix. +type XPSConfusionMatrixRow struct { + // Count: Same as above except intended to represent other counts (for + // e.g. for segmentation this is pixel count). NOTE(params): Only + // example_count or count is set (oneoff does not support repeated + // fields unless they are embedded inside another message). + Count googleapi.Int64s `json:"count,omitempty"` + + // ExampleCount: Value of the specific cell in the confusion matrix. The + // number of values each row has (i.e. the length of the row) is equal + // to the length of the annotation_spec_id_token field. + ExampleCount []int64 `json:"exampleCount,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSConfusionMatrixRow) MarshalJSON() ([]byte, error) { + type NoMethod XPSConfusionMatrixRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSCoreMlFormat: A model format used for iOS mobile devices. +type XPSCoreMlFormat struct { +} + +// XPSCorrelationStats: A correlation statistics between two series of +// DataType values. The series may have differing DataType-s, but within +// a single series the DataType must be the same. +type XPSCorrelationStats struct { + // CramersV: The correlation value using the Cramer's V measure. + CramersV float64 `json:"cramersV,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CramersV") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CramersV") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSCorrelationStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSCorrelationStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSCorrelationStats) UnmarshalJSON(data []byte) error { + type NoMethod XPSCorrelationStats + var s1 struct { + CramersV gensupport.JSONFloat64 `json:"cramersV"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CramersV = float64(s1.CramersV) + return nil +} + +// XPSDataErrors: Different types of errors and the stats associatesd +// with each error. +type XPSDataErrors struct { + // Count: Number of records having errors associated with the enum. + Count int64 `json:"count,omitempty"` + + // ErrorType: Type of the error. + // + // Possible values: + // "ERROR_TYPE_UNSPECIFIED" - Not specified. + // "UNSUPPORTED_AUDIO_FORMAT" - Audio format not in the formats by + // cloud-speech AutoML. Currently only wav and flac file formats are + // supported. + // "FILE_EXTENSION_MISMATCH_WITH_AUDIO_FORMAT" - File format differnt + // from what is specified in the file name extension. + // "FILE_TOO_LARGE" - File too large. Maximum allowed size is 50 MB. + // "MISSING_TRANSCRIPTION" - Transcript is missing. + ErrorType string `json:"errorType,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSDataErrors) MarshalJSON() ([]byte, error) { + type NoMethod XPSDataErrors + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSDataStats: The data statistics of a series of values that share +// the same DataType. +type XPSDataStats struct { + // ArrayStats: The statistics for ARRAY DataType. + ArrayStats *XPSArrayStats `json:"arrayStats,omitempty"` + + // CategoryStats: The statistics for CATEGORY DataType. + CategoryStats *XPSCategoryStats `json:"categoryStats,omitempty"` + + // DistinctValueCount: The number of distinct values. + DistinctValueCount int64 `json:"distinctValueCount,omitempty,string"` + + // Float64Stats: The statistics for FLOAT64 DataType. + Float64Stats *XPSFloat64Stats `json:"float64Stats,omitempty"` + + // NullValueCount: The number of values that are null. + NullValueCount int64 `json:"nullValueCount,omitempty,string"` + + // StringStats: The statistics for STRING DataType. + StringStats *XPSStringStats `json:"stringStats,omitempty"` + + // StructStats: The statistics for STRUCT DataType. + StructStats *XPSStructStats `json:"structStats,omitempty"` + + // TimestampStats: The statistics for TIMESTAMP DataType. + TimestampStats *XPSTimestampStats `json:"timestampStats,omitempty"` + + // ValidValueCount: The number of values that are valid. + ValidValueCount int64 `json:"validValueCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ArrayStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArrayStats") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSDataStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSDataStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSDataType: Indicated the type of data that can be stored in a +// structured data entity (e.g. a table). +type XPSDataType struct { + // CompatibleDataTypes: The highly compatible data types to this data + // type. + CompatibleDataTypes []*XPSDataType `json:"compatibleDataTypes,omitempty"` + + // ListElementType: If type_code == ARRAY, then `list_element_type` is + // the type of the elements. + ListElementType *XPSDataType `json:"listElementType,omitempty"` + + // Nullable: If true, this DataType can also be `null`. + Nullable bool `json:"nullable,omitempty"` + + // StructType: If type_code == STRUCT, then `struct_type` provides type + // information for the struct's fields. + StructType *XPSStructType `json:"structType,omitempty"` + + // TimeFormat: If type_code == TIMESTAMP then `time_format` provides the + // format in which that time field is expressed. The time_format must be + // written in `strftime` syntax. If time_format is not set, then the + // default format as described on the field is used. + TimeFormat string `json:"timeFormat,omitempty"` + + // TypeCode: Required. The TypeCode for this type. + // + // Possible values: + // "TYPE_CODE_UNSPECIFIED" - Not specified. Should not be used. + // "FLOAT64" - Encoded as `number`, or the strings "NaN", + // "Infinity", or "-Infinity". + // "TIMESTAMP" - Must be between 0AD and 9999AD. Encoded as `string` + // according to time_format, or, if that format is not set, then in RFC + // 3339 `date-time` format, where `time-offset` = "Z" (e.g. + // 1985-04-12T23:20:50.52Z). + // "STRING" - Encoded as `string`. + // "ARRAY" - Encoded as `list`, where the list elements are + // represented according to list_element_type. + // "STRUCT" - Encoded as `struct`, where field values are represented + // according to struct_type. + // "CATEGORY" - Values of this type are not further understood by + // AutoML, e.g. AutoML is unable to tell the order of values (as it + // could with FLOAT64), or is unable to say if one value contains + // another (as it could with STRING). Encoded as `string` (bytes should + // be base64-encoded, as described in RFC 4648, section 4). + TypeCode string `json:"typeCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompatibleDataTypes") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CompatibleDataTypes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSDataType) MarshalJSON() ([]byte, error) { + type NoMethod XPSDataType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSDockerFormat: A model format used for Docker containers. Use the +// params field to customize the container. The container is verified to +// work correctly on ubuntu 16.04 operating system. +type XPSDockerFormat struct { + // CpuArchitecture: Optional. Additional cpu information describing the + // requirements for the to be exported model files. + // + // Possible values: + // "CPU_ARCHITECTURE_UNSPECIFIED" + // "CPU_ARCHITECTURE_X86_64" + CpuArchitecture string `json:"cpuArchitecture,omitempty"` + + // GpuArchitecture: Optional. Additional gpu information describing the + // requirements for the to be exported model files. + // + // Possible values: + // "GPU_ARCHITECTURE_UNSPECIFIED" + // "GPU_ARCHITECTURE_NVIDIA" + GpuArchitecture string `json:"gpuArchitecture,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CpuArchitecture") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CpuArchitecture") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSDockerFormat) MarshalJSON() ([]byte, error) { + type NoMethod XPSDockerFormat + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSEdgeTpuTfLiteFormat: A model format used for Edge TPU +// (https://cloud.google.com/edge-tpu/) devices. +type XPSEdgeTpuTfLiteFormat struct { +} + +// XPSEvaluationMetrics: Contains xPS-specific model evaluation metrics +// either for a single annotation spec (label), or for the model +// overall. Next tag: 18. +type XPSEvaluationMetrics struct { + // AnnotationSpecIdToken: The annotation_spec for which this evaluation + // metrics instance had been created. Empty iff this is an overall model + // evaluation (like Tables evaluation metrics), i.e. aggregated across + // all labels. The value comes from the input annotations in + // AnnotatedExample. For MVP product or for text sentiment models where + // annotation_spec_id_token is not available, set label instead. + AnnotationSpecIdToken string `json:"annotationSpecIdToken,omitempty"` + + // Category: The integer category label for which this evaluation metric + // instance had been created. Valid categories are 0 or higher. Overall + // model evaluation should set this to negative values (rather than + // implicit zero). Only used for Image Segmentation (prefer to set + // annotation_spec_id_token instead). Note: uCAIP Image Segmentation + // should use annotation_spec_id_token. + Category int64 `json:"category,omitempty"` + + // EvaluatedExampleCount: The number of examples used to create this + // evaluation metrics instance. + EvaluatedExampleCount int64 `json:"evaluatedExampleCount,omitempty"` + + ImageClassificationEvalMetrics *XPSClassificationEvaluationMetrics `json:"imageClassificationEvalMetrics,omitempty"` + + ImageObjectDetectionEvalMetrics *XPSImageObjectDetectionEvaluationMetrics `json:"imageObjectDetectionEvalMetrics,omitempty"` + + ImageSegmentationEvalMetrics *XPSImageSegmentationEvaluationMetrics `json:"imageSegmentationEvalMetrics,omitempty"` + + // Label: The label for which this evaluation metrics instance had been + // created. Empty iff this is an overall model evaluation (like Tables + // evaluation metrics), i.e. aggregated across all labels. The label + // maps to AnnotationSpec.display_name in Public API protos. Only used + // by MVP implementation and text sentiment FULL implementation. + Label string `json:"label,omitempty"` + + RegressionEvalMetrics *XPSRegressionEvaluationMetrics `json:"regressionEvalMetrics,omitempty"` + + TablesClassificationEvalMetrics *XPSClassificationEvaluationMetrics `json:"tablesClassificationEvalMetrics,omitempty"` + + TablesEvalMetrics *XPSTablesEvaluationMetrics `json:"tablesEvalMetrics,omitempty"` + + TextClassificationEvalMetrics *XPSClassificationEvaluationMetrics `json:"textClassificationEvalMetrics,omitempty"` + + TextExtractionEvalMetrics *XPSTextExtractionEvaluationMetrics `json:"textExtractionEvalMetrics,omitempty"` + + TextSentimentEvalMetrics *XPSTextSentimentEvaluationMetrics `json:"textSentimentEvalMetrics,omitempty"` + + TranslationEvalMetrics *XPSTranslationEvaluationMetrics `json:"translationEvalMetrics,omitempty"` + + VideoActionRecognitionEvalMetrics *XPSVideoActionRecognitionEvaluationMetrics `json:"videoActionRecognitionEvalMetrics,omitempty"` + + VideoClassificationEvalMetrics *XPSClassificationEvaluationMetrics `json:"videoClassificationEvalMetrics,omitempty"` + + VideoObjectTrackingEvalMetrics *XPSVideoObjectTrackingEvaluationMetrics `json:"videoObjectTrackingEvalMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotationSpecIdToken") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnnotationSpecIdToken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSEvaluationMetricsSet: Specifies location of model evaluation +// metrics. +type XPSEvaluationMetricsSet struct { + // EvaluationMetrics: Inline EvaluationMetrics - should be relatively + // small. For passing large quantities of exhaustive metrics, use + // file_spec. + EvaluationMetrics []*XPSEvaluationMetrics `json:"evaluationMetrics,omitempty"` + + // FileSpec: File spec containing evaluation metrics of a model, must + // point to RecordIO file(s) of + // intelligence.cloud.automl.xps.EvaluationMetrics messages. + FileSpec *XPSFileSpec `json:"fileSpec,omitempty"` + + // NumEvaluationMetrics: Number of the evaluation metrics (usually one + // per label plus overall). + NumEvaluationMetrics int64 `json:"numEvaluationMetrics,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "EvaluationMetrics") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EvaluationMetrics") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSEvaluationMetricsSet) MarshalJSON() ([]byte, error) { + type NoMethod XPSEvaluationMetricsSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSExampleSet: Set of examples or input sources. +type XPSExampleSet struct { + // FileSpec: File spec of the examples or input sources. + FileSpec *XPSFileSpec `json:"fileSpec,omitempty"` + + // Fingerprint: Fingerprint of the example set. + Fingerprint int64 `json:"fingerprint,omitempty,string"` + + // NumExamples: Number of examples. + NumExamples int64 `json:"numExamples,omitempty,string"` + + // NumInputSources: Number of input sources. + NumInputSources int64 `json:"numInputSources,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "FileSpec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FileSpec") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSExampleSet) MarshalJSON() ([]byte, error) { + type NoMethod XPSExampleSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSExportModelOutputConfig struct { + CoreMlFormat *XPSCoreMlFormat `json:"coreMlFormat,omitempty"` + + DockerFormat *XPSDockerFormat `json:"dockerFormat,omitempty"` + + EdgeTpuTfLiteFormat *XPSEdgeTpuTfLiteFormat `json:"edgeTpuTfLiteFormat,omitempty"` + + // ExportFirebaseAuxiliaryInfo: For any model and format: If true, will + // additionally export FirebaseExportedModelInfo in a firebase.txt file. + ExportFirebaseAuxiliaryInfo bool `json:"exportFirebaseAuxiliaryInfo,omitempty"` + + // OutputGcrUri: The Google Contained Registry (GCR) path the exported + // files to be pushed to. This location is set if the exported format is + // DOCKDER. + OutputGcrUri string `json:"outputGcrUri,omitempty"` + + // OutputGcsUri: The Google Cloud Storage (GCS) directory where XPS will + // output the exported models and related files. Format: + // gs://bucket/directory + OutputGcsUri string `json:"outputGcsUri,omitempty"` + + TfJsFormat *XPSTfJsFormat `json:"tfJsFormat,omitempty"` + + TfLiteFormat *XPSTfLiteFormat `json:"tfLiteFormat,omitempty"` + + TfSavedModelFormat *XPSTfSavedModelFormat `json:"tfSavedModelFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CoreMlFormat") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CoreMlFormat") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSExportModelOutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod XPSExportModelOutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSFileSpec: Spec of input and output files, on external file systems +// (CNS, GCS, etc). +type XPSFileSpec struct { + // DirectoryPath: Deprecated. Use file_spec. + DirectoryPath string `json:"directoryPath,omitempty"` + + // Possible values: + // "FILE_FORMAT_UNKNOWN" + // "FILE_FORMAT_SSTABLE" + // "FILE_FORMAT_TRANSLATION_RKV" - Internal format for parallel text + // data used by Google Translate. go/rkvtools + // "FILE_FORMAT_RECORDIO" + // "FILE_FORMAT_RAW_CSV" - Only the lexicographically first file + // described by the file_spec contains the header line. + // "FILE_FORMAT_RAW_CAPACITOR" + FileFormat string `json:"fileFormat,omitempty"` + + // FileSpec: Single file path, or file pattern of format + // "/path/to/file@shard_count". E.g. /cns/cell-d/somewhere/file@2 is + // expanded to two files: /cns/cell-d/somewhere/file-00000-of-00002 and + // /cns/cell-d/somewhere/file-00001-of-00002. + FileSpec string `json:"fileSpec,omitempty"` + + // SingleFilePath: Deprecated. Use file_spec. + SingleFilePath string `json:"singleFilePath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DirectoryPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DirectoryPath") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSFileSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSFileSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSFloat64Stats: The data statistics of a series of FLOAT64 values. +type XPSFloat64Stats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // HistogramBuckets: Histogram buckets of the data series. Sorted by the + // min value of the bucket, ascendingly, and the number of the buckets + // is dynamically generated. The buckets are non-overlapping and + // completely cover whole FLOAT64 range with min of first bucket being + // "-Infinity", and max of the last one being "Infinity". + HistogramBuckets []*XPSFloat64StatsHistogramBucket `json:"histogramBuckets,omitempty"` + + // Mean: The mean of the series. + Mean float64 `json:"mean,omitempty"` + + // Quantiles: Ordered from 0 to k k-quantile values of the data series + // of n values. The value at index i is, approximately, the i*n/k-th + // smallest value in the series; for i = 0 and i = k these are, + // respectively, the min and max values. + Quantiles []float64 `json:"quantiles,omitempty"` + + // StandardDeviation: The standard deviation of the series. + StandardDeviation float64 `json:"standardDeviation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSFloat64Stats) MarshalJSON() ([]byte, error) { + type NoMethod XPSFloat64Stats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSFloat64Stats) UnmarshalJSON(data []byte) error { + type NoMethod XPSFloat64Stats + var s1 struct { + Mean gensupport.JSONFloat64 `json:"mean"` + Quantiles []gensupport.JSONFloat64 `json:"quantiles"` + StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Mean = float64(s1.Mean) + s.Quantiles = make([]float64, len(s1.Quantiles)) + for i := range s1.Quantiles { + s.Quantiles[i] = float64(s1.Quantiles[i]) + } + s.StandardDeviation = float64(s1.StandardDeviation) + return nil +} + +// XPSFloat64StatsHistogramBucket: A bucket of a histogram. +type XPSFloat64StatsHistogramBucket struct { + // Count: The number of data values that are in the bucket, i.e. are + // between min and max values. + Count int64 `json:"count,omitempty,string"` + + // Max: The maximum value of the bucket, exclusive unless max = + // "Infinity", in which case it's inclusive. + Max float64 `json:"max,omitempty"` + + // Min: The minimum value of the bucket, inclusive. + Min float64 `json:"min,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSFloat64StatsHistogramBucket) MarshalJSON() ([]byte, error) { + type NoMethod XPSFloat64StatsHistogramBucket + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSFloat64StatsHistogramBucket) UnmarshalJSON(data []byte) error { + type NoMethod XPSFloat64StatsHistogramBucket + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Min gensupport.JSONFloat64 `json:"min"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Min = float64(s1.Min) + return nil +} + +type XPSImageClassificationTrainResponse struct { + // ClassCount: Total number of classes. + ClassCount int64 `json:"classCount,omitempty,string"` + + // ExportModelSpec: Information of downloadable models that are + // pre-generated as part of training flow and will be persisted in + // AutoMl backend. Populated for AutoMl requests. + ExportModelSpec *XPSImageExportModelSpec `json:"exportModelSpec,omitempty"` + + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. + ModelArtifactSpec *XPSImageModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + ModelServingSpec *XPSImageModelServingSpec `json:"modelServingSpec,omitempty"` + + // StopReason: Stop reason for training job, e.g. + // 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED', 'MODEL_EARLY_STOPPED'. + // + // Possible values: + // "TRAIN_STOP_REASON_UNSPECIFIED" + // "TRAIN_STOP_REASON_BUDGET_REACHED" + // "TRAIN_STOP_REASON_MODEL_CONVERGED" - Model fully converged, can + // not be resumbed training. + // "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" - Model early converged, + // can be further trained till full convergency. + StopReason string `json:"stopReason,omitempty"` + + // TrainCostInNodeTime: The actual cost to create this model. - For edge + // type model, the cost is expressed in node hour. - For cloud type + // model,the cost is expressed in compute hour. - Populated for models + // created before GA. To be deprecated after GA. + TrainCostInNodeTime string `json:"trainCostInNodeTime,omitempty"` + + // TrainCostNodeSeconds: The actual training cost, expressed in node + // seconds. Populated for models trained in node time. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ClassCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClassCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageClassificationTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageClassificationTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSImageExportModelSpec: Information of downloadable models that are +// pre-generated as part of training flow and will be persisted in +// AutoMl backend. Upon receiving ExportModel request from user, AutoMl +// backend can serve the pre-generated models to user if exists (by +// copying the files from internal path to user provided location), +// otherwise, AutoMl backend will call xPS ExportModel API to generate +// the model on the fly with the requesting format. +type XPSImageExportModelSpec struct { + // ExportModelOutputConfig: Contains the model format and internal + // location of the model files to be exported/downloaded. Use the GCS + // bucket name which is provided via TrainRequest.gcs_bucket_name to + // store the model files. + ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ExportModelOutputConfig") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExportModelOutputConfig") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageExportModelSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageExportModelSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSImageModelArtifactSpec: Stores the locations and related metadata +// of the model artifacts. Populated for uCAIP requests only. +type XPSImageModelArtifactSpec struct { + // CheckpointArtifact: The Tensorflow checkpoint files. e.g. Used for + // resumable training. + CheckpointArtifact *XPSModelArtifactItem `json:"checkpointArtifact,omitempty"` + + // ExportArtifact: The model binary files in different formats for model + // export. + ExportArtifact []*XPSModelArtifactItem `json:"exportArtifact,omitempty"` + + // LabelGcsUri: GCS uri of decoded labels file for model export + // 'dict.txt'. + LabelGcsUri string `json:"labelGcsUri,omitempty"` + + // ServingArtifact: The default model binary file used for serving (e.g. + // online predict, batch predict) via public Cloud AI Platform API. + ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` + + // TfJsBinaryGcsPrefix: GCS uri prefix of Tensorflow JavaScript binary + // files 'groupX-shardXofX.bin' Deprecated. + TfJsBinaryGcsPrefix string `json:"tfJsBinaryGcsPrefix,omitempty"` + + // TfLiteMetadataGcsUri: GCS uri of Tensorflow Lite metadata + // 'tflite_metadata.json'. + TfLiteMetadataGcsUri string `json:"tfLiteMetadataGcsUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CheckpointArtifact") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CheckpointArtifact") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageModelArtifactSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageModelArtifactSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSImageModelServingSpec: Serving specification for image models. +type XPSImageModelServingSpec struct { + // ModelThroughputEstimation: Populate under uCAIP request scope. + ModelThroughputEstimation []*XPSImageModelServingSpecModelThroughputEstimation `json:"modelThroughputEstimation,omitempty"` + + // NodeQps: An estimated value of how much traffic a node can serve. + // Populated for AutoMl request only. + NodeQps float64 `json:"nodeQps,omitempty"` + + // TfRuntimeVersion: ## The fields below are only populated under uCAIP + // request scope. + // https://cloud.google.com/ml-engine/docs/runtime-version-list + TfRuntimeVersion string `json:"tfRuntimeVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ModelThroughputEstimation") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ModelThroughputEstimation") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageModelServingSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageModelServingSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSImageModelServingSpec) UnmarshalJSON(data []byte) error { + type NoMethod XPSImageModelServingSpec + var s1 struct { + NodeQps gensupport.JSONFloat64 `json:"nodeQps"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NodeQps = float64(s1.NodeQps) + return nil +} + +type XPSImageModelServingSpecModelThroughputEstimation struct { + // Possible values: + // "UNSPECIFIED" + // "NVIDIA_TESLA_K80" - Nvidia Tesla K80 GPU. + // "NVIDIA_TESLA_P100" - Nvidia Tesla P100 GPU. + // "NVIDIA_TESLA_V100" - Nvidia Tesla V100 GPU. + // "NVIDIA_TESLA_P4" - Nvidia Tesla P4 GPU. + // "NVIDIA_TESLA_T4" - Nvidia Tesla T4 GPU. + // "NVIDIA_TESLA_A100" - Nvidia Tesla A100 GPU. + // "NVIDIA_A100_80GB" - Nvidia A100 80GB GPU. + // "NVIDIA_L4" - Nvidia L4 GPU. + // "NVIDIA_H100_80GB" - Nvidia H100 80Gb GPU. + // "TPU_V2" - TPU v2 (JellyFish). + // "TPU_V3" - TPU v3 (DragonFish). + // "TPU_V4_POD" - TPU_v4 (PufferFish). + // "TPU_V5_LITEPOD" - TPU v5 Lite Pods. + ComputeEngineAcceleratorType string `json:"computeEngineAcceleratorType,omitempty"` + + // LatencyInMilliseconds: Estimated latency. + LatencyInMilliseconds float64 `json:"latencyInMilliseconds,omitempty"` + + // NodeQps: The approximate qps a deployed node can serve. + NodeQps float64 `json:"nodeQps,omitempty"` + + // Possible values: + // "PARTITION_TYPE_UNSPECIFIED" + // "PARTITION_ZERO" - The default partition. + // "PARTITION_REDUCED_HOMING" - It has significantly lower replication + // than partition-0 and is located in the US only. It also has a larger + // model size limit and higher default RAM quota than partition-0. + // Customers with batch traffic, US-based traffic, or very large models + // should use this partition. Capacity in this partition is + // significantly cheaper than partition-0. + // "PARTITION_JELLYFISH" - To be used by customers with + // Jellyfish-accelerated ops. See go/servomatic-jellyfish for details. + // "PARTITION_CPU" - The partition used by regionalized servomatic + // cloud regions. + // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading + // models from custom storage. + ServomaticPartitionType string `json:"servomaticPartitionType,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ComputeEngineAcceleratorType") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ComputeEngineAcceleratorType") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageModelServingSpecModelThroughputEstimation) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageModelServingSpecModelThroughputEstimation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSImageModelServingSpecModelThroughputEstimation) UnmarshalJSON(data []byte) error { + type NoMethod XPSImageModelServingSpecModelThroughputEstimation + var s1 struct { + LatencyInMilliseconds gensupport.JSONFloat64 `json:"latencyInMilliseconds"` + NodeQps gensupport.JSONFloat64 `json:"nodeQps"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LatencyInMilliseconds = float64(s1.LatencyInMilliseconds) + s.NodeQps = float64(s1.NodeQps) + return nil +} + +// XPSImageObjectDetectionEvaluationMetrics: Model evaluation metrics +// for image object detection problems. Evaluates prediction quality of +// labeled bounding boxes. +type XPSImageObjectDetectionEvaluationMetrics struct { + // BoundingBoxMeanAveragePrecision: The single metric for bounding boxes + // evaluation: the mean_average_precision averaged over all + // bounding_box_metrics_entries. + BoundingBoxMeanAveragePrecision float64 `json:"boundingBoxMeanAveragePrecision,omitempty"` + + // BoundingBoxMetricsEntries: The bounding boxes match metrics for each + // Intersection-over-union threshold + // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence + // threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 pair. + BoundingBoxMetricsEntries []*XPSBoundingBoxMetricsEntry `json:"boundingBoxMetricsEntries,omitempty"` + + // EvaluatedBoundingBoxCount: The total number of bounding boxes (i.e. + // summed over all images) the ground truth used to create this + // evaluation had. + EvaluatedBoundingBoxCount int64 `json:"evaluatedBoundingBoxCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BoundingBoxMeanAveragePrecision") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "BoundingBoxMeanAveragePrecision") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageObjectDetectionEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageObjectDetectionEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSImageObjectDetectionEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSImageObjectDetectionEvaluationMetrics + var s1 struct { + BoundingBoxMeanAveragePrecision gensupport.JSONFloat64 `json:"boundingBoxMeanAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BoundingBoxMeanAveragePrecision = float64(s1.BoundingBoxMeanAveragePrecision) + return nil +} + +type XPSImageObjectDetectionModelSpec struct { + // ClassCount: Total number of classes. + ClassCount int64 `json:"classCount,omitempty,string"` + + ExportModelSpec *XPSImageExportModelSpec `json:"exportModelSpec,omitempty"` + + // MaxBoundingBoxCount: Max number of bounding box. + MaxBoundingBoxCount int64 `json:"maxBoundingBoxCount,omitempty,string"` + + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. + ModelArtifactSpec *XPSImageModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + ModelServingSpec *XPSImageModelServingSpec `json:"modelServingSpec,omitempty"` + + // StopReason: Stop reason for training job, e.g. + // 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'. + // + // Possible values: + // "TRAIN_STOP_REASON_UNSPECIFIED" + // "TRAIN_STOP_REASON_BUDGET_REACHED" + // "TRAIN_STOP_REASON_MODEL_CONVERGED" - Model fully converged, can + // not be resumbed training. + // "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" - Model early converged, + // can be further trained till full convergency. + StopReason string `json:"stopReason,omitempty"` + + // TrainCostNodeSeconds: The actual train cost of creating this model, + // expressed in node seconds, i.e. 3,600 value in this field means 1 + // node hour. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ClassCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClassCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageObjectDetectionModelSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageObjectDetectionModelSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSImageSegmentationEvaluationMetrics: Model evaluation metrics for +// image segmentation problems. Next tag: 4. +type XPSImageSegmentationEvaluationMetrics struct { + // ConfidenceMetricsEntries: Metrics that have confidence thresholds. + // Precision-recall curve can be derived from it. + ConfidenceMetricsEntries []*XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConfidenceMetricsEntries") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceMetricsEntries") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageSegmentationEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageSegmentationEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry: Metrics +// for a single confidence threshold. +type XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry struct { + // ConfidenceThreshold: The confidence threshold value used to compute + // the metrics. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // ConfusionMatrix: Confusion matrix of the per confidence_threshold + // evaluation. Pixel counts are set here. Only set for model level + // evaluation, not for evaluation per label. + ConfusionMatrix *XPSConfusionMatrix `json:"confusionMatrix,omitempty"` + + // DiceScoreCoefficient: DSC or the F1 score: The harmonic mean of + // recall and precision. + DiceScoreCoefficient float64 `json:"diceScoreCoefficient,omitempty"` + + // IouScore: IOU score. + IouScore float64 `json:"iouScore,omitempty"` + + // Precision: Precision for the given confidence threshold. + Precision float64 `json:"precision,omitempty"` + + // Recall: Recall for the given confidence threshold. + Recall float64 `json:"recall,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + DiceScoreCoefficient gensupport.JSONFloat64 `json:"diceScoreCoefficient"` + IouScore gensupport.JSONFloat64 `json:"iouScore"` + Precision gensupport.JSONFloat64 `json:"precision"` + Recall gensupport.JSONFloat64 `json:"recall"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.DiceScoreCoefficient = float64(s1.DiceScoreCoefficient) + s.IouScore = float64(s1.IouScore) + s.Precision = float64(s1.Precision) + s.Recall = float64(s1.Recall) + return nil +} + +type XPSImageSegmentationTrainResponse struct { + // ColorMaps: Color map of the model. + ColorMaps []*XPSColorMap `json:"colorMaps,omitempty"` + + // ExportModelSpec: NOTE: These fields are not used/needed in EAP but + // will be set later. + ExportModelSpec *XPSImageExportModelSpec `json:"exportModelSpec,omitempty"` + + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. Model artifact spec stores and model gcs pathes and + // related metadata + ModelArtifactSpec *XPSImageModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + ModelServingSpec *XPSImageModelServingSpec `json:"modelServingSpec,omitempty"` + + // StopReason: Stop reason for training job, e.g. + // 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'. + // + // Possible values: + // "TRAIN_STOP_REASON_UNSPECIFIED" + // "TRAIN_STOP_REASON_BUDGET_REACHED" + // "TRAIN_STOP_REASON_MODEL_CONVERGED" - Model fully converged, can + // not be resumbed training. + // "TRAIN_STOP_REASON_MODEL_EARLY_STOPPED" - Model early converged, + // can be further trained till full convergency. + StopReason string `json:"stopReason,omitempty"` + + // TrainCostNodeSeconds: The actual train cost of creating this model, + // expressed in node seconds, i.e. 3,600 value in this field means 1 + // node hour. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ColorMaps") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColorMaps") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSImageSegmentationTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSImageSegmentationTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSIntegratedGradientsAttribution: An attribution method that +// computes the Aumann-Shapley value taking advantage of the model's +// fully differentiable structure. Refer to this paper for more details: +// https://arxiv.org/abs/1703.01365 +type XPSIntegratedGradientsAttribution struct { + // StepCount: The number of steps for approximating the path integral. A + // good value to start is 50 and gradually increase until the sum to + // diff property is within the desired error range. Valid range of its + // value is [1, 100], inclusively. + StepCount int64 `json:"stepCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StepCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StepCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSIntegratedGradientsAttribution) MarshalJSON() ([]byte, error) { + type NoMethod XPSIntegratedGradientsAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSMetricEntry struct { + // ArgentumMetricId: For billing metrics that are using legacy sku's, + // set the legacy billing metric id here. This will be sent to Chemist + // as the "cloudbilling.googleapis.com/argentum_metric_id" label. + // Otherwise leave empty. + ArgentumMetricId string `json:"argentumMetricId,omitempty"` + + // DoubleValue: A double value. + DoubleValue float64 `json:"doubleValue,omitempty"` + + // Int64Value: A signed 64-bit integer value. + Int64Value int64 `json:"int64Value,omitempty,string"` + + // MetricName: The metric name defined in the service configuration. + MetricName string `json:"metricName,omitempty"` + + // SystemLabels: Billing system labels for this (metric, value) pair. + SystemLabels []*XPSMetricEntryLabel `json:"systemLabels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArgentumMetricId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArgentumMetricId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSMetricEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSMetricEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSMetricEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSMetricEntry + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +type XPSMetricEntryLabel struct { + // LabelName: The name of the label. + LabelName string `json:"labelName,omitempty"` + + // LabelValue: The value of the label. + LabelValue string `json:"labelValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LabelName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LabelName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSMetricEntryLabel) MarshalJSON() ([]byte, error) { + type NoMethod XPSMetricEntryLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSModelArtifactItem: A single model artifact item. +type XPSModelArtifactItem struct { + // ArtifactFormat: The model artifact format. + // + // Possible values: + // "ARTIFACT_FORMAT_UNSPECIFIED" - Should not be used. + // "TF_CHECKPOINT" - The Tensorflow checkpoints. See + // https://www.tensorflow.org/guide/checkpoint. + // "TF_SAVED_MODEL" - The Tensorflow SavedModel binary. + // "TF_LITE" - Model artifact in generic TensorFlow Lite (.tflite) + // format. See https://www.tensorflow.org/lite. + // "EDGE_TPU_TF_LITE" - Used for [Edge + // TPU](https://cloud.google.com/edge-tpu/) devices. + // "TF_JS" - A [TensorFlow.js](https://www.tensorflow.org/js) model + // that can be used in the browser and in Node.js using JavaScript. + // "CORE_ML" - Used for iOS mobile devices in (.mlmodel) format. See + // https://developer.apple.com/documentation/coreml + ArtifactFormat string `json:"artifactFormat,omitempty"` + + // GcsUri: The Google Cloud Storage (GCS) uri that stores the model + // binary files. + GcsUri string `json:"gcsUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArtifactFormat") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArtifactFormat") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSModelArtifactItem) MarshalJSON() ([]byte, error) { + type NoMethod XPSModelArtifactItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSPreprocessResponse: Next ID: 8 +type XPSPreprocessResponse struct { + // OutputExampleSet: Preprocessed examples, that are to be imported into + // AutoML storage. This should point to RecordIO file(s) of + // PreprocessedExample messages. The + // PreprocessedExample.mvp_training_data-s returned here are later + // verbatim passed to Train() call in TrainExample.mvp_training_data. + OutputExampleSet *XPSExampleSet `json:"outputExampleSet,omitempty"` + + SpeechPreprocessResp *XPSSpeechPreprocessResponse `json:"speechPreprocessResp,omitempty"` + + TablesPreprocessResponse *XPSTablesPreprocessResponse `json:"tablesPreprocessResponse,omitempty"` + + TranslationPreprocessResp *XPSTranslationPreprocessResponse `json:"translationPreprocessResp,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputExampleSet") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputExampleSet") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSPreprocessResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSPreprocessResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSRegressionEvaluationMetrics: Model evaluation metrics for +// regression problems. It can be used for Tables. +type XPSRegressionEvaluationMetrics struct { + // MeanAbsoluteError: Mean Absolute Error (MAE). + MeanAbsoluteError float64 `json:"meanAbsoluteError,omitempty"` + + // MeanAbsolutePercentageError: Mean absolute percentage error. Only set + // if all ground truth values are positive. + MeanAbsolutePercentageError float64 `json:"meanAbsolutePercentageError,omitempty"` + + // RSquared: R squared. + RSquared float64 `json:"rSquared,omitempty"` + + // RegressionMetricsEntries: A list of actual versus predicted points + // for the model being evaluated. + RegressionMetricsEntries []*XPSRegressionMetricsEntry `json:"regressionMetricsEntries,omitempty"` + + // RootMeanSquaredError: Root Mean Squared Error (RMSE). + RootMeanSquaredError float64 `json:"rootMeanSquaredError,omitempty"` + + // RootMeanSquaredLogError: Root mean squared log error. + RootMeanSquaredLogError float64 `json:"rootMeanSquaredLogError,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MeanAbsoluteError") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MeanAbsoluteError") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSRegressionEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSRegressionEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSRegressionEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSRegressionEvaluationMetrics + var s1 struct { + MeanAbsoluteError gensupport.JSONFloat64 `json:"meanAbsoluteError"` + MeanAbsolutePercentageError gensupport.JSONFloat64 `json:"meanAbsolutePercentageError"` + RSquared gensupport.JSONFloat64 `json:"rSquared"` + RootMeanSquaredError gensupport.JSONFloat64 `json:"rootMeanSquaredError"` + RootMeanSquaredLogError gensupport.JSONFloat64 `json:"rootMeanSquaredLogError"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MeanAbsoluteError = float64(s1.MeanAbsoluteError) + s.MeanAbsolutePercentageError = float64(s1.MeanAbsolutePercentageError) + s.RSquared = float64(s1.RSquared) + s.RootMeanSquaredError = float64(s1.RootMeanSquaredError) + s.RootMeanSquaredLogError = float64(s1.RootMeanSquaredLogError) + return nil +} + +// XPSRegressionMetricsEntry: A pair of actual & observed values for the +// model being evaluated. +type XPSRegressionMetricsEntry struct { + // PredictedValue: The observed value for a row in the dataset. + PredictedValue float64 `json:"predictedValue,omitempty"` + + // TrueValue: The actual target value for a row in the dataset. + TrueValue float64 `json:"trueValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PredictedValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PredictedValue") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSRegressionMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSRegressionMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSRegressionMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSRegressionMetricsEntry + var s1 struct { + PredictedValue gensupport.JSONFloat64 `json:"predictedValue"` + TrueValue gensupport.JSONFloat64 `json:"trueValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PredictedValue = float64(s1.PredictedValue) + s.TrueValue = float64(s1.TrueValue) + return nil +} + +type XPSReportingMetrics struct { + // EffectiveTrainingDuration: The effective time training used. If set, + // this is used for quota management and billing. Deprecated. AutoML BE + // doesn't use this. Don't set. + EffectiveTrainingDuration string `json:"effectiveTrainingDuration,omitempty"` + + // MetricEntries: One entry per metric name. The values must be + // aggregated per metric name. + MetricEntries []*XPSMetricEntry `json:"metricEntries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EffectiveTrainingDuration") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EffectiveTrainingDuration") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSReportingMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSReportingMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSResponseExplanationMetadata struct { + // Inputs: Metadata of the input. + Inputs map[string]XPSResponseExplanationMetadataInputMetadata `json:"inputs,omitempty"` + + // Outputs: Metadata of the output. + Outputs map[string]XPSResponseExplanationMetadataOutputMetadata `json:"outputs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Inputs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Inputs") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSResponseExplanationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSResponseExplanationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSResponseExplanationMetadataInputMetadata: Metadata of the input of +// a feature. +type XPSResponseExplanationMetadataInputMetadata struct { + // InputTensorName: Name of the input tensor for this model. Only needed + // in train response. + InputTensorName string `json:"inputTensorName,omitempty"` + + // Modality: Modality of the feature. Valid values are: numeric, image. + // Defaults to numeric. + // + // Possible values: + // "MODALITY_UNSPECIFIED" + // "NUMERIC" + // "IMAGE" + // "CATEGORICAL" + Modality string `json:"modality,omitempty"` + + // VisualizationConfig: Visualization configurations for image + // explanation. + VisualizationConfig *XPSVisualization `json:"visualizationConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputTensorName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputTensorName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSResponseExplanationMetadataInputMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSResponseExplanationMetadataInputMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSResponseExplanationMetadataOutputMetadata: Metadata of the +// prediction output to be explained. +type XPSResponseExplanationMetadataOutputMetadata struct { + // OutputTensorName: Name of the output tensor. Only needed in train + // response. + OutputTensorName string `json:"outputTensorName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputTensorName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputTensorName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSResponseExplanationMetadataOutputMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSResponseExplanationMetadataOutputMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSResponseExplanationParameters struct { + // IntegratedGradientsAttribution: An attribution method that computes + // Aumann-Shapley values taking advantage of the model's fully + // differentiable structure. Refer to this paper for more details: + // https://arxiv.org/abs/1703.01365 + IntegratedGradientsAttribution *XPSIntegratedGradientsAttribution `json:"integratedGradientsAttribution,omitempty"` + + // XraiAttribution: An attribution method that redistributes Integrated + // Gradients attribution to segmented regions, taking advantage of the + // model's fully differentiable structure. Refer to this paper for more + // details: https://arxiv.org/abs/1906.02825 XRAI currently performs + // better on natural images, like a picture of a house or an animal. If + // the images are taken in artificial environments, like a lab or + // manufacturing line, or from diagnostic equipment, like x-rays or + // quality-control cameras, use Integrated Gradients instead. + XraiAttribution *XPSXraiAttribution `json:"xraiAttribution,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "IntegratedGradientsAttribution") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "IntegratedGradientsAttribution") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSResponseExplanationParameters) MarshalJSON() ([]byte, error) { + type NoMethod XPSResponseExplanationParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSResponseExplanationSpec: Specification of Model explanation. +// Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 +// for context. +type XPSResponseExplanationSpec struct { + // ExplanationType: Explanation type. For AutoML Image Classification + // models, possible values are: * `image-integrated-gradients` * + // `image-xrai` + ExplanationType string `json:"explanationType,omitempty"` + + // Metadata: Metadata describing the Model's input and output for + // explanation. + Metadata *XPSResponseExplanationMetadata `json:"metadata,omitempty"` + + // Parameters: Parameters that configure explaining of the Model's + // predictions. + Parameters *XPSResponseExplanationParameters `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExplanationType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExplanationType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSResponseExplanationSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSResponseExplanationSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSRow struct { + // ColumnIds: The ids of the columns. Note: The below `values` field + // must match order of this field, if this field is set. + ColumnIds []int64 `json:"columnIds,omitempty"` + + // Values: The values of the row cells, given in the same order as the + // column_ids. If column_ids is not set, then in the same order as the + // input_feature_column_ids in TablesModelMetadata. + Values []interface{} `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnIds") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnIds") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSRow) MarshalJSON() ([]byte, error) { + type NoMethod XPSRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSSpeechEvaluationMetrics struct { + // SubModelEvaluationMetrics: Evaluation metrics for all submodels + // contained in this model. + SubModelEvaluationMetrics []*XPSSpeechEvaluationMetricsSubModelEvaluationMetric `json:"subModelEvaluationMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SubModelEvaluationMetrics") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "SubModelEvaluationMetrics") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSSpeechEvaluationMetricsSubModelEvaluationMetric struct { + // BiasingModelType: Type of the biasing model. + // + // Possible values: + // "BIASING_MODEL_TYPE_UNSPECIFIED" + // "COMMAND_AND_SEARCH" - Build biasing model on top of + // COMMAND_AND_SEARCH model + // "PHONE_CALL" - Build biasing model on top of PHONE_CALL model + // "VIDEO" - Build biasing model on top of VIDEO model + // "DEFAULT" - Build biasing model on top of DEFAULT model + BiasingModelType string `json:"biasingModelType,omitempty"` + + // IsEnhancedModel: If true then it means we have an enhanced version of + // the biasing models. + IsEnhancedModel bool `json:"isEnhancedModel,omitempty"` + + NumDeletions int64 `json:"numDeletions,omitempty"` + + NumInsertions int64 `json:"numInsertions,omitempty"` + + NumSubstitutions int64 `json:"numSubstitutions,omitempty"` + + // NumUtterances: Number of utterances used in the wer computation. + NumUtterances int64 `json:"numUtterances,omitempty"` + + // NumWords: Number of words over which the word error rate was + // computed. + NumWords int64 `json:"numWords,omitempty"` + + // SentenceAccuracy: Below fields are used for debugging purposes + SentenceAccuracy float64 `json:"sentenceAccuracy,omitempty"` + + // Wer: Word error rate (standard error metric used for speech + // recognition). + Wer float64 `json:"wer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BiasingModelType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BiasingModelType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechEvaluationMetricsSubModelEvaluationMetric) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechEvaluationMetricsSubModelEvaluationMetric + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSSpeechEvaluationMetricsSubModelEvaluationMetric) UnmarshalJSON(data []byte) error { + type NoMethod XPSSpeechEvaluationMetricsSubModelEvaluationMetric + var s1 struct { + SentenceAccuracy gensupport.JSONFloat64 `json:"sentenceAccuracy"` + Wer gensupport.JSONFloat64 `json:"wer"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SentenceAccuracy = float64(s1.SentenceAccuracy) + s.Wer = float64(s1.Wer) + return nil +} + +type XPSSpeechModelSpec struct { + // DatasetId: Required for speech xps backend. Speech xps has to use + // dataset_id and model_id as the primary key in db so that speech API + // can query the db directly. + DatasetId int64 `json:"datasetId,omitempty,string"` + + Language string `json:"language,omitempty"` + + // SubModelSpecs: Model specs for all submodels contained in this model. + SubModelSpecs []*XPSSpeechModelSpecSubModelSpec `json:"subModelSpecs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatasetId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatasetId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechModelSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechModelSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSSpeechModelSpecSubModelSpec struct { + // BiasingModelType: Type of the biasing model. + // + // Possible values: + // "BIASING_MODEL_TYPE_UNSPECIFIED" + // "COMMAND_AND_SEARCH" - Build biasing model on top of + // COMMAND_AND_SEARCH model + // "PHONE_CALL" - Build biasing model on top of PHONE_CALL model + // "VIDEO" - Build biasing model on top of VIDEO model + // "DEFAULT" - Build biasing model on top of DEFAULT model + BiasingModelType string `json:"biasingModelType,omitempty"` + + // ClientId: In S3, Recognition ClientContextId.client_id + ClientId string `json:"clientId,omitempty"` + + // ContextId: In S3, Recognition ClientContextId.context_id + ContextId string `json:"contextId,omitempty"` + + // IsEnhancedModel: If true then it means we have an enhanced version of + // the biasing models. + IsEnhancedModel bool `json:"isEnhancedModel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BiasingModelType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BiasingModelType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechModelSpecSubModelSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechModelSpecSubModelSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSSpeechPreprocessResponse struct { + // CnsTestDataPath: Location od shards of sstables (test data) of + // DataUtterance protos. + CnsTestDataPath string `json:"cnsTestDataPath,omitempty"` + + // CnsTrainDataPath: Location of shards of sstables (training data) of + // DataUtterance protos. + CnsTrainDataPath string `json:"cnsTrainDataPath,omitempty"` + + // PrebuiltModelEvaluationMetrics: The metrics for prebuilt speech + // models. They are included here because there is no prebuilt speech + // models stored in the AutoML. + PrebuiltModelEvaluationMetrics *XPSSpeechEvaluationMetrics `json:"prebuiltModelEvaluationMetrics,omitempty"` + + // SpeechPreprocessStats: Stats associated with the data. + SpeechPreprocessStats *XPSSpeechPreprocessStats `json:"speechPreprocessStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CnsTestDataPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CnsTestDataPath") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechPreprocessResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechPreprocessResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSSpeechPreprocessStats struct { + // DataErrors: Different types of data errors and the counts associated + // with them. + DataErrors []*XPSDataErrors `json:"dataErrors,omitempty"` + + // NumHumanLabeledExamples: The number of rows marked HUMAN_LABELLED + NumHumanLabeledExamples int64 `json:"numHumanLabeledExamples,omitempty"` + + // NumLogsExamples: The number of samples found in the previously + // recorded logs data. + NumLogsExamples int64 `json:"numLogsExamples,omitempty"` + + // NumMachineTranscribedExamples: The number of rows marked as + // MACHINE_TRANSCRIBED + NumMachineTranscribedExamples int64 `json:"numMachineTranscribedExamples,omitempty"` + + // TestExamplesCount: The number of examples labelled as TEST by Speech + // xps server. + TestExamplesCount int64 `json:"testExamplesCount,omitempty"` + + // TestSentencesCount: The number of sentences in the test data set. + TestSentencesCount int64 `json:"testSentencesCount,omitempty"` + + // TestWordsCount: The number of words in the test data set. + TestWordsCount int64 `json:"testWordsCount,omitempty"` + + // TrainExamplesCount: The number of examples labeled as TRAIN by Speech + // xps server. + TrainExamplesCount int64 `json:"trainExamplesCount,omitempty"` + + // TrainSentencesCount: The number of sentences in the training data + // set. + TrainSentencesCount int64 `json:"trainSentencesCount,omitempty"` + + // TrainWordsCount: The number of words in the training data set. + TrainWordsCount int64 `json:"trainWordsCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataErrors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataErrors") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSSpeechPreprocessStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSSpeechPreprocessStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSStringStats: The data statistics of a series of STRING values. +type XPSStringStats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // TopUnigramStats: The statistics of the top 20 unigrams, ordered by + // StringStats.UnigramStats.count. + TopUnigramStats []*XPSStringStatsUnigramStats `json:"topUnigramStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSStringStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSStringStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSStringStatsUnigramStats: The statistics of a unigram. +type XPSStringStatsUnigramStats struct { + // Count: The number of occurrences of this unigram in the series. + Count int64 `json:"count,omitempty,string"` + + // Value: The unigram. + Value string `json:"value,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSStringStatsUnigramStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSStringStatsUnigramStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSStructStats: The data statistics of a series of STRUCT values. +type XPSStructStats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // FieldStats: Map from a field name of the struct to data stats + // aggregated over series of all data in that field across all the + // structs. + FieldStats map[string]XPSDataStats `json:"fieldStats,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSStructStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSStructStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSStructType: `StructType` defines the DataType-s of a STRUCT type. +type XPSStructType struct { + // Fields: Unordered map of struct field names to their data types. + Fields map[string]XPSDataType `json:"fields,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fields") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fields") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSStructType) MarshalJSON() ([]byte, error) { + type NoMethod XPSStructType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTableSpec struct { + // ColumnSpecs: Mapping from column id to column spec. + ColumnSpecs map[string]XPSColumnSpec `json:"columnSpecs,omitempty"` + + // ImportedDataSizeInBytes: The total size of imported data of the + // table. + ImportedDataSizeInBytes int64 `json:"importedDataSizeInBytes,omitempty,string"` + + // RowCount: The number of rows in the table. + RowCount int64 `json:"rowCount,omitempty,string"` + + // TimeColumnId: The id of the time column. + TimeColumnId int64 `json:"timeColumnId,omitempty"` + + // ValidRowCount: The number of valid rows. + ValidRowCount int64 `json:"validRowCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ColumnSpecs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnSpecs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTableSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSTableSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTablesClassificationMetrics: Metrics for Tables classification +// problems. +type XPSTablesClassificationMetrics struct { + // CurveMetrics: Metrics building a curve. + CurveMetrics []*XPSTablesClassificationMetricsCurveMetrics `json:"curveMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CurveMetrics") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CurveMetrics") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesClassificationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesClassificationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTablesClassificationMetricsCurveMetrics: Metrics curve data point +// for a single value. +type XPSTablesClassificationMetricsCurveMetrics struct { + // AucPr: The area under the precision-recall curve. + AucPr float64 `json:"aucPr,omitempty"` + + // AucRoc: The area under receiver operating characteristic curve. + AucRoc float64 `json:"aucRoc,omitempty"` + + // ConfidenceMetricsEntries: Metrics that have confidence thresholds. + // Precision-recall curve and ROC curve can be derived from them. + ConfidenceMetricsEntries []*XPSTablesConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // LogLoss: The Log loss metric. + LogLoss float64 `json:"logLoss,omitempty"` + + // PositionThreshold: The position threshold value used to compute the + // metrics. + PositionThreshold int64 `json:"positionThreshold,omitempty"` + + // Value: The CATEGORY row value (for ARRAY unnested) the curve metrics + // are for. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AucPr") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AucPr") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesClassificationMetricsCurveMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesClassificationMetricsCurveMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTablesClassificationMetricsCurveMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSTablesClassificationMetricsCurveMetrics + var s1 struct { + AucPr gensupport.JSONFloat64 `json:"aucPr"` + AucRoc gensupport.JSONFloat64 `json:"aucRoc"` + LogLoss gensupport.JSONFloat64 `json:"logLoss"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AucPr = float64(s1.AucPr) + s.AucRoc = float64(s1.AucRoc) + s.LogLoss = float64(s1.LogLoss) + return nil +} + +// XPSTablesConfidenceMetricsEntry: Metrics for a single confidence +// threshold. +type XPSTablesConfidenceMetricsEntry struct { + // ConfidenceThreshold: The confidence threshold value used to compute + // the metrics. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // F1Score: The harmonic mean of recall and precision. (2 * precision * + // recall) / (precision + recall) + F1Score float64 `json:"f1Score,omitempty"` + + // FalseNegativeCount: False negative count. + FalseNegativeCount int64 `json:"falseNegativeCount,omitempty,string"` + + // FalsePositiveCount: False positive count. + FalsePositiveCount int64 `json:"falsePositiveCount,omitempty,string"` + + // FalsePositiveRate: FPR = #false positives / (#false positives + #true + // negatives) + FalsePositiveRate float64 `json:"falsePositiveRate,omitempty"` + + // Precision: Precision = #true positives / (#true positives + #false + // positives). + Precision float64 `json:"precision,omitempty"` + + // Recall: Recall = #true positives / (#true positives + #false + // negatives). + Recall float64 `json:"recall,omitempty"` + + // TrueNegativeCount: True negative count. + TrueNegativeCount int64 `json:"trueNegativeCount,omitempty,string"` + + // TruePositiveCount: True positive count. + TruePositiveCount int64 `json:"truePositiveCount,omitempty,string"` + + // TruePositiveRate: TPR = #true positives / (#true positives + #false + // negatvies) + TruePositiveRate float64 `json:"truePositiveRate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTablesConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSTablesConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + F1Score gensupport.JSONFloat64 `json:"f1Score"` + FalsePositiveRate gensupport.JSONFloat64 `json:"falsePositiveRate"` + Precision gensupport.JSONFloat64 `json:"precision"` + Recall gensupport.JSONFloat64 `json:"recall"` + TruePositiveRate gensupport.JSONFloat64 `json:"truePositiveRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.F1Score = float64(s1.F1Score) + s.FalsePositiveRate = float64(s1.FalsePositiveRate) + s.Precision = float64(s1.Precision) + s.Recall = float64(s1.Recall) + s.TruePositiveRate = float64(s1.TruePositiveRate) + return nil +} + +// XPSTablesDatasetMetadata: Metadata for a dataset used for AutoML +// Tables. Next ID: 6 +type XPSTablesDatasetMetadata struct { + // MlUseColumnId: Id the column to split the table. + MlUseColumnId int64 `json:"mlUseColumnId,omitempty"` + + // PrimaryTableSpec: Primary table. + PrimaryTableSpec *XPSTableSpec `json:"primaryTableSpec,omitempty"` + + // TargetColumnCorrelations: (the column id : its CorrelationStats with + // target column). + TargetColumnCorrelations map[string]XPSCorrelationStats `json:"targetColumnCorrelations,omitempty"` + + // TargetColumnId: Id of the primary table column that should be used as + // the training label. + TargetColumnId int64 `json:"targetColumnId,omitempty"` + + // WeightColumnId: Id of the primary table column that should be used as + // the weight column. + WeightColumnId int64 `json:"weightColumnId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MlUseColumnId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MlUseColumnId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesDatasetMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesDatasetMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTablesEvaluationMetrics struct { + // ClassificationMetrics: Classification metrics. + ClassificationMetrics *XPSTablesClassificationMetrics `json:"classificationMetrics,omitempty"` + + // RegressionMetrics: Regression metrics. + RegressionMetrics *XPSTablesRegressionMetrics `json:"regressionMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassificationMetrics") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClassificationMetrics") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTablesModelColumnInfo: An information specific to given column and +// Tables Model, in context of the Model and the predictions created by +// it. +type XPSTablesModelColumnInfo struct { + // ColumnId: The ID of the column. + ColumnId int64 `json:"columnId,omitempty"` + + // FeatureImportance: When given as part of a Model: Measurement of how + // much model predictions correctness on the TEST data depend on values + // in this column. A value between 0 and 1, higher means higher + // influence. These values are normalized - for all input feature + // columns of a given model they add to 1. When given back by Predict or + // Batch Predict: Measurement of how impactful for the prediction + // returned for the given row the value in this column was. + // Specifically, the feature importance specifies the marginal + // contribution that the feature made to the prediction score compared + // to the baseline score. These values are computed using the Sampled + // Shapley method. + FeatureImportance float64 `json:"featureImportance,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesModelColumnInfo) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesModelColumnInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTablesModelColumnInfo) UnmarshalJSON(data []byte) error { + type NoMethod XPSTablesModelColumnInfo + var s1 struct { + FeatureImportance gensupport.JSONFloat64 `json:"featureImportance"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FeatureImportance = float64(s1.FeatureImportance) + return nil +} + +// XPSTablesModelStructure: A description of Tables model structure. +type XPSTablesModelStructure struct { + // ModelParameters: A list of models. + ModelParameters []*XPSTablesModelStructureModelParameters `json:"modelParameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModelParameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesModelStructure) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesModelStructure + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTablesModelStructureModelParameters: Model hyper-parameters for a +// model. +type XPSTablesModelStructureModelParameters struct { + Hyperparameters []*XPSTablesModelStructureModelParametersParameter `json:"hyperparameters,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesModelStructureModelParameters) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesModelStructureModelParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTablesModelStructureModelParametersParameter struct { + // FloatValue: Float type parameter value. + FloatValue float64 `json:"floatValue,omitempty"` + + // IntValue: Integer type parameter value. + IntValue int64 `json:"intValue,omitempty,string"` + + // Name: Parameter name. + Name string `json:"name,omitempty"` + + // StringValue: String type parameter value. + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FloatValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FloatValue") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesModelStructureModelParametersParameter) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesModelStructureModelParametersParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTablesModelStructureModelParametersParameter) UnmarshalJSON(data []byte) error { + type NoMethod XPSTablesModelStructureModelParametersParameter + var s1 struct { + FloatValue gensupport.JSONFloat64 `json:"floatValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FloatValue = float64(s1.FloatValue) + return nil +} + +type XPSTablesPreprocessResponse struct { + // TablesDatasetMetadata: The table/column id, column_name and the + // DataTypes of the columns will be populated. + TablesDatasetMetadata *XPSTablesDatasetMetadata `json:"tablesDatasetMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "TablesDatasetMetadata") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TablesDatasetMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesPreprocessResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesPreprocessResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTablesRegressionMetrics: Metrics for Tables regression problems. +type XPSTablesRegressionMetrics struct { + // MeanAbsoluteError: Mean absolute error. + MeanAbsoluteError float64 `json:"meanAbsoluteError,omitempty"` + + // MeanAbsolutePercentageError: Mean absolute percentage error, only set + // if all of the target column's values are positive. + MeanAbsolutePercentageError float64 `json:"meanAbsolutePercentageError,omitempty"` + + // RSquared: R squared. + RSquared float64 `json:"rSquared,omitempty"` + + // RegressionMetricsEntries: A list of actual versus predicted points + // for the model being evaluated. + RegressionMetricsEntries []*XPSRegressionMetricsEntry `json:"regressionMetricsEntries,omitempty"` + + // RootMeanSquaredError: Root mean squared error. + RootMeanSquaredError float64 `json:"rootMeanSquaredError,omitempty"` + + // RootMeanSquaredLogError: Root mean squared log error. + RootMeanSquaredLogError float64 `json:"rootMeanSquaredLogError,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MeanAbsoluteError") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MeanAbsoluteError") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesRegressionMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesRegressionMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTablesRegressionMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSTablesRegressionMetrics + var s1 struct { + MeanAbsoluteError gensupport.JSONFloat64 `json:"meanAbsoluteError"` + MeanAbsolutePercentageError gensupport.JSONFloat64 `json:"meanAbsolutePercentageError"` + RSquared gensupport.JSONFloat64 `json:"rSquared"` + RootMeanSquaredError gensupport.JSONFloat64 `json:"rootMeanSquaredError"` + RootMeanSquaredLogError gensupport.JSONFloat64 `json:"rootMeanSquaredLogError"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MeanAbsoluteError = float64(s1.MeanAbsoluteError) + s.MeanAbsolutePercentageError = float64(s1.MeanAbsolutePercentageError) + s.RSquared = float64(s1.RSquared) + s.RootMeanSquaredError = float64(s1.RootMeanSquaredError) + s.RootMeanSquaredLogError = float64(s1.RootMeanSquaredLogError) + return nil +} + +type XPSTablesTrainResponse struct { + ModelStructure *XPSTablesModelStructure `json:"modelStructure,omitempty"` + + // PredictionSampleRows: Sample rows from the dataset this model was + // trained. + PredictionSampleRows []*XPSRow `json:"predictionSampleRows,omitempty"` + + // TablesModelColumnInfo: Output only. Auxiliary information for each of + // the input_feature_column_specs, with respect to this particular + // model. + TablesModelColumnInfo []*XPSTablesModelColumnInfo `json:"tablesModelColumnInfo,omitempty"` + + // TrainCostMilliNodeHours: The actual training cost of the model, + // expressed in milli node hours, i.e. 1,000 value in this field means 1 + // node hour. Guaranteed to not exceed the train budget. + TrainCostMilliNodeHours int64 `json:"trainCostMilliNodeHours,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ModelStructure") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelStructure") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTablesTrainingOperationMetadata struct { + // CreateModelStage: Current stage of creating model. + // + // Possible values: + // "CREATE_MODEL_STAGE_UNSPECIFIED" - Unspecified stage. + // "DATA_PREPROCESSING" - Prepare the model training pipeline and run + // data processing. + // "TRAINING" - Training model. + // "EVALUATING" - Run evaluation. + // "MODEL_POST_PROCESSING" - Finalizing model training pipeline. + CreateModelStage string `json:"createModelStage,omitempty"` + + // OptimizationObjective: The optimization objective for model. + OptimizationObjective string `json:"optimizationObjective,omitempty"` + + // TopTrials: This field is for training. When the operation is + // terminated successfully, AutoML Backend post this field to operation + // metadata in spanner. If the metadata has no trials returned, the + // training operation is supposed to be a failure. + TopTrials []*XPSTuningTrial `json:"topTrials,omitempty"` + + // TrainBudgetMilliNodeHours: Creating model budget. + TrainBudgetMilliNodeHours int64 `json:"trainBudgetMilliNodeHours,omitempty,string"` + + // TrainingObjectivePoints: This field records the training objective + // value with respect to time, giving insight into how the model + // architecture search is performing as training time elapses. + TrainingObjectivePoints []*XPSTrainingObjectivePoint `json:"trainingObjectivePoints,omitempty"` + + // TrainingStartTime: Timestamp when training process starts. + TrainingStartTime string `json:"trainingStartTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateModelStage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateModelStage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTablesTrainingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSTablesTrainingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTextComponentModel: Component model. Next ID: 10 +type XPSTextComponentModel struct { + // BatchPredictionModelGcsUri: The Cloud Storage resource path to hold + // batch prediction model. + BatchPredictionModelGcsUri string `json:"batchPredictionModelGcsUri,omitempty"` + + // OnlinePredictionModelGcsUri: The Cloud Storage resource path to hold + // online prediction model. + OnlinePredictionModelGcsUri string `json:"onlinePredictionModelGcsUri,omitempty"` + + // Partition: The partition where the model is deployed. Populated by + // uCAIP BE as part of online PredictRequest. + // + // Possible values: + // "PARTITION_TYPE_UNSPECIFIED" + // "PARTITION_ZERO" - The default partition. + // "PARTITION_REDUCED_HOMING" - It has significantly lower replication + // than partition-0 and is located in the US only. It also has a larger + // model size limit and higher default RAM quota than partition-0. + // Customers with batch traffic, US-based traffic, or very large models + // should use this partition. Capacity in this partition is + // significantly cheaper than partition-0. + // "PARTITION_JELLYFISH" - To be used by customers with + // Jellyfish-accelerated ops. See go/servomatic-jellyfish for details. + // "PARTITION_CPU" - The partition used by regionalized servomatic + // cloud regions. + // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading + // models from custom storage. + Partition string `json:"partition,omitempty"` + + // ServingArtifact: The default model binary file used for serving (e.g. + // online predict, batch predict) via public Cloud Ai Platform API. + ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` + + // ServoModelName: The name of servo model. Populated by uCAIP BE as + // part of online PredictRequest. + ServoModelName string `json:"servoModelName,omitempty"` + + // SubmodelName: The name of the trained NL submodel. + SubmodelName string `json:"submodelName,omitempty"` + + // SubmodelType: The type of trained NL submodel + // + // Possible values: + // "TEXT_MODEL_TYPE_UNSPECIFIED" + // "TEXT_MODEL_TYPE_DEFAULT" + // "TEXT_MODEL_TYPE_META_ARCHITECT" + // "TEXT_MODEL_TYPE_ATC" + // "TEXT_MODEL_TYPE_CLARA2" + // "TEXT_MODEL_TYPE_CHATBASE" + // "TEXT_MODEL_TYPE_SAFT_SPAN_LABELING" + // "TEXT_MODEL_TYPE_TEXT_EXTRACTION" - Model type for entity + // extraction. + // "TEXT_MODEL_TYPE_RELATIONSHIP_EXTRACTION" - Model type for + // relationship extraction. + // "TEXT_MODEL_TYPE_COMPOSITE" - A composite model represents a set of + // component models that have to be used together for prediction. A + // composite model appears to be a single model to the model user. It + // may contain only one component model. Please refer to + // go/cnl-composite-models for more information. + // "TEXT_MODEL_TYPE_ALL_MODELS" - Model type used to train default, + // MA, and ATC models in a single batch worker pipeline. + // "TEXT_MODEL_TYPE_BERT" - BERT pipeline needs a specific model type, + // since it uses a different TFX configuration compared with DEFAULT + // (despite sharing most of the code). + // "TEXT_MODEL_TYPE_ENC_PALM" - Model type for EncPaLM. + SubmodelType string `json:"submodelType,omitempty"` + + // TfRuntimeVersion: ## The fields below are only populated under uCAIP + // request scope. + // https://cloud.google.com/ml-engine/docs/runtime-version-list + TfRuntimeVersion string `json:"tfRuntimeVersion,omitempty"` + + // VersionNumber: The servomatic model version number. Populated by + // uCAIP BE as part of online PredictRequest. + VersionNumber int64 `json:"versionNumber,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "BatchPredictionModelGcsUri") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "BatchPredictionModelGcsUri") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTextComponentModel) MarshalJSON() ([]byte, error) { + type NoMethod XPSTextComponentModel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTextExtractionEvaluationMetrics struct { + // BestF1ConfidenceMetrics: Values are at the highest F1 score on the + // precision-recall curve. Only confidence_threshold, recall, precision, + // and f1_score will be set. + BestF1ConfidenceMetrics *XPSConfidenceMetricsEntry `json:"bestF1ConfidenceMetrics,omitempty"` + + // ConfidenceMetricsEntries: If the enclosing EvaluationMetrics.label is + // empty, confidence_metrics_entries is an evaluation of the entire + // model across all labels. If the enclosing EvaluationMetrics.label is + // set, confidence_metrics_entries applies to that label. + ConfidenceMetricsEntries []*XPSConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // ConfusionMatrix: Confusion matrix of the model, at the default + // confidence threshold (0.0). Only set for whole-model evaluation, not + // for evaluation per label. + ConfusionMatrix *XPSConfusionMatrix `json:"confusionMatrix,omitempty"` + + // PerLabelConfidenceMetrics: Only recall, precision, and f1_score will + // be set. + PerLabelConfidenceMetrics map[string]XPSConfidenceMetricsEntry `json:"perLabelConfidenceMetrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BestF1ConfidenceMetrics") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BestF1ConfidenceMetrics") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTextExtractionEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTextExtractionEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTextSentimentEvaluationMetrics: Model evaluation metrics for text +// sentiment problems. +type XPSTextSentimentEvaluationMetrics struct { + // ConfusionMatrix: Output only. Confusion matrix of the evaluation. + // Only set for the overall model evaluation, not for evaluation of a + // single annotation spec. + ConfusionMatrix *XPSConfusionMatrix `json:"confusionMatrix,omitempty"` + + // F1Score: Output only. The harmonic mean of recall and precision. + F1Score float64 `json:"f1Score,omitempty"` + + // LinearKappa: Output only. Linear weighted kappa. Only set for the + // overall model evaluation, not for evaluation of a single annotation + // spec. + LinearKappa float64 `json:"linearKappa,omitempty"` + + // MeanAbsoluteError: Output only. Mean absolute error. Only set for the + // overall model evaluation, not for evaluation of a single annotation + // spec. + MeanAbsoluteError float64 `json:"meanAbsoluteError,omitempty"` + + // MeanSquaredError: Output only. Mean squared error. Only set for the + // overall model evaluation, not for evaluation of a single annotation + // spec. + MeanSquaredError float64 `json:"meanSquaredError,omitempty"` + + // Precision: Output only. Precision. + Precision float64 `json:"precision,omitempty"` + + // QuadraticKappa: Output only. Quadratic weighted kappa. Only set for + // the overall model evaluation, not for evaluation of a single + // annotation spec. + QuadraticKappa float64 `json:"quadraticKappa,omitempty"` + + // Recall: Output only. Recall. + Recall float64 `json:"recall,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfusionMatrix") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfusionMatrix") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTextSentimentEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTextSentimentEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTextSentimentEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSTextSentimentEvaluationMetrics + var s1 struct { + F1Score gensupport.JSONFloat64 `json:"f1Score"` + LinearKappa gensupport.JSONFloat64 `json:"linearKappa"` + MeanAbsoluteError gensupport.JSONFloat64 `json:"meanAbsoluteError"` + MeanSquaredError gensupport.JSONFloat64 `json:"meanSquaredError"` + Precision gensupport.JSONFloat64 `json:"precision"` + QuadraticKappa gensupport.JSONFloat64 `json:"quadraticKappa"` + Recall gensupport.JSONFloat64 `json:"recall"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.F1Score = float64(s1.F1Score) + s.LinearKappa = float64(s1.LinearKappa) + s.MeanAbsoluteError = float64(s1.MeanAbsoluteError) + s.MeanSquaredError = float64(s1.MeanSquaredError) + s.Precision = float64(s1.Precision) + s.QuadraticKappa = float64(s1.QuadraticKappa) + s.Recall = float64(s1.Recall) + return nil +} + +// XPSTextToSpeechTrainResponse: TextToSpeech train response +type XPSTextToSpeechTrainResponse struct { +} + +type XPSTextTrainResponse struct { + // ComponentModel: Component submodels. + ComponentModel []*XPSTextComponentModel `json:"componentModel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ComponentModel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ComponentModel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTextTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTextTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTfJsFormat: A TensorFlow.js (https://www.tensorflow.org/js) model +// that can be used in the browser and in Node.js using JavaScript. +type XPSTfJsFormat struct { +} + +// XPSTfLiteFormat: LINT.IfChange A model format used for mobile and IoT +// devices. See https://www.tensorflow.org/lite. +type XPSTfLiteFormat struct { +} + +// XPSTfSavedModelFormat: A tensorflow model format in SavedModel +// format. +type XPSTfSavedModelFormat struct { +} + +// XPSTimestampStats: The data statistics of a series of TIMESTAMP +// values. +type XPSTimestampStats struct { + CommonStats *XPSCommonStats `json:"commonStats,omitempty"` + + // GranularStats: The string key is the pre-defined granularity. + // Currently supported: hour_of_day, day_of_week, month_of_year. + // Granularities finer that the granularity of timestamp data are not + // populated (e.g. if timestamps are at day granularity, then + // hour_of_day is not populated). + GranularStats map[string]XPSTimestampStatsGranularStats `json:"granularStats,omitempty"` + + MedianTimestampNanos int64 `json:"medianTimestampNanos,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CommonStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonStats") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTimestampStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSTimestampStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTimestampStatsGranularStats: Stats split by a defined in context +// granularity. +type XPSTimestampStatsGranularStats struct { + // Buckets: A map from granularity key to example count for that key. + // E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means + // May). + Buckets map[string]string `json:"buckets,omitempty"` + + // 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTimestampStatsGranularStats) MarshalJSON() ([]byte, error) { + type NoMethod XPSTimestampStatsGranularStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTrackMetricsEntry: Track matching model metrics for a single track +// match threshold and multiple label match confidence thresholds. Next +// tag: 6. +type XPSTrackMetricsEntry struct { + // ConfidenceMetricsEntries: Output only. Metrics for each label-match + // confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + // Precision-recall curve is derived from them. + ConfidenceMetricsEntries []*XPSTrackMetricsEntryConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // IouThreshold: Output only. The intersection-over-union threshold + // value between bounding boxes across frames used to compute this + // metric entry. + IouThreshold float64 `json:"iouThreshold,omitempty"` + + // MeanBoundingBoxIou: Output only. The mean bounding box iou over all + // confidence thresholds. + MeanBoundingBoxIou float64 `json:"meanBoundingBoxIou,omitempty"` + + // MeanMismatchRate: Output only. The mean mismatch rate over all + // confidence thresholds. + MeanMismatchRate float64 `json:"meanMismatchRate,omitempty"` + + // MeanTrackingAveragePrecision: Output only. The mean average precision + // over all confidence thresholds. + MeanTrackingAveragePrecision float64 `json:"meanTrackingAveragePrecision,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConfidenceMetricsEntries") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceMetricsEntries") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTrackMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSTrackMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTrackMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSTrackMetricsEntry + var s1 struct { + IouThreshold gensupport.JSONFloat64 `json:"iouThreshold"` + MeanBoundingBoxIou gensupport.JSONFloat64 `json:"meanBoundingBoxIou"` + MeanMismatchRate gensupport.JSONFloat64 `json:"meanMismatchRate"` + MeanTrackingAveragePrecision gensupport.JSONFloat64 `json:"meanTrackingAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.IouThreshold = float64(s1.IouThreshold) + s.MeanBoundingBoxIou = float64(s1.MeanBoundingBoxIou) + s.MeanMismatchRate = float64(s1.MeanMismatchRate) + s.MeanTrackingAveragePrecision = float64(s1.MeanTrackingAveragePrecision) + return nil +} + +// XPSTrackMetricsEntryConfidenceMetricsEntry: Metrics for a single +// confidence threshold. Next tag: 6. +type XPSTrackMetricsEntryConfidenceMetricsEntry struct { + // BoundingBoxIou: Output only. Bounding box intersection-over-union + // precision. Measures how well the bounding boxes overlap between each + // other (e.g. complete overlap or just barely above iou_threshold). + BoundingBoxIou float64 `json:"boundingBoxIou,omitempty"` + + // ConfidenceThreshold: Output only. The confidence threshold value used + // to compute the metrics. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // MismatchRate: Output only. Mismatch rate, which measures the tracking + // consistency, i.e. correctness of instance ID continuity. + MismatchRate float64 `json:"mismatchRate,omitempty"` + + // TrackingPrecision: Output only. Tracking precision. + TrackingPrecision float64 `json:"trackingPrecision,omitempty"` + + // TrackingRecall: Output only. Tracking recall. + TrackingRecall float64 `json:"trackingRecall,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BoundingBoxIou") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BoundingBoxIou") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTrackMetricsEntryConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSTrackMetricsEntryConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTrackMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSTrackMetricsEntryConfidenceMetricsEntry + var s1 struct { + BoundingBoxIou gensupport.JSONFloat64 `json:"boundingBoxIou"` + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + MismatchRate gensupport.JSONFloat64 `json:"mismatchRate"` + TrackingPrecision gensupport.JSONFloat64 `json:"trackingPrecision"` + TrackingRecall gensupport.JSONFloat64 `json:"trackingRecall"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BoundingBoxIou = float64(s1.BoundingBoxIou) + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.MismatchRate = float64(s1.MismatchRate) + s.TrackingPrecision = float64(s1.TrackingPrecision) + s.TrackingRecall = float64(s1.TrackingRecall) + return nil +} + +// XPSTrainResponse: Next ID: 18 +type XPSTrainResponse struct { + // DeployedModelSizeBytes: Estimated model size in bytes once deployed. + DeployedModelSizeBytes int64 `json:"deployedModelSizeBytes,omitempty,string"` + + // ErrorAnalysisConfigs: Optional vision model error analysis + // configuration. The field is set when model error analysis is enabled + // in the training request. The results of error analysis will be binded + // together with evaluation results (in the format of AnnotatedExample). + ErrorAnalysisConfigs []*XPSVisionErrorAnalysisConfig `json:"errorAnalysisConfigs,omitempty"` + + // EvaluatedExampleSet: Examples used to evaluate the model (usually the + // test set), with the predicted annotations. The file_spec should point + // to recordio file(s) of AnnotatedExample. For each returned example, + // the example_id_token and annotations predicted by the model must be + // set. The example payload can and is recommended to be omitted. + EvaluatedExampleSet *XPSExampleSet `json:"evaluatedExampleSet,omitempty"` + + // EvaluationMetricsSet: The trained model evaluation metrics. This can + // be optionally returned. + EvaluationMetricsSet *XPSEvaluationMetricsSet `json:"evaluationMetricsSet,omitempty"` + + // ExplanationConfigs: VisionExplanationConfig for XAI on test set. + // Optional for when XAI is enable in training request. + ExplanationConfigs []*XPSResponseExplanationSpec `json:"explanationConfigs,omitempty"` + + ImageClassificationTrainResp *XPSImageClassificationTrainResponse `json:"imageClassificationTrainResp,omitempty"` + + ImageObjectDetectionTrainResp *XPSImageObjectDetectionModelSpec `json:"imageObjectDetectionTrainResp,omitempty"` + + ImageSegmentationTrainResp *XPSImageSegmentationTrainResponse `json:"imageSegmentationTrainResp,omitempty"` + + // ModelToken: Token that represents the trained model. This is + // considered immutable and is persisted in AutoML. xPS can put their + // own proto in the byte string, to e.g. point to the model checkpoints. + // The token is passed to other xPS APIs to refer to the model. + ModelToken string `json:"modelToken,omitempty"` + + SpeechTrainResp *XPSSpeechModelSpec `json:"speechTrainResp,omitempty"` + + TablesTrainResp *XPSTablesTrainResponse `json:"tablesTrainResp,omitempty"` + + TextToSpeechTrainResp *XPSTextToSpeechTrainResponse `json:"textToSpeechTrainResp,omitempty"` + + // TextTrainResp: Will only be needed for uCAIP from Beta. + TextTrainResp *XPSTextTrainResponse `json:"textTrainResp,omitempty"` + + TranslationTrainResp *XPSTranslationTrainResponse `json:"translationTrainResp,omitempty"` + + VideoActionRecognitionTrainResp *XPSVideoActionRecognitionTrainResponse `json:"videoActionRecognitionTrainResp,omitempty"` + + VideoClassificationTrainResp *XPSVideoClassificationTrainResponse `json:"videoClassificationTrainResp,omitempty"` + + VideoObjectTrackingTrainResp *XPSVideoObjectTrackingTrainResponse `json:"videoObjectTrackingTrainResp,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DeployedModelSizeBytes") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeployedModelSizeBytes") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSTrainingObjectivePoint struct { + // CreateTime: The time at which this point was recorded. + CreateTime string `json:"createTime,omitempty"` + + // Value: The objective value when this point was recorded. + Value float64 `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTrainingObjectivePoint) MarshalJSON() ([]byte, error) { + type NoMethod XPSTrainingObjectivePoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTrainingObjectivePoint) UnmarshalJSON(data []byte) error { + type NoMethod XPSTrainingObjectivePoint + var s1 struct { + Value gensupport.JSONFloat64 `json:"value"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Value = float64(s1.Value) + return nil +} + +// XPSTranslationEvaluationMetrics: Evaluation metrics for the dataset. +type XPSTranslationEvaluationMetrics struct { + // BaseBleuScore: BLEU score for base model. + BaseBleuScore float64 `json:"baseBleuScore,omitempty"` + + // BleuScore: BLEU score. + BleuScore float64 `json:"bleuScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseBleuScore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseBleuScore") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTranslationEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSTranslationEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSTranslationEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSTranslationEvaluationMetrics + var s1 struct { + BaseBleuScore gensupport.JSONFloat64 `json:"baseBleuScore"` + BleuScore gensupport.JSONFloat64 `json:"bleuScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BaseBleuScore = float64(s1.BaseBleuScore) + s.BleuScore = float64(s1.BleuScore) + return nil +} + +// XPSTranslationPreprocessResponse: Translation preprocess response. +type XPSTranslationPreprocessResponse struct { + // ParsedExampleCount: Total example count parsed. + ParsedExampleCount int64 `json:"parsedExampleCount,omitempty,string"` + + // ValidExampleCount: Total valid example count. + ValidExampleCount int64 `json:"validExampleCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ParsedExampleCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ParsedExampleCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTranslationPreprocessResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTranslationPreprocessResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTranslationTrainResponse: Train response for translation. +type XPSTranslationTrainResponse struct { + // ModelType: Type of the model. + // + // Possible values: + // "MODEL_TYPE_UNSPECIFIED" - Default + // "LEGACY" - Legacy model. Will be deprecated. + // "CURRENT" - Current model. + ModelType string `json:"modelType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModelType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSTranslationTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSTranslationTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSTuningTrial: Metrics for a tuning job generated, will get +// forwarded to Stackdriver as model tuning logs. Setting this as a +// standalone message out of CreateModelMetadata to avoid confusion as +// we expose this message only to users. +type XPSTuningTrial struct { + // ModelStructure: Model parameters for the trial. + ModelStructure *XPSTablesModelStructure `json:"modelStructure,omitempty"` + + // TrainingObjectivePoint: The optimization objective evaluation of the + // eval split data. + TrainingObjectivePoint *XPSTrainingObjectivePoint `json:"trainingObjectivePoint,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModelStructure") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelStructure") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSTuningTrial) MarshalJSON() ([]byte, error) { + type NoMethod XPSTuningTrial + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSVideoActionMetricsEntry: The Evaluation metrics entry given a +// specific precision_window_length. +type XPSVideoActionMetricsEntry struct { + // ConfidenceMetricsEntries: Metrics for each label-match + // confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + ConfidenceMetricsEntries []*XPSVideoActionMetricsEntryConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"` + + // MeanAveragePrecision: The mean average precision. + MeanAveragePrecision float64 `json:"meanAveragePrecision,omitempty"` + + // PrecisionWindowLength: This VideoActionMetricsEntry is calculated + // based on this prediction window length. If the predicted action's + // timestamp is inside the time window whose center is the ground truth + // action's timestamp with this specific length, the prediction result + // is treated as a true positive. + PrecisionWindowLength string `json:"precisionWindowLength,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConfidenceMetricsEntries") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceMetricsEntries") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoActionMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoActionMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSVideoActionMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSVideoActionMetricsEntry + var s1 struct { + MeanAveragePrecision gensupport.JSONFloat64 `json:"meanAveragePrecision"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MeanAveragePrecision = float64(s1.MeanAveragePrecision) + return nil +} + +// XPSVideoActionMetricsEntryConfidenceMetricsEntry: Metrics for a +// single confidence threshold. +type XPSVideoActionMetricsEntryConfidenceMetricsEntry struct { + // ConfidenceThreshold: Output only. The confidence threshold value used + // to compute the metrics. + ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` + + // F1Score: Output only. The harmonic mean of recall and precision. + F1Score float64 `json:"f1Score,omitempty"` + + // Precision: Output only. Precision for the given confidence threshold. + Precision float64 `json:"precision,omitempty"` + + // Recall: Output only. Recall for the given confidence threshold. + Recall float64 `json:"recall,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConfidenceThreshold") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoActionMetricsEntryConfidenceMetricsEntry) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoActionMetricsEntryConfidenceMetricsEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSVideoActionMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { + type NoMethod XPSVideoActionMetricsEntryConfidenceMetricsEntry + var s1 struct { + ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"` + F1Score gensupport.JSONFloat64 `json:"f1Score"` + Precision gensupport.JSONFloat64 `json:"precision"` + Recall gensupport.JSONFloat64 `json:"recall"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceThreshold = float64(s1.ConfidenceThreshold) + s.F1Score = float64(s1.F1Score) + s.Precision = float64(s1.Precision) + s.Recall = float64(s1.Recall) + return nil +} + +// XPSVideoActionRecognitionEvaluationMetrics: Model evaluation metrics +// for video action recognition. +type XPSVideoActionRecognitionEvaluationMetrics struct { + // EvaluatedActionCount: Output only. The number of ground truth actions + // used to create this evaluation. + EvaluatedActionCount int64 `json:"evaluatedActionCount,omitempty"` + + // VideoActionMetricsEntries: Output only. The metric entries for + // precision window lengths: 1s,2s,3s,4s, 5s. + VideoActionMetricsEntries []*XPSVideoActionMetricsEntry `json:"videoActionMetricsEntries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EvaluatedActionCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EvaluatedActionCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoActionRecognitionEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoActionRecognitionEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVideoActionRecognitionTrainResponse struct { + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. + ModelArtifactSpec *XPSVideoModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + // TrainCostNodeSeconds: The actual train cost of creating this model, + // expressed in node seconds, i.e. 3,600 value in this field means 1 + // node hour. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ModelArtifactSpec") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelArtifactSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoActionRecognitionTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoActionRecognitionTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVideoBatchPredictOperationMetadata struct { + // OutputExamples: All the partial batch prediction results that are + // completed at the moment. Output examples are sorted by completion + // time. The order will not be changed. Each output example should be + // the path of a single RecordIO file of AnnotatedExamples. + OutputExamples []string `json:"outputExamples,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputExamples") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OutputExamples") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoBatchPredictOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoBatchPredictOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVideoClassificationTrainResponse struct { + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. + ModelArtifactSpec *XPSVideoModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + // TrainCostNodeSeconds: The actual train cost of creating this model, + // expressed in node seconds, i.e. 3,600 value in this field means 1 + // node hour. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ModelArtifactSpec") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModelArtifactSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoClassificationTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoClassificationTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSVideoExportModelSpec: Information of downloadable models that are +// pre-generated as part of training flow and will be persisted in +// AutoMl backend. Upon receiving ExportModel request from user, AutoMl +// backend can serve the pre-generated models to user if exists (by +// copying the files from internal path to user provided location), +// otherwise, AutoMl backend will call xPS ExportModel API to generate +// the model on the fly with the requesting format. +type XPSVideoExportModelSpec struct { + // ExportModelOutputConfig: Contains the model format and internal + // location of the model files to be exported/downloaded. Use the GCS + // bucket name which is provided via TrainRequest.gcs_bucket_name to + // store the model files. + ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ExportModelOutputConfig") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExportModelOutputConfig") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoExportModelSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoExportModelSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVideoModelArtifactSpec struct { + // ExportArtifact: The model binary files in different formats for model + // export. + ExportArtifact []*XPSModelArtifactItem `json:"exportArtifact,omitempty"` + + // ServingArtifact: The default model binary file used for serving (e.g. + // batch predict) via public Cloud AI Platform API. + ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExportArtifact") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExportArtifact") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoModelArtifactSpec) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoModelArtifactSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSVideoObjectTrackingEvaluationMetrics: Model evaluation metrics for +// ObjectTracking problems. Next tag: 10. +type XPSVideoObjectTrackingEvaluationMetrics struct { + // BoundingBoxMeanAveragePrecision: Output only. The single metric for + // bounding boxes evaluation: the mean_average_precision averaged over + // all bounding_box_metrics_entries. + BoundingBoxMeanAveragePrecision float64 `json:"boundingBoxMeanAveragePrecision,omitempty"` + + // BoundingBoxMetricsEntries: Output only. The bounding boxes match + // metrics for each Intersection-over-union threshold + // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + BoundingBoxMetricsEntries []*XPSBoundingBoxMetricsEntry `json:"boundingBoxMetricsEntries,omitempty"` + + // EvaluatedBoundingboxCount: The number of bounding boxes used for + // model evaluation. + EvaluatedBoundingboxCount int64 `json:"evaluatedBoundingboxCount,omitempty"` + + // EvaluatedFrameCount: The number of video frames used for model + // evaluation. + EvaluatedFrameCount int64 `json:"evaluatedFrameCount,omitempty"` + + // EvaluatedTrackCount: The number of tracks used for model evaluation. + EvaluatedTrackCount int64 `json:"evaluatedTrackCount,omitempty"` + + // TrackMeanAveragePrecision: Output only. The single metric for tracks + // accuracy evaluation: the mean_average_precision averaged over all + // track_metrics_entries. + TrackMeanAveragePrecision float64 `json:"trackMeanAveragePrecision,omitempty"` + + // TrackMeanBoundingBoxIou: Output only. The single metric for tracks + // bounding box iou evaluation: the mean_bounding_box_iou averaged over + // all track_metrics_entries. + TrackMeanBoundingBoxIou float64 `json:"trackMeanBoundingBoxIou,omitempty"` + + // TrackMeanMismatchRate: Output only. The single metric for tracking + // consistency evaluation: the mean_mismatch_rate averaged over all + // track_metrics_entries. + TrackMeanMismatchRate float64 `json:"trackMeanMismatchRate,omitempty"` + + // TrackMetricsEntries: Output only. The tracks match metrics for each + // Intersection-over-union threshold + // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + TrackMetricsEntries []*XPSTrackMetricsEntry `json:"trackMetricsEntries,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BoundingBoxMeanAveragePrecision") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "BoundingBoxMeanAveragePrecision") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoObjectTrackingEvaluationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoObjectTrackingEvaluationMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSVideoObjectTrackingEvaluationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod XPSVideoObjectTrackingEvaluationMetrics + var s1 struct { + BoundingBoxMeanAveragePrecision gensupport.JSONFloat64 `json:"boundingBoxMeanAveragePrecision"` + TrackMeanAveragePrecision gensupport.JSONFloat64 `json:"trackMeanAveragePrecision"` + TrackMeanBoundingBoxIou gensupport.JSONFloat64 `json:"trackMeanBoundingBoxIou"` + TrackMeanMismatchRate gensupport.JSONFloat64 `json:"trackMeanMismatchRate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BoundingBoxMeanAveragePrecision = float64(s1.BoundingBoxMeanAveragePrecision) + s.TrackMeanAveragePrecision = float64(s1.TrackMeanAveragePrecision) + s.TrackMeanBoundingBoxIou = float64(s1.TrackMeanBoundingBoxIou) + s.TrackMeanMismatchRate = float64(s1.TrackMeanMismatchRate) + return nil +} + +type XPSVideoObjectTrackingTrainResponse struct { + // ExportModelSpec: Populated for AutoML request only. + ExportModelSpec *XPSVideoExportModelSpec `json:"exportModelSpec,omitempty"` + + // ModelArtifactSpec: ## The fields below are only populated under uCAIP + // request scope. + ModelArtifactSpec *XPSVideoModelArtifactSpec `json:"modelArtifactSpec,omitempty"` + + // TrainCostNodeSeconds: The actual train cost of creating this model, + // expressed in node seconds, i.e. 3,600 value in this field means 1 + // node hour. + TrainCostNodeSeconds int64 `json:"trainCostNodeSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ExportModelSpec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExportModelSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoObjectTrackingTrainResponse) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoObjectTrackingTrainResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVideoTrainingOperationMetadata struct { + // TrainCostMilliNodeHour: This is an estimation of the node hours + // necessary for training a model, expressed in milli node hours (i.e. + // 1,000 value in this field means 1 node hour). A node hour represents + // the time a virtual machine spends running your training job. The cost + // of one node running for one hour is a node hour. + TrainCostMilliNodeHour int64 `json:"trainCostMilliNodeHour,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "TrainCostMilliNodeHour") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TrainCostMilliNodeHour") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVideoTrainingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSVideoTrainingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSVisionErrorAnalysisConfig: The vision model error analysis +// configuration. Next tag: 3 +type XPSVisionErrorAnalysisConfig struct { + // ExampleCount: The number of query examples in error analysis. + ExampleCount int64 `json:"exampleCount,omitempty"` + + // QueryType: The query type used in retrieval. The enum values are + // frozen in the foreseeable future. + // + // Possible values: + // "QUERY_TYPE_UNSPECIFIED" - Unspecified query type for model error + // analysis. + // "QUERY_TYPE_ALL_SIMILAR" - Query similar samples across all classes + // in the dataset. + // "QUERY_TYPE_SAME_CLASS_SIMILAR" - Query similar samples from the + // same class of the input sample. + // "QUERY_TYPE_SAME_CLASS_DISSIMILAR" - Query dissimilar samples from + // the same class of the input sample. + QueryType string `json:"queryType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSVisionErrorAnalysisConfig) MarshalJSON() ([]byte, error) { + type NoMethod XPSVisionErrorAnalysisConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type XPSVisionTrainingOperationMetadata struct { + // ExplanationUsage: Aggregated infra usage within certain time period, + // for billing report purpose if XAI is enable in training request. + ExplanationUsage *InfraUsage `json:"explanationUsage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExplanationUsage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExplanationUsage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVisionTrainingOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSVisionTrainingOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSVisualization: Visualization configurations for image explanation. +type XPSVisualization struct { + // ClipPercentLowerbound: Excludes attributions below the specified + // percentile, from the highlighted areas. Defaults to 62. + ClipPercentLowerbound float64 `json:"clipPercentLowerbound,omitempty"` + + // ClipPercentUpperbound: Excludes attributions above the specified + // percentile from the highlighted areas. Using the + // clip_percent_upperbound and clip_percent_lowerbound together can be + // useful for filtering out noise and making it easier to see areas of + // strong attribution. Defaults to 99.9. + ClipPercentUpperbound float64 `json:"clipPercentUpperbound,omitempty"` + + // ColorMap: The color scheme used for the highlighted areas. Defaults + // to PINK_GREEN for Integrated Gradients attribution, which shows + // positive attributions in green and negative in pink. Defaults to + // VIRIDIS for XRAI attribution, which highlights the most influential + // regions in yellow and the least influential in blue. + // + // Possible values: + // "COLOR_MAP_UNSPECIFIED" - Should not be used. + // "PINK_GREEN" - Positive: green. Negative: pink. + // "VIRIDIS" - Viridis color map: A perceptually uniform color mapping + // which is easier to see by those with colorblindness and progresses + // from yellow to green to blue. Positive: yellow. Negative: blue. + // "RED" - Positive: red. Negative: red. + // "GREEN" - Positive: green. Negative: green. + // "RED_GREEN" - Positive: green. Negative: red. + // "PINK_WHITE_GREEN" - PiYG palette. + ColorMap string `json:"colorMap,omitempty"` + + // OverlayType: How the original image is displayed in the + // visualization. Adjusting the overlay can help increase visual clarity + // if the original image makes it difficult to view the visualization. + // Defaults to NONE. + // + // Possible values: + // "OVERLAY_TYPE_UNSPECIFIED" - Default value. This is the same as + // NONE. + // "NONE" - No overlay. + // "ORIGINAL" - The attributions are shown on top of the original + // image. + // "GRAYSCALE" - The attributions are shown on top of grayscaled + // version of the original image. + // "MASK_BLACK" - The attributions are used as a mask to reveal + // predictive parts of the image and hide the un-predictive parts. + OverlayType string `json:"overlayType,omitempty"` + + // Polarity: Whether to only highlight pixels with positive + // contributions, negative or both. Defaults to POSITIVE. + // + // Possible values: + // "POLARITY_UNSPECIFIED" - Default value. This is the same as + // POSITIVE. + // "POSITIVE" - Highlights the pixels/outlines that were most + // influential to the model's prediction. + // "NEGATIVE" - Setting polarity to negative highlights areas that + // does not lead to the models's current prediction. + // "BOTH" - Shows both positive and negative attributions. + Polarity string `json:"polarity,omitempty"` + + // Type: Type of the image visualization. Only applicable to Integrated + // Gradients attribution. OUTLINES shows regions of attribution, while + // PIXELS shows per-pixel attribution. Defaults to OUTLINES. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Should not be used. + // "PIXELS" - Shows which pixel contributed to the image prediction. + // "OUTLINES" - Shows which region contributed to the image prediction + // by outlining the region. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClipPercentLowerbound") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClipPercentLowerbound") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *XPSVisualization) MarshalJSON() ([]byte, error) { + type NoMethod XPSVisualization + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *XPSVisualization) UnmarshalJSON(data []byte) error { + type NoMethod XPSVisualization + var s1 struct { + ClipPercentLowerbound gensupport.JSONFloat64 `json:"clipPercentLowerbound"` + ClipPercentUpperbound gensupport.JSONFloat64 `json:"clipPercentUpperbound"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ClipPercentLowerbound = float64(s1.ClipPercentLowerbound) + s.ClipPercentUpperbound = float64(s1.ClipPercentUpperbound) + return nil +} + +type XPSXpsOperationMetadata struct { + // ExampleCount: Optional. XPS server can opt to provide example count + // of the long running operation (e.g. training, data importing, batch + // prediction). + ExampleCount int64 `json:"exampleCount,omitempty,string"` + + // ReportingMetrics: Metrics for the operation. By the time the + // operation is terminated (whether succeeded or failed) as returned + // from XPS, AutoML BE assumes the metrics are finalized. AutoML BE + // transparently posts the metrics to Chemist if it's not empty, + // regardless of the response content or error type. If user is supposed + // to be charged in case of cancellation/error, this field should be + // set. In the case where the type of LRO doesn't require any billing, + // this field should be left unset. + ReportingMetrics *XPSReportingMetrics `json:"reportingMetrics,omitempty"` + + TablesTrainingOperationMetadata *XPSTablesTrainingOperationMetadata `json:"tablesTrainingOperationMetadata,omitempty"` + + VideoBatchPredictOperationMetadata *XPSVideoBatchPredictOperationMetadata `json:"videoBatchPredictOperationMetadata,omitempty"` + + VideoTrainingOperationMetadata *XPSVideoTrainingOperationMetadata `json:"videoTrainingOperationMetadata,omitempty"` + + VisionTrainingOperationMetadata *XPSVisionTrainingOperationMetadata `json:"visionTrainingOperationMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExampleCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExampleCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSXpsOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod XPSXpsOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// XPSXraiAttribution: An explanation method that redistributes +// Integrated Gradients attributions to segmented regions, taking +// advantage of the model's fully differentiable structure. Refer to +// this paper for more details: https://arxiv.org/abs/1906.02825 Only +// supports image Models (modality is IMAGE). +type XPSXraiAttribution struct { + // StepCount: The number of steps for approximating the path integral. A + // good value to start is 50 and gradually increase until the sum to + // diff property is met within the desired error range. Valid range of + // its value is [1, 100], inclusively. + StepCount int64 `json:"stepCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StepCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StepCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *XPSXraiAttribution) MarshalJSON() ([]byte, error) { + type NoMethod XPSXraiAttribution raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 024e5417621..5f45fb6e8d6 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240131", + "revision": "20240207", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1051,6 +1051,8 @@ "PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK", "PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS", "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS", + "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED", + "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED", "CLOUD_RUN_REVISION_NOT_READY", "DROPPED_INSIDE_PSC_SERVICE_PRODUCER", "LOAD_BALANCER_HAS_NO_PROXY_SUBNET", @@ -1108,6 +1110,8 @@ "The packet is sent to the Private Service Connect endpoint over the peering, but [it's not supported](https://cloud.google.com/vpc/docs/configure-private-service-connect-services#on-premises).", "The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule does not have global access enabled.", "The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule has multiple ports specified.", + "The packet sent from the hybrid NEG proxy matches a non-dynamic route, but such a configuration is not supported.", + "The packet sent from the hybrid NEG proxy matches a dynamic route with a next hop in a different region, but such a configuration is not supported.", "Packet sent from a Cloud Run revision that is not ready.", "Packet was dropped inside Private Service Connect service producer.", "Packet sent to a load balancer, which requires a proxy-only subnet and the subnet is not found.", diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 73ab13efca5..6f126a936e1 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1073,6 +1073,12 @@ type DropInfo struct { // "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS" - The packet is // sent to the Private Service Connect backend (network endpoint group), // but the producer PSC forwarding rule has multiple ports specified. + // "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED" - The packet sent from the + // hybrid NEG proxy matches a non-dynamic route, but such a + // configuration is not supported. + // "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED" - The packet sent from + // the hybrid NEG proxy matches a dynamic route with a next hop in a + // different region, but such a configuration is not supported. // "CLOUD_RUN_REVISION_NOT_READY" - Packet sent from a Cloud Run // revision that is not ready. // "DROPPED_INSIDE_PSC_SERVICE_PRODUCER" - Packet was dropped inside diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 9172f2204af..5c5fd5e551d 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240131", + "revision": "20240207", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1056,6 +1056,8 @@ "PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK", "PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS", "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS", + "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED", + "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED", "CLOUD_RUN_REVISION_NOT_READY", "DROPPED_INSIDE_PSC_SERVICE_PRODUCER", "LOAD_BALANCER_HAS_NO_PROXY_SUBNET", @@ -1113,6 +1115,8 @@ "The packet is sent to the Private Service Connect endpoint over the peering, but [it's not supported](https://cloud.google.com/vpc/docs/configure-private-service-connect-services#on-premises).", "The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule does not have global access enabled.", "The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule has multiple ports specified.", + "The packet sent from the hybrid NEG proxy matches a non-dynamic route, but such a configuration is not supported.", + "The packet sent from the hybrid NEG proxy matches a dynamic route with a next hop in a different region, but such a configuration is not supported.", "Packet sent from a Cloud Run revision that is not ready.", "Packet was dropped inside Private Service Connect service producer.", "Packet sent to a load balancer, which requires a proxy-only subnet and the subnet is not found.", diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index fbfc0c9f2c5..cbfec585b5e 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1076,6 +1076,12 @@ type DropInfo struct { // "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS" - The packet is // sent to the Private Service Connect backend (network endpoint group), // but the producer PSC forwarding rule has multiple ports specified. + // "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED" - The packet sent from the + // hybrid NEG proxy matches a non-dynamic route, but such a + // configuration is not supported. + // "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED" - The packet sent from + // the hybrid NEG proxy matches a dynamic route with a next hop in a + // different region, but such a configuration is not supported. // "CLOUD_RUN_REVISION_NOT_READY" - Packet sent from a Cloud Run // revision that is not ready. // "DROPPED_INSIDE_PSC_SERVICE_PRODUCER" - Packet was dropped inside diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index c4f3c93671d..20d8ed8626a 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20240124", + "revision": "20240207", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -902,10 +902,24 @@ "type": "string" }, "frameRate": { - "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.", + "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.", "format": "double", "type": "number" }, + "frameRateConversionStrategy": { + "description": "Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.", + "enum": [ + "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED", + "DOWNSAMPLE", + "DROP_DUPLICATE" + ], + "enumDescriptions": [ + "Unspecified frame rate conversion strategy.", + "Selectively retain frames to reduce the output frame rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / target frame rate)`. When _n_ = 1 (that is, the target frame rate is greater than the input frame rate), the output frame rate matches the input frame rate. When _n_ \u003e 1, frames are dropped and the output frame rate is equal to `(input frame rate / n)`. For more information, see [Calculate frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate).", + "Drop or duplicate frames to match the specified frame rate." + ], + "type": "string" + }, "gopDuration": { "description": "Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.", "format": "google-duration", @@ -1016,10 +1030,24 @@ "type": "boolean" }, "frameRate": { - "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.", + "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.", "format": "double", "type": "number" }, + "frameRateConversionStrategy": { + "description": "Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.", + "enum": [ + "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED", + "DOWNSAMPLE", + "DROP_DUPLICATE" + ], + "enumDescriptions": [ + "Unspecified frame rate conversion strategy.", + "Selectively retain frames to reduce the output frame rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / target frame rate)`. When _n_ = 1 (that is, the target frame rate is greater than the input frame rate), the output frame rate matches the input frame rate. When _n_ \u003e 1, frames are dropped and the output frame rate is equal to `(input frame rate / n)`. For more information, see [Calculate frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate).", + "Drop or duplicate frames to match the specified frame rate." + ], + "type": "string" + }, "gopDuration": { "description": "Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.", "format": "google-duration", @@ -1816,10 +1844,24 @@ "type": "integer" }, "frameRate": { - "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.", + "description": "Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.", "format": "double", "type": "number" }, + "frameRateConversionStrategy": { + "description": "Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.", + "enum": [ + "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED", + "DOWNSAMPLE", + "DROP_DUPLICATE" + ], + "enumDescriptions": [ + "Unspecified frame rate conversion strategy.", + "Selectively retain frames to reduce the output frame rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / target frame rate)`. When _n_ = 1 (that is, the target frame rate is greater than the input frame rate), the output frame rate matches the input frame rate. When _n_ \u003e 1, frames are dropped and the output frame rate is equal to `(input frame rate / n)`. For more information, see [Calculate frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate).", + "Drop or duplicate frames to match the specified frame rate." + ], + "type": "string" + }, "gopDuration": { "description": "Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.", "format": "google-duration", diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index 1a5eb32d74e..099072eaed4 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -1135,14 +1135,27 @@ type H264CodecSettings struct { EntropyCoder string `json:"entropyCoder,omitempty"` // FrameRate: Required. The target video frame rate in frames per second - // (FPS). Must be less than or equal to 120. Will default to the input - // frame rate if larger than the input frame rate. The API will generate - // an output FPS that is divisible by the input FPS, and smaller or - // equal to the target FPS. See Calculating frame rate - // (https://cloud.google.com/transcoder/docs/concepts/frame-rate) for - // more information. + // (FPS). Must be less than or equal to 120. FrameRate float64 `json:"frameRate,omitempty"` + // FrameRateConversionStrategy: Optional. Frame rate conversion strategy + // for desired frame rate. The default is `DOWNSAMPLE`. + // + // Possible values: + // "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED" - Unspecified frame + // rate conversion strategy. + // "DOWNSAMPLE" - Selectively retain frames to reduce the output frame + // rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / + // target frame rate)`. When _n_ = 1 (that is, the target frame rate is + // greater than the input frame rate), the output frame rate matches the + // input frame rate. When _n_ > 1, frames are dropped and the output + // frame rate is equal to `(input frame rate / n)`. For more + // information, see [Calculate frame + // rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate). + // "DROP_DUPLICATE" - Drop or duplicate frames to match the specified + // frame rate. + FrameRateConversionStrategy string `json:"frameRateConversionStrategy,omitempty"` + // GopDuration: Select the GOP size based on the specified duration. The // default is `3s`. Note that `gopDuration` must be less than or equal // to `segmentDuration` (#SegmentSettings), and `segmentDuration` @@ -1308,14 +1321,27 @@ type H265CodecSettings struct { EnableTwoPass bool `json:"enableTwoPass,omitempty"` // FrameRate: Required. The target video frame rate in frames per second - // (FPS). Must be less than or equal to 120. Will default to the input - // frame rate if larger than the input frame rate. The API will generate - // an output FPS that is divisible by the input FPS, and smaller or - // equal to the target FPS. See Calculating frame rate - // (https://cloud.google.com/transcoder/docs/concepts/frame-rate) for - // more information. + // (FPS). Must be less than or equal to 120. FrameRate float64 `json:"frameRate,omitempty"` + // FrameRateConversionStrategy: Optional. Frame rate conversion strategy + // for desired frame rate. The default is `DOWNSAMPLE`. + // + // Possible values: + // "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED" - Unspecified frame + // rate conversion strategy. + // "DOWNSAMPLE" - Selectively retain frames to reduce the output frame + // rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / + // target frame rate)`. When _n_ = 1 (that is, the target frame rate is + // greater than the input frame rate), the output frame rate matches the + // input frame rate. When _n_ > 1, frames are dropped and the output + // frame rate is equal to `(input frame rate / n)`. For more + // information, see [Calculate frame + // rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate). + // "DROP_DUPLICATE" - Drop or duplicate frames to match the specified + // frame rate. + FrameRateConversionStrategy string `json:"frameRateConversionStrategy,omitempty"` + // GopDuration: Select the GOP size based on the specified duration. The // default is `3s`. Note that `gopDuration` must be less than or equal // to `segmentDuration` (#SegmentSettings), and `segmentDuration` @@ -2560,14 +2586,27 @@ type Vp9CodecSettings struct { CrfLevel int64 `json:"crfLevel,omitempty"` // FrameRate: Required. The target video frame rate in frames per second - // (FPS). Must be less than or equal to 120. Will default to the input - // frame rate if larger than the input frame rate. The API will generate - // an output FPS that is divisible by the input FPS, and smaller or - // equal to the target FPS. See Calculating frame rate - // (https://cloud.google.com/transcoder/docs/concepts/frame-rate) for - // more information. + // (FPS). Must be less than or equal to 120. FrameRate float64 `json:"frameRate,omitempty"` + // FrameRateConversionStrategy: Optional. Frame rate conversion strategy + // for desired frame rate. The default is `DOWNSAMPLE`. + // + // Possible values: + // "FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED" - Unspecified frame + // rate conversion strategy. + // "DOWNSAMPLE" - Selectively retain frames to reduce the output frame + // rate. Every _n_ th frame is kept, where `n = ceil(input frame rate / + // target frame rate)`. When _n_ = 1 (that is, the target frame rate is + // greater than the input frame rate), the output frame rate matches the + // input frame rate. When _n_ > 1, frames are dropped and the output + // frame rate is equal to `(input frame rate / n)`. For more + // information, see [Calculate frame + // rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate). + // "DROP_DUPLICATE" - Drop or duplicate frames to match the specified + // frame rate. + FrameRateConversionStrategy string `json:"frameRateConversionStrategy,omitempty"` + // GopDuration: Select the GOP size based on the specified duration. The // default is `3s`. Note that `gopDuration` must be less than or equal // to `segmentDuration` (#SegmentSettings), and `segmentDuration` diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 53186277883..5a42c578970 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -932,6 +932,33 @@ }, "genericobject": { "methods": { + "addmessage": { + "description": "Adds a message to the generic object referenced by the given object ID.", + "flatPath": "walletobjects/v1/genericObject/{resourceId}/addMessage", + "httpMethod": "POST", + "id": "walletobjects.genericobject.addmessage", + "parameterOrder": [ + "resourceId" + ], + "parameters": { + "resourceId": { + "description": "The unique identifier for an object. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "walletobjects/v1/genericObject/{resourceId}/addMessage", + "request": { + "$ref": "AddMessageRequest" + }, + "response": { + "$ref": "GenericObjectAddMessageResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/wallet_object.issuer" + ] + }, "get": { "description": "Returns the generic object with the given object ID.", "flatPath": "walletobjects/v1/genericObject/{resourceId}", @@ -2654,7 +2681,7 @@ } } }, - "revision": "20240215", + "revision": "20240216", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -3910,7 +3937,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -4686,7 +4713,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -5117,7 +5144,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -5359,6 +5386,17 @@ }, "type": "object" }, + "GenericObjectAddMessageResponse": { + "description": "Response to adding a new issuer message to the object. This contains the entire updated GenericObject.", + "id": "GenericObjectAddMessageResponse", + "properties": { + "resource": { + "$ref": "GenericObject", + "description": "The updated GenericObject resource." + } + }, + "type": "object" + }, "GenericObjectListResponse": { "description": "List response which contains the list of all generic objects for a given issuer ID.", "id": "GenericObjectListResponse", @@ -5514,7 +5552,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -6319,7 +6357,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -7228,7 +7266,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", @@ -8552,7 +8590,7 @@ ], "enumDescriptions": [ "Unspecified preference.", - "The same object can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", + "The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device.", "An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it.", "An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information.", "Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.", diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index c8c0ee88b79..8d7372acefd 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -2312,10 +2312,10 @@ type EventTicketClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -3252,10 +3252,10 @@ type FlightClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -3800,10 +3800,10 @@ type GenericClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -4119,6 +4119,40 @@ func (s *GenericObject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GenericObjectAddMessageResponse: Response to adding a new issuer +// message to the object. This contains the entire updated +// GenericObject. +type GenericObjectAddMessageResponse struct { + // Resource: The updated GenericObject resource. + Resource *GenericObject `json:"resource,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Resource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Resource") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GenericObjectAddMessageResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenericObjectAddMessageResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GenericObjectListResponse: List response which contains the list of // all generic objects for a given issuer ID. type GenericObjectListResponse struct { @@ -4281,10 +4315,10 @@ type GiftCardClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -5465,10 +5499,10 @@ type LoyaltyClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -6658,10 +6692,10 @@ type OfferClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -8368,10 +8402,10 @@ type TransitClass struct { // // Possible values: // "STATUS_UNSPECIFIED" - Unspecified preference. - // "MULTIPLE_HOLDERS" - The same object can be saved by any number of - // different users, and on any number of devices. Partners typically use - // this setup for passes that do not need to be restricted to a single - // user or pinned to a single device. + // "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can + // be saved by any number of different users, and on any number of + // devices. Partners typically use this setup for passes that do not + // need to be restricted to a single user or pinned to a single device. // "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, // but this user can view and use it on multiple of their devices. Once // the first user saves the object, no other user will be allowed to @@ -13619,6 +13653,152 @@ func (c *GenericclassUpdateCall) Do(opts ...googleapi.CallOption) (*GenericClass } +// method id "walletobjects.genericobject.addmessage": + +type GenericobjectAddmessageCall struct { + s *Service + resourceId string + addmessagerequest *AddMessageRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Addmessage: Adds a message to the generic object referenced by the +// given object ID. +// +// - resourceId: The unique identifier for an object. This ID must be +// unique across all classes from an issuer. This value should follow +// the format issuer ID. identifier where the former is issued by +// Google and latter is chosen by you. Your unique identifier should +// only include alphanumeric characters, '.', '_', or '-'. +func (r *GenericobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GenericobjectAddmessageCall { + c := &GenericobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resourceId = resourceId + c.addmessagerequest = addmessagerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GenericobjectAddmessageCall) Fields(s ...googleapi.Field) *GenericobjectAddmessageCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GenericobjectAddmessageCall) Context(ctx context.Context) *GenericobjectAddmessageCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GenericobjectAddmessageCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GenericobjectAddmessageCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject/{resourceId}/addMessage") + 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{ + "resourceId": c.resourceId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "walletobjects.genericobject.addmessage" call. +// Exactly one of *GenericObjectAddMessageResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GenericObjectAddMessageResponse.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 *GenericobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*GenericObjectAddMessageResponse, 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 := &GenericObjectAddMessageResponse{ + 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 + // { + // "description": "Adds a message to the generic object referenced by the given object ID.", + // "flatPath": "walletobjects/v1/genericObject/{resourceId}/addMessage", + // "httpMethod": "POST", + // "id": "walletobjects.genericobject.addmessage", + // "parameterOrder": [ + // "resourceId" + // ], + // "parameters": { + // "resourceId": { + // "description": "The unique identifier for an object. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "walletobjects/v1/genericObject/{resourceId}/addMessage", + // "request": { + // "$ref": "AddMessageRequest" + // }, + // "response": { + // "$ref": "GenericObjectAddMessageResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/wallet_object.issuer" + // ] + // } + +} + // method id "walletobjects.genericobject.get": type GenericobjectGetCall struct {